From 2cd0b56b143b8a2741488ae1735bf6d74253247f Mon Sep 17 00:00:00 2001 From: andryyy Date: Mon, 9 Aug 2021 08:28:22 +0200 Subject: [PATCH] [Web] Various PHP 8 fixes, partly fixes #4219 --- data/web/edit.php | 766 +++++++++++----------- data/web/inc/ajax/dns_diagnostics.php | 6 +- data/web/inc/functions.dkim.inc.php | 12 +- data/web/inc/functions.fail2ban.inc.php | 4 +- data/web/inc/functions.fwdhost.inc.php | 8 +- data/web/inc/functions.inc.php | 8 +- data/web/inc/functions.mailbox.inc.php | 42 +- data/web/inc/functions.oauth2.inc.php | 26 +- data/web/inc/functions.policy.inc.php | 12 +- data/web/inc/functions.pushover.inc.php | 4 +- data/web/inc/functions.transports.inc.php | 18 +- data/web/js/site/mailbox.js | 78 +-- data/web/lang/lang.de.json | 2 + data/web/lang/lang.en.json | 14 +- data/web/mailbox.php | 30 +- 15 files changed, 524 insertions(+), 506 deletions(-) diff --git a/data/web/edit.php b/data/web/edit.php index ba582292..30d584f3 100644 --- a/data/web/edit.php +++ b/data/web/edit.php @@ -2,19 +2,19 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php'; $AuthUsers = array("admin", "domainadmin", "user"); if (!isset($_SESSION['mailcow_cc_role']) OR !in_array($_SESSION['mailcow_cc_role'], $AuthUsers)) { - header('Location: /'); - exit(); + header('Location: /'); + exit(); } require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php'; ?>
-
-
-
-
-

-
-
+
+
+
+
+

+
+
- +
@@ -623,385 +623,399 @@ if (isset($_SESSION['mailcow_cc_role'])) { $rlyhosts = relayhost('get'); if (!empty($result)) { ?> -

-
- - - - -
- -
- -
-
-
- -
- - 0 = ∞ -
-
-
- -
- -
- -
-
-
- -
- -

 

- -
-
-
- -
-
- - - - -
-
-

-
-
-
- -
-
- - - -
-
-

-
-
-
- -
-
- - -
-
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
- - -
-
-
- -
- -
-
- -
-
-
- -
-
-
-
-
- - -
-
-
- -
-
-
- - -
-
-
- -
-
- -
-
-
+
-
- - - -
-
-

-
-
-

-

: {SUBJECT}, {SENDER}

+
+
+ + + + +
-
-
-
- - -
+ +
+ +
+
+
+ +
+ + 0 = ∞ +
+
+
+ +
+ +
+ +
+
+
+ +
+ +

 

+ +
+
+
+ +
+
+ + + + +
+
+

+
+
+
+ +
+
+ + + +
+
+

+
+
+
+ +
+
+ + +
-
-
- - -
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+ +
+
+
+ +
+
+
+
+
+ +
-
-
- - -
+
+
+ +
+
+
+ +
-
-
- - -
-
-
-
- - -
-
-
-
- -
-
-
- - - -
-
-
-
- - -
- +
+
+ +
+
+ +
+
+ +
+
+
+ + + +
+
+

+
+
+

+

: {SUBJECT}, {SENDER}

+
+
+
+
+ +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
- + +
+
+
+ + + +
+
+
+
+ + +
+ +
+
+ +
+
+
+ + +
+ +
-
- - -
- -
-
+
- -
-
-
-
-

-
-
-
- +
+ +
+
+

ACL

+
+
+
+ +
+
+ +
+
-
- -
-
- -
-

-
+
- -
-
-
-

ACL

-
-
-
- +
+ +
+
+

+
+
+
+ +
+
+ +
+
+ +
+

+
-
- -
-
+
- +
- + -
-
-
-
+
+
+
+