handsome主题博客信息添加访客数量和网站响应耗时
首先将以下代码加到themes/handsome/libs/Content.php中放在class Content{}之前/*访问总量*/
function theAllViews(){
$db = Typecho_Db::get();
$row = $db->fetchAll('SELECT SUM(VIEWS) FROM `typecho_contents`');
echo number_format($row[0]['SUM(VIEWS)']);
}
/*响应时间*/
function timer_start() {
global $timestart;
$mtime = e...
最近评论