Browse Source

Update index.php

pull/4/head
茁壮成长 4 years ago committed by GitHub
parent
commit
dd08d69b21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      controller/index.php

5
controller/index.php

@ -101,8 +101,9 @@ function base64($url){
$host = $urls['host']; $host = $urls['host'];
//获取端口 //获取端口
$port = empty( $urls['port'] ) ? '' : ':'.$urls['port']; $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); return base64_encode($new_url);
} }
@ -119,4 +120,4 @@ else{
// 载入前台首页模板 // 载入前台首页模板
require('templates/'.TEMPLATE.'/index.php'); require('templates/'.TEMPLATE.'/index.php');
?> ?>

Loading…
Cancel
Save