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-->
|
<!-- 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");
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
@@ -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
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
Reference in New Issue
Block a user