update add IN_NEXUS constant

This commit is contained in:
xiaomlove
2021-05-06 13:14:22 +08:00
parent 003813feb0
commit 30505c209f
2 changed files with 2 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ ini_set('error_reporting', E_ALL);
ini_set('display_errors', 0);
$rootpath = dirname(dirname(__DIR__)) . '/';
define('ROOT_PATH', $rootpath);
define('IN_NEXUS', true);
$isPost = $_SERVER['REQUEST_METHOD'] == 'POST';
require $rootpath . 'vendor/autoload.php';
require $rootpath . 'nexus/Database/helpers.php';