[問題]裝了虛擬貨幣後在後台管理出現問題

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
neoesque
星球普通子民
星球普通子民
文章: 19
註冊時間: 2003-06-05 17:12
來自: 台灣高雄

[問題]裝了虛擬貨幣後在後台管理出現問題

文章 neoesque »

在後台管理的會員管理中,只要查詢會員\r

在該會員的資料上方會出現\r

Warning: opendir(../../language): failed to open dir: Invalid argument in g:\appserv\www\phpbb2\includes\functions_selects.php on line 31

Warning: readdir(): supplied argument is not a valid Directory resource in g:\appserv\www\phpbb2\includes\functions_selects.php on line 34

Warning: closedir(): supplied argument is not a valid Directory resource in g:\appserv\www\phpbb2\includes\functions_selects.php on line 45

而且"會員名稱"這四個字會不見

不過如果是在站台上方的個人資料看卻沒問題

底下是functions_selects.php的27~59行

代碼: 選擇全部

function language_select($default, $select_name = "language", $dirname="language")
{
	global $phpEx, $phpbb_root_path;

	$dir = opendir($phpbb_root_path . $dirname);

	$lang = array();
	while ( $file = readdir($dir) )
	{
		if (preg_match('#^lang_#i', $file) && !is_file(@phpbb_realpath($phpbb_root_path . $dirname . '/' . $file)) && !is_link(@phpbb_realpath($phpbb_root_path . $dirname . '/' . $file)))
		{
			$filename = trim(str_replace("lang_", "", $file));
			$displayname = preg_replace("/^(.*?)_(.*)$/", "\\\1 [ \\\2 ]", $filename);
			$displayname = preg_replace("/\[(.*?)_(.*)\]/", "[ \\\1 - \\\2 ]", $displayname);
			$lang[$displayname] = $filename;
		}
	}

	closedir($dir);

	@asort($lang);
	@reset($lang);

	$lang_select = '<select name="' . $select_name . '">';
	while ( list($displayname, $filename) = @each($lang) )
	{
		$selected = ( strtolower($default) == strtolower($filename) ) ? ' selected="selected"' : '';
		$lang_select .= '<option value="' . $filename . '"' . $selected . '>' . ucwords($displayname) . '</option>';
	}
	$lang_select .= '</select>';

	return $lang_select;
}
yau_chunhei
星球普通子民
星球普通子民
文章: 5
註冊時間: 2004-05-11 23:15

文章 yau_chunhei »


我也是這樣\r
怎麼了:?::?:
主題已鎖定

回到「外掛問題討論」