test 发表于 2017-11-10 16:33:23

解决ecshop启用https协议无法登陆后台问题

由于有的服务器不支持$_SERVER['HTTPS']所以需要修改includes目录下的cls_ecshop.php
http()方法:
return (isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on')) ? 'https://' : 'http://';
更改为:
if(isset($_SERVER['HTTPS'])){
      if($_SERVER['HTTPS'] === 1){
                $http = 'https://';
      }else if($_SERVER['HTTPS'] === 'on'){
                $http = 'https://';
      }   
}else if($_SERVER['SERVER_PORT'] == 443){
      $http = 'https://';
}else{
      $http = 'http://';
}
return $http;搞不定请联系:qq82518223 付费技术支持
本网站发布的修改方法为本人原创,转载请注明出处:www.sssi.cn


页: [1]
查看完整版本: 解决ecshop启用https协议无法登陆后台问题