[問題] 請問有沒有手動更新2.0.17-2.0.18的教學?

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

版主: 版主管理群

版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
Mac
百戰天龍馬蓋先
百戰天龍馬蓋先
文章: 2590
註冊時間: 2003-02-02 02:28
來自: MacphpBBMOD
聯繫:

文章 Mac »

卡西歐 寫:感謝Mac大大回答....在您說的這兩行之間....找不到要改的地方耶....

這修改文件寫這樣...是不是寫錯了...改過粉多次版...沒遇過這樣的

剛剛找到另一個範例....寫的不一樣耶\r

代碼: 選擇全部

FIND 
Code: 

      if ( $mode == 'edit' ) 
      { 
         $sql = "SELECT pm.*, pmt.privmsgs_bbcode_uid, pmt.privmsgs_text, u.username, u.user_id, u.user_sig  



REPLACE WITH 
Code: 
      else if ( $mode == 'edit' ) 
      { 
         $sql = "SELECT pm.*, pmt.privmsgs_bbcode_uid, pmt.privmsgs_text, u.username, u.user_id, u.user_sig  
參考 phpBB 官方發表的文件是最準的,以下是中文翻譯版:
http://macphpbbmod.sourceforge.net/word ... page_id=17

~Mac
最後由 Mac 於 2006-01-05 23:16 編輯,總共編輯了 1 次。
+ 關於 phpBB 使用問題請在版面發問,私人訊息提供其他不相干或是隱私的事情聯絡之用。

phpBB 官網 | 竹貓星球 | MacphpBBMOD | 我的服務
卡西歐
星球普通子民
星球普通子民
文章: 10
註冊時間: 2004-04-23 10:30
來自: 深坑豆腐街

文章 卡西歐 »

了解了....感謝Mac大大指導......受教了... :-D
真誠.............

清靜平等正覺慈悲看破放下自在隨緣念佛
godfreychan
星球公民
星球公民
文章: 86
註冊時間: 2003-05-23 10:57

文章 godfreychan »

好恐怖, 檔案多得我不敢升!
是否沒別的方法?
過山雲
竹貓忠實會員
竹貓忠實會員
文章: 390
註冊時間: 2002-09-05 20:11
來自: 東都.承天府.萬年縣治.拱辰門北
聯繫:

文章 過山雲 »

檔案很多
備份資料庫\r
砍掉重練吧!
圖檔
godfreychan
星球公民
星球公民
文章: 86
註冊時間: 2003-05-23 10:57

文章 godfreychan »

請問mac大大
我的common.php 是什麼版本的? 我是用2.0.17 version
在我這邊完全找不到你指要修改的code... :-o
請幫忙看一下

代碼: 選擇全部

<?php
/***************************************************************************
 *                                common.php
 *                            -------------------
 *   begin                : Saturday, Feb 23, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: common.php,v 1.6 2003/08/30 15:05:44 acydburn 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/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);

//
// 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 );

	$entries = explode(',', getenv('HTTP_X_FORWARDED_FOR'));
	reset($entries);
	while (list(, $entry) = each($entries)) 
	{
		$entry = trim($entry);
		if ( preg_match("/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/", $entry, $ip_list) )
		{
			$private_ip = array('/^0\./', '/^127\.0\.0\.1/', '/^192\.168\..*/', '/^172\.((1[6-9])|(2[0-9])|(3[0-1]))\..*/', '/^10\..*/', '/^224\..*/', '/^240\..*/');
			$found_ip = preg_replace($private_ip, $client_ip, $ip_list[1]);

			if ($client_ip != $found_ip)
			{
				$client_ip = $found_ip;
				break;
			}
		}
	}
}
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'];
}
include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx);

if (file_exists('install') || file_exists('contrib'))
{
	message_die(GENERAL_MESSAGE, 'Please ensure both the install/ and contrib/ directories are deleted');
}

//
// 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');
}

?>
godfreychan
星球公民
星球公民
文章: 86
註冊時間: 2003-05-23 10:57

文章 godfreychan »

請問admin/admin_board.php裡以下的code是如何修?

尋找:
"CONFIRM_DISABLE" => $confirm_no,
尋找:
"ACTIVATION_NONE_CHECKED" => $activation_none,
取代為:
'ALLOW_AUTOLOGIN_YES' => $allow_autologin_yes,
'ALLOW_AUTOLOGIN_NO' => $allow_autologin_no,
'AUTOLOGIN_TIME' => (int) $new['max_autologin_time'],
godfreychan
星球公民
星球公民
文章: 86
註冊時間: 2003-05-23 10:57

文章 godfreychan »

請問有誰是成功手動完成的?
我花了一整個下午
結果是不停出現錯誤, 修了一個又一個....最後灌回早上備份的所有檔案回到2.0.17去...
~倉木麻衣~
竹貓忠實會員
竹貓忠實會員
文章: 1405
註冊時間: 2004-03-21 21:00

文章 ~倉木麻衣~ »

godfreychan 寫:我的common.php 是什麼版本的? 我是用2.0.17 version
你確定是2.0.17版?
光是這個common.php的內容就最多只到2.0.8版而已\r
如果你都是一路手動升級上來的
那麼我猜是當初升2.0.9之後會造成許多外掛失效, 所以你才沒改這個檔案
godfreychan 寫:請問有誰是成功手動完成的?
我花了一整個下午
結果是不停出現錯誤, 修了一個又一個....最後灌回早上備份的所有檔案回到2.0.17去...
本人就是手動升級完成的
只能建議你再多檢查檢查了
謝絕所有私人訊息詢問外掛相關問題
有問題請直接於版上發表, 集思廣議絕對比專挑特定人士詢問來的好

竹貓禁止發表含破解相關的軟體, 違者砍文
不要跟我講別的地方都可以發, 為什麼竹貓就不行
免費不等於破解, 傻傻的搞不清楚
Mac
百戰天龍馬蓋先
百戰天龍馬蓋先
文章: 2590
註冊時間: 2003-02-02 02:28
來自: MacphpBBMOD
聯繫:

文章 Mac »

~倉木麻衣~ 寫:
godfreychan 寫:請問有誰是成功手動完成的?
我花了一整個下午
結果是不停出現錯誤, 修了一個又一個....最後灌回早上備份的所有檔案回到2.0.17去...
本人就是手動升級完成的
只能建議你再多檢查檢查了
Me too

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

phpBB 官網 | 竹貓星球 | MacphpBBMOD | 我的服務
Arisa520
星球公民
星球公民
文章: 206
註冊時間: 2003-10-27 00:26

文章 Arisa520 »

Mac 寫:
~倉木麻衣~ 寫:
godfreychan 寫:請問有誰是成功手動完成的?
我花了一整個下午
結果是不停出現錯誤, 修了一個又一個....最後灌回早上備份的所有檔案回到2.0.17去...
本人就是手動升級完成的
只能建議你再多檢查檢查了
Me too

~Mac
ME TOO....OTL...
很累...至今仍是...
好險算是搞定了...
godfreychan
星球公民
星球公民
文章: 86
註冊時間: 2003-05-23 10:57

文章 godfreychan »

倉木麻衣\r

我可否直接套用2.0.18的common?
Mac
百戰天龍馬蓋先
百戰天龍馬蓋先
文章: 2590
註冊時間: 2003-02-02 02:28
來自: MacphpBBMOD
聯繫:

文章 Mac »

你要的話和不直接套用 2.0.19 的?不過你要先確定你的檔案沒有經過任何外掛的修改\r

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

phpBB 官網 | 竹貓星球 | MacphpBBMOD | 我的服務
godfreychan
星球公民
星球公民
文章: 86
註冊時間: 2003-05-23 10:57

文章 godfreychan »

Mac 寫:你要的話和不直接套用 2.0.19 的?不過你要先確定你的檔案沒有經過任何外掛的修改\r

~Mac
因為我改了很多啦...如果重裝一個2.0.19, 單裝mod都要瘋了...
godfreychan
星球公民
星球公民
文章: 86
註冊時間: 2003-05-23 10:57

文章 godfreychan »

把2.0.19的common套用\r

馬上跑出第一個error

代碼: 選擇全部

Fatal error: Call to undefined function: session_pagestart() in c:\appserv\www\phpBB2\index.php on line 31
Mac
百戰天龍馬蓋先
百戰天龍馬蓋先
文章: 2590
註冊時間: 2003-02-02 02:28
來自: MacphpBBMOD
聯繫:

文章 Mac »

那就把你在舊的檔案中加上的代碼複製到新的囉

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

phpBB 官網 | 竹貓星球 | MacphpBBMOD | 我的服務
主題已鎖定

回到「phpBB 2 安裝與使用」