IITT网络服务中心

标题: discuz ssl后无法修改头像 [打印本页]

作者: admin    时间: 2017-10-26 00:39
标题: discuz ssl后无法修改头像
对于头像问题的解决方案:
在discuz目录里找到uc_client/client.php
【1】搜索第235行
  1. $path = $matches['path'] ? $matches['path'].($matches['query'] ? '?'.$matches['query'] : '') : '/';
复制代码

在下方添加以下代码(注意是添加不是修改!!是添加!添加!

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

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


修改为
  1.     if($port=='443'){
  2.         $temp = 'ssl://';
  3.     }else{
  4.         $temp = 'http://';
  5.     }
  6.     if(!$fp = @fsocketopen($temp.($ip ? $ip : $host), $port, $errno, $errstr, $timeout)) {

复制代码







欢迎光临 IITT网络服务中心 (http://service.iitt.cc/) Powered by Discuz! X3