@ -11,11 +11,13 @@ ignore_user_abort(true);
include_once('path.inc.php'); // get the path ;)
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
include_once(ROOT_PATH.'/include/clan_fights.inc.php');
include_once(ROOT_PATH.'/include/clan_fights.inc.php');
include_once(ROOT_PATH.'/include/config/ads.inc.php');
include_once(ROOT_PATH.'/include/config/ads.inc.php');
include_once(ROOT_PATH.'/include/schnell_start.inc.php');
include_once(ROOT_PATH.'/include/schnell_start.inc.php');
include_once(ROOT_PATH.'/include/messagefunctions.inc.php');
include_once(ROOT_PATH.'/include/messagefunctions.inc.php');
// Fuer den Transit von register_globals auf normal
// Fuer den Transit von register_globals auf normal
$name = $user_ida['nickname'];
$name = $user_ida['nickname'];
$passwort = $user_ida['passwort'];
$passwort = $user_ida['passwort'];
@ -222,9 +224,9 @@ $agb = $_REQUEST['agb'];
$n_ids = array();
$n_ids = array();
foreach ($ids as $clan_challenge_id) {
foreach ($ids as $clan_challenge_id) {
$alreadyParticipating = false;
$alreadyParticipating = false;
$char_ids[] = getParticipatingCharIDs($clan_challenge_id, $user_ida['clan']);
$char_ids = getParticipatingCharIDs($clan_challenge_id, $user_ida['clan']);
// okay,
// okay,
foreach ($char_ids as $char_id) {
foreach ($char_ids as $slot => $ char_id) {
$char = getChar($char_id);
$char = getChar($char_id);
if($char['besitzer'] == $user_ida['id']) {
if($char['besitzer'] == $user_ida['id']) {
$alreadyParticipating = true;
$alreadyParticipating = true;
@ -235,6 +237,7 @@ $agb = $_REQUEST['agb'];
$n_ids[] = $clan_challenge_id;
$n_ids[] = $clan_challenge_id;
}
}
}
}
$id_count = count($n_ids);
}
}
if($nnn_nn!=0) {
if($nnn_nn!=0) {
@ -246,7 +249,7 @@ $agb = $_REQUEST['agb'];
echo '< / tr > < tr > ';
echo '< / tr > < tr > ';
}
}
if($ids != 0) {
if($id_count != 0) {
echo '< td colspan = "3" align = "center" id = "pn" > ';
echo '< td colspan = "3" align = "center" id = "pn" > ';
echo '**Es gibt derzeit '.$id_count.' offene Clan-Kämpfe. < a href = "index.php?as=clan/kampf_info" id = "pn" > Klicke hier um zum Clan-Kampf Menü zu gelangen.< / a > **< / td > ';
echo '**Es gibt derzeit '.$id_count.' offene Clan-Kämpfe. < a href = "index.php?as=clan/kampf_info" id = "pn" > Klicke hier um zum Clan-Kampf Menü zu gelangen.< / a > **< / td > ';
}
}