mirror of https://github.com/iAJue/Fantasy-field
修复IIS主机问题
parent
5953a4e442
commit
cffb883e54
|
@ -63,7 +63,7 @@ function getFileExt($name){
|
||||||
* 获取站点地址
|
* 获取站点地址
|
||||||
*/
|
*/
|
||||||
function getWebUrl() {
|
function getWebUrl() {
|
||||||
return 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . "://{$_SERVER['HTTP_HOST']}" . substr($_SERVER['SCRIPT_NAME'],0,strrpos($_SERVER['SCRIPT_NAME'],'/')+1);
|
return 'http' . (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 's' : '') . "://{$_SERVER['HTTP_HOST']}" . substr($_SERVER['SCRIPT_NAME'],0,strrpos($_SERVER['SCRIPT_NAME'],'/')+1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue