Add a little additional formating for the index.php.
This commit is contained in:
parent
55b003bd20
commit
3af809eb98
|
|
@ -24,11 +24,17 @@
|
|||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
include "root.php";
|
||||
|
||||
//if config.php file does not exist then redirect to the install page
|
||||
if (!file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php")){
|
||||
header("Location: ".PROJECT_PATH."/resources/install.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
//adds multiple includes
|
||||
require_once "includes/require.php";
|
||||
|
||||
//show the index page
|
||||
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/index.php")){
|
||||
require_once "themes/".$_SESSION['domain']['template']['name']."/index.php";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue