From d978911b7d3433d4f269e643d36c5579dbb0f539 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 9 Feb 2023 20:13:57 -0500 Subject: [PATCH] Updated index.php to act as a redirector if config.php exits redirect to login if it doesnt then goto setup --- index.php | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/index.php b/index.php index befca16e..a9fc6b8a 100644 --- a/index.php +++ b/index.php @@ -1,13 +1,10 @@ - - - + -

Blank Page

-
- \ No newline at end of file +if (file_exists("config.php")) { + header("Location: login.php"); + +} else { + header("Location: setup.php"); +} + +?> \ No newline at end of file