Updated index.php to act as a redirector if config.php exits redirect to login if it doesnt then goto setup

This commit is contained in:
johnnyq 2023-02-09 20:13:57 -05:00
parent 27b7dc1cce
commit d978911b7d
1 changed files with 9 additions and 12 deletions

View File

@ -1,13 +1,10 @@
<?php include("inc_all.php"); ?>
<!-- Breadcrumbs-->
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="index.php">Dashboard</a>
</li>
<li class="breadcrumb-item active">Blank Page</li>
</ol>
<?php
<!-- Page Content -->
<h1>Blank Page</h1>
<hr>
<?php include("footer.php"); ?>
if (file_exists("config.php")) {
header("Location: login.php");
} else {
header("Location: setup.php");
}
?>