From b03cb6fc1dc3403532c91a45f63701d33711e34c Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 10 Feb 2022 13:47:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.php | 2 +- public/router.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/index.php b/public/index.php index 6b966775f..8d0e0cbb8 100644 --- a/public/index.php +++ b/public/index.php @@ -3,7 +3,7 @@ // +---------------------------------------------------------------------- // | ThinkAdmin // +---------------------------------------------------------------------- -// | 版权所有 2014~2021 广州楚才信息科技有限公司 [ http://www.cuci.cc ] +// | 版权所有 2014~2022 广州楚才信息科技有限公司 [ http://www.cuci.cc ] // +---------------------------------------------------------------------- // | 官方网站: https://thinkadmin.top // +---------------------------------------------------------------------- diff --git a/public/router.php b/public/router.php index c9873a849..34671e7e8 100644 --- a/public/router.php +++ b/public/router.php @@ -3,7 +3,7 @@ // +---------------------------------------------------------------------- // | ThinkAdmin // +---------------------------------------------------------------------- -// | 版权所有 2014~2021 广州楚才信息科技有限公司 [ http://www.cuci.cc ] +// | 版权所有 2014~2022 广州楚才信息科技有限公司 [ http://www.cuci.cc ] // +---------------------------------------------------------------------- // | 官方网站: https://thinkadmin.top // +---------------------------------------------------------------------- @@ -14,9 +14,9 @@ // | github 代码仓库:https://github.com/zoujingli/ThinkAdmin // +---------------------------------------------------------------------- -if (is_file($_SERVER["DOCUMENT_ROOT"] . $_SERVER["SCRIPT_NAME"])) { +if (is_file($_SERVER['DOCUMENT_ROOT'] . $_SERVER['SCRIPT_NAME'])) { return false; } else { - $_SERVER["SCRIPT_FILENAME"] = __DIR__ . '/index.php'; - require __DIR__ . "/index.php"; + $_SERVER['SCRIPT_FILENAME'] = __DIR__ . '/index.php'; + require $_SERVER['SCRIPT_FILENAME']; } \ No newline at end of file