quarantine.php 826 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
  3. if (!isset($_SESSION['mailcow_cc_role'])) {
  4. header('Location: /');
  5. exit();
  6. }
  7. require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php';
  8. $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
  9. $quarantine_settings = quarantine('settings');
  10. $js_minifier->add('/web/js/site/quarantine.js');
  11. $role = ($_SESSION['mailcow_cc_role'] == "admin") ? 'admin' : 'domainadmin';
  12. $template = 'quarantine.twig';
  13. $template_data = [
  14. 'acl' => $_SESSION['acl'],
  15. 'acl_json' => json_encode($_SESSION['acl']),
  16. 'role' => $role,
  17. 'quarantine_settings' => $quarantine_settings,
  18. 'lang_quarantine' => json_encode($lang['quarantine']),
  19. 'lang_datatables' => json_encode($lang['datatables']),
  20. ];
  21. require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/footer.inc.php';