EMlog文章显示今日更新统计
为你的EMlog博客显示今日文章更新多少资源 和统计共更新多少资源统计 超过三天没发布文章会显示 三天没更新 十天也是哦 可以随时提醒你是不是要更新 代码以付下
<article class="excerpt-minic excerpt-minic-index" data-aos="fade-up">
<center><p><?php
$Log_Model = new Log_Model();
$today = strtotime(date('Y-m-d'));//今天凌晨时间戳
$threeday = strtotime(date('Y-m-d',strtotime('-3 day')));//3天前凌晨时间戳
$tenday = strtotime(date('Y-m-d',strtotime('-10 day')));//10天前凌晨时间戳
$today_sql = "and date>$today";
$today_num = $Log_Model->getLogNum('n', $today_sql);
$threeday_sql = "and date>$threeday";
$threeday_num = $Log_Model->getLogNum('n', $threeday_sql);
$tenday_sql = "and date>$tenday";
$tenday_num = $Log_Model->getLogNum('n', $tenday_sql);
if($tenday_num=='0'){echo '这博客已经废了 都10几天了 没有更新内容 | ';}
elseif($threeday_num=='0'){echo '这博客快要荒废了 连续3天都没有更新文章了 | ';}
elseif($today_num=='0'){echo '今日站长很懒 一篇文章都没更新 | ';}
else{echo ' <b>今日已更新<b style="color:red">'.$today_num.'</b>个资源 | </b> ';}
?><b>本站共分享了<b style="color:red"><?php echo $sta_cache['lognum'];?></b>个资源</b></p>
</center>
</article>
如果你觉得雨滴资源网对你有帮助的话,可以小小的打赏一下小站,用于维持本站的运营!
版权声明:雨滴资源网内容来源于互联网,如果有侵权内容、不妥之处,请第一时间联系我们删除。敬请谅解!
本文链接:EMlog文章显示今日更新统计 - https://www.yudzy.com/143.html
失效提示:此文更新于2018-9-14,如果文章内容或图片资源失效,请留言反馈,客服会及时处理,谢谢!


