discuz x3.2 用户24小时内发帖量统计代码

时间:2018-12-27 10:36作者:网友投稿
24小时内发布的正常状态的帖子量
//24小时内主题数量
$day_beforet = $_G[timestamp]-86400;
$oneday_threads = DB::result_first("select count(tid) from ".DB::table("forum_post")." where `first`=1 and `invisible`=0 and `dateline`>'$day_beforet' and `dateline`<'$_G[timestamp]'");
复制代码
$_G[timestamp],当前时间戳。
$_G[timestamp]-86400,24小时前的时间戳。

免责声明:本站所有文章和图片均来自用户分享和网络收集,文章和图片版权归原作者及原出处所有,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服处理。