From dd08d69b21848ebd71320f5af4ca60c382c294e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=81=E5=A3=AE=E6=88=90=E9=95=BF?= <2291200076@qq.com> Date: Sat, 16 Jan 2021 17:30:27 +0800 Subject: [PATCH] Update index.php --- controller/index.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/controller/index.php b/controller/index.php index 00a78a2..35e6251 100644 --- a/controller/index.php +++ b/controller/index.php @@ -101,8 +101,9 @@ function base64($url){ $host = $urls['host']; //获取端口 $port = empty( $urls['port'] ) ? '' : ':'.$urls['port']; + $dir = dirname($_SERVER['PHP_SELF']); - $new_url = $scheme.$host.$port; + $new_url = $scheme.$host.$port.$dir; return base64_encode($new_url); } @@ -119,4 +120,4 @@ else{ // 载入前台首页模板 require('templates/'.TEMPLATE.'/index.php'); -?> \ No newline at end of file +?>