protected static function showMaintenance() { if (Config::get("maintenance.maintenanceEvent") == "string") { echo Config::get("maintenance.maintenanceResponse"); } else { if (Config::get("maintenance.maintenanceEvent") == "link") { Url::redirect(Config::get("maintenance.maintenanceResponse")); } } }
/** * Init Framework classes */ protected static function ini() { Alias::ini(self::$root); Sys::ini(); Url::ini(); Path::ini(); Template::run(); Faker::ini(); Links::ini(); Errors::ini(self::$root); License::ini(self::$page); //langues Lang::setReplaceBlankTranslationBy(Lang::REPLACE_BY_BLANK); Lang::setReplaceNonExistingTranslationBy(Lang::REPLACE_BY_KEY_TRANSLATE_ME); Lang::initLanguage(); Database::ini(); Auth::ini(); Plugins::ini(); Widgets::ini(); }