diff --git a/ag/clan/kampf_info.php b/ag/clan/kampf_info.php
index 4ea4043..34c751d 100644
--- a/ag/clan/kampf_info.php
+++ b/ag/clan/kampf_info.php
@@ -9,6 +9,7 @@
include_once(ROOT_PATH.'/include/clan.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
+include_once(ROOT_PATH.'/include/char.inc.php');
//Get-Section
if(isset($_GET['action'])) {
@@ -18,8 +19,20 @@ if(isset($_GET['action'])) {
}
$challangedclan_id = validateUnsignedInteger($_GET['challangedclan_id'], null);
$inquirychallenge_clanid = validateUnsignedInteger($_GET['clanid'], null);
+$clan_challange_id = validateUnsignedInteger($_GET['challenge'], null);
+$char_id = validateUnsignedInteger($_GET['char'], null);
//unkritisch
+if($action == null) {
+ $action = $_POST['action'];
+}
+if($char_id == null) {
+ $char_id = validateUnsignedInteger($_POST['char'], null);
+}
+$slot = validateUnsignedInteger($_POST['slot'], null);
+if($clan_challange_id == null) {
+ $clan_challange_id = validateUnsignedInteger($_POST['challenge'], null);
+}
function displayChallengeClan($user, $clan_id) {
if($clan_id == -1 || $clan_id == NULL) {
@@ -49,7 +62,7 @@ function displayChallengeAccepted($user, $clan_id) {
}
acceptChallengeRequest($clan_id, $user);
echo 'Herausforderung wurde angenommen!
';
- echo displayHistoryBackLink();
+ echo 'zurück';
}
function displayDenyChallenge($clan_id) {
@@ -63,13 +76,150 @@ function displayDenyChallenge($clan_id) {
Option | '.$clan['clanname'].' | '.formatTimestamp($challenge['challenged_time']).' | '; echo ''.getFightType($challenge['type']).' | '.$challenge['anzahl_chars'].' | '; @@ -139,12 +288,21 @@ function displayClanFightMenu($user) {offene Herausforderungen | '.$cllng.' | '; + 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 ' |
---|---|
'.$challenged_clan['clanname'].' | '; + echo ''.anzeigen.' | '; + echo '