***************************************************************/ include 'core/class.config.php'; $Config = new Config(); include 'core/core.php'; $Core = new Core(); /*************************************************************** * Show Site Notice if enabled in config, and user cookie not set ***************************************************************/ if ($Config->get('site_notice_enable') == 1 && !isset($_COOKIE['agreement_accepted'])) { include 'modules/notice/notice.php'; exit; } /*************************************************************** * See if the site is installed by checking config defualts ***************************************************************/ if ($Config->getDbInfo('db_username') == 'default') { header('location: install/'); } /*************************************************************** * Include the site functions and classes ***************************************************************/ include 'core/common.php'; // Holds most of the sites common functions include 'core/class.template.php'; // Sets up the template system include 'core/SDL/class.account.php'; // contains account related scripts and functions /*************************************************************** * Set the site globals, selected realm, language etc etc ***************************************************************/ $Core->setGlobals();