echo file_get_contents(PATH . 'system/admin/theme/error_config.php'); exit(1); } // Register the default timezone for the application. date_default_timezone_set(Config::get('application.timezone')); // set locale if (setlocale(LC_ALL, Config::get('application.language') . '.utf8') === false) { Log::warning('setlocate failed, please check your system has ' . Config::get('application.language') . ' installed.'); } // Register the PHP exception handler. set_exception_handler(array('Error', 'exception')); // Register the PHP error handler. set_error_handler(array('Error', 'native')); // Register the shutdown handler. register_shutdown_function(array('Error', 'shutdown')); /** Start session handler */ Session::start(); /** Handle routing */ Anchor::run(); /** Close and end session */ Session::end(); /** Output awesomeness! */ Response::send();