public static function Init($params) { try { $sql = new Database($params['db_user'], $params['db_password'], $params['db_db']); if ($sql) { $sql->SetCharset("utf8"); // $sql->Query("SELECT * FROM `SystemConfig` ORDER BY `s_param` ASC"); // while($r = $sql->Assoc()) // { // self::$Settings[$r['s_param']] = $r['s_value']; // } self::$sql = $sql; } else { throw new Exception('Error initializing SystemConfig'); } } catch (Exception $e) { throw new Exception('Exception in SystemConfig ' . $e->getMessage()); } }