Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'config/pdo.config.php';
- include 'functions/functions.php';
- $functions = new functions();
- $installed = FALSE;
- $CMSName = '';
- $CMSOwner = '';
- $CMSAbout = '';
- $CMSType = '';
- include 'modules/header/index.php';
- if(!isset($CMSName) || !isset($CMSOwner) || !isset($CMSAbout) || !isset($CMSType) || empty($CMSName) || empty($CMSOwner) || empty($CMSAbout) || empty($CMSType) || $installed === FALSE) {
- header("Location: install/installer.php");
- }
- $year = date('Y');
- if($installed === FALSE && isset($_GET['module'])) {
- header("Location: install/installer.php");
- } else if(isset($_GET['module']) && file_exists('modules/'.$_GET['module'].'/index.php')) {
- $module = htmlspecialchars($_GET['module']);
- include 'modules/'.$module.'/index.php';
- } else if(isset ($module) && !file_exists('modules/'.$module.'/index.php')){
- include 'modules/default/index.php';
- } else {
- include 'modules/default/index.php';
- }
- include 'modules/footer/index.php';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement