From bde8217a6d02f0c5f4e6eaaf7e400b07d1253030 Mon Sep 17 00:00:00 2001 From: WispX Date: Thu, 22 Apr 2021 16:00:30 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=20BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/router.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 public/router.php diff --git a/public/router.php b/public/router.php new file mode 100644 index 00000000..dfd6ab65 --- /dev/null +++ b/public/router.php @@ -0,0 +1,17 @@ + +// +---------------------------------------------------------------------- + +if (is_file($_SERVER["DOCUMENT_ROOT"].$_SERVER["SCRIPT_NAME"])) { + return false; +} else { + require __DIR__."/index.php"; +} \ No newline at end of file