autoformatting
This commit is contained in:
4
cron.php
4
cron.php
@@ -125,14 +125,14 @@ foreach ($mx_db->query($sql) as $row) {
|
||||
|
||||
try {
|
||||
//cleanup: all finished entries older than one month
|
||||
$timestamp = date('Y-m-d H:m:s',strtotime("-1 month"));
|
||||
$timestamp = date('Y-m-d H:m:s', strtotime("-1 month"));
|
||||
$mx_db->query("DELETE FROM registrations "
|
||||
. "WHERE request_date < '$timestamp'"
|
||||
. " AND (state = " . RegisterState::RegistrationDeclined
|
||||
. " OR state = " . RegisterState::AllDone . " );"
|
||||
);
|
||||
//cleanup: all entries which are pending email registration older than two days
|
||||
$timestamp = date('Y-m-d H:m:s',strtotime("-2 days"));
|
||||
$timestamp = date('Y-m-d H:m:s', strtotime("-2 days"));
|
||||
$mx_db->query("DELETE FROM registrations "
|
||||
. "WHERE request_date < '$timestamp'"
|
||||
. " AND state = " . RegisterState::PendingEmailVerify . ";"
|
||||
|
||||
Reference in New Issue
Block a user