-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
29 lines (28 loc) · 1.1 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
ini_set("date.timezone", "Asia/Shanghai");
require __DIR__ . "/Config.inc.php";
require __MODULE_DIR__ . "/Common.php";
require __MODULE_DIR__ . '/Config.class.php';
require __MODULE_DIR__ . '/RequestsManager.php';
require __MODULE_DIR__ . '/Watchdog.php';
require __MODULE_DIR__ . '/LoggerService.php';
$options = [];
if (file_exists(__CORE_DIR__ . "/install.lock")) {
if (file_exists(__CORE_DIR__ . "/Config/connect.php")) {
require_once __CORE_DIR__ . "/Config/connect.php";
$Data = new Data();
$options = $Data->get("option");
}
}
$server = [
"php_version" => PHP_VERSION,
"php_uname" => PHP_OS,
"server_software" => $_SERVER["SERVER_SOFTWARE"],
"upload_max_filesize" => get_cfg_var("upload_max_filesize") ? get_cfg_var("upload_max_filesize") : "不允许上传附件",
"max_execution_time" => get_cfg_var("max_execution_time") . "秒 ",
"memory_limit" => get_cfg_var("memory_limit") ? get_cfg_var("memory_limit") : "无"
];
$options["version"] = "0.0.1";
define("__CONFIG__", $server);
define("__DATA__", $options);
require __DIR__ . "/Include/Index.php";