網站有多個欄目,不同的欄目需要用戶跳轉不同的地址,此時,應該怎么做呢?
我們找到欄目權限判斷文件 /e/class/CheckClassLevel.php , 然后修改判斷函數,如下:
具體代碼如下:
if(!$loginuserid){
if($check_classid==30){
printerror2('Please register as our member','http://www.easimac.com/e/member/login/indexeng.php');
}else{
printerror2('請您注冊為我們的會員','http://www.easimac.com/e/member/login/index.php');
}
}
if(!strstr($check_groupid,','.$logingroupid.','))
{
printerror2('您沒有足夠權限查看此欄目','');
}
新聞熱點
疑難解答