2017-12-09 14:17:15 +02:00
|
|
|
<?php
|
2018-10-11 11:59:23 +02:00
|
|
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
|
2017-12-09 14:17:15 +02:00
|
|
|
|
2021-09-22 20:47:10 +02:00
|
|
|
if (!isset($_SESSION['mailcow_cc_role'])) {
|
|
|
|
header('Location: /');
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
|
2018-10-11 11:59:23 +02:00
|
|
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php';
|
2017-12-09 14:17:15 +02:00
|
|
|
$_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
|
2021-02-20 09:01:23 +02:00
|
|
|
$quarantine_settings = quarantine('settings');
|
2021-09-22 20:47:10 +02:00
|
|
|
|
2019-01-31 16:45:31 +02:00
|
|
|
$js_minifier->add('/web/js/site/quarantine.js');
|
2021-09-22 20:47:10 +02:00
|
|
|
|
|
|
|
$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']),
|
2022-05-19 15:06:18 +02:00
|
|
|
'lang_datatables' => json_encode($lang['datatables']),
|
2021-09-22 20:47:10 +02:00
|
|
|
];
|
|
|
|
|
2017-12-09 14:17:15 +02:00
|
|
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/footer.inc.php';
|