diff --git a/ag/clan/kampf_info.php b/ag/clan/kampf_info.php index db36287..bdd0af8 100644 --- a/ag/clan/kampf_info.php +++ b/ag/clan/kampf_info.php @@ -358,6 +358,70 @@ function getFightType($id) { } } +function displayClanFightMenuWithClanLocked($user) { + $user_clan = getClan($user['clan']); + $active_clan_challange_ids = getActiveChallengeIDs($user_clan['id']); + $old_challenge_ids = getHistoricalChallengeIDs($user_clan['id']); + ?> +
+ + + + + + + + + + + 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 ''; + //TODO: hier muss javascript fenster aufgerufen werden + echo ''; + } + } + } + ?> + + + + + Keine'; + } else { + foreach ($old_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 ''; + } + } + } + ?> + +
Herausforderungen
Dein Clan ist leider dezeit Blockiert ( = 86400) { // 24*60*60 + echo 'Voraussetzungen nicht erfüllt!!'; + } else { + echo generateTimerHtml('blubb', $time, 'Blockade beenden'); + } + ?>)
Laufende Herausforderungen
'.$challenged_clan['clanname'].''.anzeigen.'
Beendete Herausforderungen
'.$challenged_clan['clanname'].''.anzeigen.'
+
+ diff --git a/ag/include/clan_fights.inc.php b/ag/include/clan_fights.inc.php index cc63ec1..cd08b80 100644 --- a/ag/include/clan_fights.inc.php +++ b/ag/include/clan_fights.inc.php @@ -427,6 +427,9 @@ function getParticipatingCharIDs($clan_challenge_id, $clan_id) { } function getClanLockedTime($clan_id) { + if(!isClanLocked($clan_id)) { + return 0; + } $sql = 'SELECT TIMESTAMPDIFF(SECOND, NOW(), locked_until) FROM clan_locked WHERE clanid = ' . $clan_id; $row = mysql_fetch_row(mysql_query($sql)); if($row) diff --git a/ag/include/designfunctions.inc.php b/ag/include/designfunctions.inc.php index 0c94884..7ef3275 100644 --- a/ag/include/designfunctions.inc.php +++ b/ag/include/designfunctions.inc.php @@ -166,7 +166,7 @@ function displayCount($value){ function generateTimerHtml($timerId, $timeInSeconds, $htmlOnExpire) { ?> -
+ -
+