2018-09-10 14:53:00 +08:00
|
|
|
<?php
|
2018-09-15 05:31:23 +08:00
|
|
|
set_time_limit(60);
|
2018-09-10 14:53:00 +08:00
|
|
|
error_reporting(0);
|
|
|
|
$pathinfo = pathinfo($_SERVER['PHP_SELF']);
|
|
|
|
$path = str_replace("/" . $pathinfo['basename'], "", $_SERVER['PHP_SELF']);
|
|
|
|
define("ROOT", str_replace("\\", "/", __DIR__));
|
|
|
|
define("DOCROOT", $path);
|
2018-09-15 02:45:23 +08:00
|
|
|
if(!file_exists(ROOT . "/include/data/config.php") && !isset($_GET['installed'])) {
|
2018-09-10 14:53:00 +08:00
|
|
|
echo "<script>location='install/';</script>";
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
include(ROOT . "/include/loader.php");
|
2018-09-16 01:49:48 +08:00
|
|
|
$Plugin = new Plugin();
|
2018-09-10 14:53:00 +08:00
|
|
|
$Loader = new Loader();
|
2018-09-16 01:49:48 +08:00
|
|
|
$Plugin->load("plugins");
|
2018-09-10 14:53:00 +08:00
|
|
|
$Loader->router();
|
2018-09-16 01:49:48 +08:00
|
|
|
$Loader->frame();
|