if ($tournament['teamplayer'] == 1) { $_POST['team_name'] = ""; } if ($_POST["set_password"] and $_POST["set_password"] != $_POST["set_password2"]) { $error["set_password2"] = t('Die Passworteingaben stimmen nicht überein'); } if ($_POST['team_name'] == "" and $tournament['teamplayer'] > 1) { $error["team_name"] = t('Bitte gib einen Teamnamen ein, oder wähle ein vorhandenes Team aus'); } if (count($error) == 0) { $success = $tteam->create($_GET["tournamentid"], $auth["userid"], $_POST['team_name'], $_POST["set_password"], $_POST['team_comment'], "team_banner"); } } if (count($error) == 0 and $success) { // Update-League-IDs $tteam->UpdateLeagueIDs($auth["userid"], $_POST["wwclid"], $_POST["wwclclanid"], $_POST["nglid"], $_POST["nglclanid"], $_POST["lgzid"], $_POST["lgzclanid"]); $func->confirmation(t('Du wurdest zum Turnier %1 erfolgreich hinzugefügt', $tournament["name"]), "index.php?mod=tournament2&action=details&tournamentid={$tournamentid}"); } $sec->lock("t_join"); } if (count($error) > 0) { $_GET['step']--; } break; } switch ($_GET["step"]) { case 2: $sec->unlock("t_join"); $dsp->NewContent(t('Zum Turnier %1 anmelden', $tournament['name']), t('Mit Hilfe des folgenden Formulars kannst du ein Team zu einem Turnier anmelden.')); $dsp->SetForm("index.php?mod=tournament2&action=join&step=3&tournamentid={$tournamentid}", "", "", "multipart/form-data"); if ($tournament['teamplayer'] == 1 or $tournament['blind_draw'] == 1) {