From 2978ec551c681bfb84b290ee05a4ba19ed87c8b4 Mon Sep 17 00:00:00 2001 From: hecht Date: Wed, 2 Nov 2011 19:17:13 +0000 Subject: [PATCH] one can see if there is a open clan challenge :) --- ag/index.php | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/ag/index.php b/ag/index.php index cf170b2..e3fb99a 100644 --- a/ag/index.php +++ b/ag/index.php @@ -10,6 +10,7 @@ ignore_user_abort(true); // einmaliges Hinzufuegen der wichtigen Datei config.php include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config.inc.php'); include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php'); +include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/clan_fights.inc.php'); include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config/ads.inc.php'); include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/schnell_start.inc.php'); include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/messagefunctions.inc.php'); @@ -214,17 +215,24 @@ $agb = $_REQUEST['agb'];
1){ - echo "'; + } + + if($nnn_nn != 0 && $ids != 0) { + echo ''; + } + + if($ids != 0) { + echo ''; + } + + ?> -
"; - echo "**Du hast $nnn_nn ungelesene Nachrichten. Klicke hier um zu deinem Postfach zu gelangen.**"; - } - else{ - echo ""; - echo "**Du hast $nnn_nn ungelesene Nachricht. Klicke hier um zu deinem Postfach zu gelangen.**"; - } + $ids = count(getOpenChallengeIDs($user_ida['clan'])); + + if($nnn_nn!=0) { + echo ''; + echo '**Du hast '.$nnn_nn.' ungelesene Nachrichten. Klicke hier um zu deinem Postfach zu gelangen.**
'; + echo '**Es gibt derzeit '.$ids.' offene Clan-Kämpfe. Klicke hier um zum Clan-Kampf Menü zu gelangen.**