欧美日韩精品在线,国内精品久久久久久久久,一级毛片恃级毛片直播,清纯唯美亚洲综合欧美色

SupSite7.5登陸后臺(tái)先驗(yàn)證權(quán)限問(wèn)題解決方案_SupeSite教程

編輯Tag賺U幣
教程Tag:暫無(wú)Tag,歡迎添加,賺取U幣!
程序升級(jí)到SupSite7.5后,如果通過(guò)訪問(wèn)admincp.php來(lái)登陸后臺(tái),會(huì)遇到無(wú)權(quán)限提示,這是因?yàn)槌绦蛳扰袛鄼?quán)限,然后再判斷是否登陸導(dǎo)致的。
找開(kāi)admincp.php文件,找到下面一段代碼:

  1. //權(quán)限檢查  
  2. if(!checkperm('manageadmincp')) {  
  3.         showmessage('no_authority_management_operation');  
  4. }  
  5.  
  6. //沒(méi)有登錄  
  7. if(emptyempty($_SGLOBAL['supe_uid']) || emptyempty($_SGLOBAL['member']['password'])) {  
  8.         setcookie('_refer', rawurlencode(S_URL_ALL.'/admincp.php?'.$_SERVER['QUERY_STRING']));  
  9.         showmessage('admincp_login', geturl('action/login'));  


將其改為:

 
  1. //沒(méi)有登錄  
  2. if(emptyempty($_SGLOBAL['supe_uid']) || emptyempty($_SGLOBAL['member']['password'])) {  
  3.         setcookie('_refer', rawurlencode(S_URL_ALL.'/admincp.php?'.$_SERVER['QUERY_STRING']));  
  4.         showmessage('admincp_login', geturl('action/login'));  
  5. }  
  6.  
  7. //權(quán)限檢查  
  8. if(!checkperm('manageadmincp')) {  
  9.         showmessage('no_authority_management_operation');  
再訪問(wèn)admincp.php文件就會(huì)先判斷是否登陸,再判斷權(quán)限了。

查看更多 supesite教程  supesite模板

來(lái)源:模板無(wú)憂//所屬分類:SupeSite教程/更新時(shí)間:2009-11-24
相關(guān)SupeSite教程