mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Add a little additional formating for the index.php.
This commit is contained in:
30
index.php
30
index.php
@@ -24,18 +24,24 @@
|
|||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
*/
|
*/
|
||||||
include "root.php";
|
include "root.php";
|
||||||
if (!file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php")){
|
|
||||||
header("Location: ".PROJECT_PATH."/resources/install.php");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/index.php")){
|
//if config.php file does not exist then redirect to the install page
|
||||||
require_once "themes/".$_SESSION['domain']['template']['name']."/index.php";
|
if (!file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php")){
|
||||||
}
|
header("Location: ".PROJECT_PATH."/resources/install.php");
|
||||||
else {
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
//adds multiple includes
|
||||||
require_once "includes/require.php";
|
require_once "includes/require.php";
|
||||||
require_once "includes/header.php";
|
|
||||||
echo "<br /><br />\n";
|
//show the index page
|
||||||
require_once "includes/footer.php";
|
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/index.php")){
|
||||||
}
|
require_once "themes/".$_SESSION['domain']['template']['name']."/index.php";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
require_once "includes/require.php";
|
||||||
|
require_once "includes/header.php";
|
||||||
|
echo "<br /><br />\n";
|
||||||
|
require_once "includes/footer.php";
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user