- 原文章網址:
http://www.phpbb.com/phpBB/viewtopic.ph ... 60#1004960
- 正體中文語系:
中文語系檔使用 2.0.6 版既可\r
- 手動升級:
下載升級檔:
http://www.phpbb.com/downloads.php
點選 phpBB 2.0.7 [ Changed Files Only ] 項目\r
上傳覆蓋
contrib, docs, install 三個資料夾\r
然後執行update_to_207.php
例:
http://網址/phpBB2/install/update_to_207.php
以下修改只針對 phpBB 2.0.6 升級到 2.0.7,其它版本請勿執行以下升級作業\r
如果你發現有時會找不到指定的區塊,可能已經修正好了,才會找不到,你可以試著用已替換的區塊來尋找比對
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼: 選擇全部
groupcp.php
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
* $Id: groupcp.php,v 1.58.2.18 2003/06/10 17:18:13 acydburn Exp $
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
* $Id: groupcp.php,v 1.58.2.19 2003/12/30 14:17:49 psotfx Exp $
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$mode = ( isset($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode'];
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#
代碼: 選擇全部
$mode = htmlspecialchars($mode);
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$sql_in .= ( ( $sql_in != '' ) ? ', ' : '' ) . $members[$i];
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
$sql_in .= ( ( $sql_in != '' ) ? ', ' : '' ) . intval($members[$i]);
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼: 選擇全部
includes/auth.php
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
* $Id: auth.php,v 1.37.2.3 2003/02/25 16:02:59 acydburn Exp $
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
* $Id: auth.php,v 1.37.2.5 2004/03/01 16:49:03 psotfx Exp $
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
}
while( $row = $db->sql_fetchrow($result) );
}
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#
代碼: 選擇全部
$db->sql_freeresult($result);
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼: 選擇全部
includes/bbcode.php
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
* $Id: bbcode.php,v 1.36.2.27 2003/06/09 20:01:18 psotfx Exp $
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
* $Id: bbcode.php,v 1.36.2.28 2003/09/10 17:50:14 psotfx Exp $
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$bbcode_tpl['url4'] = str_replace('{DESCRIPTION}', '\\\5', $bbcode_tpl['url4']);
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
$bbcode_tpl['url4'] = str_replace('{DESCRIPTION}', '\\\3', $bbcode_tpl['url4']);
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$replacements[] = $bbcode_tpl['img'];
// matches a [url]xxxx://www.phpbb.com[/url] code..
$patterns[] = "#\[url\]([\w]+?://.*?[^ \"
\t<]*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url1'];
// [url]www.phpbb.com[/url] code.. (no xxxx:// prefix).
$patterns[] = "#\[url\]((www|ftp)\.([\w\-]+\.)*?[\w\-]+\.[a-z]{2,4}(:?[0-9]*?/[^ \"
\t<]*)?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url2'];
// [url=xxxx://www.phpbb.com]phpBB[/url] code..
$patterns[] = "#\[url=([\w]+?://.*?[^ \"
\t<]*?)\](.*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url3'];
// [url=www.phpbb.com]phpBB[/url] code.. (no xxxx:// prefix).
$patterns[] = "#\[url=((www|ftp)\.([\w\-]+\.)*?[\w\-]+\.[a-z]{2,4}(:?[0-9]*?/[^ \"
\t<]*)?)\](.*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url4'];
// [email]user@domain.tld[/email] code..
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
$replacements[] = $bbcode_tpl['img'];
// matches a [url]xxxx://www.phpbb.com[/url] code..
$patterns[] = "#\[url\]([\w]+?://[^ \"
\t<]*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url1'];
// [url]www.phpbb.com[/url] code.. (no xxxx:// prefix).
$patterns[] = "#\[url\]((www|ftp)\.[^ \"
\t<]*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url2'];
// [url=xxxx://www.phpbb.com]phpBB[/url] code..
$patterns[] = "#\[url=([\w]+?://[^ \"
\t<]*?)\](.*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url3'];
// [url=www.phpbb.com]phpBB[/url] code.. (no xxxx:// prefix).
$patterns[] = "#\[url=((www|ftp)\.[^ \"
\t<]*?)\](.*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url4'];
// [email]user@domain.tld[/email] code..
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
// matches an "xxxx://yyyy" URL at the start of a line, or after a space.
// xxxx can only be alpha characters.
// yyyy is anything up to the first space, newline, comma, double quote or <
$ret = preg_replace("#(^|[
])([\w]+?://.*?[^ \"
\t<]*)#is", "\\\1<a href=\"\\\2\" target=\"_blank\">\\\2</a>", $ret);
// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
// Must contain at least 2 dots. xxxx contains either alphanum, or "-"
// zzzz is optional.. will contain everything up to the first space, newline,
// comma, double quote or <.
$ret = preg_replace("#(^|[
])((www|ftp)\.[\w\-]+\.[\w\-.\~]+(?:/[^ \"\t
<]*)?)#is", "\\\1<a href=\"http://\\\2\" target=\"_blank\">\\\2</a>", $ret);
// matches an email@domain type address at the start of a line, or after a space.
// Note: Only the followed chars are valid; alphanums, "-", "_" and or ".".
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
// matches an "xxxx://yyyy" URL at the start of a line, or after a space.
// xxxx can only be alpha characters.
// yyyy is anything up to the first space, newline, comma, double quote or <
$ret = preg_replace("#(^|[
])([\w]+?://[^ \"
\t<]*)#is", "\\\1<a href=\"\\\2\" target=\"_blank\">\\\2</a>", $ret);
// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
// Must contain at least 2 dots. xxxx contains either alphanum, or "-"
// zzzz is optional.. will contain everything up to the first space, newline,
// comma, double quote or <.
$ret = preg_replace("#(^|[
])((www|ftp)\.[^ \"\t
<]*)#is", "\\\1<a href=\"http://\\\2\" target=\"_blank\">\\\2</a>", $ret);
// matches an email@domain type address at the start of a line, or after a space.
// Note: Only the followed chars are valid; alphanums, "-", "_" and or ".".
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼: 選擇全部
includes/functions_post.php
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
* $Id: functions_post.php,v 1.9.2.35 2003/06/09 19:35:56 psotfx Exp $
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
* $Id: functions_post.php,v 1.9.2.34 2003/06/09 15:45:10 psotfx Exp $
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$match_tag = trim($allowed_html_tags[$i]);
if (preg_match('#^<\/?' . $match_tag . '[> ]#i', $hold_string))
{
$tagallowed = (preg_match('#^<\/?' . $match_tag . ' .*?(style[\t ]*?=|on[\w]+[\t ]*?=)#i', $hold_string)) ? false : true;
}
}
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
$match_tag = trim($allowed_html_tags[$i]);
if (preg_match('#^<\/?' . $match_tag . '[> ]#i', $hold_string))
{
$tagallowed = (preg_match('#^<\/?' . $match_tag . ' .*?(style[ ]*?=|on[\w]+[ ]*?=)#i', $hold_string)) ? false : true;
}
}
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
}
}
if (!$end_html || ($end_html != strlen($message) && $tmp_message != ''))
{
$tmp_message .= preg_replace($html_entities_match, $html_entities_replace, substr($message, $end_html + 1));
}
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
}
}
if ($end_html != strlen($message) && $tmp_message != '')
{
$tmp_message .= preg_replace($html_entities_match, $html_entities_replace, substr($message, $end_html + 1));
}
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼: 選擇全部
includes/functions_search.php
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
* $Id: functions_search.php,v 1.8.2.16 2003/06/30 17:18:37 acydburn Exp $
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
* $Id: functions_search.php,v 1.8.2.17 2003/08/23 01:16:13 psotfx Exp $
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$sql = "INSERT IGNORE INTO " . SEARCH_MATCH_TABLE . " (post_id, word_id, title_match)
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
$sql = "INSERT INTO " . SEARCH_MATCH_TABLE . " (post_id, word_id, title_match)
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼: 選擇全部
includes/page_header.php
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
* $Id: page_header.php,v 1.106.2.20 2003/06/10 20:48:19 acydburn Exp $
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
* $Id: page_header.php,v 1.106.2.22 2004/03/01 16:46:37 psotfx Exp $
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼: 選擇全部
includes/topic_review.php
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
* $Id: topic_review.php,v 1.5.2.1 2002/05/03 15:58:35 the_systech Exp $
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
* $Id: topic_review.php,v 1.5.2.2 2004/03/01 15:56:51 psotfx Exp $
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
if ( !($forum_row = $db->sql_fetchrow($result)) )
{
message_die(GENERAL_MESSAGE, 'Topic_post_not_exist');
}
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#
代碼: 選擇全部
$db->sql_freeresult($result);
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
{
message_die(GENERAL_MESSAGE, 'Topic_post_not_exist', '', __LINE__, __FILE__, $sql);
}
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#
代碼: 選擇全部
$db->sql_freeresult($result);
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼: 選擇全部
includes/usercp_register.php
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
* $Id: usercp_register.php,v 1.20.2.54 2003/07/18 16:34:01 acydburn Exp $
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
* $Id: usercp_register.php,v 1.20.2.56 2004/03/13 15:08:22 acydburn Exp $
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$avatar_category = ( !empty($HTTP_POST_VARS['avatarcategory']) ) ? $HTTP_POST_VARS['avatarcategory'] : '';
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
$avatar_category = ( !empty($HTTP_POST_VARS['avatarcategory']) ) ? htmlspecialchars($HTTP_POST_VARS['avatarcategory']) : '';
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼: 選擇全部
index.php
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
* $Id: index.php,v 1.99.2.1 2002/12/19 17:17:40 psotfx Exp $
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
* $Id: index.php,v 1.99.2.2 2004/03/01 15:56:52 psotfx Exp $
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
while( $category_rows[] = $db->sql_fetchrow($result) );
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#
代碼: 選擇全部
$db->sql_freeresult($result);
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
{
$forum_data[] = $row;
}
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#
代碼: 選擇全部
$db->sql_freeresult($result);
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
{
$new_topic_data[$topic_data['forum_id']][$topic_data['topic_id']] = $topic_data['post_time'];
}
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#
代碼: 選擇全部
$db->sql_freeresult($result);
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$forum_moderators[$row['forum_id']][] = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '">' . $row['username'] . '</a>';
}
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#
代碼: 選擇全部
$db->sql_freeresult($result);
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$forum_moderators[$row['forum_id']][] = '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=" . $row['group_id']) . '">' . $row['group_name'] . '</a>';
}
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#
代碼: 選擇全部
$db->sql_freeresult($result);
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼: 選擇全部
login.php
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
* $Id: login.php,v 1.47.2.13 2003/06/20 07:40:27 acydburn Exp $
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
* $Id: login.php,v 1.47.2.14 2004/03/01 16:53:21 psotfx Exp $
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
if( $session_id )
{
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : "index.$phpEx";
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
if( $session_id )
{
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : "index.$phpEx";
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : '';
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : '';
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : "";
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : "";
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$url = (!empty($HTTP_POST_VARS['redirect'])) ? $HTTP_POST_VARS['redirect'] : $HTTP_GET_VARS['redirect'];
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
$url = (!empty($HTTP_POST_VARS['redirect'])) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : htmlspecialchars($HTTP_GET_VARS['redirect']);
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : "index.$phpEx";
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : "index.$phpEx";
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼: 選擇全部
memberlist.php
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
* $Id: memberlist.php,v 1.36.2.8 2003/06/09 13:06:19 psotfx Exp $
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
* $Id: memberlist.php,v 1.36.2.9 2004/03/01 15:56:52 psotfx Exp $
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$i++;
}
while ( $row = $db->sql_fetchrow($result) );
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#
代碼: 選擇全部
$db->sql_freeresult($result);
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$pagination = generate_pagination("memberlist.$phpEx?mode=$mode&order=$sort_order", $total_members, $board_config['topics_per_page'], $start). ' ';
}
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#
代碼: 選擇全部
$db->sql_freeresult($result);
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼: 選擇全部
modcp.php
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
* $Id: modcp.php,v 1.71.2.21 2003/07/26 11:41:35 acydburn Exp $
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
* $Id: modcp.php,v 1.71.2.23 2004/03/13 15:08:22 acydburn Exp $
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
if ( isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode']) )
{
$mode = ( isset($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode'];
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#
代碼: 選擇全部
$mode = htmlspecialchars($mode);
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼: 選擇全部
posting.php
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
* $Id: posting.php,v 1.159.2.18 2003/06/07 17:52:31 acydburn Exp $
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
* $Id: posting.php,v 1.159.2.21 2004/03/13 15:08:22 acydburn Exp $
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$$var = ( !empty($HTTP_POST_VARS[$param]) ) ? $HTTP_POST_VARS[$param] : $HTTP_GET_VARS[$param];
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
$$var = ( !empty($HTTP_POST_VARS[$param]) ) ? htmlspecialchars($HTTP_POST_VARS[$param]) : htmlspecialchars($HTTP_GET_VARS[$param]);
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
if ( $result = $db->sql_query($sql) )
{
$post_info = $db->sql_fetchrow($result);
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#
代碼: 選擇全部
$db->sql_freeresult($result);
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
}
while ( $row = $db->sql_fetchrow($result) );
}
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#
代碼: 選擇全部
$db->sql_freeresult($result);
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
}
$notify_user = ( $db->sql_fetchrow($result) ) ? TRUE : $userdata['user_notify'];
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#
代碼: 選擇全部
$db->sql_freeresult($result);
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
FROM " . VOTE_USERS_TABLE . "
WHERE vote_id = $vote_id
AND vote_user_id = " . $userdata['user_id'];
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain user vote data for this topic', '', __LINE__, __FILE__, $sql);
}
if ( !($row = $db->sql_fetchrow($result)) )
{
$sql = "UPDATE " . VOTE_RESULTS_TABLE . "
SET vote_result = vote_result + 1
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
FROM " . VOTE_USERS_TABLE . "
WHERE vote_id = $vote_id
AND vote_user_id = " . $userdata['user_id'];
if ( !($result2 = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain user vote data for this topic', '', __LINE__, __FILE__, $sql);
}
if ( !($row = $db->sql_fetchrow($result2)) )
{
$sql = "UPDATE " . VOTE_RESULTS_TABLE . "
SET vote_result = vote_result + 1
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
{
$message = $lang['Already_voted'];
}
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#
代碼: 選擇全部
$db->sql_freeresult($result2);
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
{
$message = $lang['No_vote_option'];
}
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#
代碼: 選擇全部
$db->sql_freeresult($result);
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼: 選擇全部
privmsg.php
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
* $Id: privmsg.php,v 1.96.2.32 2003/06/12 12:49:01 psotfx Exp $
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
* $Id: privmsg.php,v 1.96.2.33 2003/12/30 14:17:49 psotfx Exp $
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$folder = ( isset($HTTP_POST_VARS['folder']) ) ? $HTTP_POST_VARS['folder'] : $HTTP_GET_VARS['folder'];
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#
代碼: 選擇全部
$folder = htmlspecialchars($folder);
#-----[ DELETE 刪除 ]----------------------------------------------
#
代碼: 選擇全部
// session id check
if (!empty($HTTP_POST_VARS['sid']) || !empty($HTTP_GET_VARS['sid']))
{
$sid = (!empty($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] : $HTTP_GET_VARS['sid'];
}
else
{
$sid = '';
}
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$mode = ( !empty($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode'];
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#
代碼: 選擇全部
$mode = htmlspecialchars($mode);
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼: 選擇全部
search.php
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
* $Id: search.php,v 1.72.2.10 2003/07/11 17:04:31 psotfx Exp $
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
* $Id: search.php,v 1.72.2.11 2003/11/22 22:36:13 ludovic_arnaud Exp $
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
if ( intval($search_id) )
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
$search_id = intval($search_id);
if ( $search_id )
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼: 選擇全部
templates/subSilver/index_body.tpl
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
<table cellspacing="3" border="0" align="center" cellpadding="0">
<tr>
<td width="20" align="center"><img src="templates/subSilver/images/folder_new.gif" alt="{L_NEW_POSTS}"/></td>
<td><span class="gensmall">{L_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center"><img src="templates/subSilver/images/folder.gif" alt="{L_NO_NEW_POSTS}" /></td>
<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center"><img src="templates/subSilver/images/folder_lock.gif" alt="{L_FORUM_LOCKED}" /></td>
<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
<table cellspacing="3" border="0" align="center" cellpadding="0">
<tr>
<td width="20" align="center"><img src="templates/subSilver/images/folder_new_big.gif" alt="{L_NEW_POSTS}"/></td>
<td><span class="gensmall">{L_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center"><img src="templates/subSilver/images/folder_big.gif" alt="{L_NO_NEW_POSTS}" /></td>
<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center"><img src="templates/subSilver/images/folder_locked_big.gif" alt="{L_FORUM_LOCKED}" /></td>
<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼: 選擇全部
viewforum.php
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
* $Id: viewforum.php,v 1.139.2.10 2003/03/04 21:02:44 acydburn Exp $
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
* $Id: viewforum.php,v 1.139.2.12 2004/03/13 15:08:23 acydburn Exp $
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$topic_days = ( !empty($HTTP_POST_VARS['topicdays']) ) ? $HTTP_POST_VARS['topicdays'] : $HTTP_GET_VARS['topicdays'];
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
$topic_days = ( !empty($HTTP_POST_VARS['topicdays']) ) ? intval($HTTP_POST_VARS['topicdays']) : intval($HTTP_GET_VARS['topicdays']);
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼: 選擇全部
viewtopic.php
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
* $Id: viewtopic.php,v 1.186.2.32 2003/06/20 16:34:58 psotfx Exp $
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
* $Id: viewtopic.php,v 1.186.2.35 2004/03/13 15:08:23 acydburn Exp $
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$post_days = ( !empty($HTTP_POST_VARS['postdays']) ) ? $HTTP_POST_VARS['postdays'] : $HTTP_GET_VARS['postdays'];
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
$post_days = ( !empty($HTTP_POST_VARS['postdays']) ) ? intval($HTTP_POST_VARS['postdays']) : intval($HTTP_GET_VARS['postdays']);
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$post_order = (!empty($HTTP_POST_VARS['postorder'])) ? $HTTP_POST_VARS['postorder'] : $HTTP_GET_VARS['postorder'];
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
$post_order = (!empty($HTTP_POST_VARS['postorder'])) ? htmlspecialchars($HTTP_POST_VARS['postorder']) : htmlspecialchars($HTTP_GET_VARS['postorder']);
#-----[ SAVE/CLOSE ALL FILES 儲存/關閉所有檔案 ]-------------------
#
# EoM 外掛修正結束