diff options
Diffstat (limited to 'include/account.php')
-rw-r--r-- | include/account.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/account.php b/include/account.php index 4c5437594..399756ed1 100644 --- a/include/account.php +++ b/include/account.php @@ -1295,3 +1295,11 @@ function get_pending_accounts($get_all = false) { return $r; } + +function remove_expired_registrations() { + q("DELETE FROM register WHERE reg_expire < '%s' OR reg_expire = '%s' AND (reg_flags & %d) > 0", + dbesc(datetime_convert()), + dbesc(NULL_DATE), + dbesc(ACCOUNT_UNVERIFIED) + ); +} |