private static function parse_config( $config_name ) {
		global $pgIP;
		if( !is_file( $config_name ) ) {
			if( !is_file( $pgIP . 'Configs/' . $config_name . '.cfg' ) ) {
				throw new BadEntryError( "BadConfig", "A non-existent configuration file was specified." );
			} else {
				$config_name = $pgIP . 'Configs/' . $config_name . '.cfg';
			}
		}

		$config_params = parse_ini_file( $config_name );

		if( isset( $config_params['useconfig'] ) ) {
			$config_params = $config_params + self::parse_config( $config_params['useconfig'] );
		}

		return $config_params;
	}