From 2808b801bb8856854719dc4718dcdbeeaf7c6781 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Wed, 1 Apr 2026 04:41:54 +0000 Subject: [PATCH] update login --- .installed | 0 queue_bootstrap.php | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 .installed 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;