cron_announcement_daily.php 468 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: cron_announcement_daily.php 25786 2011-11-22 06:17:25Z zhengqingpeng $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. $delnum = C::t('forum_announcement')->delete_all_by_endtime($_G['timestamp']);
  12. if($delnum) {
  13. require_once libfile('function/cache');
  14. updatecache(array('announcements', 'announcements_forum'));
  15. }
  16. ?>