finish support with otane

This commit is contained in:
xiaomlove
2022-03-20 22:14:00 +08:00
parent a5ea51de55
commit 0e4544459f
39 changed files with 427 additions and 104 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
<?php
require_once __DIR__ . '/constants.php';
require_once $rootpath . 'vendor/autoload.php';
\Nexus\Nexus::boot();
if (!file_exists($rootpath . '.env')) {
$installScriptRelativePath = 'install/install.php';
$installScriptFile = $rootpath . "public/$installScriptRelativePath";
@@ -17,7 +18,7 @@ ini_set('date.timezone', nexus_config('nexus.timezone'));
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 0);
if (!in_array(CURRENT_SCRIPT, ['announce', 'scrape'])) {
if (!in_array(nexus()->getScript(), ['announce', 'scrape'])) {
require $rootpath . get_langfile_path("functions.php");
checkGuestVisit();
}