[分享]phpBB 2.0.5-2.0.6 差異點
藍色:改變
紅色:追加
棕色:刪除\r
- /login.php
Line 9,版本號變更\rLine 58代碼: 選擇全部
* $Id: login.php,v [color=blue]1.47.2.13 2003/06/20 07:40:27[/color] acydburn Exp $
2.0.52.0.6代碼: 選擇全部
$username = substr(str_replace("\'", "'", $username), 0, 25);
Line 63代碼: 選擇全部
$username = substr(str_replace("[color=blue]\\\[/color]'", "'", $username), 0, 25); [color=red]$username = str_replace("'", "\\\'", $username);[/color]
2.0.52.0.6代碼: 選擇全部
WHERE username = '" . str_replace("\'", "''", $username) . "'";
代碼: 選擇全部
WHERE username = '" . str_replace("[color=blue]\\\[/color]'", "''", $username) . "'";
- /modcp.php
Line 9,版本號變更\rLine 229代碼: 選擇全部
* $Id: modcp.php,v [color=blue]1.71.2.21 2003/07/26 11:41:35[/color] acydburn Exp $
2.0.52.0.6代碼: 選擇全部
$topic_id_sql .= ( ( $topic_id_sql != '' ) ? ', ' : '' ) . $topics[$i]; }
同時,在下面加上代碼: 選擇全部
$topic_id_sql .= ( ( $topic_id_sql != '' ) ? ', ' : '' ) . [color=blue]intval($topics[$i])[/color]; }
Line 272代碼: 選擇全部
$sql = "SELECT topic_id FROM " . TOPICS_TABLE . " WHERE topic_id IN ($topic_id_sql) AND forum_id = $forum_id"; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not get topic id information', '', __LINE__, __FILE__, $sql); } $topic_id_sql = ''; while ($row = $db->sql_fetchrow($result)) { $topic_id_sql .= (($topic_id_sql != '') ? ', ' : '') . intval($row['topic_id']); } $db->sql_freeresult($result);
2.0.52.0.6代碼: 選擇全部
$post_id_sql .= ( ( $post_id_sql != '' ) ? ', ' : '' ) . $row['post_id'];
Line 436代碼: 選擇全部
$post_id_sql .= ( ( $post_id_sql != '' ) ? ', ' : '' ) . [color=blue]intval($row['post_id'])[/color];
2.0.52.0.6代碼: 選擇全部
$new_forum_id = $HTTP_POST_VARS['new_forum'];
Line 451代碼: 選擇全部
$new_forum_id = [color=blue]intval($HTTP_POST_VARS['new_forum'])[/color];
尋找\r在下面加入\r代碼: 選擇全部
WHERE topic_id IN ($topic_list)
Line 585代碼: 選擇全部
AND forum_id = $old_forum_id
2.0.52.0.6代碼: 選擇全部
$topic_id_sql .= ( ( $topic_id_sql != '' ) ? ', ' : '' ) . $topics[$i];
在下面不遠處尋找\r代碼: 選擇全部
$topic_id_sql .= ( ( $topic_id_sql != '' ) ? ', ' : '' ) . [color=blue]intval($topics[$i])[/color];
在下面加入\r代碼: 選擇全部
$sql = "UPDATE " . TOPICS_TABLE . " SET topic_status = " . TOPIC_LOCKED . " WHERE topic_id IN ($topic_id_sql)
Line 629代碼: 選擇全部
AND forum_id = $forum_id
2.0.52.0.6代碼: 選擇全部
$topic_id_sql .= ( ( $topic_id_sql != "") ? ', ' : '' ) . $topics[$i];
在下面不遠處尋找\r代碼: 選擇全部
$topic_id_sql .= ( ( $topic_id_sql != "") ? ', ' : '' ) . [color=blue]intval($topics[$i])[/color];
在下面加入\r代碼: 選擇全部
$sql = "UPDATE " . TOPICS_TABLE . " SET topic_status = " . TOPIC_UNLOCKED . " WHERE topic_id IN ($topic_id_sql)
尋找\r代碼: 選擇全部
AND forum_id = $forum_id
在上面加入\r代碼: 選擇全部
$sql = "SELECT post_id, poster_id, topic_id, post_time FROM " . POSTS_TABLE . " WHERE post_id IN ($post_id_sql) ORDER BY post_time ASC"; if (!($result = $db->sql_query($sql)))
Line 904代碼: 選擇全部
$sql = "SELECT post_id FROM " . POSTS_TABLE . " WHERE post_id IN ($post_id_sql) AND forum_id = $forum_id"; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not get post id information', '', __LINE__, __FILE__, $sql); } $post_id_sql = ''; while ($row = $db->sql_fetchrow($result)) { $post_id_sql .= (($post_id_sql != '') ? ', ' : '') . intval($row['post_id']); } $db->sql_freeresult($result);
2.0.52.0.6代碼: 選擇全部
WHERE post_id = $post_id";
請注意「";」。代碼: 選擇全部
[color=blue]WHERE post_id = $post_id[/color] [color=red]AND forum_id = $forum_id[/color]";
- /search.php
Line 9,版本號變更\r尋找\r代碼: 選擇全部
* $Id: search.php,v [color=blue]1.72.2.10 2003/07/11 17:04:31 psotfx[/color] Exp $
刪除其中的代碼: 選擇全部
// // If the board has HTML off but the post has HTML // on then we process it, else leave it alone // if ( $return_chars != -1 ) { $message = strip_tags($message); $message = preg_replace("/\[.*?:$bbcode_uid:?.*?\]/si", '', $message); $message = preg_replace('/\[url\]|\[\/url\]/si', '', $message); $message = ( strlen($message) > $return_chars ) ? substr($message, 0, $return_chars) . ' ...' : $message; [color=brown]if ( count($search_string) ) { $message = preg_replace($search_string, $replace_string, $message); }[/color] }
代碼: 選擇全部
[color=brown]if ( count($search_string) ) { $message = preg_replace($search_string, $replace_string, $message); }[/color]
- /viewtopic.php
Line 9,版本號變更\r尋找\r代碼: 選擇全部
* $Id: viewtopic.php,v [color=blue]1.186.2.32 2003/06/20 16:34:58 psotfx[/color] Exp $
在下面加上代碼: 選擇全部
// // Start initial var setup //
Line 105,尋找\r代碼: 選擇全部
$topic_id = $post_id = 0;
2.0.52.0.6代碼: 選擇全部
$sql = "SELECT t.topic_id [color=blue]FROM " . TOPICS_TABLE . " t, " . TOPICS_TABLE . " t2, " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2 WHERE t2.topic_id = $topic_id AND p2.post_id = t2.topic_last_post_id[/color] AND t.forum_id = t2.forum_id [color=blue]AND p.post_id = t.topic_last_post_id AND p.post_time $sql_condition p2.post_time[/color] [color=brown]AND p.topic_id = t.topic_id ORDER BY p.post_time $sql_ordering[/color] LIMIT 1";
Line 137代碼: 選擇全部
$sql = "SELECT t.topic_id FROM " . TOPICS_TABLE . " t, " . TOPICS_TABLE . " t2 WHERE t2.topic_id = $topic_id AND t.forum_id = t2.forum_id AND t.topic_last_post_id $sql_condition t2.topic_last_post_id ORDER BY t.topic_last_post_id $sql_ordering LIMIT 1";
2.0.52.0.6代碼: 選擇全部
$join_sql_table = ( !isset($post_id) ) ? '' : ", " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2 "; $join_sql = ( !isset($post_id) ) ? "t.topic_id = $topic_id" : "p.post_id = $post_id AND t.topic_id = p.topic_id AND p2.topic_id = p.topic_id AND p2.post_id <= $post_id"; $count_sql = ( !isset($post_id) ) ? '' : ", COUNT(p2.post_id) AS prev_posts"; $order_sql = ( !isset($post_id) ) ? '' : "GROUP BY p.post_id, t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments ORDER BY p.post_id ASC";
代碼: 選擇全部
$join_sql_table = ( [color=blue]empty[/color]($post_id) ) ? '' : ", " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2 "; $join_sql = ( [color=blue]empty[/color]($post_id) ) ? "t.topic_id = $topic_id" : "p.post_id = $post_id AND t.topic_id = p.topic_id AND p2.topic_id = p.topic_id AND p2.post_id <= $post_id"; $count_sql = ( [color=blue]empty[/color]($post_id) ) ? '' : ", COUNT(p2.post_id) AS prev_posts"; $order_sql = ( [color=blue]empty[/color]($post_id) ) ? '' : "GROUP BY p.post_id, t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments ORDER BY p.post_id ASC";
- /admin/admin_styles.php
Line 9,版本號變更\r在下面不遠處尋找\r代碼: 選擇全部
* $Id: admin_styles.php,v [color=blue]1.27.2.11 2003/06/26 00:08:17[/color] psotfx Exp $
在下面加上代碼: 選擇全部
// // Load default header // // // Check if the user has cancled a confirmation message. // $phpbb_root_path = "./../";
Line 46代碼: 選擇全部
require($phpbb_root_path . 'extension.inc');
2.0.52.0.6代碼: 選擇全部
if (empty($HTTP_POST_VARS['send_file'])) { $no_page_header = ( $cancel ) ? TRUE : FALSE; equire($phpbb_root_path . 'extension.inc'); require('./pagestart.' . $phpEx); }
代碼: 選擇全部
$no_page_header = (!empty($HTTP_POST_VARS['send_file']) || $cancel) ? TRUE : FALSE; require('./pagestart.' . $phpEx);
- /admin/admin_users.php
Line 9,版本號變更\r
2.0.5Line 319代碼: 選擇全部
* $Id: admin_users.php,v [color=blue]1.57.2.25 2003/06/20 07:40:27[/color] acydburn Exp $
2.0.52.0.6代碼: 選擇全部
else if ( strtolower(str_replace("\'", "''", $username)) == strtolower($userdata['username']) )
Line 328代碼: 選擇全部
else if ( strtolower(str_replace("[color=blue]\\\[/color]'", "''", $username)) == strtolower($userdata['username']) )
2.0.52.0.6代碼: 選擇全部
$username_sql = "username = '" . str_replace("\'", "''", $username) . "', ";
代碼: 選擇全部
$username_sql = "username = '" . str_replace("[color=blue]\\\[/color]'", "''", $username) . "', ";
- /admin/index.php
Line 9,版本號變更\rLine 458代碼: 選擇全部
* $Id: index.php,v [color=blue]1.40.2.5 2003/08/03 11:50:51[/color] acydburn Exp $
2.0.52.0.6代碼: 選擇全部
"U_WHOIS_IP" => "http://www.geektools.com/cgi-bin/proxy.cgi?query=$reg_ip&targetnic=auto",
Line 550代碼: 選擇全部
"U_WHOIS_IP" => "http://network-tools.com/default.asp?host=$reg_ip",
2.0.52.0.6代碼: 選擇全部
"U_WHOIS_IP" => "http://www.geektools.com/cgi-bin/proxy.cgi?query=$guest_ip&targetnic=auto",
代碼: 選擇全部
"U_WHOIS_IP" => "http://network-tools.com/default.asp?host=$guest_ip",
- /includes/emailer.php
Line 9,版本號變更\r在下面不遠處尋找\r代碼: 選擇全部
$Id: emailer.php,v [color=blue]1.15.2.33 2003/07/18 16:34:01[/color] acydburn Exp $
在 } 之前加上一行代碼: 選擇全部
function emailer($use_smtp) { $this->reset(); $this->use_smtp = $use_smtp; }
Line 45代碼: 選擇全部
$this->reply_to = $this->from = '';
2.0.52.0.6代碼: 選擇全部
$this->vars = $this->msg = $this->extra_headers = $this->replyto = $this->from = '';
在下面不遠處尋找\r代碼: 選擇全部
$this->vars = $this->msg = $this->extra_headers = '';
改為\r代碼: 選擇全部
// Sets an email address to send to function email_address($address, $realname = '') { $pos = sizeof($this->addresses['to']); $this->addresses['to'][$pos]['email'] = trim($address); $this->addresses['to'][$pos]['name'] = trim($realname); } function cc($address, $realname = '') { $pos = sizeof($this->addresses['cc']); $this->addresses['cc'][$pos]['email'] = trim($address); $this->addresses['cc'][$pos]['name'] = trim($realname); } function bcc($address, $realname = '') { $pos = sizeof($this->addresses['bcc']); $this->addresses['bcc'][$pos]['email'] = trim($address); $this->addresses['bcc'][$pos]['name'] = trim($realname); }
在下面不遠處尋找\r代碼: 選擇全部
// Sets an email address to send to function email_address($address) { $this->addresses['to'] = trim($address); } function cc($address) { $this->addresses['cc'][] = trim($address); } function bcc($address) { $this->addresses['bcc'][] = trim($address); }
改為\r代碼: 選擇全部
function replyto($address) { $this->replyto = trim($address); }
在下面不遠處尋找\r代碼: 選擇全部
function replyto($address) { $this->[color=blue]reply_to[/color] = trim($address); }
改為\r代碼: 選擇全部
// set up subject for mail function set_subject($subject = '') { $this->subject = trim($subject); }
Line 194,尋找\r代碼: 選擇全部
// set up subject for mail function set_subject($subject = '') { $this->subject = [color=blue]trim(preg_replace('#[ ]+#s', '', $subject))[/color]; }
2.0.52.0.6代碼: 選擇全部
$to = $cc = $bcc = ''; // Build to, cc and bcc strings @reset($this->addresses); while (list($type, $address_ary) = each($this->addresses)) { @reset($address_ary); while (list(, $which_ary) = each($address_ary)) { $$type .= (($$type != '') ? ',' : '') . (($which_ary['name'] != '') ? '"' . $this->encode($which_ary['name']) . '" <' . $which_ary['email'] . '>' : '<' . $which_ary['email'] . '>'); } } // Build header $this->extra_headers = (($this->replyto != '') ? "Reply-to: <$this->replyto> " : '') . (($this->from != '') ? "From: <$this->from> " : "From: <" . $board_config['board_email'] . "> ") . "Return-Path: <" . $board_config['board_email'] . "> Message-ID: <" . md5(uniqid(time())) . "@" . $board_config['server_name'] . "> MIME-Version: 1.0 Content-type: text/plain; charset=" . $this->encoding . " Content-transfer-encoding: 8bit Date: " . gmdate('D, d M Y H:i:s Z', time()) . " X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: PHP X-MimeOLE: Produced By phpBB2 " . trim($this->extra_headers) . (($cc != '') ? "Cc:$cc " : '') . (($bcc != '') ? "Bcc:$bcc " : ''); $empty_to_header = ($to == '') ? TRUE : FALSE; $to = ($to == '') ? (($board_config['sendmail_fix'] && !$this->use_smtp) ? ' ' : 'Undisclosed-recipients:;') : $to;
在下面不遠處尋找\r代碼: 選擇全部
$to = $this->addresses['to']; $cc = (count($this->addresses['cc'])) ? implode(', ', $this->addresses['cc']) : ''; $bcc = (count($this->addresses['bcc'])) ? implode(', ', $this->addresses['bcc']) : ''; // Build header $this->extra_headers = (($this->reply_to != '') ? "Reply-to: $this->reply_to " : '') . (($this->from != '') ? "From: $this->from " : "From: " . $board_config['board_email'] . " ") . "Return-Path: " . $board_config['board_email'] . " Message-ID: <" . md5(uniqid(time())) . "@" . $board_config['server_name'] . "> MIME-Version: 1.0 Content-type: text/plain; charset=" . $this->encoding . " Content-transfer-encoding: 8bit Date: " . date('r', time()) . " X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: PHP X-MimeOLE: Produced By phpBB2 " . $this->extra_headers . (($cc != '') ? "Cc: $cc " : '') . (($bcc != '') ? "Bcc: $bcc " : '');
在下面加上代碼: 選擇全部
// Send message ... removed $this->encode() from subject for time being if ( $this->use_smtp ) { if ( !defined('SMTP_INCLUDED') ) { include($phpbb_root_path . 'includes/smtp.' . $phpEx); } $result = smtpmail($to, $this->subject, $this->msg, $this->extra_headers); } else {
Line 276代碼: 選擇全部
$empty_to_header = ($to == '') ? TRUE : FALSE; $to = ($to == '') ? (($board_config['sendmail_fix']) ? ' ' : 'Undisclosed-recipients:;') : $to;
2.0.52.0.6代碼: 選擇全部
$str = preg_replace('#' . phpbb_preg_quote($spacer) . '$#', '', $str);
代碼: 選擇全部
$str = preg_replace('#' . phpbb_preg_quote[color=blue]($spacer, '#')[/color] . '$#', '', $str);
- /includes/functions.php
Line 9,版本號變更\rLine 87代碼: 選擇全部
* $Id: functions.php,v [color=blue]1.133.2.31 2003/07/20 13:14:27 acydburn[/color] Exp $
2.0.52.0.6代碼: 選擇全部
$user = substr(str_replace("\'", "'", $user), 0, 25);
Line 506代碼: 選擇全部
$user = substr(str_replace("[color=blue]\\\[/color]'", "'", $user), 0, 25); [color=red]$user = str_replace("'", "\\\'", $user);[/color]
2.0.52.0.6代碼: 選擇全部
$orig_word[] = '#(' . str_replace('\*', '\w*?', phpbb_preg_quote($row['word'], '#')) . ')#i';
代碼: 選擇全部
$orig_word[] = '[color=blue]#\b[/color](' . str_replace('\*', '\w*?', phpbb_preg_quote($row['word'], '#')) . ')[color=blue]\b#i[/color]';
- /includes/functions_post.php
Line 9,版本號變更\rLine 77代碼: 選擇全部
* $Id: functions_post.php,v [color=blue]1.9.2.34 2003/06/09 15:45:10[/color] psotfx Exp $
2.0.52.0.6代碼: 選擇全部
$tagallowed = (preg_match('#^<\/?' . $match_tag . ' .*?(style[\t ]*?=|on[\w]+[\t ]*?=)#i', $hold_string)) ? false : true;
Line 94代碼: 選擇全部
$tagallowed = (preg_match('#^<\/?' . $match_tag . ' .*?(style[ ]*?=|on[\w]+[ ]*?=)#i', $hold_string)) ? false : true;
2.0.52.0.6代碼: 選擇全部
if (!$end_html || ($end_html != strlen($message) && $tmp_message != ''))
代碼: 選擇全部
if ($end_html != strlen($message) && $tmp_message != '')
- /includes/functions_search.php
Line 9,版本號變更\rLine 60代碼: 選擇全部
* $Id: functions_search.php,v [color=blue]1.8.2.16 2003/06/30 17:18:37[/color] acydburn Exp $
2.0.52.0.6代碼: 選擇全部
// 'words' that consist of <3 or >20 characters are removed. [color=blue]$entry = explode(' ', $entry);[/color] [color=brown]for ($i = 0; $i < sizeof($entry); $i++) { $entry[$i] = trim($entry[$i]); if ((strlen($entry[$i]) < 3) || (strlen($entry[$i]) > 20)) { $entry[$i] = ''; } } $entry = implode(' ', $entry);[/color] }
Line 110代碼: 選擇全部
// 'words' that consist of <3 or >20 characters are removed. $entry = preg_replace('/[ ]([\S]{1,2}|[\S]{21,})[ ]/',' ', $entry); }
2.0.52.0.6代碼: 選擇全部
$split_entries = array(); $split = explode(' ', $entry); for ($i = 0; $i < count($split); $i++) { if (trim($split[$i]) != '') { $split_entries[] = trim($split[$i]); } } return $split_entries;
在下面不遠處尋找\r代碼: 選擇全部
// Trim 1+ spaces to one space and split this trimmed string into words. return explode(' ', trim(preg_replace('#\s+#', ' ', $entry)));
在下面加上代碼: 選擇全部
function add_search_words($mode, $post_id, $post_text, $post_title = '') { global $db, $phpbb_root_path, $board_config, $lang; $stopword_array = @file($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . "/search_stopwords.txt"); $synonym_array = @file($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . "/search_synonyms.txt"); $search_raw_words = array(); $search_raw_words['text'] = split_words(clean_words('post', $post_text, $stopword_array, $synonym_array)); $search_raw_words['title'] = split_words(clean_words('post', $post_title, $stopword_array, $synonym_array));
Line 259代碼: 選擇全部
@set_time_limit(0);
2.0.52.0.6代碼: 選擇全部
$sql = "INSERT INTO " . SEARCH_MATCH_TABLE . " (post_id, word_id, title_match)
代碼: 選擇全部
$sql = "INSERT IGNORE INTO " . SEARCH_MATCH_TABLE . " (post_id, word_id, title_match)
- /includes/smtp.php
Line 9,版本號變更\rLine 93代碼: 選擇全部
* $Id: smtp.php,v [color=blue]1.16.2.9 2003/07/18 16:34:01[/color] acydburn Exp $
2.0.52.0.6代碼: 選擇全部
$cc = explode(',', $cc); $bcc = explode(',', $bcc);
Line 107代碼: 選擇全部
$cc = explode(', ', $cc); $bcc = explode(', ', $bcc);
尋找並刪除這一行Line 146代碼: 選擇全部
$mail_to_array = explode(',', $mail_to);
2.0.52.0.6代碼: 選擇全部
// Specify each user to send to and build to header. @reset($mail_to_array); while(list(, $mail_to_address) = each($mail_to_array))
在下面一行尋找\r代碼: 選擇全部
// Specify each user to send to and build to header. $to_header = ''; // Add an additional bit of error checking to the To field. $mail_to = (trim($mail_to) == '') ? 'Undisclosed-recipients:;' : trim($mail_to); if (preg_match('#[^ ]+\@[^ ]+#', $mail_to))
2.0.52.0.6代碼: 選擇全部
{ // Add an additional bit of error checking to the To field. $mail_to_address = trim($mail_to_address); if (preg_match('#[^ ]+\@[^ ]+#', $mail_to_address)) { fputs($socket, "RCPT TO: $mail_to_address "); server_parse($socket, "250", __LINE__); } $to_header .= (($to_header !='') ? ', ' : '') . "$mail_to_address"; }
Line 168代碼: 選擇全部
{ fputs($socket, "RCPT TO: <$mail_to> "); server_parse($socket, "250", __LINE__); }
2.0.52.0.6代碼: 選擇全部
fputs($socket, "RCPT TO: $bcc_address ");
Line 180代碼: 選擇全部
fputs($socket, "RCPT TO: <$bcc_address> ");
2.0.52.0.6代碼: 選擇全部
fputs($socket, "RCPT TO: $cc_address ");
Line 195代碼: 選擇全部
fputs($socket, "RCPT TO: <$cc_address> ");
2.0.52.0.6代碼: 選擇全部
fputs($socket, "To: $to_header ");
代碼: 選擇全部
fputs($socket, "To: $mail_to ");
- /includes/usercp_register.php
Line 9,版本號變更\rLine 167代碼: 選擇全部
* $Id: usercp_register.php,v [color=blue]1.20.2.54 2003/07/18 16:34:01 acydburn[/color] Exp $
尋找\r在下面加上代碼: 選擇全部
$user_timezone = ( isset($HTTP_POST_VARS['timezone']) ) ? doubleval($HTTP_POST_VARS['timezone']) : $board_config['board_timezone'];
Line 615代碼: 選擇全部
$sql = "SELECT config_value FROM " . CONFIG_TABLE . " WHERE config_name = 'default_dateformat'"; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not select default dateformat', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $board_config['default_dateformat'] = $row['config_value'];
2.0.52.0.6代碼: 選擇全部
if ( $board_config['require_activation'] == USER_ACTIVATION_ADMIN ) { $sql = "SELECT user_email
在下面不遠處尋找\r代碼: 選擇全部
if ( $board_config['require_activation'] == USER_ACTIVATION_ADMIN ) { [color=blue]$sql = "SELECT user_email, user_lang[/color]
改為\r代碼: 選擇全部
while ($row = $db->sql_fetchrow($result)) { $emailer->bcc(trim($row['user_email'])); } $emailer->use_template("admin_activate", $board_config['default_lang']); $emailer->email_address($lang['New_account_subject'] . ':;'); $emailer->set_subject($lang['New_account_subject']); $emailer->assign_vars(array( 'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $username), 0, 25)), 'EMAIL_SIG' => str_replace('<br />', " ", "-- " . $board_config['board_email_sig']), 'U_ACTIVATE' => $server_url . '?mode=activate&' . POST_USERS_URL . '=' . $user_id . '&act_key=' . $user_actkey) ); $emailer->send(); $emailer->reset(); }
代碼: 選擇全部
while ($row = $db->sql_fetchrow($result)) { $emailer->from($board_config['board_email']); $emailer->replyto($board_config['board_email']); $emailer->email_address(trim($row['user_email'])); $emailer->use_template("admin_activate", $row['user_lang']); $emailer->set_subject($lang['New_account_subject']); $emailer->assign_vars(array( 'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $username), 0, 25)), 'EMAIL_SIG' => str_replace('<br />', " ", "-- " . $board_config['board_email_sig']), 'U_ACTIVATE' => $server_url . '?mode=activate&' . POST_USERS_URL . '=' . $user_id . '&act_key=' . $user_actkey) ); $emailer->send(); $emailer->reset(); } $db->sql_freeresult($result); }