[Web] Show quarantine settings in /quarantine
parent
5eb2df542b
commit
a95cad7133
|
@ -798,6 +798,7 @@
|
||||||
"danger": "Gefahr",
|
"danger": "Gefahr",
|
||||||
"deliver_inbox": "In Posteingang zustellen",
|
"deliver_inbox": "In Posteingang zustellen",
|
||||||
"disabled_by_config": "Die derzeitige Konfiguration deaktiviert die Funktion des Quarantäne-Systems. Zur Funktion muss eine Anzahl an Rückhaltungen pro Mailbox sowie ein Limit für die maximale Größe pro Element definiert werden.",
|
"disabled_by_config": "Die derzeitige Konfiguration deaktiviert die Funktion des Quarantäne-Systems. Zur Funktion muss eine Anzahl an Rückhaltungen pro Mailbox sowie ein Limit für die maximale Größe pro Element definiert werden.",
|
||||||
|
"settings_info": "Maximale Anzahl der zurückgehaltenen E-Mails: %s<br>Maximale Größe einer zu speichernden E-Mail: %s MiB",
|
||||||
"download_eml": "Herunterladen (.eml)",
|
"download_eml": "Herunterladen (.eml)",
|
||||||
"empty": "Keine Einträge",
|
"empty": "Keine Einträge",
|
||||||
"high_danger": "Hoch",
|
"high_danger": "Hoch",
|
||||||
|
|
|
@ -799,6 +799,7 @@
|
||||||
"danger": "Danger",
|
"danger": "Danger",
|
||||||
"deliver_inbox": "Deliver to inbox",
|
"deliver_inbox": "Deliver to inbox",
|
||||||
"disabled_by_config": "The current system configuration disables the quarantine functionality. Please set \"retentions per mailbox\" and a \"maximum size\" for quarantine elements.",
|
"disabled_by_config": "The current system configuration disables the quarantine functionality. Please set \"retentions per mailbox\" and a \"maximum size\" for quarantine elements.",
|
||||||
|
"settings_info": "Maximum amount of elements to be quarantined: %s<br>Maximum email size: %s MiB",
|
||||||
"download_eml": "Download (.eml)",
|
"download_eml": "Download (.eml)",
|
||||||
"empty": "No results",
|
"empty": "No results",
|
||||||
"high_danger": "High",
|
"high_danger": "High",
|
||||||
|
|
|
@ -4,7 +4,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
|
||||||
if (isset($_SESSION['mailcow_cc_role'])) {
|
if (isset($_SESSION['mailcow_cc_role'])) {
|
||||||
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php';
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php';
|
||||||
$_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
|
$_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
|
||||||
|
$quarantine_settings = quarantine('settings');
|
||||||
?>
|
?>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -30,11 +30,16 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
|
||||||
<p style="margin:10px" class="help-block"><?=$lang['quarantine']['qinfo'];?></p>
|
<p style="margin:10px" class="help-block"><?=$lang['quarantine']['qinfo'];?></p>
|
||||||
<p style="margin:10px">
|
<p style="margin:10px">
|
||||||
<?php
|
<?php
|
||||||
if (empty(quarantine('settings')['retention_size']) || empty(quarantine('settings')['max_size'])):
|
if (empty($quarantine_settings['retention_size'] || $quarantine_settings['max_size'])) {
|
||||||
?>
|
?>
|
||||||
<div class="panel-body"><div class="alert alert-info"><?=$lang['quarantine']['disabled_by_config'];?></div></div>
|
<div class="panel-body"><div class="alert alert-info"><?=$lang['quarantine']['disabled_by_config'];?></div></div>
|
||||||
<?php
|
<?php
|
||||||
endif;
|
}
|
||||||
|
else {
|
||||||
|
?>
|
||||||
|
<p style="margin:10px" class="help-block"><?=sprintf($lang['quarantine']['settings_info'], $quarantine_settings['retention_size'], $quarantine_settings['max_size']);?></p>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</p>
|
</p>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
|
|
Loading…
Reference in New Issue