无限星辰工作室-客户无限互联网动力之源

标题: HTTPS下 登录提示 301 Moved Permanently 修复方案 [打印本页]

作者: crx349    时间: 2019-10-27 03:45
标题: HTTPS下 登录提示 301 Moved Permanently 修复方案
打开文件upload/uc_client/client.php
搜索:
  1. $port = !empty($matches['port']) ? $matches['port'] : 80;
复制代码


修改为:
  1. $port = !empty($matches['port']) ? $matches['port'] : ($matches['scheme'] == 'https' ? 443 : 80);
复制代码


搜索:
  1. if(!$fp = @fsocketopen(($ip ? $ip : $host), $port, $errno, $errstr, $timeout)) {
复制代码


修改为:
  1. if(!$fp = @fsocketopen(($scheme == 'https' ? 'ssl' : $scheme).'://'.($scheme == 'https' ? $host : ($ip ? $ip : $host)), $port, $errno, $errstr, $timeout)) {
复制代码





欢迎光临 无限星辰工作室-客户无限互联网动力之源 (https://www.xmspace.net/) Powered by Discuz! X3.4