Commit aa8d4f3b by 韩洪虎

connect

parent cc9d8fb5
......@@ -3799,8 +3799,9 @@ function eReturnDomain(){
{
return '';
}
$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;
// $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 ($_SERVER['HTTPS'] ? 'https':'http').'://'.$domain;
}
//返回域名网站地址
......@@ -4038,7 +4039,8 @@ function FWeReturnDomain(){
{
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