Herausforderungen |
Clan herausfordern |
|
Clan |
Datum |
Typ |
Anzahl |
Status |
Keine';
} else {
foreach ($open_challenge_requests as $challenge) {
$requester_clan = getClan($challenge['clan_requester']);
$challenged_clan = getClan($challenge['clan_challenged']);
//unterscheidung zwischen herausforder und herausgeforderter
if($user_clan['id'] == $challenge['clan_requester']) {
echo '
'.$challenged_clan['clanname'].' | '.formatTimestamp($challenge['challenged_time']).' | ';
echo ''.getFightType($challenge['type']).' | '.$challenge['anzahl_chars'].' | ';
echo 'ausstehend (zurückziehen) |
';
} else {
echo ''.$requester_clan['clanname'].' | '.formatTimestamp($challenge['challenged_time']).' | ';
echo ''.getFightType($challenge['type']).' | '.$challenge['anzahl_chars'].' | ';
echo 'annehmen |';
echo 'ablehnen |
';
}
}
}
?>
offene Herausforderungen |
Keine';
} else {
foreach ($open_challenge_ids as $oci) {
$participating_clan_ids = getParticipatingClanIDs($oci);
foreach ($participating_clan_ids as $pci)
if($pci != $user_clan['id']) {
$challenged_clan = getClan($pci);
echo '
';
echo ' '.$challenged_clan['clanname'].' | ';
echo ''.anzeigen.' | ';
if($authorized) {
echo ''.abbrechen.' | ';
}
echo '
';
}
}
}
?>
Laufende Herausforderungen |
Keine';
} else {
foreach ($active_clan_challange_ids as $acci) {
$participating_clan_ids = getParticipatingClanIDs($acci);
foreach ($participating_clan_ids as $pci)
if($pci != $user_clan['id']) {
$challenged_clan = getClan($pci);
echo ' '.$challenged_clan['clanname'].' | ';
echo ''.anzeigen.' |
';
}
}
}
?>
Beendete Herausforderungen |
Keine';
} else {
if($count > 20) {
$max = 20;
} else {
$max = $count;
}
for ($i = 0; $i < $max; $i++) {
$participating_clan_ids = getParticipatingClanIDs($old_challenge_ids[$i]);
$old_challenge = getChallenge($old_challenge_ids[$i]);
foreach ($participating_clan_ids as $pci)
if($pci != $user_clan['id']) {
$challenged_clan = getClan($pci);
echo '
'.$challenged_clan['clanname'].' | ';
echo '' .formatTimestamp($old_challenge['date'] ).' | ';
echo ''.anzeigen.' |
';
}
}
}
?>