mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
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:
38
index.php
38
index.php
@@ -1,16 +1,28 @@
|
||||
<?php include("header.php"); ?>
|
||||
<?php
|
||||
|
||||
<!-- Breadcrumbs-->
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item">
|
||||
<a href="index.html">Dashboard</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item active">Blank Page</li>
|
||||
</ol>
|
||||
if(file_exists('config.php')){
|
||||
include("header.php");
|
||||
|
||||
<!-- Page Content -->
|
||||
<h1>Blank Page</h1>
|
||||
<hr>
|
||||
<p>This is a great starting point for new custom pages.</p>
|
||||
?>
|
||||
|
||||
<!-- Breadcrumbs-->
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item">
|
||||
<a href="index.html">Dashboard</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item active">Blank Page</li>
|
||||
</ol>
|
||||
|
||||
<?php include("footer.php"); ?>
|
||||
<!-- Page Content -->
|
||||
<h1>Blank Page</h1>
|
||||
<hr>
|
||||
<p>This is a great starting point for new custom pages.</p>
|
||||
|
||||
<?php
|
||||
include("footer.php");
|
||||
|
||||
}else{
|
||||
header("Location: setup.php");
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user