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