Check to see if config.php exists in header.php else redirect to setup.php, removed the else conditions as they were unessessary

This commit is contained in:
johnny@pittpc.com
2019-07-20 16:51:18 -04:00
parent 6f58034928
commit aa274ed5da
3 changed files with 428 additions and 442 deletions

View File

@@ -1,5 +1,9 @@
<?php
if(!file_exists('config.php')){
header("Location: setup.php");
}
include("config.php");
include("check_login.php");
include("vendor/Parsedown.php");

View File

@@ -1,9 +1,4 @@
<?php
if(file_exists('config.php')){
include("header.php");
?>
<?php include("header.php"); ?>
<!-- Breadcrumbs-->
<ol class="breadcrumb">
@@ -18,11 +13,4 @@ if(file_exists('config.php')){
<hr>
<p>This is a great starting point for new custom pages.</p>
<?php
include("footer.php");
}else{
header("Location: setup.php");
}
?>
<?php include("footer.php"); ?>

View File

@@ -2,7 +2,7 @@
if(file_exists('config.php')){
header("Location: login.php");
}else{
}
include("functions.php");
@@ -454,9 +454,3 @@ if(file_exists('config.php')){
</body>
</html>
<?php
}
?>