From 83f0e6264879bf8b7111b8a3cbb75ca026363902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=91=A8=E9=83=A8=E8=90=BD?= Date: Thu, 8 Jul 2021 22:56:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E8=AE=BA=E5=9D=9B?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E7=BC=93=E5=AD=98=E6=97=A0=E6=B3=95=E7=94=9F?= =?UTF-8?q?=E6=95=88=E7=9A=84=20Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/function/function_core.php | 2 +- upload/source/module/forum/forum_index.php | 4 ++-- upload/source/module/forum/forum_viewthread.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/upload/source/function/function_core.php b/upload/source/function/function_core.php index 1e2611f96..9b74b59e6 100644 --- a/upload/source/function/function_core.php +++ b/upload/source/function/function_core.php @@ -1060,7 +1060,7 @@ function output() { } $_G['setting']['ftp'] = array(); - if(defined('CACHE_FILE') && CACHE_FILE && !defined('CACHE_FORBIDDEN') && !defined('IN_MOBILE') && !defined('IS_ROBOT') && !checkmobile()) { + if(defined('CACHE_FILE') && CACHE_FILE && !defined('CACHE_FORBIDDEN') && !defined('IN_MOBILE') && !IS_ROBOT && !checkmobile()) { if(diskfreespace(DISCUZ_ROOT.'./'.$_G['setting']['cachethreaddir']) > 1000000) { if($fp = @fopen(CACHE_FILE, 'w')) { flock($fp, LOCK_EX); diff --git a/upload/source/module/forum/forum_index.php b/upload/source/module/forum/forum_index.php index b508730b8..4b5ff5f1d 100644 --- a/upload/source/module/forum/forum_index.php +++ b/upload/source/module/forum/forum_index.php @@ -16,7 +16,7 @@ require_once libfile('function/forumlist'); $gid = intval(getgpc('gid')); $showoldetails = get_index_online_details(); -if(!$_G['uid'] && !$gid && $_G['setting']['cacheindexlife'] && !defined('IN_ARCHIVER') && !defined('IN_MOBILE') && !defined('IS_ROBOT')) { +if(!$_G['uid'] && !$gid && $_G['setting']['cacheindexlife'] && !defined('IN_ARCHIVER') && !defined('IN_MOBILE') && !IS_ROBOT) { get_index_page_guest_cache(); } @@ -128,7 +128,7 @@ if(!$gid && $_G['setting']['collectionstatus'] && ($_G['setting']['collectionrec } -if(empty($gid) && empty($_G['member']['accessmasks']) && empty($showoldetails) && !defined('IS_ROBOT')) { +if(empty($gid) && empty($_G['member']['accessmasks']) && empty($showoldetails) && !IS_ROBOT) { extract(get_index_memory_by_groupid($_G['member']['groupid'])); if(defined('FORUM_INDEX_PAGE_MEMORY') && FORUM_INDEX_PAGE_MEMORY) { categorycollapse(); diff --git a/upload/source/module/forum/forum_viewthread.php b/upload/source/module/forum/forum_viewthread.php index 46131f0b2..b43f2d650 100644 --- a/upload/source/module/forum/forum_viewthread.php +++ b/upload/source/module/forum/forum_viewthread.php @@ -34,7 +34,7 @@ if($page === 1 && !empty($_G['setting']['antitheft']['allow']) && empty($_G['set helper_antitheft::check($_G['forum_thread']['tid'], 'tid'); } -if($_G['setting']['cachethreadlife'] && $_G['forum']['threadcaches'] && !$_G['uid'] && $page == 1 && !$_G['forum']['special'] && empty($_GET['do']) && empty($_GET['from']) && empty($_GET['threadindex']) && !defined('IN_ARCHIVER') && !defined('IN_MOBILE') && !defined('IS_ROBOT')) { +if($_G['setting']['cachethreadlife'] && $_G['forum']['threadcaches'] && !$_G['uid'] && $page == 1 && !$_G['forum']['special'] && empty($_GET['do']) && empty($_GET['from']) && empty($_GET['threadindex']) && !defined('IN_ARCHIVER') && !defined('IN_MOBILE') && !IS_ROBOT) { viewthread_loadcache(); } -- Gitee