评论

收藏

解决 Discuz!X3.4以下版本后台登陆卡慢问题

avatar 张玲 | 1648 人阅读 | 0 人评论 | 2017-08-09

打开:source/admincp/admincp_main.php

删除(大概在37-60行)

  1. if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && ($_G['setting']['showpatchnotice'] == 1 || !isset($_G['cookie']['checkpatch']))) {
  2.         $discuz_patch = new discuz_patch();
  3.         if($_G['setting']['showpatchnotice'] == 1) {
  4.                 $notice = $discuz_patch->fetch_patch_notice();
  5.                 if($notice['data']) {
  6.                         $shownotice = '<div class="notice"><a href="'.$basescript.'?action=patch" id="notice">'.($notice['fixed'] ? $lang['patch_fix_complete'] : $lang['patch_fix_rigth_now']).'</a></div>';
  7.                 }
  8.         }
  9.         if(!isset($_G['cookie']['checkpatch'])) {
  10.                 $discuz_patch->check_patch();
  11.         }
  12. }
  13. if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && !$shownotice && $_G['setting']['upgrade']) {
  14.         $shownotice = '<div class="notice"><a href="'.$basescript.'?action=upgrade" id="notice">'.$lang['upgrade_right_now'].'</a></div>';
  15. }
  16. if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && !isset($_G['cookie']['checkupgrade'])) {
  17.         $discuz_upgrade = new discuz_upgrade();
  18.         if($discuz_upgrade->check_upgrade()) {
  19.                 if(empty($shownotice)) {
  20.                         $shownotice = '<div class="notice"><a href="'.$basescript.'?action=upgrade" id="notice">'.$lang['upgrade_right_now'].'</a></div>';
  21.                 }
  22.         }
  23.         dsetcookie('checkupgrade', 1, 7200);
  24. }
复制代码


""
还没有人打赏,支持一下
您需要登录后才可以回帖 登录 | 注册 微信登录

EA之家评论守则