From 50a2ffa89a65a830de46a3e1f63850bec161f546 Mon Sep 17 00:00:00 2001 From: hecht Date: Wed, 26 Oct 2011 20:19:05 +0000 Subject: [PATCH] do not query the non required clan_k_list! --- ag/include/config.inc.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/ag/include/config.inc.php b/ag/include/config.inc.php index c61905c..554f30b 100644 --- a/ag/include/config.inc.php +++ b/ag/include/config.inc.php @@ -27,7 +27,7 @@ include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/usergroup.inc.php'); // $rs += 2; // $ls = strpos($_SERVER['HTTP_REFERER'],'/', $rs); // if($ls !== FALSE){ -// $referer = substr($_SERVER['HTTP_REFERER'],$rs, $ls-$rs); +// $referer = substr($_SERVER['HTTP_REFERER'],$rs, $ls-$rs); // } else{ // $referer = substr($_SERVER['HTTP_REFERER'],$rs); // } @@ -55,7 +55,7 @@ if(!checkCookiePassword($name, $passwort)){ } $banned_accs = mysql_num_rows(mysql_query("SELECT id FROM user WHERE ip!='' AND ip='$user_ida[ip]' AND id!='$user_ida[id]' LIMIT 2")); -$clan_nachricht = mysql_fetch_array(mysql_query("SELECT i.id FROM clan_k_list i LEFT JOIN clan c ON(c.id=i.an) WHERE i.anzeige='1' AND (c.leader='$user_ida[id]' OR c.co_leader='$user_ida[id]') AND i.an='$user_ida[clan]' LIMIT 1")); +#$clan_nachricht = mysql_fetch_array(mysql_query("SELECT i.id FROM clan_k_list i LEFT JOIN clan c ON(c.id=i.an) WHERE i.anzeige='1' AND (c.leader='$user_ida[id]' OR c.co_leader='$user_ida[id]') AND i.an='$user_ida[clan]' LIMIT 1")); if ($user_ida['id'] != null) { $as = 'profil'; @@ -63,15 +63,15 @@ if ($user_ida['id'] != null) { $pic_g31 = 75; ///////////Bild Groesse -if ($clan_nachricht['id']) { - - print " "; - mysql_query("UPDATE clan_k_list SET anzeige='0' WHERE id='$clan_nachricht[id]' LIMIT 1"); -} +#if ($clan_nachricht['id']) { +# +# print " "; +# mysql_query("UPDATE clan_k_list SET anzeige='0' WHERE id='$clan_nachricht[id]' LIMIT 1"); +#} /*if($user_ida[post]) { $nachricht = mysql_fetch_assoc(mysql_query("SELECT count(id) as anzahl FROM nachricht WHERE aktiv='1' AND besitzer='$user_ida[id]' LIMIT 1"));