From ec16525c860c089c354dc22acc30996ca8bf572f Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 26 Sep 2011 05:43:22 -0700 Subject: expire expired accounts from poller --- include/poller.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/poller.php b/include/poller.php index fd2a0af8f..07076508f 100644 --- a/include/poller.php +++ b/include/poller.php @@ -38,6 +38,12 @@ function poller_run($argv, $argc){ proc_run('php',"include/queue.php"); + // expire any expired accounts + + q("UPDATE user SET `account_expired` = 1 where `account_expired` = 0 + AND `account_expires_on` != '0000-00-00 00:00:00' + AND `account_expires_on` < UTC_TIMESTAMP() "); + // once daily run expire in background $d1 = get_config('system','last_expire_day'); -- cgit v1.2.3