DiscuzX/upload/source/include/cron/cron_follow_daily.php

20 lines
536 B
PHP

<?php
/**
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: cron_follow_daily.php 25889 2011-11-24 09:52:20Z monkey $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
$removetime = TIMESTAMP - $_G['setting']['followretainday'] * 86400;
foreach(C::t('home_follow_feed')->fetch_all_by_dateline($removetime, '<=') as $feed) {
C::t('home_follow_feed')->insert_archiver($feed);
C::t('home_follow_feed')->delete($feed['feedid']);
}
?>