blob: 4a537e503af671226a01e852df71ca1c07b2ff41 [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']),
24];
25
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010026require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/footer.inc.php';