function getDBConfig($type) { if (!self::$dbConfig) { require 'config/config.db.php'; self::$dbConfig = $dbConfig; } if (self::$dbConfig[$type]['db_server'] != '_SERVER_') { return self::$dbConfig[$type]; } return self::$dbConfig['base']; }