2020-12-26 01:42:23 +08:00
|
|
|
<?php
|
2021-01-14 20:44:24 +08:00
|
|
|
if(!defined('IN_TRACKER')) {
|
|
|
|
|
die('Hacking attempt!');
|
|
|
|
|
}
|
2021-01-27 16:26:37 +08:00
|
|
|
if (!file_exists($rootpath . '.env')) {
|
2021-01-27 16:46:39 +08:00
|
|
|
header('Location: ' . getBaseUrl() . 'install/install.php');
|
2021-01-27 16:26:37 +08:00
|
|
|
exit(0);
|
|
|
|
|
}
|
2021-01-12 01:54:46 +08:00
|
|
|
error_reporting(E_ALL);
|
2021-01-27 16:26:37 +08:00
|
|
|
ini_set('display_errors', 0);
|
2021-01-14 20:44:24 +08:00
|
|
|
if (!empty($_SERVER['HTTP_X_REQUEST_ID'])) {
|
|
|
|
|
define('REQUEST_ID', $_SERVER['HTTP_X_REQUEST_ID']);
|
|
|
|
|
} else {
|
|
|
|
|
define('REQUEST_ID', intval(NEXUS_START * 10000));
|
|
|
|
|
}
|
|
|
|
|
define('ROOT_PATH', $rootpath);
|
2021-01-25 01:23:28 +08:00
|
|
|
define('VERSION_NUMBER', '1.6.0');
|
2021-01-19 21:50:21 +08:00
|
|
|
define('IS_ANNOUNCE', (basename($_SERVER['SCRIPT_FILENAME']) == 'announce.php'));
|
2021-01-27 16:26:37 +08:00
|
|
|
require $rootpath . 'vendor/autoload.php';
|
|
|
|
|
require $rootpath . 'nexus/Database/helpers.php';
|
2021-01-12 01:54:46 +08:00
|
|
|
require $rootpath . 'classes/class_advertisement.php';
|
|
|
|
|
require $rootpath . 'classes/class_cache_redis.php';
|
|
|
|
|
require $rootpath . 'include/config.php';
|
2021-01-19 21:50:21 +08:00
|
|
|
if (!IS_ANNOUNCE) {
|
|
|
|
|
require $rootpath . get_langfile_path("functions.php");
|
|
|
|
|
}
|
2021-01-28 20:37:35 +08:00
|
|
|
$Cache = new class_cache_redis(); //Load the caching class
|
2020-12-26 01:42:23 +08:00
|
|
|
$Cache->setLanguageFolderArray(get_langfolder_list());
|
|
|
|
|
define('TIMENOW', time());
|
2021-01-25 01:23:28 +08:00
|
|
|
define('TIMENOW_STRING', date('Y-m-d H:i:s'));
|
2020-12-26 01:42:23 +08:00
|
|
|
$USERUPDATESET = array();
|
|
|
|
|
$query_name=array();
|
|
|
|
|
|
|
|
|
|
define ("UC_PEASANT", 0);
|
|
|
|
|
define ("UC_USER", 1);
|
|
|
|
|
define ("UC_POWER_USER", 2);
|
|
|
|
|
define ("UC_ELITE_USER", 3);
|
|
|
|
|
define ("UC_CRAZY_USER", 4);
|
|
|
|
|
define ("UC_INSANE_USER", 5);
|
|
|
|
|
define ("UC_VETERAN_USER", 6);
|
|
|
|
|
define ("UC_EXTREME_USER", 7);
|
|
|
|
|
define ("UC_ULTIMATE_USER", 8);
|
|
|
|
|
define ("UC_NEXUS_MASTER", 9);
|
|
|
|
|
define ("UC_VIP", 10);
|
|
|
|
|
define ("UC_RETIREE",11);
|
|
|
|
|
define ("UC_UPLOADER",12);
|
2020-12-28 20:52:54 +08:00
|
|
|
define ("UC_FORUM_MODERATOR", 12);
|
2020-12-26 01:42:23 +08:00
|
|
|
define ("UC_MODERATOR",13);
|
|
|
|
|
define ("UC_ADMINISTRATOR",14);
|
|
|
|
|
define ("UC_SYSOP",15);
|
|
|
|
|
define ("UC_STAFFLEADER",16);
|
|
|
|
|
ignore_user_abort(1);
|
|
|
|
|
@set_time_limit(60);
|