aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-09-26 05:43:22 -0700
committerFriendika <info@friendika.com>2011-09-26 05:43:22 -0700
commitec16525c860c089c354dc22acc30996ca8bf572f (patch)
treea56712971371e64bf7aae7a986051ea823d6c6e1 /include
parent116fc7fcf216c5f962bc9c2238a9d6a3a21e436f (diff)
downloadvolse-hubzilla-ec16525c860c089c354dc22acc30996ca8bf572f.tar.gz
volse-hubzilla-ec16525c860c089c354dc22acc30996ca8bf572f.tar.bz2
volse-hubzilla-ec16525c860c089c354dc22acc30996ca8bf572f.zip
expire expired accounts from poller
Diffstat (limited to 'include')
-rw-r--r--include/poller.php6
1 files changed, 6 insertions, 0 deletions
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');