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

Lower limits

This commit is contained in:
Fredrick Brennan 2014-09-21 17:52:08 +00:00
parent 28911c6f22
commit 8ee850bf6c

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();