do not query the non required clan_k_list!

main
hecht 13 years ago
parent a6d6f3d785
commit 50a2ffa89a

@ -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 " <script language='JavaScript'>
<!--
alert('Sie wurden zum Clankampf Herausgefordert.');
//-->
</script>";
mysql_query("UPDATE clan_k_list SET anzeige='0' WHERE id='$clan_nachricht[id]' LIMIT 1");
}
#if ($clan_nachricht['id']) {
#
# print " <script language='JavaScript'>
# <!--
# alert('Sie wurden zum Clankampf Herausgefordert.');
# //-->
# </script>";
# 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"));

Loading…
Cancel
Save