diff --git a/cron.php b/cron.php index d8d2ff1..cc7b2e0 100644 --- a/cron.php +++ b/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 . ";" diff --git a/lang/lang.en-gb.php b/lang/lang.en-gb.php index 281d569..1172390 100644 --- a/lang/lang.en-gb.php +++ b/lang/lang.en-gb.php @@ -1,4 +1,5 @@ diff --git a/lang/mail.en-gb.php b/lang/mail.en-gb.php index b77a285..4f226d5 100644 --- a/lang/mail.en-gb.php +++ b/lang/mail.en-gb.php @@ -1,4 +1,5 @@ diff --git a/public/index.php b/public/index.php index 32b5d5d..27c0edd 100644 --- a/public/index.php +++ b/public/index.php @@ -122,7 +122,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { } else { $_SESSION["token"] = bin2hex(random_bytes(16)); ?> -