Advertisement
cafreak

PHP Globals.php for installer

Oct 4th, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.43 KB | None | 0 0
  1. <?php
  2.     if(file_exists(dirname(__FILE__).'/lock')){
  3.         $errorCode = "SBBCE2";
  4.         $errorMessage = "[Simple Bulletin Board Custom Error #2] Installer Locked";
  5.         $errorFile = "Installer Directory";
  6.         $errorLine = "ALL";
  7.         include(dirname(dirname(__FILE__))."/includes/error.php");
  8.     }
  9.     if(!file_exists(dirname(dirname(__FILE__)).'/includes/config.php')){
  10.         $errorCode = "SBBCE1";
  11.         $errorMessage = "[Simple Bulletin Board Custom Error #1] Config not Found!";
  12.         $errorFile = "Installer Directory";
  13.         $errorLine = "ALL";
  14.         include(dirname(dirname(__FILE__))."/includes/error.php");
  15.     }
  16.    
  17.     if(!file_exists(dirname(dirname(__FILE__)).'/includes/functions_class.php')){
  18.         $errorCode = "SBBCE4";
  19.         $errorMessage = "[Simple Bulletin Board Custom Error #4] Functions not Found!";
  20.         $errorFile = "Installer Directory";
  21.         $errorLine = "ALL";
  22.         include(dirname(dirname(__FILE__))."/includes/error.php");
  23.     }
  24.    
  25.     if(!file_exists(dirname(dirname(__FILE__)).'/includes/mysql_database_pdo_class.php')){
  26.         $errorCode = "SBBCE3";
  27.         $errorMessage = "[Simple Bulletin Board Custom Error #3] Database class not Found!";
  28.         $errorFile = "Installer Directory";
  29.         $errorLine = "ALL";
  30.         include(dirname(dirname(__FILE__))."/includes/error.php");
  31.     }
  32.    
  33.         require(dirname(dirname(__FILE__)).'/includes/config.php');
  34.         require(dirname(dirname(__FILE__)).'/includes/functions_class.php');
  35.         require(dirname(dirname(__FILE__)).'/includes/mysql_database_pdo_class.php');
  36. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement