mirror of
https://github.com/itflow-org/itflow
synced 2026-03-22 05:25:39 +00:00
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:
@@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
if(!file_exists('config.php')){
|
||||||
|
header("Location: setup.php");
|
||||||
|
}
|
||||||
|
|
||||||
include("config.php");
|
include("config.php");
|
||||||
include("check_login.php");
|
include("check_login.php");
|
||||||
include("vendor/Parsedown.php");
|
include("vendor/Parsedown.php");
|
||||||
|
|||||||
16
index.php
16
index.php
@@ -1,9 +1,4 @@
|
|||||||
<?php
|
<?php include("header.php"); ?>
|
||||||
|
|
||||||
if(file_exists('config.php')){
|
|
||||||
include("header.php");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<!-- Breadcrumbs-->
|
<!-- Breadcrumbs-->
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
@@ -18,11 +13,4 @@ if(file_exists('config.php')){
|
|||||||
<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
|
<?php include("footer.php"); ?>
|
||||||
include("footer.php");
|
|
||||||
|
|
||||||
}else{
|
|
||||||
header("Location: setup.php");
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
if(file_exists('config.php')){
|
if(file_exists('config.php')){
|
||||||
header("Location: login.php");
|
header("Location: login.php");
|
||||||
}else{
|
}
|
||||||
|
|
||||||
include("functions.php");
|
include("functions.php");
|
||||||
|
|
||||||
@@ -454,9 +454,3 @@ if(file_exists('config.php')){
|
|||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
<?php
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
Reference in New Issue
Block a user