]> git.mxchange.org Git - friendica.git/commitdiff
expire expired accounts from poller
authorFriendika <info@friendika.com>
Mon, 26 Sep 2011 12:43:22 +0000 (05:43 -0700)
committerFriendika <info@friendika.com>
Mon, 26 Sep 2011 12:43:22 +0000 (05:43 -0700)
include/poller.php

index fd2a0af8f9cd8531a93eef1b7b53e41dd93b243a..07076508ff4b233005ccc32d6c27ac96cc04fb88 100644 (file)
@@ -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');