/** * Load settings from tables in the conf file */ public static function loadDBSettings() { $site = $_SERVER["SERVER_NAME"] == "" ? $_SERVER["argv"][1] : $_SERVER["SERVER_NAME"]; //if (!Registry::get("CACHE_ENABLED") || false === ($settings = Cache::mch()->get($site."config"))) { $databaseSettings = Registry::get("DATABASE_SETTING"); if (is_array($databaseSettings)) { foreach ($databaseSettings as $table) { try { Registry::loadFromDB($table); } catch (Exception $ex) { } } } // if (Registry::get("CACHE_ENABLED")) { // Cache::mch()->set($site."config", self::$settings); // } // } // else { // Registry::$settings = $settings; // } }