在Discuz的安装文件中依次打开source文件夹—class文件夹—class_core.php文件,查找到$_G['siteurl'] = htmlspecialchars字段和$_G['siteroot'] = substr字段,两个字段在相邻的上下两行,即:
$_G['siteurl'] = htmlspecialchars(‘http://’.$_SERVER['HTTP_HOST'].preg_replace(“/\/+(api)?\/*$/i”, ”, substr($_G['PHP_SELF'], 0, strrpos($_G['PHP_SELF'], ‘/’))).’/');
$_G['siteroot'] = substr($_G['PHP_SELF'], 0, -strle...
discuz论坛, godaddy阅读全文
演示站点:www.54zhanzhang.com
在template/default/common/header.htm
找到
<!--{if !empty($_G['cookie']['widthauto']) && empty($_G['disabledwidthauto'])}-->
<link rel="stylesheet" id="css_widthauto" type="text/css" href="data/cache/style_{STYLEID}_widthauto.css?{VERHASH}" />
<script type="text/javascript">HTMLNODE.className += ' widthauto'</script>
<!--{/if}--&...
discuz论坛阅读全文