[手動升級] phpBB 2.0.6 > 2.0.7

與 phpBB 2.0.x 相關主題。

版主: 版主管理群

回覆文章
天霜
竹貓忠實會員
竹貓忠實會員
文章: 882
註冊時間: 2003-04-15 19:40
來自: 星之鄉學園
聯繫:

[手動升級] phpBB 2.0.6 > 2.0.7

文章 天霜 »

#
#-----[ 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 外掛修正結束
頭像
shihchieh
竹貓忠實會員
竹貓忠實會員
文章: 509
註冊時間: 2002-10-07 13:02

文章 shihchieh »

喔喔~原來你這些天沒消沒息就是在整理這咕~不錯不錯~精神可佳....
---
Do you fear death ?
天霜
竹貓忠實會員
竹貓忠實會員
文章: 882
註冊時間: 2003-04-15 19:40
來自: 星之鄉學園
聯繫:

文章 天霜 »

yuan 寫:喔喔~原來你這些天沒消沒息就是在整理這咕~不錯不錯~精神可佳....
不不..
從我得知消息(2004/03/14-星期日 05:00 AM)後
才開始進行 手動升級 教學\r
意思就是說...
我只花了 2~3 小時就完成了 XD||
不回答來自 私人訊息, 電子郵件, 及時通 的相關 phpBB 問題
除非是個人疏失所造成的問題

這世界還有拼命守護的價值嗎...
Mac
百戰天龍馬蓋先
百戰天龍馬蓋先
文章: 2590
註冊時間: 2003-02-02 02:28
來自: MacphpBBMOD
聯繫:

文章 Mac »

其實這次的升級手續不多,大概跟裝難度簡單的 MOD 一樣\r
我的 SF 討論版用手動的更新,哇哩咧用 Patch,兩邊都弄好了 :P

以下是比對 2.0.6c2.0.7 的結果
groupcp.php (不需修改)
includes/auth.php (修改)
includes/bbcode.php (修改)
includes/functions_post.php (不需修改)
includes/functions_search.php (不需修改)
includes/page_header.php (修改)
includes/topic_review.php (修改)
includes/usercp_register.php (修改)
index.php (修改)
login.php (修改)
memberlist.php (修改)
modcp.php (修改)
posting.php (修改)
privmsg.php (不需修改)
search.php (不需修改)
viewforum.php (修改)
viewtopic.php (修改)
templates/subSilver/index_body.tplp (修改)

~Mac
+ 關於 phpBB 使用問題請在版面發問,私人訊息提供其他不相干或是隱私的事情聯絡之用。

phpBB 官網 | 竹貓星球 | MacphpBBMOD | 我的服務
竹貓忠實會員
竹貓忠實會員
文章: 1058
註冊時間: 2003-05-15 00:30
來自: Game.Hack-遊戲駭客
聯繫:

文章 »

執行update_to_207.php是只有更新資料庫嗎?還是?
我怕它會找不到指定的地方...?不太了解...
有事問問題,沒事答問題。
廣告不是這樣打滴!遊戲駭客
Mac
百戰天龍馬蓋先
百戰天龍馬蓋先
文章: 2590
註冊時間: 2003-02-02 02:28
來自: MacphpBBMOD
聯繫:

文章 Mac »

如果你是指由 2.0.6 更新至 2.0.7 的那一個 update_to_207.php
那麼,只有更新資料庫的版本那一欄吧\r

~Mac
+ 關於 phpBB 使用問題請在版面發問,私人訊息提供其他不相干或是隱私的事情聯絡之用。

phpBB 官網 | 竹貓星球 | MacphpBBMOD | 我的服務
william91
竹貓忠實會員
竹貓忠實會員
文章: 642
註冊時間: 2003-04-16 20:53
來自: 牛牛農場
聯繫:

文章 william91 »

Mac 寫:其實這次的升級手續不多,大概跟裝難度簡單的 MOD 一樣\r
我的 SF 討論版用手動的更新,哇哩咧用 Patch,兩邊都弄好了 :P
我的論壇是2.0.6d...而且我又懶.....想用Patch...請問??
間中上來走走吧~
hihihihi
星球公民
星球公民
文章: 46
註冊時間: 2003-12-27 12:13

文章 hihihihi »

*****SPAM*****...我的論壇是2.0.6,裝了很多mod,居然能成功update,太好了
william91
竹貓忠實會員
竹貓忠實會員
文章: 642
註冊時間: 2003-04-16 20:53
來自: 牛牛農場
聯繫:

Re: [手動升級] phpBB 2.0.6 > 2.0.7

文章 william91 »

#
#-----[ OPEN 打開 ]------------------------------------------------
#

代碼: 選擇全部

includes/functions_post.php
#
#-----[ FIND 尋找 ]------------------------------------------------
#

代碼: 選擇全部

 *   $Id: functions_post.php,v 1.9.2.34 2003/06/09 15:45:10 psotfx Exp $
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
#

代碼: 選擇全部

 *   $Id: functions_post.php,v 1.9.2.35 2003/06/09 19:35:56 psotfx Exp $
修正一下....
======================
另外想問...為什麼page_header.php 那部分只需改檔頭資訊....而不用改內容的呢@@?
間中上來走走吧~
天霜
竹貓忠實會員
竹貓忠實會員
文章: 882
註冊時間: 2003-04-15 19:40
來自: 星之鄉學園
聯繫:

Re: [手動升級] phpBB 2.0.6 > 2.0.7

文章 天霜 »

william91 寫: 另外想問...為什麼page_header.php 那部分只需改檔頭資訊....而不用改內容的呢@@?
phpBB 2.0.6 > 2.0.7 的手動升級資料來源是\r
phpBB 2.0.7 [ Changed Files Only ] 裡的 phpBB-2.0.6_to_2.0.7.patch 檔案

所以functions_post.php, page_header.php 的升級說明並無誤

至於為什麼 functions_post.php 的檔頭版本資訊會往回退 
我就不知了 @@ 我一切是以 phpBB-2.0.6_to_2.0.7.patch 檔案為準
不回答來自 私人訊息, 電子郵件, 及時通 的相關 phpBB 問題
除非是個人疏失所造成的問題

這世界還有拼命守護的價值嗎...
依夢兒
竹貓忠實會員
竹貓忠實會員
文章: 2013
註冊時間: 2002-11-20 00:07

文章 依夢兒 »

請問一下,我已經完成以上步驟,手動修改這十多個檔案了。
資料庫的結構有需要修改嗎?
還是只要將 phpbb_config 中的 version 由 .0.6 改為 .0.7 就行了?
有任何關於 phpBB 或是架站的問題,請在論壇上公開發表出來,大家一起討論。
請不要丟私人訊息問我,因為私訊是用來聊私事的。
這樣作對於解決您的問題一點幫助也沒有,也很沒有效率,小弟我一概謝絕。



搜尋是一種美德,在發問之前,請多加利用頂端的文章搜尋功能,搜尋可能的關鍵字。
確定您想問的問題找不到答案後,再發問。
Mac
百戰天龍馬蓋先
百戰天龍馬蓋先
文章: 2590
註冊時間: 2003-02-02 02:28
來自: MacphpBBMOD
聯繫:

文章 Mac »

請執行 phpBB-2.0.7-patch(或 phpBB-2.0.7-files) 中 install 裡面的 update_to_207.php

~Mac
+ 關於 phpBB 使用問題請在版面發問,私人訊息提供其他不相干或是隱私的事情聯絡之用。

phpBB 官網 | 竹貓星球 | MacphpBBMOD | 我的服務
Mac
百戰天龍馬蓋先
百戰天龍馬蓋先
文章: 2590
註冊時間: 2003-02-02 02:28
來自: MacphpBBMOD
聯繫:

文章 Mac »

這是由 phpBB Development Team 的 Acyd Burn 釋出的官方修正指示\r
這個 ZIP 包裡共有三種版本:HTML,TXT 和以下這一個(BBCode 版)
原文:[Tools] phpBB 2.0.6 to phpBB 2.0.7 Code Changes


phpBB 2.0.6 to phpBB 2.0.7 Code Changes

These are the Changes from phpBB 2.0.6 to phpBB 2.0.7 summed up into a little Mod. This might be very helpful if you want to update your Board and have installed a bunch of Mods. Then it's normally easier to apply the Code Changes than to install all Mods again.

When you find a 'AFTER, ADD'-Statement, the Code have to be added after the last line quoted in the 'FIND'-Statement.
When you find a 'BEFORE, ADD'-Statement, the Code have to be added before the first line quoted in the 'FIND'-Statement.
When you find a 'REPLACE WITH'-Statement, the Code quoted in the 'FIND'-Statement have to be replaced completely with the quoted Code in the 'REPLACE WITH'-Statement.
When you find a 'DELETE'-Statement, the Code have to be deleted.

After you have finished this tutorial, you have to upload the update_to_207.php file, execute it and then delete it from your webspace.

Ok, lets start:


  • groupcp.php
  1. FIND - Line 140

    代碼: 選擇全部

    
    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);
    
  2. FIND - Line 594

    代碼: 選擇全部

    
    						$sql_in .= ( ( $sql_in != '' ) ? ', ' : '' ) . $members[$i];
    
    REPLACE WITH

    代碼: 選擇全部

    
    						$sql_in .= ( ( $sql_in != '' ) ? ', ' : '' ) . intval($members[$i]);
    
  • includes/auth.php
  1. FIND - Line 174

    代碼: 選擇全部

    
    			}
    			while( $row = $db->sql_fetchrow($result) );
    		}
    
    AFTER, ADD

    代碼: 選擇全部

    
    		$db->sql_freeresult($result);
    
  • includes/bbcode.php
  1. FIND - Line 108

    代碼: 選擇全部

    
    	$bbcode_tpl['url4'] = str_replace('{DESCRIPTION}', '\\\5', $bbcode_tpl['url4']);
    
    REPLACE WITH

    代碼: 選擇全部

    
    	$bbcode_tpl['url4'] = str_replace('{DESCRIPTION}', '\\\3', $bbcode_tpl['url4']);
    
  2. FIND - Line 201

    代碼: 選擇全部

    
    	$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";
    
    REPLACE WITH

    代碼: 選擇全部

    
    	$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";
    
  3. FIND - Line 624

    代碼: 選擇全部

    
    	$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);
    
    REPLACE WITH

    代碼: 選擇全部

    
    	$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);
    
  • includes/functions_search.php
  1. FIND - Line 243

    代碼: 選擇全部

    
    			$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) 
    
  • includes/topic_review.php
  1. FIND - Line 54

    代碼: 選擇全部

    
    		{
    			message_die(GENERAL_MESSAGE, 'Topic_post_not_exist');
    		}
    
    AFTER, ADD

    代碼: 選擇全部

    
    		$db->sql_freeresult($result);
    
  2. FIND - Line 211

    代碼: 選擇全部

    
    	{
    		message_die(GENERAL_MESSAGE, 'Topic_post_not_exist', '', __LINE__, __FILE__, $sql);
    	}
    
    AFTER, ADD

    代碼: 選擇全部

    
    	$db->sql_freeresult($result);
    
  • includes/usercp_register.php
  1. FIND - Line 748

    代碼: 選擇全部

    
    	$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']) : '';
    
  • index.php
  1. FIND - Line 122

    代碼: 選擇全部

    
    }
    
    while( $category_rows[] = $db->sql_fetchrow($result) );
    
    AFTER, ADD

    代碼: 選擇全部

    
    $db->sql_freeresult($result);
    
  2. FIND - Line 174

    代碼: 選擇全部

    
    	{
    		$forum_data[] = $row;
    	}
    
    AFTER, ADD

    代碼: 選擇全部

    
    	$db->sql_freeresult($result);
    
  3. FIND - Line 202

    代碼: 選擇全部

    
    		{
    			$new_topic_data[$topic_data['forum_id']][$topic_data['topic_id']] = $topic_data['post_time'];
    		}
    
    AFTER, ADD

    代碼: 選擇全部

    
    		$db->sql_freeresult($result);
    
  4. FIND - Line 228

    代碼: 選擇全部

    
    	{
    		$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);
    
  5. FIND - Line 248

    代碼: 選擇全部

    
    	{
    		$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);
    
  • login.php
  1. FIND - Line 86

    代碼: 選擇全部

    
    						$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";
    
  2. FIND - Line 96

    代碼: 選擇全部

    
    					$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : '';
    
    REPLACE WITH

    代碼: 選擇全部

    
    					$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : '';
    
  3. FIND - Line 111

    代碼: 選擇全部

    
    			$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : "";
    
    REPLACE WITH

    代碼: 選擇全部

    
    			$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : "";
    
  4. FIND - Line 132

    代碼: 選擇全部

    
    			$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']);
    
  5. FIND - Line 142

    代碼: 選擇全部

    
    		$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";
    
  • memberlist.php
  1. FIND - Line 272

    代碼: 選擇全部

    
    		$i++;
    	}
    	while ( $row = $db->sql_fetchrow($result) );
    
    AFTER, ADD

    代碼: 選擇全部

    
    	$db->sql_freeresult($result);
    
  2. FIND - Line 292

    代碼: 選擇全部

    
    
    		$pagination = generate_pagination("memberlist.$phpEx?mode=$mode&order=$sort_order", $total_members, $board_config['topics_per_page'], $start). ' ';
    	}
    
    AFTER, ADD

    代碼: 選擇全部

    
    	$db->sql_freeresult($result);
    
  • modcp.php
  1. FIND - Line 83

    代碼: 選擇全部

    
    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);
    
  • posting.php
  1. FIND - Line 38

    代碼: 選擇全部

    
    		$$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]);
    
  2. FIND - Line 224

    代碼: 選擇全部

    
    if ( $result = $db->sql_query($sql) )
    {
    	$post_info = $db->sql_fetchrow($result);
    
    AFTER, ADD

    代碼: 選擇全部

    
    	$db->sql_freeresult($result);
    
  3. FIND - Line 279

    代碼: 選擇全部

    
    				}
    				while ( $row = $db->sql_fetchrow($result) );
    			}
    
    AFTER, ADD

    代碼: 選擇全部

    
    			$db->sql_freeresult($result);
    
  4. FIND - Line 402

    代碼: 選擇全部

    
    		}
    
    		$notify_user = ( $db->sql_fetchrow($result) ) ? TRUE : $userdata['user_notify'];
    
    AFTER, ADD

    代碼: 選擇全部

    
    		$db->sql_freeresult($result);
    
  5. FIND - Line 477

    代碼: 選擇全部

    
    			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)) )
    
    REPLACE WITH
    \n

    代碼: 選擇全部

    
    			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)) )
    
  6. FIND - Line 506

    代碼: 選擇全部

    
    			{
    				$message = $lang['Already_voted'];
    			}
    
    AFTER, ADD

    代碼: 選擇全部

    
    			$db->sql_freeresult($result2);
    
  7. FIND - Line 508

    代碼: 選擇全部

    
    		else
    		{
    			$message = $lang['No_vote_option'];
    		}
    
    AFTER, ADD

    代碼: 選擇全部

    
    		$db->sql_freeresult($result);
    
  • privmsg.php
  1. FIND - Line 61

    代碼: 選擇全部

    
    if ( isset($HTTP_POST_VARS['folder']) || isset($HTTP_GET_VARS['folder']) )
    {
    	$folder = ( isset($HTTP_POST_VARS['folder']) ) ? $HTTP_POST_VARS['folder'] : $HTTP_GET_VARS['folder'];
    
    AFTER, ADD

    代碼: 選擇全部

    
    	$folder = htmlspecialchars($folder);
    
  2. DELETE - Line 73

    代碼: 選擇全部

    
    // 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 = '';
    }
    
    
  3. FIND - Line 96

    代碼: 選擇全部

    
    if ( !empty($HTTP_POST_VARS['mode']) || !empty($HTTP_GET_VARS['mode']) )
    {
    	$mode = ( !empty($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode'];
    
    AFTER, ADD

    代碼: 選擇全部

    
    	$mode = htmlspecialchars($mode);
    
  • search.php
  1. FIND - Line 685

    代碼: 選擇全部

    
    		if ( intval($search_id) )
    
    REPLACE WITH

    代碼: 選擇全部

    
    		$search_id = intval($search_id);
    		if ( $search_id )
    
  • templates/subSilver/index_body.tpl
  1. FIND - Line 94

    代碼: 選擇全部

    
    	<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>
    
    REPLACE WITH

    代碼: 選擇全部

    
    	<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>
    
  • viewforum.php
  1. FIND - Line 243

    代碼: 選擇全部

    
    	$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']);
    
  • viewtopic.php
  1. FIND - Line 317

    代碼: 選擇全部

    
    	$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']);
    
  2. FIND - Line 360

    代碼: 選擇全部

    
    	$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']);
    
~Mac
+ 關於 phpBB 使用問題請在版面發問,私人訊息提供其他不相干或是隱私的事情聯絡之用。

phpBB 官網 | 竹貓星球 | MacphpBBMOD | 我的服務
流星
星球普通子民
星球普通子民
文章: 18
註冊時間: 2004-04-04 22:33

文章 流星 »

請問我是2.0.6d的..要手動升級...
請問要用那個update php....
我找不到2.0.6 to 2.0.7
只找到2.0.6 to 2.0.8的..這可以用嗎
回覆文章

回到「2.0」