If config.php exists redirect setup.php to login.php, if login doesn't exist redirect index.php to setup.php

This commit is contained in:
johnny@pittpc.com
2019-07-20 16:45:00 -04:00
parent 8ca2b833e6
commit 6f58034928
2 changed files with 424 additions and 402 deletions

View File

@@ -1,16 +1,28 @@
<?php include("header.php"); ?>
<?php
<!-- Breadcrumbs-->
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="index.html">Dashboard</a>
</li>
<li class="breadcrumb-item active">Blank Page</li>
</ol>
if(file_exists('config.php')){
include("header.php");
<!-- Page Content -->
<h1>Blank Page</h1>
<hr>
<p>This is a great starting point for new custom pages.</p>
?>
<!-- Breadcrumbs-->
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="index.html">Dashboard</a>
</li>
<li class="breadcrumb-item active">Blank Page</li>
</ol>
<?php include("footer.php"); ?>
<!-- Page Content -->
<h1>Blank Page</h1>
<hr>
<p>This is a great starting point for new custom pages.</p>
<?php
include("footer.php");
}else{
header("Location: setup.php");
}
?>