fix cleanup do not run under secret login

This commit is contained in:
xiaomlove
2022-04-10 17:39:25 +08:00
parent b7c1102500
commit 8216cb364c
5 changed files with 8 additions and 9 deletions

View File

@@ -19,7 +19,7 @@ ini_set('display_errors', 0);
$Cache = new class_cache_redis(); //Load the caching class
$Cache->setLanguageFolderArray(get_langfolder_list());
require $rootpath . 'include/config.php';
if (!in_array(nexus()->getScript(), ['announce', 'scrape', 'torrentrss', 'download'])) {
if (!isRunningInConsole() && !in_array(nexus()->getScript(), ['announce', 'scrape', 'torrentrss', 'download'])) {
require $rootpath . get_langfile_path("functions.php");
checkGuestVisit();
}