[問題] 後台錯誤..謝謝(倉木已解決)

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

版主: 版主管理群

主題已鎖定
h4899846
星球普通子民
星球普通子民
文章: 30
註冊時間: 2004-12-29 23:16
來自: 媽媽的肚子
聯繫:

[問題] 後台錯誤..謝謝(倉木已解決)

文章 h4899846 »

架設主機作業系統:Win Xp Pro
快速架站程式:Appserv 2.4.2
上網方式:Hinet 浮動IP
安裝程式:Apache+MySQL+PHP+Perl+PhpMyAdmin
phpBB2 版本:PhpBB 2011

最近安裝birthday_1.5.6em
黃牌1412



出現這樣的錯誤.......><.....我下面有哪裡改錯....謝謝各位


圖檔


下面是83行後面的之資料紅色地方就是100行

代碼: 選擇全部

$field_names = array(
	'auth_view' => $lang['View'],
	'auth_read' => $lang['Read'],
	'auth_post' => $lang['Post'],
	'auth_reply' => $lang['Reply'],
	'auth_edit' => $lang['Edit'],
	'auth_delete' => $lang['Delete'],
	'auth_sticky' => $lang['Sticky'],
	'auth_announce' => $lang['Announce'], 
	'auth_vote' => $lang['Vote'], 
	'auth_pollcreate' => $lang['Pollcreate']);

        
attach_setup_usergroup_auth($forum_auth_fields, $auth_field_match, $field_names,

// ---------------
// Start Functions
//
[color=red]function check_auth($type, $key, $u_access, $is_admin)[/color]
{
	$auth_user = 0;

	if( count($u_access) )
	{
		for($j = 0; $j < count($u_access, $j++)
'auth_ban' => $lang['ban_card'], 
'auth_greencard' => $lang['Greencard'] , 
'auth_bluecard' => $lang['Bluecard']);
		{
			$result = 0;
			switch($type)
			{
				case AUTH_ACL:
					$result = $u_access[$j][$key];

				case AUTH_MOD:
					$result = $result || $u_access[$j]['auth_mod'];

				case AUTH_ADMIN:
					$result = $result || $is_admin;
					break;
			}

			$auth_user = $auth_user || $result;
		}
	}
	else
	{
		$auth_user = $is_admin;
	}

	return $auth_user;
}
//
// End Functions
// -------------
最後由 h4899846 於 2005-01-30 23:49 編輯,總共編輯了 1 次。
~倉木麻衣~
竹貓忠實會員
竹貓忠實會員
文章: 1405
註冊時間: 2004-03-21 21:00

Re: [問題] 後台錯誤..煩請各位電腦達人幫忙

文章 ~倉木麻衣~ »

h4899846 寫:下面是83行後面的之資料紅色地方就是100行

代碼: 選擇全部

$field_names = array(
	'auth_view' => $lang['View'],
	'auth_read' => $lang['Read'],
	'auth_post' => $lang['Post'],
	'auth_reply' => $lang['Reply'],
	'auth_edit' => $lang['Edit'],
	'auth_delete' => $lang['Delete'],
	'auth_sticky' => $lang['Sticky'],
	'auth_announce' => $lang['Announce'], 
	'auth_vote' => $lang['Vote'], 
	'auth_pollcreate' => $lang['Pollcreate']);

        
attach_setup_usergroup_auth($forum_auth_fields, $auth_field_match, [color=blue]$field_names,[/color]

// ---------------
// Start Functions
//
function check_auth($type, $key, $u_access, $is_admin)
{
	$auth_user = 0;

	if( count($u_access) )
	{
		for($j = 0; $j < count($u_access, $j++)
[color=red]'auth_ban' => $lang['ban_card'], 
'auth_greencard' => $lang['Greencard'] , 
'auth_bluecard' => $lang['Bluecard']);[/color]
		{
			$result = 0;
			switch($type)
紅色部份加錯位置了,藍色部份請改成$field_names);
很明顯的~你改錯位置了~
應該是這樣子才對~

代碼: 選擇全部

$field_names = array(
	'auth_view' => $lang['View'],
	'auth_read' => $lang['Read'],
	'auth_post' => $lang['Post'],
	'auth_reply' => $lang['Reply'],
	'auth_edit' => $lang['Edit'],
	'auth_delete' => $lang['Delete'],
	'auth_sticky' => $lang['Sticky'],
	'auth_announce' => $lang['Announce'], 
	'auth_vote' => $lang['Vote'], 
	'auth_pollcreate' => $lang['Pollcreate'],
	[color=orange]'auth_ban' => $lang['ban_card'], 
	'auth_greencard' => $lang['Greencard'] , 
	'auth_bluecard' => $lang['Bluecard']);[/color]

attach_setup_usergroup_auth($forum_auth_fields, $auth_field_match, $field_names[color=orange]);[/color]
// ---------------
// Start Functions
//
function check_auth($type, $key, $u_access, $is_admin)
{
	$auth_user = 0;

	if( count($u_access) )
	{
		for($j = 0; $j < count($u_access); $j++)
		{
			$result = 0;
			switch($type)
如果改完還是有問題~建議你還是把檔案還原回去再重改一次吧
h4899846
星球普通子民
星球普通子民
文章: 30
註冊時間: 2004-12-29 23:16
來自: 媽媽的肚子
聯繫:

文章 h4899846 »

已經先把admin_ug_auth.php這個檔案還原
因為後面發現出錯的不只那邊 :oops:
目前沒安裝admin_ug_auth.php裡面的資料
後台也正常了...黃牌也沒問題

謝謝倉木...我再試試你提供的方法^^
主題已鎖定

回到「外掛問題討論」