Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Define the core paths
- // Define them as absolute paths to make sure that require_once works as expected
- // DIRECTORY_SEPARATOR is a PHP pre-defined constant
- // (\ for Windows, / for Unix)
- defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);
- $rootLocationArray = explode(DS, $_SERVER['SCRIPT_NAME']);
- $rootLocation = $rootLocationArray[1];
- defined('SITE_ROOT') ? null : define('SITE_ROOT', $_SERVER['DOCUMENT_ROOT']);
- // define('SITE_ROOT', realpath('../'));
- //define('SITE_ROOT', '/var/www/cspum');
- defined('LIB_PATH') ? null : define('LIB_PATH', SITE_ROOT . DS . $rootLocation . DS . 'classes' . DS);
- defined('APP_PATH') ? null : define('APP_PATH', SITE_ROOT . DS . $rootLocation . DS);
- // Add include path to PHP.ini
- $path = array(
- LIB_PATH,
- SITE_ROOT . DS . $rootLocation . DS . 'includes',
- get_include_path()
- );
- set_include_path(implode(PATH_SEPARATOR, $path));
- ini_set('magic_quotes_gpc', 0);
- // load config file first
- require_once('constants.php');
- // FirePHPCore
- @include('FirePHP.class.php');
- @include('fb.php');
- // load basic functions next so that everything after can use them
- require_once('functions.php');
- // load core objects
- require_once('KLogger.php');
- require_once('Others.php');
- require_once('ClassAbstract.php');
- require_once('class.phpmailer.php');
- require_once('class.smtp.php');
- //require_once(LIB_PATH.DS.'pagination.php');
- //require_once(LIB_PATH.DS."phpMailer".DS."phpmailer.inc.php");
- //require_once(LIB_PATH.DS."phpMailer".DS."smtp.inc.php");
- //require_once(LIB_PATH.DS."phpMailer".DS."language".DS."phpmailer.lang-en.php");
- // load database-related classes
- require_once('Mysql.php');
- require_once('Membership.php');
- //require_once('user.php');
- //require_once('photograph.php');
- //require_once('comment.php');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement