1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-12-23 02:04:46 +02:00
mailcow-dockerized/data/web/quarantine.php

28 lines
826 B
PHP
Raw Permalink Normal View History

2017-12-09 14:17:15 +02:00
<?php
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
2017-12-09 14:17:15 +02:00
if (!isset($_SESSION['mailcow_cc_role'])) {
header('Location: /');
exit();
}
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php';
2017-12-09 14:17:15 +02:00
$_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
$quarantine_settings = quarantine('settings');
$js_minifier->add('/web/js/site/quarantine.js');
$role = ($_SESSION['mailcow_cc_role'] == "admin") ? 'admin' : 'domainadmin';
$template = 'quarantine.twig';
$template_data = [
'acl' => $_SESSION['acl'],
'acl_json' => json_encode($_SESSION['acl']),
'role' => $role,
'quarantine_settings' => $quarantine_settings,
'lang_quarantine' => json_encode($lang['quarantine']),
'lang_datatables' => json_encode($lang['datatables']),
];
2017-12-09 14:17:15 +02:00
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/footer.inc.php';