diff --git a/.installed b/.installed new file mode 100644 index 0000000..e69de29 diff --git a/queue_bootstrap.php b/queue_bootstrap.php index ee6eaa8..263a45f 100644 --- a/queue_bootstrap.php +++ b/queue_bootstrap.php @@ -6,11 +6,11 @@ if (session_status() !== PHP_SESSION_ACTIVE) { } $publicPages = ["login.php", "logout.php", "install.php", "display.php", "ticket.php"]; $currentPage = basename((string) ($_SERVER["PHP_SELF"] ?? "index.php")); -if (false && !file_exists(__DIR__ . "/.installed") && $currentPage !== "install.php") { +if (!file_exists(__DIR__ . "/.installed") && $currentPage !== "install.php") { header("Location: install.php"); exit; } -if (file_exists(__DIR__ . "/.installed") && !in_array($currentPage, $publicPages, true)) { +if (!in_array($currentPage, $publicPages, true)) { if (empty($_SESSION["user_id"])) { header("Location: login.php"); exit;