Better logic handling for the default page redirects

This commit is contained in:
wrongecho
2025-09-08 15:40:59 +01:00
parent c016b67c3a
commit 8c0d542d7d
4 changed files with 8 additions and 13 deletions

View File

@@ -2,12 +2,9 @@
if (file_exists("config.php")) {
//require_once "includes/check_login.php";
if (isset($config_start_page)) {
header("Location: /user/$config_start_page");
} else {
header("Location: /user");
}
header("Location: /user/$config_start_page");
} else {
header("Location: /setup");
exit();