This commit is contained in:
friendica
2013-03-25 21:32:12 -07:00
parent d0133d6f87
commit 884812bcba
3 changed files with 106 additions and 11 deletions

View File

@@ -30,8 +30,8 @@ function poller_run($argv, $argc){
// expire any expired accounts
q("UPDATE account
SET account_flags = account_flags | %d
where not account_flags & %d
SET account_flags = (account_flags | %d)
where not (account_flags & %d)
and account_expires != '0000-00-00 00:00:00'
and account_expires < UTC_TIMESTAMP() ",
intval(ACCOUNT_EXPIRED),
@@ -56,6 +56,10 @@ function poller_run($argv, $argc){
proc_run('php','include/expire.php');
}
// If this is a directory server, request a sync with an upstream
// directory at least once a day, up to once every poll interval.
// Pull remote changes and push local changes.
// potential issue: how do we keep from creating an endless update loop?
$manual_id = 0;
$generation = 0;