From cfdc4853d90832e1f2f880fae0a34560a20b5dc9 Mon Sep 17 00:00:00 2001 From: radiskull Date: Wed, 18 Jan 2012 18:15:41 +0000 Subject: [PATCH] Clean Code xD --- ag/info/attacken.php | 52 ++++++++++++++++++++++---------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/ag/info/attacken.php b/ag/info/attacken.php index b0572be..a3514d6 100644 --- a/ag/info/attacken.php +++ b/ag/info/attacken.php @@ -12,8 +12,8 @@ include_once (ROOT_PATH . '//include/designfunctions.inc.php'); function showAttDetails($at_id) { $at_info = mysql_Fetch_array(mysql_query("SELECT * FROM attacken WHERE id='".$at_id."' LIMIT 1")); - $req_atk = explode(",", $at_info[req_atk]); - $req_lvl = explode(",", $at_info[req_lvl]); + $req_atk = explode(",", $at_info['req_atk']); + $req_lvl = explode(",", $at_info['req_lvl']); $req_attack = mysql_fetch_array(mysql_query("SELECT f.name AS f_name, b.name AS b_name, c.name AS c_name, d.name AS d_name, e.name AS e_name FROM attacken a LEFT JOIN attacken b ON(b.id='".$req_atk[0]."') LEFT JOIN attacken c ON(c.id='".$req_atk[1]."') LEFT JOIN attacken d ON(d.id='".$req_atk[2]."') LEFT JOIN attacken e ON(e.id='".$req_atk[3]."') LEFT JOIN attacken f ON(f.id='".$req_atk[4]."') WHERE a.id='".$at_id."'")); ?> @@ -22,61 +22,61 @@ function showAttDetails($at_id) { +

- + - + - + - + - + - + - + - + - + - + + face="Verdana" color="#333333"> + color="#FFFFFF" size="1" face="Verdana"> + color="#D1D1D1" size="1" face="Verdana">  + color="#D1D1D1" size="1" face="Verdana">  + color="#D1D1D1" size="1" face="Verdana">  + color="#FFFFFF" size="1" face="Verdana"> Info + color="#510002" size="1" face="Verdana">
-

Name

  

Stärke

  

Verteidigung

  

Geschwindigkeit

  

HP

  

MP

  

Level

  

Geld

  

Type

  

Info

  
         Info