foreach ($scriptsettings['ParamDescs'] as $param) {
                $struct['scriptsettings'][] = array('name' => $param['Name'], 'type' => $param['Type'], 'value' => $param['Default']);
            }
        }
    }
    // Maps
    $struct['startindex'] = 1;
    $maps = $_SESSION['adminserv']['matchset_maps_selected']['lst'];
    if (isset($maps) && is_array($maps) && !empty($maps)) {
        $mapsField = SERVER_VERSION_NAME == 'TmForever' ? 'challenge' : 'map';
        foreach ($maps as $id => $values) {
            $struct[$mapsField][$values['UId']] = $values['FileName'];
        }
    }
    // Enregistrement
    if (($result = AdminServ::saveMatchSettings($filename, $struct)) !== true) {
        AdminServ::error(Utils::t('Unable to save the MatchSettings') . ' : ' . $matchSettingName . ' (' . $result . ')');
    } else {
        $action = Utils::t('The MatchSettings "!matchSettingName" was successfully created in the folder', array('!matchSettingName' => $matchSettingName)) . ' : ' . $data['mapsDirectoryPath'] . $args['directory'];
        AdminServ::info($action);
        AdminServLogs::add('action', $action);
        Utils::redirection(false, '?p=' . USER_PAGE . $hasDirectory);
    }
} else {
    if (!isset($_GET['f'])) {
        unset($_SESSION['adminserv']['matchset_maps_selected']);
    }
}
// LECTURE
$data['directoryList'] = Folder::getArborescence($data['mapsDirectoryPath'], AdminServConfig::$MAPS_HIDDEN_FOLDERS, substr_count($data['mapsDirectoryPath'], '/'));
$data['matchSettings'] = array();