From 767ae65946cc2f5519e2d1a595b5a8c3c2a3a571 Mon Sep 17 00:00:00 2001
From: andryyy
Date: Mon, 11 May 2020 11:52:02 +0200
Subject: [PATCH] [Web] Allow ratelimit time frame "day"; Allow to create
announcements
---
data/Dockerfiles/postfix/smtp_last_login.sh | 7 --
data/web/admin.php | 122 +++++++++++---------
data/web/edit.php | 3 +
data/web/inc/footer.inc.php | 10 +-
data/web/inc/functions.customize.inc.php | 9 ++
data/web/inc/functions.ratelimit.inc.php | 4 +-
data/web/inc/header.inc.php | 8 ++
data/web/index.php | 3 +
data/web/lang/lang.de.json | 9 ++
data/web/lang/lang.en.json | 9 ++
data/web/modals/mailbox.php | 2 +
11 files changed, 116 insertions(+), 70 deletions(-)
delete mode 100755 data/Dockerfiles/postfix/smtp_last_login.sh
diff --git a/data/Dockerfiles/postfix/smtp_last_login.sh b/data/Dockerfiles/postfix/smtp_last_login.sh
deleted file mode 100755
index 5fd0ac49..00000000
--- a/data/Dockerfiles/postfix/smtp_last_login.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-echo action=OK
-exit
-while read QUERY; do
- logger -t last_login -p mail.info "$QUERY"
-done
-echo action=OK
diff --git a/data/web/admin.php b/data/web/admin.php
index 96e4f189..783a9b87 100644
--- a/data/web/admin.php
+++ b/data/web/admin.php
@@ -117,10 +117,14 @@ if (!isset($_SESSION['gal']) && $license_cache = $redis->Get('LICENSE_STATUS_CAC
API
+
+
+
=$lang['admin']['api_info'];?>
+
@@ -156,7 +160,6 @@ if (!isset($_SESSION['gal']) && $license_cache = $redis->Get('LICENSE_STATUS_CAC
@@ -294,7 +297,7 @@ if (!isset($_SESSION['gal']) && $license_cache = $redis->Get('LICENSE_STATUS_CAC
@@ -703,7 +706,7 @@ if (!isset($_SESSION['gal']) && $license_cache = $redis->Get('LICENSE_STATUS_CAC
@@ -840,7 +843,7 @@ if (!isset($_SESSION['gal']) && $license_cache = $redis->Get('LICENSE_STATUS_CAC
-
+
@@ -885,7 +888,7 @@ if (!isset($_SESSION['gal']) && $license_cache = $redis->Get('LICENSE_STATUS_CAC
data-item="quota_notification"
data-id="quota_notification"
data-api-url='edit/quota_notification'
- data-api-attr='{}'>=$lang['user']['save_changes'];?>
+ data-api-attr='{}'> =$lang['user']['save_changes'];?>
@@ -965,8 +968,8 @@ if (!isset($_SESSION['gal']) && $license_cache = $redis->Get('LICENSE_STATUS_CAC
> =$lang['admin']['active'];?>
-
-
+
+
Get('LICENSE_STATUS_CAC
?>
-
+
-
+
diff --git a/data/web/edit.php b/data/web/edit.php
index 5187b552..f75ca2fc 100644
--- a/data/web/edit.php
+++ b/data/web/edit.php
@@ -382,6 +382,7 @@ if (isset($_SESSION['mailcow_cc_role'])) {
+
@@ -537,6 +538,7 @@ if (isset($_SESSION['mailcow_cc_role'])) {
+
@@ -833,6 +835,7 @@ if (isset($_SESSION['mailcow_cc_role'])) {
+
diff --git a/data/web/inc/footer.inc.php b/data/web/inc/footer.inc.php
index 99663434..b954bca8 100644
--- a/data/web/inc/footer.inc.php
+++ b/data/web/inc/footer.inc.php
@@ -182,13 +182,9 @@ $(document).ready(function() {