PHPWIND[民间论坛]数据搬迁导致丢失严重,用户数据基本全部损坏,十分遗憾来自phpwind.me的远古记忆
9.0显示页面加载时间的方法!
大家知道DZ的右下角可以显示一个页面加载时间,但是PW中是没有的
其实实现这个时间统计很简单,我们也可以加到PW9中
首先,打开index.php,在最上面加上
在最下面找到
效果:http://bbs.zhiyi5.com

其实实现这个时间统计很简单,我们也可以加到PW9中
首先,打开index.php,在最上面加上
$StartTime = microtime(true);然后打开/template/common/footer.htm
在最下面找到
<p>Powered by <a href="http://www.phpwind.net/" target="_blank" rel="nofollow">phpwind v{@NEXT_VERSION}</a> ?2003-2013 <a href="http://www.phpwind.com" target="_blank" rel="nofollow">phpwind.com</a> <a href="http://www.miitbeian.gov.cn" target="_blank" rel="nofollow">{@Wekit::C('site','info.icp')}</a></p>
<p>{@Wekit::C('site','statisticscode')|html}</p>修改为
<p>Powered by <a href="http://www.phpwind.net/" target="_blank" rel="nofollow">phpwind v{@NEXT_VERSION}</a> ?2003-2013 <a href="http://www.phpwind.com" target="_blank" rel="nofollow">phpwind.com</a> <a href="http://www.miitbeian.gov.cn" target="_blank" rel="nofollow">{@Wekit::C('site','info.icp')}</a></p>
<p><!--# global $StartTime;echo number_format(microtime(true) - $StartTime, 5); #--></p>
<p>{@Wekit::C('site','statisticscode')|html}</p>清除摸板缓存后,刷新即见效
效果:http://bbs.zhiyi5.com
图片:无标题.png

标签
游客
⌘+回车发表评论
咪
石三伢子
11年前
浙江省杭州市
0
8.7版本的就有,位置在:template/wind/footer.htm 直接复制就好!