Configs::load('db_queryes'); // Load Access levels config file Configs::load('access_levels'); // Load Statistics config file Configs::load('statistics'); // Load Vote System config file Configs::load('vote_system'); // Load Donate System config file Configs::load('donate_system'); // Load Shop config file Configs::load('shop'); if (!$GLOBALS['CONFIG_DEV_DEBUG']) { error_reporting(0); @ini_set(‘display_errors’, 0); } @(require_once sep_path(CMS_DIR . '/libraries/language.class.inc')); @(require_once sep_path(CMS_DIR . '/libraries/template.class.inc')); @(require_once sep_path(CMS_DIR . '/libraries/account.class.inc')); @(require_once sep_path(CMS_DIR . '/libraries/content.class.inc')); @(require_once sep_path(CMS_DIR . '/libraries/mail.class.inc')); try { // Instantiate Main class $main = new Main(isset($_GET['page']) ? $_GET['page'] : $GLOBALS['CONFIG_DEFAULT_PAGE']); // Now we are just loading the web page $main->load(); // After page loaded, we must unload it (close mysql/mssql connections etc) unset($main); } catch (Dragon_Eye_Exception $e) { echo $e->errorMSG(); return false; }