From 9aac12cfc8212e3b0bb573ba25eab4a38233566e Mon Sep 17 00:00:00 2001 From: KasuganoSoras Date: Sat, 15 Sep 2018 02:45:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=89=E8=A3=85=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复安装程序的一些问题 --- index.php | 2 +- install/index.php | 50 ++++++++++++++++++++++++++---------- install/template/3.html | 4 +-- install/template/locked.html | 3 +++ 4 files changed, 41 insertions(+), 18 deletions(-) diff --git a/index.php b/index.php index 132dabb..a26002c 100644 --- a/index.php +++ b/index.php @@ -5,7 +5,7 @@ $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")) { +if(!file_exists(ROOT . "/include/data/config.php") && !isset($_GET['installed'])) { echo ""; exit; } diff --git a/install/index.php b/install/index.php index f73b346..b927893 100644 --- a/install/index.php +++ b/install/index.php @@ -1,17 +1,11 @@

安装完成,立即使用。

- - - + diff --git a/install/template/locked.html b/install/template/locked.html index efa65c0..61c08d2 100644 --- a/install/template/locked.html +++ b/install/template/locked.html @@ -28,6 +28,9 @@

PHPMC 7 官方网站:https://www.phpmc.cn/


PHPMC 7 已经安装过了,重新安装请删除 install 目录下的 install.lock

+
+ +