git subrepo commit mailcow/src/mailcow-dockerized

subrepo: subdir:   "mailcow/src/mailcow-dockerized"
  merged:   "308860af"
upstream: origin:   "https://github.com/mailcow/mailcow-dockerized.git"
  branch:   "master"
  commit:   "3f1a5af8"
git-subrepo: version:  "0.4.5"
  origin:   "???"
  commit:   "???"
Change-Id: I5d51c14b45db54fe706be40a591ddbfcea50d4b0
diff --git a/mailcow/src/mailcow-dockerized/data/web/queue.php b/mailcow/src/mailcow-dockerized/data/web/queue.php
new file mode 100644
index 0000000..ffce8d8
--- /dev/null
+++ b/mailcow/src/mailcow-dockerized/data/web/queue.php
@@ -0,0 +1,26 @@
+<?php
+require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
+
+if (!isset($_SESSION['mailcow_cc_role']) || $_SESSION['mailcow_cc_role'] != "admin") {
+  header('Location: /');
+  exit();
+}
+
+
+require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php';
+$js_minifier->add('/web/js/site/queue.js');
+$_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
+
+$role = ($_SESSION['mailcow_cc_role'] == "admin") ? 'admin' : 'domainadmin';
+
+$template = 'queue.twig';
+$template_data = [
+  'acl' => $_SESSION['acl'],
+  'acl_json' => json_encode($_SESSION['acl']),
+  'role' => $role,
+  'lang_admin' => json_encode($lang['admin']),
+  'lang_queue' => json_encode($lang['queue']),
+  'lang_datatables' => json_encode($lang['datatables'])
+];
+
+require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/footer.inc.php';