SupSite7.5登陸后臺先驗證權限問題解決方案_SupeSite教程
教程Tag:暫無Tag,歡迎添加,賺取U幣!
程序升級到SupSite7.5后,如果通過訪問admincp.php來登陸后臺,會遇到無權限提示,這是因為程序先判斷權限,然后再判斷是否登陸導致的。
找開admincp.php文件,找到下面一段代碼:
將其改為:
再訪問admincp.php文件就會先判斷是否登陸,再判斷權限了。
找開admincp.php文件,找到下面一段代碼:
- //權限檢查
- if(!checkperm('manageadmincp')) {
- showmessage('no_authority_management_operation');
- }
- //沒有登錄
- if(emptyempty($_SGLOBAL['supe_uid']) || emptyempty($_SGLOBAL['member']['password'])) {
- setcookie('_refer', rawurlencode(S_URL_ALL.'/admincp.php?'.$_SERVER['QUERY_STRING']));
- showmessage('admincp_login', geturl('action/login'));
- }
將其改為:
- //沒有登錄
- if(emptyempty($_SGLOBAL['supe_uid']) || emptyempty($_SGLOBAL['member']['password'])) {
- setcookie('_refer', rawurlencode(S_URL_ALL.'/admincp.php?'.$_SERVER['QUERY_STRING']));
- showmessage('admincp_login', geturl('action/login'));
- }
- //權限檢查
- if(!checkperm('manageadmincp')) {
- showmessage('no_authority_management_operation');
- }
查看更多 supesite教程 supesite模板
相關SupeSite教程:
- SupeSite默認焦點輪轉圖簡單美化方法
- SupeSite7.5 讓資訊發布日期更加個性化
- SupeSite7.5 讓會員中心擁有不同的title和提示信息
- SupeSite7.5 benbaHTML生成方案第一版
- SupeSite7.5發布評論后直接跳轉回到文章頁面的完美方法
- SupSite7.5單個頁面頻道編輯后無法訪問
- SupSite模型無權限評論修改方案
- SupSite模板里經常用到以下幾個標簽的說明
- SupSite頁面文件與模塊關系說明
- 升級SupeSite7.5出現Errno.: 1054的解決方法
- SupeSite7.5 非gbk版本程序,在回復某帖子時回復被截斷修改方案
- SupeSite 7.0 模板CSS修改全攻略教程
- 相關鏈接:
- 教程說明:
SupeSite教程-SupSite7.5登陸后臺先驗證權限問題解決方案
。