From d130ba30c83b63b1baa0e7bccc9e47d86b5406ab Mon Sep 17 00:00:00 2001 From: Krombel Date: Tue, 24 Apr 2018 15:27:17 +0200 Subject: [PATCH] autoformatting --- cron.php | 4 +-- lang/lang.en-gb.php | 1 + lang/mail.de-de.php | 73 +++++++++++++++++++++-------------------- lang/mail.en-gb.php | 63 ++++++++++++++++++----------------- public/index.php | 50 +++++++++++++++------------- public/verify.php | 16 ++++----- public/verify_admin.php | 11 ++++--- 7 files changed, 113 insertions(+), 105 deletions(-) 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)); ?> - <?php echo strtr($language["TOPIC_PLEASE_REGISTER"], [ "@homeserver" => $config["homeserver"] ]); ?> + <?php echo strtr($language["TOPIC_PLEASE_REGISTER"], ["@homeserver" => $config["homeserver"]]); ?>