2021-06-08 20:43:47 +08:00
|
|
|
<?php
|
|
|
|
|
ini_set('error_reporting', E_ALL);
|
|
|
|
|
ini_set('display_errors', 0);
|
|
|
|
|
define('IN_NEXUS', true);
|
2022-03-09 12:15:30 +08:00
|
|
|
define('NEXUS_START', microtime(true));
|
2022-03-18 19:59:27 +08:00
|
|
|
require ROOT_PATH . 'include/globalfunctions.php';
|
|
|
|
|
require ROOT_PATH . 'include/functions.php';
|
2021-06-08 20:43:47 +08:00
|
|
|
require ROOT_PATH . 'vendor/autoload.php';
|
|
|
|
|
require ROOT_PATH . 'nexus/Database/helpers.php';
|
|
|
|
|
require ROOT_PATH . 'include/constants.php';
|
|
|
|
|
$withLaravel = false;
|
|
|
|
|
if (file_exists(ROOT_PATH . '.env')) {
|
|
|
|
|
require ROOT_PATH . 'include/eloquent.php';
|
2022-04-01 23:13:42 +08:00
|
|
|
require ROOT_PATH . 'classes/class_cache_redis.php';
|
|
|
|
|
$Cache = new class_cache_redis();
|
2021-06-08 20:43:47 +08:00
|
|
|
$withLaravel = true;
|
|
|
|
|
}
|
|
|
|
|
define('WITH_LARAVEL', $withLaravel);
|
2022-04-07 22:35:16 +08:00
|
|
|
\Nexus\Nexus::boot();
|
2022-08-27 03:28:03 +08:00
|
|
|
$hook = new \Nexus\Plugin\Hook();
|
|
|
|
|
$plugin = new \Nexus\Plugin\Plugin();
|