'; echo 'zurück'; } function displayDenyChallenge($clan_id) { if(!is_numeric($clan_id)) { displayErrorMessage(NULL, 'Wollte da jemand schummeln? ;)', displayHistoryBackLink()); return; } ?>
Herausforderung wirklich ablehnen?
ja';?> nein';?>
'; echo ''; if($other_clan_chars[$i] != null) { echo ''; } else { echo ''; } echo ''; } ?> '; echo ''; if($user_clan_chars[$i] != null) { $char = getChar($user_clan_chars[$i]); echo ''; if(isUserOwnerOf($user['id'], $char['id'])) { echo ''; } } else { echo ''; $slots[] = $i; } echo ''; } ?>
Slot '.$i.'besetztfrei
Slot '.$i.''.$char['name'].'abmeldenfrei
Teilnahme
Charakter:
Slot:
zurück';?>
'; echo 'KampfAnsehen'; foreach($fight_ids as $fight_id) { $event_fight = getEventFight($event_id, $fight_id); $round_data = getEventFightRoundData($event_id, $event_fight['event_fight_id'], 0); // get participants of fight $host_char_id = NULL; $guest_char_id = NULL; foreach($round_data as $key => $value) { if($event_fight['host'] == $key) { $host_char_id = $key; } else { $guest_char_id = $key; } } // Key now lets read out the event_chars ... $host_char = getEventChar($event_id, $host_char_id); $guest_char = getEventChar($event_id, $guest_char_id); // TODO: Check if the fight is already "visible" echo ''; echo ''; if($host_char['char_id'] !== NULL) echo displayCharLink($host_char['char_id'], $host_char['char_name']); else echo $host_char['char_name']; echo ' vs. '; if($guest_char['char_id'] !== NULL) echo displayCharLink($guest_char['char_id'], $guest_char['char_name']); else echo $guest_char['char_name']; echo ''; echo 'anschauen'; echo ''; } echo ''; } function displayJoinChallenge($user, $clan_challenge_id, $char_id, $slot) { $success = joinChallenge($clan_challenge_id, $user, $char_id, $slot); if($success != null) { displayErrorMessage(NULL, $success, displayHistoryBackLink()); exit; } else { echo 'Der Charakter wurde erfoglreich angemeldet.

'; echo 'zurück'; } } function displayLeaveChallenge($user, $clan_challenge_id, $char_id) { $user_clan = getClan($user['clan']); $open_challenge_ids = getOpenChallengeIDs($user_clan['id']); if(!in_array($clan_challenge_id, $open_challenge_ids)) { displayErrorMessage(NULL, 'Wollte da jemand schummeln? ;)', displayHistoryBackLink()); exit; } $success = leaveChallenge($clan_challenge_id, $user, $char_id); if($success != null) { displayErrorMessage(NULL, $success, displayHistoryBackLink()); exit; } else { echo 'Der Charakter wurde erfoglreich abgemeldet.

'; echo 'zurück'; } } function getFightType($id) { switch ($id) { case DAVY_BACK_FIGHT: return 'Davy Back'; case SURVIVAL: return 'Survival'; default: return 'unbekannt'; } } function displayClanFightMenu($user) { $user_clan = getClan($user['clan']); $clans_tmp = getClanFightCapableClanIds(); foreach ($clans_tmp as $clan_tmp_id) { if($user['clan'] != $clan_tmp_id) { $clans[] = getClan($clan_tmp_id); } } $open_challenge_requests = getOpenChallengeRequests($user_clan['id']); $open_challenge_ids = getOpenChallengeIDs($user_clan['id']); $old_challenge_ids = getHistoricalChallengeIDs($user_clan['id']); ?>
'; echo ''; echo ''; echo ''; } } } ?> '; echo ''; echo ''; echo ''; } } } ?>
Herausforderungen
Clan herausfordern
'; echo ''; echo ''; } ?>
Herausforderer Datum Typ Anzahl Option
'.$clan['clanname'].''.formatTimestamp($challenge['challenged_time']).''.getFightType($challenge['type']).''.$challenge['anzahl_chars'].'annehmen |'; echo 'ablehnen
offene Herausforderungen
Keine '.$challenged_clan['clanname'].''.anzeigen.'
Beendete Herausforderungen
Keine '.$challenged_clan['clanname'].''.anzeigen.'