Add ability to customize login.php and index.php.

This commit is contained in:
Mark Crane
2013-02-10 02:12:23 +00:00
parent 19e01fc58c
commit 8e55371c6d
3 changed files with 161 additions and 124 deletions

View File

@@ -28,11 +28,14 @@ if (!file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php"))
header("Location: ".PROJECT_PATH."/resources/install.php");
exit;
}
require_once "includes/require.php";
require_once "includes/header.php";
echo "<br />";
echo "<br />";
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";
}
?>