Commit cc9d8fb5 by 韩洪虎

reset

parent 42548a93
...@@ -3800,8 +3800,7 @@ function eReturnDomain(){ ...@@ -3800,8 +3800,7 @@ function eReturnDomain(){
return ''; return '';
} }
$http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://'; $http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://';
// return $http_type.$domain; return $http_type.$domain;
return ($_SERVER['HTTPS'] ? 'https':'http').'://'.$domain;
} }
//返回域名网站地址 //返回域名网站地址
...@@ -4039,8 +4038,7 @@ function FWeReturnDomain(){ ...@@ -4039,8 +4038,7 @@ function FWeReturnDomain(){
{ {
return ''; return '';
} }
// return 'http://'.$domain; return 'http://'.$domain;
return ($_SERVER['HTTPS'] ? 'https':'http').'://'.$domain;
} }
//检查敏感字符 //检查敏感字符
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment