blob: 8e0635deda735fe78ce213392c6dfee2e70a076d [file] [log] [blame]
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01001<?php
2require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
3
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01004if (!isset($_SESSION['mailcow_cc_role'])) {
5 header('Location: /');
6 exit();
7}
8
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01009require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php';
10$_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020011$quarantine_settings = quarantine('settings');
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010012
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010013$js_minifier->add('/web/js/site/quarantine.js');
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010014
15$role = ($_SESSION['mailcow_cc_role'] == "admin") ? 'admin' : 'domainadmin';
16
17$template = 'quarantine.twig';
18$template_data = [
19 'acl' => $_SESSION['acl'],
20 'acl_json' => json_encode($_SESSION['acl']),
21 'role' => $role,
22 'quarantine_settings' => $quarantine_settings,
23 'lang_quarantine' => json_encode($lang['quarantine']),
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010024 'lang_datatables' => json_encode($lang['datatables']),
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010025];
26
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010027require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/footer.inc.php';