Advertisement
Script47

Untitled

Feb 21st, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.99 KB | None | 0 0
  1. <?php
  2.  
  3. include 'config/pdo.config.php';
  4. include 'functions/functions.php';
  5.  
  6. $functions = new functions();
  7.  
  8. $installed = FALSE;
  9. $CMSName = '';
  10. $CMSOwner = '';
  11. $CMSAbout = '';
  12. $CMSType = '';
  13.  
  14. include 'modules/header/index.php';
  15.  
  16. if(!isset($CMSName) || !isset($CMSOwner) || !isset($CMSAbout) || !isset($CMSType) || empty($CMSName) || empty($CMSOwner) || empty($CMSAbout) || empty($CMSType) || $installed === FALSE) {
  17.     header("Location: install/installer.php");
  18. }
  19.  
  20. $year = date('Y');
  21.  
  22. if($installed === FALSE && isset($_GET['module'])) {
  23.     header("Location: install/installer.php");
  24. } else if(isset($_GET['module']) && file_exists('modules/'.$_GET['module'].'/index.php')) {
  25.     $module = htmlspecialchars($_GET['module']);
  26.     include 'modules/'.$module.'/index.php';
  27. } else if(isset ($module) && !file_exists('modules/'.$module.'/index.php')){
  28.     include 'modules/default/index.php';
  29. } else {
  30.     include 'modules/default/index.php';  
  31. }
  32.  
  33. include 'modules/footer/index.php';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement