do not query the non required clan_k_list!

main
hecht 13 years ago
parent a6d6f3d785
commit 50a2ffa89a

@ -27,7 +27,7 @@ include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/usergroup.inc.php');
// $rs += 2; // $rs += 2;
// $ls = strpos($_SERVER['HTTP_REFERER'],'/', $rs); // $ls = strpos($_SERVER['HTTP_REFERER'],'/', $rs);
// if($ls !== FALSE){ // if($ls !== FALSE){
// $referer = substr($_SERVER['HTTP_REFERER'],$rs, $ls-$rs); // $referer = substr($_SERVER['HTTP_REFERER'],$rs, $ls-$rs);
// } else{ // } else{
// $referer = substr($_SERVER['HTTP_REFERER'],$rs); // $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")); $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) { if ($user_ida['id'] != null) {
$as = 'profil'; $as = 'profil';
@ -63,15 +63,15 @@ if ($user_ida['id'] != null) {
$pic_g31 = 75; ///////////Bild Groesse $pic_g31 = 75; ///////////Bild Groesse
if ($clan_nachricht['id']) { #if ($clan_nachricht['id']) {
#
print " <script language='JavaScript'> # print " <script language='JavaScript'>
<!-- # <!--
alert('Sie wurden zum Clankampf Herausgefordert.'); # alert('Sie wurden zum Clankampf Herausgefordert.');
//--> # //-->
</script>"; # </script>";
mysql_query("UPDATE clan_k_list SET anzeige='0' WHERE id='$clan_nachricht[id]' LIMIT 1"); # mysql_query("UPDATE clan_k_list SET anzeige='0' WHERE id='$clan_nachricht[id]' LIMIT 1");
} #}
/*if($user_ida[post]) { /*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")); $nachricht = mysql_fetch_assoc(mysql_query("SELECT count(id) as anzahl FROM nachricht WHERE aktiv='1' AND besitzer='$user_ida[id]' LIMIT 1"));

Loading…
Cancel
Save