queue.php 799 B

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