DedeCmsSYSTEM_配置参数->其它选项中有两个配置选项:[附件目录是否绑定为指定的二级域名|附件目录的二级域名,很明显示官方早就注意到了在二级域名下的各种子问题!解决办法: 我们现在打开include/FCKeditor/editor/dialog/目录下的文件:“dede_image.php”! 找到下面的代码 if($cfg_multi_site=='N') { $imgHtml.="[i, \"$altname\"style=\"cursor:pointer\"onclick=\"window.open('$urlValue')\"/> \r\n"; } else { if(empty($cfg_basehost))$cfg_basehost='http://'.$_SERVER["HTTP_HOST",; $imgHtml.="[i, \"$imgheightValue\"alt=\"$altname\"style=\"cursor:pointer\"onclick=\"window.open('$urlValue')\"/> \r\n"; } 吧代码改成下面的代码 if($GLOBALS['cfg_addon_domainbind',){$addon_domain=$GLOBALS['cfg_addon_domain',;} if($cfg_multi_site=='N') { $imgHtml.="[i, \"$altname\"style=\"cursor:pointer\"onclick=\"window.open('{$addon_domain}{$urlValue}')\"/> \r\n"; } else { if(empty($cfg_basehost))$cfg_basehost='http://'.$_SERVER["HTTP_HOST",; $imgHtml....
内容已隐藏,请关注公众号输入验证码查看
本帖支持关注公众号查看
【无套路 无套路 无套路 扫描二维码关注公众号发送【验证码】收到验证码 在上面输入点击提交查看即可显示隐藏内容】
|