修改下列文件:source/class/class_core.php
修改:source/function/function_cloud.php,在最下面删除以下代码:
<script src="http://discuz.gtimg.cn/cloud/scripts/discuz_tips.js?v=1" type="text/javascript" charset="UTF-8"></script>
uc_server/avatar.php (约第 13 行处)查找:
define('UC_API', strtolower(($_SERVER[‘HTTPS’] == ‘on’ ? ‘https’ : ‘http’).’://’.$_SERVER[‘HTTP_HOST’].substr($_SERVER[‘PHP_SELF’], 0, strrpos($_SERVER[‘PHP_SELF’], '/'))));
修改为:将http修改为https
a、后台-全局-站点信息中将网站URL修改为https开头的
b、后台-站长-UCenter中将UCenter 访问地址修改为https开头,同时将头像调用方式修改为:静态
c、进入UCenter中将应用URL修改为https开头
教程在这里:http://blog.fuwenhao.com/post/45.html
站点的所有 Ajax 内容都显示“内部错误,无法显示此内容”
Discuz!X 增加了 Ajax 的安全验证机制,如果您的服务器因设置不当不兼容此验证机制,可修改 source/class/class_core.php 文件,查找:
$this->var['inajax'] = empty($this->var['gp_inajax']) ? 0 : ($_SERVER['REQUEST_METHOD'] == 'GET' && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' || $_SERVER['REQUEST_METHOD'] == 'POST' ? 1 : 0);
还没有评论,来说两句吧...