// Set host name define('HOST', $_SERVER['HTTP_HOST']); // Load framework base functions include_once 'base.php'; // Set the PHP error reporting level. // @see http://php.net/error_reporting error_reporting(E_ALL & ~E_DEPRECATED); // Check if an installation folder is exists //if(file_exists(APPPATH.'install/index.php')) { //include_once APPPATH.'install/index.php'; //} // Set error handlers set_error_handler(array('Exception_Exido', 'handlerError')); set_exception_handler(array('Exception_Exido', 'handlerException')); // Initialize framework Exido::initialize(); // Load basic include paths Exido::setIncludePaths(); // You can attach a log writer by uncomment next line //Exido::$log->attach(new Log_File(APPPATH.'data/cache/log')); // Load additional components Component::load(); // Initialize loaded components Component::initialize(); // Include internalization languages //Exido::$i18n->attach(new I18n_File('en_US')); Exido::$i18n->attach(new I18n_File('ru_RU')); // Set application time zone. Depends on language loaded. // It's UTC default. // @see http://php.net/timezones date_default_timezone_set(__('__time_zone'));