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:
@@ -1,4 +1,9 @@
|
||||
<?php include("header.php"); ?>
|
||||
<?php
|
||||
|
||||
if(file_exists('config.php')){
|
||||
include("header.php");
|
||||
|
||||
?>
|
||||
|
||||
<!-- Breadcrumbs-->
|
||||
<ol class="breadcrumb">
|
||||
@@ -13,4 +18,11 @@
|
||||
<hr>
|
||||
<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");
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user