Discuz教程|使用HTTPS提示此网页正试图从未经验证
Discuz可能是是目前做得最好的一款论坛应用。在DZ使用X3.2后加上https连接就会被谷歌浏览器提示此网页正试图从未经验证的来源加载脚本
解决方法
分别注释掉discuz\source\function\function_core.php下的
// if(!defined('IN_MOBILE') && !defined('IN_ARCHIVER')){
// $tipsService = Cloud::loadClass('Service_DiscuzTips');
// $tipsService->show();
// }
以及discuz\source\plugin\pcmgr_url_safeguard\pcmgr_url_safeguard.class.php下的
class plugin_pcmgr_url_safeguard{function _include_js(){global $_G;// $jsscript = '<script src="http://pc1.gtimg.com/js/jquery-1.4.4.min.js" type="text/javascript"></script>';$jsscript .= '<script type="text/javascript">jQuery.noConflict();</script>';// $jsscript .= "<script type=\"text/javascript\">(function(d){j=d.createElement_x_x('script');j.src='//openapi.guanjia.qq.com/fcgi-bin/getdzjs?cmd=urlquery_" . $_G['config']['output']['charset'] . "_" . $_G['config']['output']['language'] . "';j.setAttribute('ime-cfg','lt=2');d.getElementsByTagName_r('head')[0].a(j)})(document)</script>";// $jsscript .= '<link rel="stylesheet" type="text/css" href="http://s.pc.qq.com/discuz/css/style.css" />';return $jsscript;}}
分别注释掉discuz\source\function\function_core.php下的
// if(!defined('IN_MOBILE') && !defined('IN_ARCHIVER')){
// $tipsService = Cloud::loadClass('Service_DiscuzTips');
// $tipsService->show();
// }
以及discuz\source\plugin\pcmgr_url_safeguard\pcmgr_url_safeguard.class.php下的
class plugin_pcmgr_url_safeguard{function _include_js(){global $_G;// $jsscript = '<script src="http://pc1.gtimg.com/js/jquery-1.4.4.min.js" type="text/javascript"></script>';$jsscript .= '<script type="text/javascript">jQuery.noConflict();</script>';// $jsscript .= "<script type=\"text/javascript\">(function(d){j=d.createElement_x_x('script');j.src='//openapi.guanjia.qq.com/fcgi-bin/getdzjs?cmd=urlquery_" . $_G['config']['output']['charset'] . "_" . $_G['config']['output']['language'] . "';j.setAttribute('ime-cfg','lt=2');d.getElementsByTagName_r('head')[0].a(j)})(document)</script>";// $jsscript .= '<link rel="stylesheet" type="text/css" href="http://s.pc.qq.com/discuz/css/style.css" />';return $jsscript;}}
0条评论