[教學] phpBB 2.0.11 更新至 2.0.12 的步驟

phpBB Installation & Usage Support
phpBB 2 安裝於各類型作業平台之問題討論;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
yuiasaka
星球公民
星球公民
文章: 38
註冊時間: 2002-07-11 16:03
來自: Taiwan
聯繫:

文章 yuiasaka »

yuiasaka 寫:可以請各位大大幫我看一下問題嗎
更新完之後
我的版面資料都看不見文字

http://phpbb-tw.net/phpbb/viewtopic.php?t=33016
不好意思
找到原因了
因為將兩個檔案搞混了 :oops:
templates/subSilver/admin/index_body.tpl
templates/subSilver/index_body.tpl
minotaur
星球公民
星球公民
文章: 170
註冊時間: 2005-01-05 20:52
聯繫:

[問題] 執行update_to_latest.php後這樣的訊息是對的嗎??

文章 minotaur »

Updating to latest stable release



Information
Database type :: mysql4
Previous version :: 2.0.11
Updated version :: 2.0.12

Updating database schema
Progress :: No updates required

Updating data
Progress :: No updates where required

Updating version and optimizing tables
Progress :: . . Done
Result :: No errors

Update completed
Please make sure you have updated your board files too, this file is only updating your database.

You should now visit the General Configuration settings page in the Administration Panel and check the General Configuration of the board. If you updated from versions prior to RC-3 you must update some entries. If you do not do this emails sent from the board will contain incorrect information. Don't forget to delete this file!
執行update_to_latest.php後這樣的訊息是對的嗎??
iamelton
星球公民
星球公民
文章: 56
註冊時間: 2002-06-08 03:13
來自: 香港
聯繫:

Re: [問題] 執行update_to_latest.php後這樣的訊息是對的嗎??

文章 iamelton »

minotaur 寫:
Updating to latest stable release



Information
Database type :: mysql4
Previous version :: 2.0.11
Updated version :: 2.0.12

Updating database schema
Progress :: No updates required

Updating data
Progress :: No updates where required

Updating version and optimizing tables
Progress :: . . Done
Result :: No errors

Update completed
Please make sure you have updated your board files too, this file is only updating your database.

You should now visit the General Configuration settings page in the Administration Panel and check the General Configuration of the board. If you updated from versions prior to RC-3 you must update some entries. If you do not do this emails sent from the board will contain incorrect information. Don't forget to delete this file!
執行update_to_latest.php後這樣的訊息是對的嗎??
圖檔
babycity
星球公民
星球公民
文章: 153
註冊時間: 2004-04-28 11:46

文章 babycity »

神川小羽 寫:我拿一個全新的2.0.8a去比對唯一不同的地方就是有加入了一段\r

代碼: 選擇全部

if ( defined('IN_CASHMOD') )
{
	include($phpbb_root_path . 'includes/functions_cash.'.$phpEx);
}
除此之外其他全部跟2.0.8a完全相同
是喔,謝謝你囉~"~現在不知道怎麼做,又花錢請人裝嗎 :cry:
上次是免費的,結果也沒真的升級ok...
垃圾貓
星球普通子民
星球普通子民
文章: 28
註冊時間: 2003-06-27 17:43
聯繫:

文章 垃圾貓 »

謝謝各位,升級成功....核對了兩次內容,還真有手誤的時候
圖檔
頭像
rawlins
星球普通子民
星球普通子民
文章: 21
註冊時間: 2005-02-23 22:16
來自: HK
聯繫:

[問題] '查看誰在線上' 怎麼出現了亂碼? 如何改?

文章 rawlins »

圖檔[/quote]


亂碼要去哪個文件改阿?
●架設主機作業系統:Windows Xp Pro sp2
●快速架站程式:Appserv、FOXser..等等(請務必註明版本)。(如果安裝在自己電腦上才填寫) (我沒有)
●您的上網方式:香港城市大學(http://www.cityu.edu.hk)
●您安裝的程式:Apache 2.0.45 + php 4.3.10+ MySql 4.0
●您的 phpBB2 版本:phpBB 2.0.11
小西
竹貓忠實會員
竹貓忠實會員
文章: 460
註冊時間: 2004-11-19 22:29
來自: 超可愛聲音

文章 小西 »

那不是亂碼...是你有地方改錯了
admin/index.php或是\r
templates/subSilver/admin/index_body.tpl
重新檢查看看
ACG自唱:分貝網存放區 (192kbps) ;NICO存放區 (320kbps)
頭像
rawlins
星球普通子民
星球普通子民
文章: 21
註冊時間: 2005-02-23 22:16
來自: HK
聯繫:

[反應] done

文章 rawlins »

原來真的改錯了. 但是不知道錯在哪裡, 我把要改動的文件都覆蓋了一遍, 問題就解決了. :-)
●架設主機作業系統:Windows Xp Pro sp2
●快速架站程式:Appserv、FOXser..等等(請務必註明版本)。(如果安裝在自己電腦上才填寫) (我沒有)
●您的上網方式:香港城市大學(http://www.cityu.edu.hk)
●您安裝的程式:Apache 2.0.45 + php 4.3.10+ MySql 4.0
●您的 phpBB2 版本:phpBB 2.0.11
jeff0510
星球普通子民
星球普通子民
文章: 8
註冊時間: 2005-01-25 21:03

文章 jeff0510 »

當我改完d file後出現....... :cry: :cry:

Parse error: parse error, unexpected T_IF in /home/vhosts_111mb/g-gen.111mb.com/common.php on line 79

應該是這段出了問題但唔知點算..... :cry: :cry:

代碼: 選擇全部

else if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on') 
{ 
   // PHP4+ path
$not_unset = array('HTTP_GET_VARS', 'HTTP_POST_VARS', 'HTTP_COOKIE_VARS', 'HTTP_SERVER_VARS', 'HTTP_SESSION_VARS'
頭像
rex
版面管理員
版面管理員
文章: 501
註冊時間: 2001-11-01 15:28
來自: 竹貓星球
聯繫:

文章 rex »

感謝~
已完成升級^^
全面支援 phpBB3.3.x 版本虛擬空間

台灣[不限流量]虛擬主機
*可自由調整php 版本。
*免費 SSL 簽章。
https://kukan.tw/
yenchih
星球普通子民
星球普通子民
文章: 2
註冊時間: 2002-12-02 11:25

文章 yenchih »

io_oi 寫:有安裝過多國語言之後
這個步驟遇到一點困難\r

#
#-----[ 打開 ]---------------------------------------------
#
includes/functions.php
\r
#
#-----[ 搜尋 ]---------------------------------------------
#
$username = htmlspecialchars(rtrim(trim($username), "\"));
$username = substr(str_replace("\\\'", "'", $username), 0, 25);
$username = str_replace("'", "\\\'", $username);

#
#-----[ 覆寫 ]---------------------------------------------
#
$username = substr(htmlspecialchars(str_replace("\'", "'", trim($username))), 0, 25);
$username = phpbb_rtrim($username, "\");
$username = str_replace("'", "\'", $username);

#
#-----[ 實際搜尋 ]---------------------------------------
#
$username = ereg_replace("&","&",htmlspecialchars(trim(trim($username), "\")));
$username = substr(str_replace("\\\'", "'", $username), 0, 25);
$username = str_replace("'", "\\\'", $username);

請問眾高手,該這個步驟該如何開刀??
關於這部份小弟的做法如下, 測試過無誤, 若有錯誤, 請大家指點.
多取代一次 & → & 是因為在後台會找不到簡體帳號.
因為以「许国」這兩個字為例, 在後台的查帳號時, $username 為 许国 取代一次 & → & 之後變成 许国 還是有 & 存在, 故再取代一次.
反正本來就是要把 & 給全去掉, 所以多一次無所謂.

代碼: 選擇全部

$username = ereg_replace("&","&",htmlspecialchars(str_replace("\'", "'", trim($username))));
$username = ereg_replace("&","&",$username);
$username = substr($username, 0, 25);
$username = phpbb_rtrim($username, "\\");
$username = str_replace("'", "\'", $username);
ischen
星球普通子民
星球普通子民
文章: 10
註冊時間: 2002-07-12 17:32

Re: [教學] phpBB 2.0.11 更新至 2.0.12 的步驟

文章 ischen »

Mac 寫:
  • viewtopic.php
  1. 尋找 - 行 498

    代碼: 選擇全部

    
    	unset($words);
    
    	$highlight = urlencode($HTTP_GET_VARS['highlight']);
    
    之後,加上

    代碼: 選擇全部

    
    	$highlight_match = phpbb_rtrim($highlight_match, "\\");
    

各位不好意思請教一下
小弟更新到 2.0.12 時
只要這個地方一加上去 就會出現以下訊息\r
Fatal error: Call to undefined function: phpbb_rtrim() in /home/steve/html/board/viewtopic.php on line 492

第 492 行就是\r

代碼: 選擇全部


	$highlight_match = phpbb_rtrim($highlight_match, "\\");

還需要提供什麼資料嗎?
請各位指點一二,謝謝!

另外 小弟已經執行過 update 的檔案了,也已經完成~
Esen
星球普通子民
星球普通子民
文章: 4
註冊時間: 2003-12-14 23:27

[問題] undefined function: phpbb_rtrim()

文章 Esen »

我和你類似,但我是在登入密碼輸入完按下[登入]之後就會出現:

代碼: 選擇全部

Fatal error: Call to undefined function: phpbb_rtrim() in /var/www/html/esen/classmate/feng/includes/functions.php on line 81
該行就是按照升級步驟所鍵入的:
$username = phpbb_rtrim($username, "\\\");

我也搞不懂為什麼?
求救大人!
------------------------------------------------------------------------------------
●架設主機作業系統:Mandrake 10.0
●您的上網方式:東森CABLE
●您安裝的程式:Apache + php + MySql
●您的 phpBB2 版本:phpBB2.0.11+attach mod 2.3.11-->upgrade to php2.0.12
●您的 domain(網域名稱) :e-saint.net
●您的 phpBB2 連結網址: http://classmate.e-saint.net/feng/ (請務必留下連結)。
iamelton
星球公民
星球公民
文章: 56
註冊時間: 2002-06-08 03:13
來自: 香港
聯繫:

文章 iamelton »

有按指示改動 includes/functions.php 嗎?
要新加的函數就是加在此檔..
圖檔
gogopen
星球公民
星球公民
文章: 49
註冊時間: 2004-08-21 12:32

[問題] 點解?

文章 gogopen »

點解我係common.php中找不到要更改的code...
我的版本是2.0.11

代碼: 選擇全部

<?php
/***************************************************************************
 *                                common.php
 *                            -------------------
 *   begin                : Saturday, Feb 23, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: common.php,v 1.74.2.3 2002/05/13 13:18:17 psotfx Exp $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

if ( !defined('IN_PHPBB') )
{
	die("Hacking attempt");
}

error_reporting  (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
set_magic_quotes_runtime(0); // Disable magic_quotes_runtime

//
// addslashes to vars if magic_quotes_gpc is off
// this is a security precaution to prevent someone
// trying to break out of a SQL statement.
//
if( !get_magic_quotes_gpc() )
{
	if( is_array($HTTP_GET_VARS) )
	{
		while( list($k, $v) = each($HTTP_GET_VARS) )
		{
			if( is_array($HTTP_GET_VARS[$k]) )
			{
				while( list($k2, $v2) = each($HTTP_GET_VARS[$k]) )
				{
					$HTTP_GET_VARS[$k][$k2] = addslashes($v2);
				}
				@reset($HTTP_GET_VARS[$k]);
			}
			else
			{
				$HTTP_GET_VARS[$k] = addslashes($v);
			}
		}
		@reset($HTTP_GET_VARS);
	}

	if( is_array($HTTP_POST_VARS) )
	{
		while( list($k, $v) = each($HTTP_POST_VARS) )
		{
			if( is_array($HTTP_POST_VARS[$k]) )
			{
				while( list($k2, $v2) = each($HTTP_POST_VARS[$k]) )
				{
					$HTTP_POST_VARS[$k][$k2] = addslashes($v2);
				}
				@reset($HTTP_POST_VARS[$k]);
			}
			else
			{
				$HTTP_POST_VARS[$k] = addslashes($v);
			}
		}
		@reset($HTTP_POST_VARS);
	}

	if( is_array($HTTP_COOKIE_VARS) )
	{
		while( list($k, $v) = each($HTTP_COOKIE_VARS) )
		{
			if( is_array($HTTP_COOKIE_VARS[$k]) )
			{
				while( list($k2, $v2) = each($HTTP_COOKIE_VARS[$k]) )
				{
					$HTTP_COOKIE_VARS[$k][$k2] = addslashes($v2);
				}
				@reset($HTTP_COOKIE_VARS[$k]);
			}
			else
			{
				$HTTP_COOKIE_VARS[$k] = addslashes($v);
			}
		}
		@reset($HTTP_COOKIE_VARS);
	}
}

//
// Define some basic configuration arrays this also prevents
// malicious rewriting of language and otherarray values via
// URI params
//
$board_config = array();
$userdata = array();
$theme = array();
$images = array();
$lang = array();
$gen_simple_header = FALSE;

include($phpbb_root_path . 'config.'.$phpEx);

if( !defined("PHPBB_INSTALLED") )
{
	header("Location: install.$phpEx");
	exit;
}

include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/template.'.$phpEx);
include($phpbb_root_path . 'includes/sessions.'.$phpEx);
include($phpbb_root_path . 'includes/auth.'.$phpEx);
include($phpbb_root_path . 'includes/functions.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);

//
// Mozilla navigation bar
// Default items that should be valid on all pages.
// Defined here and not in page_header.php so they can be redefined in the code
//
$nav_links['top'] = array ( 
	'url' => append_sid($phpbb_root_dir."index.".$phpEx),
	'title' => sprintf($lang['Forum_Index'], $board_config['sitename'])
);
$nav_links['search'] = array ( 
	'url' => append_sid($phpbb_root_dir."search.".$phpEx),
	'title' => $lang['Search']
);
$nav_links['help'] = array ( 
	'url' => append_sid($phpbb_root_dir."faq.".$phpEx),
	'title' => $lang['FAQ']
);
$nav_links['author'] = array ( 
	'url' => append_sid($phpbb_root_dir."memberlist.".$phpEx),
	'title' => $lang['Memberlist']
);

//
// Obtain and encode users IP
//
if( getenv('HTTP_X_FORWARDED_FOR') != '' )
{
	$client_ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : $REMOTE_ADDR );

	if ( preg_match("/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/", getenv('HTTP_X_FORWARDED_FOR'), $ip_list) )
	{
		$private_ip = array('/^0\./', '/^127\.0\.0\.1/', '/^192\.168\..*/', '/^172\.16\..*/', '/^10..*/', '/^224..*/', '/^240..*/');
		$client_ip = preg_replace($private_ip, $client_ip, $ip_list[1]);
	}
}
else
{
	$client_ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : $REMOTE_ADDR );
}
$user_ip = encode_ip($client_ip);

//
// Setup forum wide options, if this fails
// then we output a CRITICAL_ERROR since
// basic forum information is not available
//
$sql = "SELECT *
	FROM " . CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
	message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql);
}

while ( $row = $db->sql_fetchrow($result) )
{
	$board_config[$row['config_name']] = $row['config_value'];
}

// Auto lang mod start
// If someone spoofs the language setting, then init_userprefs() will use the default language, as the spoofed result can't be found
$language = '';
$supported_languages = array();
$accept_language = strtolower (getenv ('HTTP_ACCEPT_LANGUAGE'));
if (!empty ($accept_language))
{
	reset ($board_config);
	$needle = 'auto_lang_';
	$needle_length = strlen($needle);
	while (list ($key, $value) = each ($board_config))
	{
		if ((strstr($key, $needle)))
		{
			$supported_languages[substr ($key, $needle_length)] = $value;
		}
	}
	reset ($board_config); // Avoid nasty surprises for other coders

	if (count ($supported_languages) > 0)
	{
		$accepted_languages = explode (',', $accept_language);
		reset ($accepted_languages);
		while (list(, $lng) = each ($accepted_languages))
		{
			$pos = strpos ($lng, ';');
			if ($pos > 0) // The ; never occurs on position 0 in this case (unless spoofed)
			{
				$lng = substr ($lng, 0, $pos);
			}
			$lng = trim ($lng);
			if (!empty($lng))
			{
				if (isset($supported_languages[$lng]))
				{
					$language = $supported_languages[$lng];
					break;
				}
				else if (strstr($lng,'-')) // A user can have entered '-' at pos 0, so strpos is out for PHP 3 compliance
				{
					// break it up at the '-'
					$lng = substr($lng, 0, strpos($lng, '-'));
					if (!empty($lng) && isset($supported_languages[$lng]))
					{
						$language = $supported_languages[$lng];
						break;
					}
				}
			}
		}
	}
}
if (!empty ($language))
{
	$board_config['default_lang'] = $language;
}
// Auto lang mod end


//
// Show 'Board is disabled' message if needed.
//
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") )
{
	message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}

?>
主題已鎖定

回到「phpBB 2 安裝與使用」