]> git.mxchange.org Git - friendica-addons.git/blobdiff - public_server/public_server.php
Mirroring: There was a problem that the title variable wasn't cleared so it could...
[friendica-addons.git] / public_server / public_server.php
index 9d469829108171836d1a1227f3cf30bcfb6e02ae..becf96c34fc493aaafc1e7021a21f62e864af228 100644 (file)
@@ -43,9 +43,11 @@ function public_server_register_account($a,$b) {
        );
 
 };
-       
+
 
 function public_server_cron($a,$b) {
+       logger("public_server: cron start");
+
        require_once('include/enotify.php');
        $r = q("select * from user where account_expires_on < UTC_TIMESTAMP() + INTERVAL 5 DAY and account_expires_on > '0000-00-00 00:00:00' and
                expire_notification_sent = '0000-00-00 00:00:00' ");
@@ -106,7 +108,7 @@ function public_server_cron($a,$b) {
         $flagposts = get_config('public_server','flagposts');
         $flagpostsexpire = get_config('public_server','flagpostsexpire');
        if ($flagposts && $flagpostsexpire) {
-               $r = q("select uid from user where account_expired = 0 and login_date < UTC_TIMESTAMP() - INTERVAL %d DAY and account_expires_on = '0000-00-00 00:00:00' and expire = 0 and 'page-flags' = 0",intval(flagposts));
+               $r = q("select uid from user where account_expired = 0 and login_date < UTC_TIMESTAMP() - INTERVAL %d DAY and account_expires_on = '0000-00-00 00:00:00' and expire = 0 and `page-flags` = 0",intval($flagposts));
                if(count($r)) {
                        foreach($r as $rr)
                                q("update user set expire = %d where uid = %d limit 1",
@@ -116,6 +118,7 @@ function public_server_cron($a,$b) {
                }
         }
 
+       logger("public_server: cron end");
 
 }