[問題] 怎樣禁止會員修改自己的個人資料,只有系統菅理員才
發表於 : 2005-04-08 14:13
怎樣禁止會員修改自己的個人資料,只有系統菅理員才可修改?[quote][/quote]
代碼: 選擇全部
else if ( $mode == 'editprofile' || $mode == 'register' )
{
if ( !$userdata['session_logged_in'] && $mode == 'editprofile' )
{
redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=editprofile", true));
}
include($phpbb_root_path . 'includes/usercp_register.'.$phpEx);
exit;
}代碼: 選擇全部
else if ( $mode == 'register' )
{
include($phpbb_root_path . 'includes/usercp_register.'.$phpEx);
exit;
}
else if ( $mode == 'editprofile' )
{
if ( !$userdata['session_logged_in'] && $mode == 'editprofile' )
{
redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=editprofile", true));
}
if ( $userdata['user_level'] == ADMIN )
{
include($phpbb_root_path . 'includes/usercp_register.'.$phpEx);
}
exit;
}代碼: 選擇全部
'U_PROFILE' => append_sid('profile.'.$phpEx.'?mode=editprofile'),代碼: 選擇全部
'U_PROFILE' => $userdata['user_level'] == ADMIN ? append_sid('profile.'.$phpEx.'?mode=editprofile') : "",代碼: 選擇全部
'L_PROFILE' => $lang['Profile'],代碼: 選擇全部
'L_PROFILE' => $userdata['user_level'] == ADMIN ? $lang['Profile'] : "",