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
+14 -2
View File
@@ -1,4 +1,9 @@
<?php include("header.php"); ?> <?php
if(file_exists('config.php')){
include("header.php");
?>
<!-- Breadcrumbs--> <!-- Breadcrumbs-->
<ol class="breadcrumb"> <ol class="breadcrumb">
@@ -13,4 +18,11 @@
<hr> <hr>
<p>This is a great starting point for new custom pages.</p> <p>This is a great starting point for new custom pages.</p>
<?php include("footer.php"); ?> <?php
include("footer.php");
}else{
header("Location: setup.php");
}
?>
+10
View File
@@ -1,5 +1,9 @@
<?php <?php
if(file_exists('config.php')){
header("Location: login.php");
}else{
include("functions.php"); include("functions.php");
if(isset($_POST['add_database'])){ if(isset($_POST['add_database'])){
@@ -450,3 +454,9 @@ if(isset($_POST['add_company_settings'])){
</body> </body>
</html> </html>
<?php
}
?>