|
discuz的新版本检测和补丁功能已经关闭,导致后台调用相关链接时超时,引起后台打不开
X3.4已经移除相关代码,没有此问题,建议升级
Comsenz 核心产品 Discuz! X3.4 正式版【2017-08-01】
http://www.discuz.net/thread-3825961-1-1.html
懒得修改的可以直接安装免费插件解决:http://addon.discuz.com/?@freeaddon_killstuck.plugin
X3.4以下的版本解决办法
后台
打开:source/admincp/admincp_main.php
删除(大概在37-60行)- 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 = '[url='.$basescript.]'.($notice['fixed'] ? $lang['patch_fix_complete'] : $lang['patch_fix_rigth_now']).'[/url]
- ';
- }
- }
- if(!isset($_G['cookie']['checkpatch'])) {
- $discuz_patch->check_patch();
- }
- }
- if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && !$shownotice && $_G['setting']['upgrade']) {
- $shownotice = '[url='.$basescript.]'.$lang['upgrade_right_now'].'[/url]
- ';
- }
- 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 = '[url='.$basescript.]'.$lang['upgrade_right_now'].'[/url]
- ';
- }
- }
- dsetcookie('checkupgrade', 1, 7200);
- }
复制代码 前台也有影响管理员打开速度的
下载替换文件 source/module/misc/misc_patch.php
misc_patch.zip
(770 Bytes, 下载次数: 498)
也就是只保留IP异常提醒的代码,用不到也可以删了
|
|