1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 17:31:00 +01:00

Lower limits

This commit is contained in:
Fredrick Brennan 2014-09-21 17:52:08 +00:00
parent ece49c561e
commit 8ed4689ecf

View File

@ -8,8 +8,8 @@ $protected = array('burgers', 'cow', 'wilno', 'cute');
$q = query("SELECT uri FROM boards");
$boards = $q->fetchAll(PDO::FETCH_COLUMN);
$now = new DateTime();
$ago = (new DateTime)->sub(new DateInterval('P14D'));
$mod_ago = (new DateTime)->sub(new DateInterval('P14D'));
$ago = (new DateTime)->sub(new DateInterval('P3D'));
$mod_ago = (new DateTime)->sub(new DateInterval('P7D'));
// Find out the last activity for our board
$delete = array();