cron_cleannotification.php 494 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_cleannotification.php 24556 2011-09-26 06:16:03Z monkey $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. C::t('home_notification')->delete_clear(0, 2);
  12. C::t('home_notification')->delete_clear(1, 30);
  13. $deltime = $_G['timestamp'] - 7*3600*24;
  14. C::t('home_pokearchive')->delete_by_dateline($deltime);
  15. C::t('home_notification')->optimize();
  16. ?>