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 +?>