From c34a7b69b809ddb06a10801e2a46168101cc4b30 Mon Sep 17 00:00:00 2001 From: andryyy Date: Sat, 21 Jan 2017 11:49:29 +0100 Subject: [PATCH] More changes for better structure and minimal json api in dev --- data/web/add.php | 2 +- data/web/admin.php | 89 +- data/web/delete.php | 4 +- data/web/edit.php | 42 +- data/web/inc/dkim.inc.php | 142 ++ data/web/inc/domainadmin.inc.php | 381 ++++ data/web/inc/functions.inc.php | 3379 +++++------------------------- data/web/inc/mailbox.inc.php | 1974 +++++++++++++++++ data/web/inc/triggers.inc.php | 64 +- data/web/inc/vars.inc.php | 3 +- data/web/js/add.js | 12 +- data/web/json_api.php | 32 + data/web/lang/lang.de.php | 2 +- data/web/lang/lang.en.php | 4 +- data/web/mailbox.php | 8 +- data/web/user.php | 20 +- 16 files changed, 3132 insertions(+), 3026 deletions(-) create mode 100644 data/web/inc/dkim.inc.php create mode 100644 data/web/inc/domainadmin.inc.php create mode 100644 data/web/inc/mailbox.inc.php create mode 100644 data/web/json_api.php diff --git a/data/web/add.php b/data/web/add.php index 276082df..5d28d88b 100644 --- a/data/web/add.php +++ b/data/web/add.php @@ -339,7 +339,7 @@ elseif (isset($_SESSION['mailcow_cc_role']) && ($_SESSION['mailcow_cc_role'] ==
- +
diff --git a/data/web/admin.php b/data/web/admin.php index 6d41ba9b..1845bcb5 100644 --- a/data/web/admin.php +++ b/data/web/admin.php @@ -49,7 +49,7 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
- +
@@ -162,7 +162,7 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
- +
@@ -180,93 +180,110 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];

-

Domain:

+

Domain:
+ + bit +

-
+
- - - + + +
+
+
+

Domain:

+
+
-
+
 
+
+
-

↳ Alias-Domain:

+

↳ Alias-Domain:
+ + bit +

-
+
- - - + + +
+
+
+

↳ Alias-Domain:

+
+
-
+
 
+
+
-

Domain:

+

Domain:

-
+
- - - + + +

-
-
-

(Alias-)Domain:

-
-
-
- - + +
-
- +
diff --git a/data/web/delete.php b/data/web/delete.php index 867459c8..86ac4764 100644 --- a/data/web/delete.php +++ b/data/web/delete.php @@ -99,7 +99,7 @@ if (isset($_SESSION['mailcow_cc_role']) && ($_SESSION['mailcow_cc_role'] == "adm
- +
@@ -152,7 +152,7 @@ elseif (isset($_SESSION['mailcow_cc_role']) && ($_SESSION['mailcow_cc_role'] ==
"> - +
diff --git a/data/web/edit.php b/data/web/edit.php index 0c93a0c9..d9f54b4f 100644 --- a/data/web/edit.php +++ b/data/web/edit.php @@ -159,13 +159,13 @@ if (isset($_SESSION['mailcow_cc_role']) && ($_SESSION['mailcow_cc_role'] == "adm
- +
- +
@@ -196,7 +196,7 @@ if (isset($_SESSION['mailcow_cc_role']) && ($_SESSION['mailcow_cc_role'] == "adm

@@ -204,7 +204,7 @@ if (isset($_SESSION['mailcow_cc_role']) && ($_SESSION['mailcow_cc_role'] == "adm

Domain: (dkim._domainkey)

-
+
- + ">
- +
@@ -294,7 +294,7 @@ if (isset($_SESSION['mailcow_cc_role']) && ($_SESSION['mailcow_cc_role'] == "adm - + ">
- +
@@ -364,16 +364,17 @@ if (isset($_SESSION['mailcow_cc_role']) && ($_SESSION['mailcow_cc_role'] == "adm -
-
-

Domain: (dkim._domainkey)

-
-
-
-
-
+
+
+
+

Domain: (dkim._domainkey)

+
+
+
+
+

"> @@ -400,10 +400,10 @@ if (isset($_SESSION['mailcow_cc_role']) && ($_SESSION['mailcow_cc_role'] == "adm
- +
@@ -411,7 +411,7 @@ if (isset($_SESSION['mailcow_cc_role']) && ($_SESSION['mailcow_cc_role'] == "adm
+ +
- +
@@ -289,7 +289,7 @@ if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'user if (filter_var($bl['object'], FILTER_VALIDATE_EMAIL)): ?> - +
- +
@@ -339,7 +339,7 @@ if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'user
- +