|
遊戲指定論壇‧免費廣告 網上看到 關卡discuzX3.2後台登入異常卡頓,主要原因是discuz的新版本檢測和補丁功能已經關閉,導致後台調用相關連結時超時.
只要修改source/admincp/admincp_main.php網頁
把以下Code刪除/或前後分別加上/*和*/,便能夠修正問題.
原文:https://blog.csdn.net/sql521hawk/article/details/123243498
- //新版本補丁功能已關閉, 導致連接超時
- /* if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && ($_G['setting']['showpatchnotice'] == 1 || !isset($_G['cookie']['checkpatch']))) {
- $discuz_patch = new discuz_patch();
- if($_G['setting']['showpatchnotice'] == 1) {
- $notice = $discuz_patch->fetch_patch_notice();
- if($notice['data']) {
- $shownotice = '<div class="notice"><a href="'.$basescript.'?action=patch" id="notice">'.($notice['fixed'] ? $lang['patch_fix_complete'] : $lang['patch_fix_rigth_now']).'</a></div>';
- }
- }
- if(!isset($_G['cookie']['checkpatch'])) {
- $discuz_patch->check_patch();
- }
- }
- if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && !$shownotice && $_G['setting']['upgrade']) {
- $shownotice = '<div class="notice"><a href="'.$basescript.'?action=upgrade" id="notice">'.$lang['upgrade_right_now'].'</a></div>';
- }
- if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && !isset($_G['cookie']['checkupgrade'])) {
- $discuz_upgrade = new discuz_upgrade();
- if($discuz_upgrade->check_upgrade()) {
- if(empty($shownotice)) {
- $shownotice = '<div class="notice"><a href="'.$basescript.'?action=upgrade" id="notice">'.$lang['upgrade_right_now'].'</a></div>';
- }
- }
- dsetcookie('checkupgrade', 1, 7200);
- }*/
複製代碼
|
|