1
0
mirror of https://github.com/ZeroDream-CN/PHPMC7 synced 2024-11-30 17:52:52 +08:00
PHPMC7/index.php
KasuganoSoras f06e0bcb30 v7.3.3156 更新发布
增加插件系统
增加事件管理系统
修复错误页面的标题问题
2018-09-16 01:49:48 +08:00

18 lines
531 B
PHP

<?php
set_time_limit(60);
error_reporting(0);
$pathinfo = pathinfo($_SERVER['PHP_SELF']);
$path = str_replace("/" . $pathinfo['basename'], "", $_SERVER['PHP_SELF']);
define("ROOT", str_replace("\\", "/", __DIR__));
define("DOCROOT", $path);
if(!file_exists(ROOT . "/include/data/config.php") && !isset($_GET['installed'])) {
echo "<script>location='install/';</script>";
exit;
}
include(ROOT . "/include/loader.php");
$Plugin = new Plugin();
$Loader = new Loader();
$Plugin->load("plugins");
$Loader->router();
$Loader->frame();