让帝国cms支持https访问后台
修改:/e/class/connect.php
函数function eReturnDomain(){
$domain=RepPostStr($_SERVER['HTTP_HOST'],1);
if(empty($domain))
{
return '';
}
return 'http://'.$domain;
}修改为function eReturnDomain(){
$domain=RepPostStr($_SERVER['HTTP_HOST'],1);
if(empty($domain))
{
return '';
}
return ($_SERVER['HTTPS'] ? 'https':'http').'://'.$domain;
}
页:
[1]