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(); // Édition if (isset($_GET['f']) && $_GET['f'] != null) { $data['pageTitle'] = Utils::t('Edit'); $data['matchSettings']['name'] = $_GET['f']; $matchSettingsData = AdminServ::getMatchSettingsData($data['mapsDirectoryPath'] . $args['directory'] . $data['matchSettings']['name']); $data['gameInfos'] = array('curr' => null, 'next' => $matchSettingsData['gameinfos']); unset($matchSettingsData['gameinfos']); $data['matchSettings'] += $matchSettingsData; if (isset($data['matchSettings']['maps'])) { $maps = AdminServ::getMapListFromMatchSetting($data['matchSettings']['maps']); $data['matchSettings']['nbm'] = $maps['nbm']['count']; $_SESSION['adminserv']['matchset_maps_selected'] = $maps; } else { $data['matchSettings']['nbm'] = 0; } } else { $data['pageTitle'] = Utils::t('Create'); $data['matchSettings']['name'] = 'match_settings'; $gameInfos = AdminServ::getGameInfos(); $data['gameInfos'] = array('curr' => null, 'next' => $gameInfos['next']);