@ -5,11 +5,16 @@
 
		
	
		
			
				 * @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
 
		
	
		
			
				 *
 
		
	
		
			
				 */
 
		
	
		
			
				
 
		
	
		
			
				include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/config.inc.php');
 
		
	
		
			
				include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/designfunctions.inc.php');
 
		
	
		
			
				include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/fehlerausgabe.inc.php');
 
		
	
		
			
				include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/parse.inc.php');
 
		
	
		
			
				include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/char_profil.inc.php');	//Allgemeine Funktionen f<> r die Char darstellung
 
		
	
		
			
				include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/char_profil.inc.php');	//Allgemeine Funktionen für die Char darstellung
 
		
	
		
			
				include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/defines.inc.php');
 
		
	
		
			
				include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/attackenset.inc.php');
 
		
	
		
			
				
 
		
	
		
			
				defineIfNotDefined('MAX_ROUNDS', 10);
 
		
	
		
			
				
 
		
	
		
			
				/* Diese Datei ist etwas komisch, darum die Abweichende SQL-Injection methode */
 
		
	
		
			
				
 
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
			
			@ -17,582 +22,378 @@ $char_id = validateUnsignedInteger($_GET['char_id'], null);
 
		
	
		
			
				
 
		
	
		
			
				function stelledar($char_id,$user_ida,$name) {
 
		
	
		
			
					//Alle Chardaten laden
 
		
	
		
			
					//TODO: chardaten gefällt mir absolut nicht! Das muss man anders regeln =/
 
		
	
		
			
					chardaten($char_id,$name,$char_1,$hp1,$mp1,$exp,$fehler);
 
		
	
		
			
					if ($fehler == '') {
 
		
	
		
			
					if ($fehler == NULL) {
 
		
	
		
			
						$buffedstats = getCharBuffs($char_1['kampf_item']);
 
		
	
		
			
						//Alle Attacken laden
 
		
	
		
			
						aktuelleauswahl($char_1,$at11,$at11_2,$auswahl1,$auswahl2,$auswahl3);
 
		
	
		
			
						//R<> stung laden
 
		
	
		
			
						$learned_atts = getCharAttacks($char_id);
 
		
	
		
			
				
 
		
	
		
			
						//Attackensets laden
 
		
	
		
			
						$clanfight_attset = getCharAttackSet($char_id, CLANKAMPF);
 
		
	
		
			
						$normfight_attset = getCharAttackSet($char_id, NORMALKAMPF);
 
		
	
		
			
						
 
		
	
		
			
						//TODO:prüfen ob man nicht auch den name aus $learned_atts holen kann
 
		
	
		
			
						$clanfight_attset_name = getAttackNamesFromAttackSet($clanfight_attset);
 
		
	
		
			
						$normfight_attset_name = getAttackNamesFromAttackSet($normfight_attset);
 
		
	
		
			
				
 
		
	
		
			
						//Rüstung laden
 
		
	
		
			
						$e_schuhe = mysql_query("SELECT i.name, w.id, i.level FROM ware w LEFT JOIN item i ON(i.id=w.item_id) WHERE (i.type='$char_1[type]' OR i.type='ALL') AND w.user='$user_ida[id]' AND w.ru_mal='1' AND i.s_type='Schuhe' AND i.level < ='$char_1[level]' group by i.name order by i.level desc");
 
		
	
		
			
						$e_schwert = mysql_query("SELECT i.name, w.id, i.level FROM ware w LEFT JOIN item i ON(i.id=w.item_id) WHERE (i.type='$char_1[type]' OR i.type='ALL') AND w.user='$user_ida[id]' AND w.ru_mal='1' AND i.s_type='Schwert' AND i.level < ='$char_1[level]' group by i.name order by i.level desc");
 
		
	
		
			
						$e_rustung = mysql_query("SELECT i.name, w.id, i.level FROM ware w LEFT JOIN item i ON(i.id=w.item_id) WHERE (i.type='$char_1[type]' OR i.type='ALL') AND w.user='$user_ida[id]' AND w.ru_mal='1' AND i.s_type='Ruestung' AND i.level < ='$char_1[level]' group by i.name order by i.level desc");
 
		
	
		
			
						$e_schild = mysql_query("SELECT i.name, w.id, i.level FROM ware w LEFT JOIN item i ON(i.id=w.item_id) WHERE (i.type='$char_1[type]' OR i.type='ALL') AND w.user='$user_ida[id]' AND w.ru_mal='1' AND i.s_type='Schild' AND i.level < ='$char_1[level]' group by i.name order by i.level desc");
 
		
	
		
			
						$e_helm = mysql_query("SELECT i.name, w.id, i.level FROM ware w LEFT JOIN item i ON(i.id=w.item_id) WHERE (i.type='$char_1[type]' OR i.type='ALL') AND w.user='$user_ida[id]' AND w.ru_mal='1' AND i.s_type='Helm' AND i.level < ='$char_1[level]' group by i.name order by i.level desc");
 
		
	
		
			
						$checked = explode(',',$char_1['kampf_item']);
 
		
	
		
			
				?>
 
		
	
		
			
						 ?> 
		
	
		
			
				< body >  
		
	
		
			
				< table  border = "0"  cellpadding = "0"  cellspacing = "0"  style = "border-collapse: collapse;"  bordercolor = "#111111"  width = "100%"  height = "25" >  
		
	
		
			
					< form  action = "index.php?as=char_profil&char_id= <?php  echo  $char_id ;  ?> "  method = "post" > 
 
		
	
		
			
					< input  type = "hidden"  name = "as"  value = "char_profil" > 
 
		
	
		
			
					< input  type = "hidden"  name = "char_id"  value = " <?php  echo  $char_id ;  ?> "  /> 
 
		
	
		
			
					< input  type = "hidden"  name = "submit"  value = "1"  / > 
 
		
	
		
			
				
 
		
	
		
			
				   	 < tr > 
 
		
	
		
			
				      < td  width = "590"  height = "25"  colspan = "2"  align = "center" >   Charakter:<?php  echo  '' . $char_1 [ name ] . '' ;  ?> 
 
		
	
		
			
				
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				      < b > Charakter< / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'name' ];  ?> </ td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				      < b > Type< / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'type' ];  ?> </ td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				      < b > Rasse< / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'rasse' ];  ?> </ td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				
 
		
	
		
			
				<?php  
		
	
		
			
						if($char_1[fusion] == 'ja') {
 
		
	
		
			
				?>
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				      < b > Fusion Rasse< / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'fusion_rasse' ];  ?> </ td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				
 
		
	
		
			
				<?php  
		
	
		
			
						}
 
		
	
		
			
						
 
		
	
		
			
					if($char_1['kampf_item'] != NULL & &  $char_1['kampf_item'] != ',,,,'){
 
		
	
		
			
				//		echo 'Problematic Entry = '.$chara_1['kampf_item'].'< br > ';
 
		
	
		
			
						$char1_buffs = mysql_fetch_assoc(mysql_query('SELECT sum(i.hp) as hp, sum(i.mp) as mp, sum(i.starke) as starke, sum(i.verteidigung) as verteidigung, sum(i.speed) as speed FROM ware w LEFT JOIN item i ON(i.id=w.item_id) WHERE w.id IN (' . $char_1['kampf_item'] . ')'));
 
		
	
		
			
					}
 
		
	
		
			
						
 
		
	
		
			
						
 
		
	
		
			
				?>
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				      < b > Stä rke< / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >   <?php  echo  $char1_buffs [ 'starke' ] == 0 ? $char_1 [ 'starke' ] : $char_1 [ 'starke' ] . ' (+' . $char1_buffs [ 'starke' ] . ' Rüstungsbonus)' ;  ?> </ td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				      < b > Verteidigung< / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >   <?php  echo  $char1_buffs [ 'verteidigung' ] == 0 ? $char_1 [ 'verteidigung' ] : $char_1 [ 'verteidigung' ] . ' (+' . $char1_buffs [ 'verteidigung' ] . ' Rüstungsbonus)' ;  ?> </ td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				      < b > Geschwindigkeit< / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >   <?php  echo  $char1_buffs [ 'speed' ] == 0 ? $char_1 [ 'speed' ] : $char_1 [ 'speed' ] . ' (+' . $char1_buffs [ 'speed' ] . ' Rüstungsbonus)' ;  ?> </ td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				      < b > Ausdauer< / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >   <?php  echo  $char1_buffs [ 'ausdauer' ] == 0 ? $char_1 [ 'ausdauer' ] : $char_1 [ 'ausdauer' ] . ' (+' . $char1_buffs [ 'ausdauer' ] . ' Rüstungsbonus)' ;  ?> </ td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				      < b > Glü ck< / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >   <?php  echo  $char1_buffs [ 'glueck' ] == 0 ? $char_1 [ 'glueck' ] : $char_1 [ 'glueck' ] . ' (+' . $char1_buffs [ 'glueck' ] . ' Rüstungsbonus)' ;  ?> </ td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				      < b > HP< / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >   <?php  echo  '' . $hp1 [ 0 ] . ' / ' . $hp1 [ 1 ] . ' ' ;   ?> 
 
		
	
		
			
				      < / td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				      < b > < / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >   <!--<img border="1" src=" <?php  echo  'bilder/HP/$energie.gif' ;  ?> " width="108" height="14">--> 
 
		
	
		
			
				      < / td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				
 
		
	
		
			
				
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				      < b > MP< / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >   <?php  echo  '' . $mp1 [ 0 ] . ' / ' . $mp1 [ 1 ] . ''  ?> </ td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				      < b > Level< / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'level' ];  ?> </ td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				      < b > Training Points< / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'training_points' ];  ?> </ td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				      < b > Exp< / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >    <?php  echo  '' . $exp [ 0 ] . ' / ' . $exp [ 1 ] . ''  ?> </ td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				     < b > Siege< / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'siege' ];  ?> </ td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				      < b > Niederlage< / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'niederlagen' ];  ?> </ td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				     < b > Liga Siege< / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'liga_siege' ];  ?> </ td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				      < b > Liga Niederlage< / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'liga_niederlagen' ];  ?> </ td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				      < b > Status< / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'status' ];  ?> </ td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				      < b > Bild <?php  echo  '' . $pic_g31 . ' x ' . $pic_g31 . '' ;  ?> </ b ></ td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" >   <?php  echo  '<input name="bild11" id="input" size="40" value="' . $char_1 [ bild ] . '">' ;  ?> </ td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "584"  height = "25"  colspan = "2"  valign = "bottom" > 
 
		
	
		
			
				      < p  align = "center" > < br > < br > < b > < font  color = "#0000FF" > Kampfeinstellungen< / font > < br > < br > < / b > < / td > 
 
		
	
		
			
				      < / tr > 
 
		
	
		
			
				<?php  
		
	
		
			
						//alle informationen zu den erlernten attacken auslesen
 
		
	
		
			
						$z=1;
 
		
	
		
			
						$k=0;
 
		
	
		
			
						while($k <  10 )  { 
 
		
	
		
			
							$st_id1 = mysql_fetch_array(mysql_query("SELECT l.name AS name, l.id AS id, l.at_id AS			 			at_id, a.type AS type FROM lernen l LEFT JOIN attacken a ON(a.id=l.at_id) WHERE 
 
		
	
		
			
							l.id='$at11[$k]'"));
 
		
	
		
			
				
 
		
	
		
			
							$st_id2 = mysql_fetch_array(mysql_query("SELECT l.name AS name, l.id AS id, l.at_id AS 
 
		
	
		
			
							at_id, 																										
 
		
	
		
			
							a.type AS type FROM lernen l LEFT JOIN attacken a ON(a.id=l.at_id) WHERE 
 
		
	
		
			
							l.id='$at11_2[$k]'"))			    	;
 
		
	
		
			
							$st_id = $st_id1[at_id];
 
		
	
		
			
							$st_name = $st_id1[name];
 
		
	
		
			
					?>
 
		
	
		
			
					    < tr > 
 
		
	
		
			
					      < td  width = "10%"  height = "25" > 
 
		
	
		
			
					      < b > Runde <?php  echo  $z ;  ?> </ b ></ td > 
 
		
	
		
			
					      < td  width = "20%"  height = "25" >< select  id = "input"  name = " <?php  echo  'attacken_' . $k . '' ;  ?> "  > 
 
		
	
		
			
				    <?php 
 
		
	
		
			
							$at_tech = mysql_query("SELECT name, id, at_id FROM lernen WHERE besitzer='$char_1[id]'
 
		
	
		
			
							AND aktiv>    '0' order by id");
 
		
	
		
			
							echo '< option  value = "'.$st_id.'" > '.$st_name.'< / option > ';
 
		
	
		
			
							while($row = mysql_fetch_array($at_tech)) {
 
		
	
		
			
								echo '< option  value = "'.$row['at_id'].'" > '.$row['name'].'< / option > ';
 
		
	
		
			
					< form  action = "index.php?as=char_profil&char_id= <?php  echo  $char_id ;  ?> " 
 
		
	
		
			
						method="post">
 
		
	
		
			
						< input  type = "hidden"  name = "as"  value = "char_profil" >  < input 
 
		
	
		
			
							type="hidden" name="char_id" value="<?php  echo  $char_id ;  ?> " /> < input 
 
		
	
		
			
							type="hidden" name="submit" value="1" />
 
		
	
		
			
				
 
		
	
		
			
						< table  border = "1"  cellpadding = "0"  cellspacing = "0" 
 
		
	
		
			
							style="border-collapse: collapse;" bordercolor="#111111" width="100%"
 
		
	
		
			
							height="25">
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< th  width = "590"  height = "25"  colspan = "2"  align = "center" > < font 
 
		
	
		
			
									color="#0000FF">Charakterü bersicht< / font > 
 
		
	
		
			
								< / th > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" > < b > Name< / b > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'name' ];  ?> 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" > < b > Type< / b > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'type' ];  ?> 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" > < b > Rasse< / b > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'rasse' ];  ?> 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							<?php 
 
		
	
		
			
							if($char_1[fusion] == 'ja') {
 
		
	
		
			
								?>
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" > < b > Fusion Rasse< / b > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'fusion_rasse' ];  ?> 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							<?php 
 
		
	
		
			
							}
 
		
	
		
			
					
 
		
	
		
			
					?>
 
		
	
		
			
					< / select > 
 
		
	
		
			
					< / td > 
 
		
	
		
			
					< td  width = "6%"  height = "25" > 
 
		
	
		
			
					<?php 
 
		
	
		
			
							if($auswahl1[$k] == 1) { $select1_on[$k] = 'selected'; } else { $select1_on[$k] = ''; }
 
		
	
		
			
							if($auswahl1[$k] == 2) { $select2_on[$k] = 'selected'; } else { $select2_on[$k] = ''; }
 
		
	
		
			
							if($auswahl1[$k] == 3) { $select3_on[$k] = 'selected'; } else { $select3_on[$k] = ''; }
 
		
	
		
			
					?>
 
		
	
		
			
					
 
		
	
		
			
					< select  id = "input"  name = " <?php  echo  'auswahl1_' . $k . '' ;  ?> " > 
 
		
	
		
			
					< option  value = "1"  <?php  echo  $select1_on [ $k ];  ?> > HP</ option > 
 
		
	
		
			
					< option  value = "2"  <?php  echo  $select2_on [ $k ];  ?> > MP</ option > 
 
		
	
		
			
					< option  value = "3"  <?php  echo  $select3_on [ $k ];  ?> > PL</ option > 
 
		
	
		
			
					< / select > 
 
		
	
		
			
					
 
		
	
		
			
					< / td > 
 
		
	
		
			
					< td  width = "4%"  height = "25" > 
 
		
	
		
			
					
 
		
	
		
			
					<?php 
 
		
	
		
			
							if($auswahl2[$k] == 1) { $select1_on2[$k] = 'selected'; } else { $select1_on2[$k] = ''; }
 
		
	
		
			
							if($auswahl2[$k] == 2) { $select2_on2[$k] = 'selected'; } else { $select2_on2[$k] = ''; }
 
		
	
		
			
					?>
 
		
	
		
			
					< select  id = "input"  name = " <?php  echo  'auswahl2_' . $k . '' ;  ?> " > 
 
		
	
		
			
						< option  value = "1"  <?php  echo  $select1_on2 [ $k ];  ?>  >  > </ option > 
 
		
	
		
			
						< option  value = "2"  <?php  echo  $select2_on2 [ $k ];  ?> >  <  </ option > 
 
		
	
		
			
					< / select > 
 
		
	
		
			
					< / td > 
 
		
	
		
			
					
 
		
	
		
			
					< td  width = "15%"  height = "25" > 
 
		
	
		
			
					
 
		
	
		
			
					<?php 
 
		
	
		
			
							if($auswahl3[$k] == 1) { $select1_on3[$k] = 'selected'; } else { $select1_on3[$k] = ''; }
 
		
	
		
			
							if($auswahl3[$k] == 2) { $select2_on3[$k] = 'selected'; } else { $select2_on3[$k] = ''; }
 
		
	
		
			
							if($auswahl3[$k] == 3) { $select3_on3[$k] = 'selected'; } else { $select3_on3[$k] = ''; }
 
		
	
		
			
							if($auswahl3[$k] == 5) { $select5_on3[$k] = 'selected'; } else { $select5_on3[$k] = ''; }
 
		
	
		
			
						  	if($auswahl3[$k] == 10) { $select10_on3[$k] = 'selected'; } else { $select10_on3[$k] = ''; }
 
		
	
		
			
						  	if($auswahl3[$k] == 20) { $select20_on3[$k] = 'selected'; } else { $select20_on3[$k] = ''; }
 
		
	
		
			
						  	if($auswahl3[$k] == 50) { $select50_on3[$k] = 'selected'; } else { $select50_on3[$k] = ''; }
 
		
	
		
			
					
 
		
	
		
			
					?>
 
		
	
		
			
					
 
		
	
		
			
					< select  id = "input"  name = " <?php  echo  'auswahl3_' . $k . '' ;  ?> " > 
 
		
	
		
			
					< option  value = "1"  <?php  echo  $select1_on3 [ $k ];  ?>  > G.HP</ option > 
 
		
	
		
			
					< option  value = "2"  <?php  echo  $select2_on3 [ $k ];  ?> > G.MP</ option > 
 
		
	
		
			
					< option  value = "3"  <?php  echo  $select3_on3 [ $k ];  ?> > G.PL</ option > 
 
		
	
		
			
					< option  value = "5"  <?php  echo  $select5_on3 [ $k ];  ?> > 5%</ option > 
 
		
	
		
			
					< option  value = "10"  <?php  echo  $select10_on3 [ $k ];  ?> > 10%</ option > 
 
		
	
		
			
					< option  value = "20"  <?php  echo  $select20_on3 [ $k ];  ?> > 20%</ option > 
 
		
	
		
			
					< option  value = "50"  <?php  echo  $select50_on3 [ $k ];  ?> > 50%</ option > 
 
		
	
		
			
					< / select > 
 
		
	
		
			
					< / td > 
 
		
	
		
			
					
 
		
	
		
			
					< td  width = "39%"  height = "25" > 
 
		
	
		
			
					
 
		
	
		
			
					
 
		
	
		
			
					   < select  id = "input"  name = " <?php  echo  'attacken2_' . $k . '' ;  ?> " > 
 
		
	
		
			
					<?php 
 
		
	
		
			
					
 
		
	
		
			
				
 
		
	
		
			
					
 
		
	
		
			
							$at_tech2 = safe_query("SELECT name, id, at_id FROM lernen WHERE besitzer='$char_1[id]' 
 
		
	
		
			
							AND aktiv>'0' LIMIT 100");
 
		
	
		
			
							echo '< option  value = "'.$st_id2[at_id].'" > '.$st_id2[name].'';
 
		
	
		
			
							while($row6 = mysql_fetch_array($at_tech2)) {
 
		
	
		
			
								echo '< option  value = "'.$row6[at_id].'" > '.$row6[name].'< / option > ';
 
		
	
		
			
							?>
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" > < b > Stä rke< / b > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" >   <?php  echo  $buffedstats [ 'starke' ] == 0 ? $char_1 [ 'starke' ] : $char_1 [ 'starke' ] . ' (+' . $buffedstats [ 'starke' ] . ' Rüstungsbonus)' ;  ?> 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" > < b > Verteidigung< / b > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" >   <?php  echo  $buffedstats [ 'verteidigung' ] == 0 ? $char_1 [ 'verteidigung' ] : $char_1 [ 'verteidigung' ] . ' (+' . $buffedstats [ 'verteidigung' ] . ' Rüstungsbonus)' ;  ?> 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" > < b > Geschwindigkeit< / b > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" >   <?php  echo  $buffedstats [ 'speed' ] == 0 ? $char_1 [ 'speed' ] : $char_1 [ 'speed' ] . ' (+' . $buffedstats [ 'speed' ] . ' Rüstungsbonus)' ;  ?> 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" > < b > Ausdauer< / b > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" >   <?php  echo  $buffedstats [ 'ausdauer' ] == 0 ? $char_1 [ 'ausdauer' ] : $char_1 [ 'ausdauer' ] . ' (+' . $buffedstats [ 'ausdauer' ] . ' Rüstungsbonus)' ;  ?> 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" > < b > Glü ck< / b > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" >   <?php  echo  $buffedstats [ 'glueck' ] == 0 ? $char_1 [ 'glueck' ] : $char_1 [ 'glueck' ] . ' (+' . $buffedstats [ 'glueck' ] . ' Rüstungsbonus)' ;  ?> 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" > < b > HP< / b > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" >   <?php  echo  '' . $hp1 [ 0 ] . ' / ' . $hp1 [ 1 ] . ' ' ;   ?> 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" > < b > MP< / b > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" >   <?php  echo  '' . $mp1 [ 0 ] . ' / ' . $mp1 [ 1 ] . ''  ?> 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" > < b > Level< / b > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'level' ];  ?> 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" > < b > Training Points< / b > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'training_points' ];  ?> 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" > < b > Exp< / b > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" >    <?php  echo  '' . $exp [ 0 ] . ' / ' . $exp [ 1 ] . ''  ?> 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" > < b > Siege< / b > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'siege' ];  ?> 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" > < b > Niederlage< / b > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'niederlagen' ];  ?> 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" > < b > Liga Siege< / b > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'liga_siege' ];  ?> 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" > < b > Liga Niederlage< / b > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'liga_niederlagen' ];  ?> 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" > < b > Status< / b > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" >   <?php  echo  $char_1 [ 'status' ];  ?> 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" >< b > Bild <?php  echo  '' . $pic_g31 . ' x ' . $pic_g31 . '' ;  ?> 
 
		
	
		
			
								< / b > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" >   <?php  echo  '<input name="bild11" id="input" size="40" value="' . $char_1 [ bild ] . '">' ;  ?> 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
				
 
		
	
		
			
							<!--  Übersicht über die Attackensets  --> 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< th  width = "590"  height = "25"  colspan = "2"  align = "center" > < font 
 
		
	
		
			
									color="#0000FF">Kampfeinstellungen< / font > 
 
		
	
		
			
								< / th > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< th > < / th > 
 
		
	
		
			
								< th  width = "584"  height = "25"  align = "center" > Normale Kä mpfe< / th > 
 
		
	
		
			
								< th  width = "584"  height = "25"  align = "center" > Clankä mpfe< / th > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							<?php 
 
		
	
		
			
							//alle informationen zu den erlernten attacken auslesen
 
		
	
		
			
							for ($i = 1; $i <  MAX_ROUNDS  +  1 ;  $ i + + )  { 
 
		
	
		
			
								?>
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "10%"  height = "25" >< b > Runde <?php  echo  $i ;  ?>  </ b ></ td > 
 
		
	
		
			
								< td  width = "20%"  height = "25"  align = "center" > < select  id = "input" 
 
		
	
		
			
									name="<?php  echo  'attset_nf[' . $i . ']' ;  ?> ">
 
		
	
		
			
									<?php 
 
		
	
		
			
									echo '< option  value = "'.$normfight_attset[$i].'" > '.$normfight_attset_name[$normfight_attset[$i]].'< / option > ';
 
		
	
		
			
									foreach($learned_atts as $atts) {
 
		
	
		
			
										echo '< option  value = "'.$atts['id'].'" > '.$atts['name'].'< / option > ';
 
		
	
		
			
									}
 
		
	
		
			
									?>
 
		
	
		
			
								< / select > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
								< td  width = "39%"  height = "25"  align = "center" > < select  id = "input" 
 
		
	
		
			
									name="<?php  echo  'attset_cf[' . $i . ']' ;  ?> ">
 
		
	
		
			
									<?php 
 
		
	
		
			
									echo '< option  value = "'.$clanfight_attset[$i].'" > '.$clanfight_attset_name[$clanfight_attset[$i]].'< / option > ';
 
		
	
		
			
									foreach($learned_atts as $atts) {
 
		
	
		
			
										echo '< option  value = "'.$atts['id'].'" > '.$atts['name'].'< / option > ';
 
		
	
		
			
									}
 
		
	
		
			
									?>
 
		
	
		
			
								< / select > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							<?php 
 
		
	
		
			
							}
 
		
	
		
			
							echo '< option  value = 0 > Nix< / option > ';
 
		
	
		
			
					?>
 
		
	
		
			
					< / select > 
 
		
	
		
			
					< / td > 
 
		
	
		
			
					
 
		
	
		
			
					
 
		
	
		
			
					      < / tr > 
 
		
	
		
			
					
 
		
	
		
			
							?>
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< th  height = "25"  width = "580"  colspan = "2" > < font  color = "#0000FF" > Ausrüstungsü bersicht< / font > 
 
		
	
		
			
								< / th > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  height = "25"  width = "192" >   < b > Helm:< / b > < / td > 
 
		
	
		
			
								< td  height = "25"  width = "392" >    < select  id = "input"  name = "helm_e" > 
 
		
	
		
			
										< option  value = "0" > Nix< / option > 
 
		
	
		
			
										<?php 
 
		
	
		
			
										while($helm_e_w = mysql_fetch_array($e_helm)) {
 
		
	
		
			
											if($checked[0] == $helm_e_w['id'] & &  !$checked_helm) { $checked_helm = 'selected'; }
 
		
	
		
			
											else { $checked_helm=''; }
 
		
	
		
			
											echo '< option  value = "'.$helm_e_w['id'].'"  ' . $ checked_helm . ' > '.$helm_e_w['name'].' (Level: '.$helm_e_w['level'].')< / option > ';
 
		
	
		
			
										}
 
		
	
		
			
										?>
 
		
	
		
			
								< / select > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  height = "25"  width = "192" >   < b > Rü stung:< / b > < / td > 
 
		
	
		
			
								< td  height = "25"  width = "392" >    < select  id = "input" 
 
		
	
		
			
									name="rustung_e">
 
		
	
		
			
										< option  value = "0" > Nix< / option > 
 
		
	
		
			
										<?php 
 
		
	
		
			
										while($rustung_e_w = mysql_fetch_array($e_rustung)) {
 
		
	
		
			
											if($checked[1] == $rustung_e_w['id'] & &  !$checked_rustung) { $checked_rustung = 'selected'; }
 
		
	
		
			
											else { $checked_rustung=''; }
 
		
	
		
			
											echo '< option  value = "'.$rustung_e_w['id'].'"  ' . $ checked_rustung . ' > '.$rustung_e_w['name'].' (Level: '.$rustung_e_w['level'].')< / option > ';
 
		
	
		
			
										}
 
		
	
		
			
										?>
 
		
	
		
			
								< / select > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  height = "25"  width = "192" >   < b > Schild:< / b > < / td > 
 
		
	
		
			
								< td  height = "25"  width = "392" >    < select  id = "input" 
 
		
	
		
			
									name="schild_e">
 
		
	
		
			
										< option  value = "0" > Nix< / option > 
 
		
	
		
			
										<?php 
 
		
	
		
			
										while($schild_e_w = mysql_fetch_array($e_schild)) {
 
		
	
		
			
											if($checked[2] == $schild_e_w['id'] & &  !$checked_schild) { $checked_schild = 'selected'; }
 
		
	
		
			
											else { $checked_schild=''; }
 
		
	
		
			
											echo '< option  value = "'.$schild_e_w['id'].'"  ' . $ checked_schild . ' > '.$schild_e_w['name'].' (Level: '.$schild_e_w['level'].')< / option > ';
 
		
	
		
			
										}
 
		
	
		
			
										?>
 
		
	
		
			
								< / select > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  height = "25"  width = "192" >   < b > Schwert:< / b > < / td > 
 
		
	
		
			
								< td  height = "25"  width = "392" >    < select  id = "input" 
 
		
	
		
			
									name="schwert_e">
 
		
	
		
			
										< option  value = "0" > Nix< / option > 
 
		
	
		
			
										<?php 
 
		
	
		
			
										while($schwert_e_w = mysql_fetch_array($e_schwert)) {
 
		
	
		
			
											if($checked[3] == $schwert_e_w['id'] & &  !$checked_schwert) { $checked_schwert = 'selected'; }
 
		
	
		
			
											else { $checked_schwert=''; }
 
		
	
		
			
											echo '< option  value = "'.$schwert_e_w['id'].'"  ' . $ checked_schwert . ' > '.$schwert_e_w['name'].' (Level: '.$schwert_e_w['level'].')< / option > ';
 
		
	
		
			
										}
 
		
	
		
			
										?>
 
		
	
		
			
								< / select > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  height = "25"  width = "192" >   < b > Schuhe:< / b > < / td > 
 
		
	
		
			
								< td  height = "25"  width = "392" >    < select  id = "input" 
 
		
	
		
			
									name="schuhe_e">
 
		
	
		
			
										< option  value = "0" > Nix< / option > 
 
		
	
		
			
										<?php 
 
		
	
		
			
										while($schuhe_e_w = mysql_fetch_array($e_schuhe)) {
 
		
	
		
			
											if($checked[4] == $schuhe_e_w['id'] & &  !$checked_schuhe) { $checked_schuhe = 'selected'; }
 
		
	
		
			
											else { $checked_schuhe=''; }
 
		
	
		
			
											echo '< option  value = "'.$schuhe_e_w['id'].'"  ' . $ checked_schuhe . ' > '.$schuhe_e_w['name'].' (Level: '.$schuhe_e_w['level'].')< / option > ';
 
		
	
		
			
										}
 
		
	
		
			
										?>
 
		
	
		
			
								< / select > 
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
							< tr > 
 
		
	
		
			
								< td  width = "192"  height = "25" > < / td > 
 
		
	
		
			
								< td  width = "392"  height = "25" > < br  / >  < input  name = "submit2" 
 
		
	
		
			
									type="submit" class="button" value="speichern" />
 
		
	
		
			
								< / td > 
 
		
	
		
			
							< / tr > 
 
		
	
		
			
						< / table > 
 
		
	
		
			
					< / form > 
 
		
	
		
			
					<?php 
 
		
	
		
			
							$k++;
 
		
	
		
			
							$z++;
 
		
	
		
			
						}
 
		
	
		
			
				
 
		
	
		
			
				?>
 
		
	
		
			
				
 
		
	
		
			
				
 
		
	
		
			
				    < tr > 
 
		
	
		
			
				      < td  width = "192"  height = "25" > 
 
		
	
		
			
				      < b > Aufgeben< / b > < / td > 
 
		
	
		
			
				      < td  width = "392"  height = "25" > <?php 
 
		
	
		
			
						if($char_1[aufgeben] == 0) { $text = 'nie'; } 
 
		
	
		
			
						else { $text = ''.$char_1['aufgeben'].'%'; }
 
		
	
		
			
				
 
		
	
		
			
					echo '
 
		
	
		
			
					< select  id = "input"  name = "aufgeben" > 
 
		
	
		
			
					< option  value = "'.$char_1[aufgeben].'" > '.$text.'
 
		
	
		
			
					< option  value = "10" > ab 10%< / option > 
 
		
	
		
			
					< option  value = "20" > ab 20%< / option > 
 
		
	
		
			
					< option  value = "30" > ab 30%< / option > 
 
		
	
		
			
					< option  value = "40" > ab 40%< / option > 
 
		
	
		
			
					< option  value = "0" > nie< / option > 
 
		
	
		
			
					< / select > '; ?>
 
		
	
		
			
				< / td >  
		
	
		
			
				    < / tr > 
 
		
	
		
			
				
 
		
	
		
			
				
 
		
	
		
			
						< td  height = "25"  width = "580"  colspan = "2" > 
 
		
	
		
			
						< p  align = "center" > < b > Kampf Items< / b > < / td > 
 
		
	
		
			
					< / tr > 
 
		
	
		
			
					< tr > 
 
		
	
		
			
						< td  height = "25"  width = "192" >   < b > Helm:< / b > < / td > 
 
		
	
		
			
						< td  height = "25"  width = "392" >   
 
		
	
		
			
						< select  id = "input"  name = "helm_e" > 
 
		
	
		
			
							< option  value = "0" > Nix< / option > 
 
		
	
		
			
				<?php  
		
	
		
			
				
 
		
	
		
			
					while($helm_e_w = mysql_fetch_array($e_helm)) {
 
		
	
		
			
						if($checked[0] == $helm_e_w[id] & &  !$checked_helm) { $checked_helm = 'selected'; } 
 
		
	
		
			
						else { $checked_helm=''; }
 
		
	
		
			
						echo '< option  value = "'.$helm_e_w[id].'"  ' . $ checked_helm . ' > '.$helm_e_w[name].' (Level: '.$helm_e_w['level'].')< / option > ';
 
		
	
		
			
					} else { 
 
		
	
		
			
						displayErrorMessage(NULL,$fehler, displayHistoryBackLink());
 
		
	
		
			
						exit;
 
		
	
		
			
					}
 
		
	
		
			
				?>
 
		
	
		
			
				< / select >  
		
	
		
			
				< / td >  
		
	
		
			
					< / tr > 
 
		
	
		
			
				
 
		
	
		
			
					< tr > 
 
		
	
		
			
						< td  height = "25"  width = "192" >   < b > Rü stung:< / b > < / td > 
 
		
	
		
			
						< td  height = "25"  width = "392" >   
 
		
	
		
			
						< select  id = "input"  name = "rustung_e" > 
 
		
	
		
			
							< option  value = "0" > Nix< / option > 
 
		
	
		
			
				<?php  
		
	
		
			
					while($rustung_e_w = mysql_fetch_array($e_rustung)) {
 
		
	
		
			
						if($checked[1] == $rustung_e_w[id] & &  !$checked_rustung) { $checked_rustung = 'selected'; }
 
		
	
		
			
						else { $checked_rustung=''; }
 
		
	
		
			
						echo '< option  value = "'.$rustung_e_w[id].'"  ' . $ checked_rustung . ' > '.$rustung_e_w[name].' (Level: '.$rustung_e_w['level'].')< / option > ';
 
		
	
		
			
					}
 
		
	
		
			
				?>
 
		
	
		
			
				< / select >  
		
	
		
			
				< / td >  
		
	
		
			
					< / tr > 
 
		
	
		
			
					< tr > 
 
		
	
		
			
						< td  height = "25"  width = "192" >   < b > Schild:< / b > < / td > 
 
		
	
		
			
						< td  height = "25"  width = "392" >   
 
		
	
		
			
						< select  id = "input"  name = "schild_e" > 
 
		
	
		
			
							< option  value = "0" > Nix< / option > 
 
		
	
		
			
				<?php  
		
	
		
			
					while($schild_e_w = mysql_fetch_array($e_schild)) {
 
		
	
		
			
						if($checked[2] == $schild_e_w[id] & &  !$checked_schild) { $checked_schild = 'selected'; } 
 
		
	
		
			
						else { $checked_schild=''; }
 
		
	
		
			
						echo '< option  value = "'.$schild_e_w[id].'"  ' . $ checked_schild . ' > '.$schild_e_w[name].' (Level: '.$schild_e_w['level'].')< / option > ';
 
		
	
		
			
					}
 
		
	
		
			
				?>
 
		
	
		
			
				< / select >  
		
	
		
			
				< / td >  
		
	
		
			
					< / tr > 
 
		
	
		
			
					< tr > 
 
		
	
		
			
						< td  height = "25"  width = "192" >   < b > Schwert:< / b > < / td > 
 
		
	
		
			
						< td  height = "25"  width = "392" >   
 
		
	
		
			
						< select  id = "input"  name = "schwert_e" > 
 
		
	
		
			
							< option  value = "0" > Nix< / option > 
 
		
	
		
			
				<?php  
		
	
		
			
					while($schwert_e_w = mysql_fetch_array($e_schwert)) {
 
		
	
		
			
						if($checked[3] == $schwert_e_w[id] & &  !$checked_schwert) { $checked_schwert = 'selected'; } 
 
		
	
		
			
						else { $checked_schwert=''; }
 
		
	
		
			
						echo '< option  value = "'.$schwert_e_w['id'].'"  ' . $ checked_schwert . ' > '.$schwert_e_w['name'].' (Level: '.$schwert_e_w['level'].')< / option > ';
 
		
	
		
			
					}
 
		
	
		
			
				?>
 
		
	
		
			
				< / select >  
		
	
		
			
				< / td >  
		
	
		
			
					< / tr > 
 
		
	
		
			
					< tr > 
 
		
	
		
			
						< td  height = "25"  width = "192" >   < b > Schuhe:< / b > < / td > 
 
		
	
		
			
						< td  height = "25"  width = "392" >   
 
		
	
		
			
						< select  id = "input"  name = "schuhe_e" > 
 
		
	
		
			
							< option  value = "0" > Nix< / option > 
 
		
	
		
			
				<?php  
		
	
		
			
				}
 
		
	
		
			
				
 
		
	
		
			
				function getAttackNamesFromAttackSet($attset) {
 
		
	
		
			
					$qry = mysql_query('SELECT l.id,a.name FROM attacken a INNER JOIN lernen l ON a.id=l.at_id WHERE l.id in ('.implode(',', $attset).');');
 
		
	
		
			
				
 
		
	
		
			
					while($schuhe_e_w = mysql_fetch_array($e_schuhe)) {
 
		
	
		
			
						if($checked[4] == $schuhe_e_w[id] & &  !$checked_schuhe) { $checked_schuhe = 'selected'; } 
 
		
	
		
			
						else { $checked_schuhe=''; }
 
		
	
		
			
						echo '< option  value = "'.$schuhe_e_w['id'].'"  ' . $ checked_schuhe . ' > '.$schuhe_e_w['name'].' (Level: '.$schuhe_e_w['level'].')< / option > ';
 
		
	
		
			
					while ($result = mysql_fetch_assoc($qry)) {
 
		
	
		
			
						$set[$result['id']] = $result['name'];
 
		
	
		
			
					}
 
		
	
		
			
				?>
 
		
	
		
			
				< / select >  
		
	
		
			
				< / td >  
		
	
		
			
				
 
		
	
		
			
					< / tr > 
 
		
	
		
			
				    < tr > 
 
		
	
		
			
						< td  width = "192"  height = "25" > < / td > 
 
		
	
		
			
						< td  width = "392"  height = "25" > < br / > 
 
		
	
		
			
						< input  name = "submit2"  type = "submit"  class = "button"  value = "speichern"  / > < / td > 
 
		
	
		
			
				    < / tr > 
 
		
	
		
			
					< / form > 
 
		
	
		
			
				< / table >  
		
	
		
			
				
 
		
	
		
			
				
 
		
	
		
			
				<?php  
		
	
		
			
				
 
		
	
		
			
					} else { echo $fehler[0]; } 
 
		
	
		
			
					return $set;
 
		
	
		
			
				}
 
		
	
		
			
				
 
		
	
		
			
				
 
		
	
		
			
				
 
		
	
		
			
				function eintragen($char_id,$name,$user_ida) {
 
		
	
		
			
					//Alle chardaten laden
 
		
	
		
			
					chardaten($char_id,$name,$char_1,$hp1,$mp1,$exp,$fehler);
 
		
	
		
			
					//ist der char frei?
 
		
	
		
			
					istcharfrei($char_id,$char_1,$anz,$fehler);
 
		
	
		
			
					//<2F> bermittelte Variablen auslesen und in Variable speichern
 
		
	
		
			
					
 
		
	
		
			
					/*if (isset($fehler)) {
 
		
	
		
			
						$anz= 1;
 
		
	
		
			
					}*/
 
		
	
		
			
					$x=0;
 
		
	
		
			
					while ($x < = 9) {
 
		
	
		
			
						${'attacken_'.$x} = validateUnsignedInteger($_POST['attacken_'.$x.''], null);
 
		
	
		
			
						${'attacken2_'.$x} = validateUnsignedInteger($_POST['attacken2_'.$x.''], null);
 
		
	
		
			
						${'auswahl1_'.$x} = validateUnsignedInteger($_POST['auswahl1_'.$x.''], null);
 
		
	
		
			
						${'auswahl2_'.$x} = validateUnsignedInteger($_POST['auswahl2_'.$x.''], null);
 
		
	
		
			
						${'auswahl3_'.$x} = validateUnsignedInteger($_POST['auswahl3_'.$x.''], null);
 
		
	
		
			
					$x++;
 
		
	
		
			
					$char = getChar($char_id);
 
		
	
		
			
					if($char['besitzer'] != $user_ida['id']) {
 
		
	
		
			
						displayErrorMessage(NULL,'Dieser Charackter gehö rt nicht dir!', displayHistoryBackLink());
 
		
	
		
			
						exit;
 
		
	
		
			
					}
 
		
	
		
			
				
 
		
	
		
			
					if(!checkCharStatus($char, 'Frei')) {
 
		
	
		
			
						displayErrorMessage(NULL,'Der Charakter ist zur Zeit nicht frei!', displayHistoryBackLink());
 
		
	
		
			
						exit;
 
		
	
		
			
					}
 
		
	
		
			
					
 
		
	
		
			
					//übermittelte Variablen auslesen und in Variable speichern
 
		
	
		
			
					$helm_e = validateUnsignedInteger($_POST['helm_e'], null);
 
		
	
		
			
					$rustung_e = validateUnsignedInteger($_POST['rustung_e'], null);
 
		
	
		
			
					$schild_e = validateUnsignedInteger($_POST['schild_e'], null);
 
		
	
		
			
					$schwert_e = validateUnsignedInteger($_POST['schwert_e'], null);
 
		
	
		
			
					$schuhe_e = validateUnsignedInteger($_POST['schuhe_e'], null);
 
		
	
		
			
					$bild11 = validateURL($_POST['bild11']);
 
		
	
		
			
					$aufgeben = validateUnsignedInteger($_POST['aufgeben'], null);
 
		
	
		
			
				
 
		
	
		
			
					//Pr<50> fe die attacken
 
		
	
		
			
					$list2 = "$attacken_0,$attacken_1,$attacken_2,$attacken_3,$attacken_4,$attacken_5,$attacken_6,$attacken_7,$attacken_8,$attacken_9,$attacken2_0,$attacken2_1,$attacken2_2,$attacken2_3,$attacken2_4,$attacken2_5,$attacken2_6,$attacken2_7,$attacken2_8,$attacken2_9";
 
		
	
		
			
					$list = explode(",", $list2);
 
		
	
		
			
					
 
		
	
		
			
				/////////////////////////um attacken von Attacke nach user zu saven
 
		
	
		
			
					$attacke11 = "$attacken_0,$attacken_1,$attacken_2,$attacken_3,$attacken_4,$attacken_5,$attacken_6,$attacken_7,$attacken_8,$attacken_9";
 
		
	
		
			
					$attacke22 = "$attacken2_0,$attacken2_1,$attacken2_2,$attacken2_3,$attacken2_4,$attacken2_5,$attacken2_6,$attacken2_7,$attacken2_8,$attacken2_9";
 
		
	
		
			
					
 
		
	
		
			
					$attacke1 = explode(",", $attacke11);
 
		
	
		
			
					$attacke2 = explode(",", $attacke22);
 
		
	
		
			
					$attset_cf = array();
 
		
	
		
			
					$attset_nf = array();
 
		
	
		
			
					for ($i = 1; $i <  MAX_ROUNDS  +  1 ;  $ i + + )  { 
 
		
	
		
			
						$attset_cf[$i] = validateUnsignedInteger($_POST['attset_cf'][$i], -1);
 
		
	
		
			
						$attset_nf[$i] = validateUnsignedInteger($_POST['attset_nf'][$i], -1);
 
		
	
		
			
					}
 
		
	
		
			
				
 
		
	
		
			
					//////////////Kampf Techniken Erlaubt im kampf
 
		
	
		
			
					$kampf_ssj = 1;			/////// SSJ ist eine Art technik die werte mal  setzt
 
		
	
		
			
					$kampf_tausch = 1;		/////// Tausch ist eine Art technik die alle werte vertauscht gegner und sich selbst
 
		
	
		
			
					$kampf_hp = 2;			/////// HP ist eine technik die es erlaubt sich zu Heilen
 
		
	
		
			
					$kampf_hpmp = 1;		/////// HPMP ist eine art die HP+MP erhoeht
 
		
	
		
			
					$kampf_sprit = 1;		/////// spirit ist was mit spirit stones
 
		
	
		
			
					$kampf_spirit2 = 1;		/////// spirit2 ist was mit spirit stones
 
		
	
		
			
					$kampf_lose = 1;		/////// Lose ist wie Kaioken nur das man werte verliert
 
		
	
		
			
					$kampf_kaioken = 1;		/////// Kaioken ist eine technik die werte gibt
 
		
	
		
			
					//überprüfen, wie oft welche Attacke benutzt wird, sowie andere Abhängigkeiten
 
		
	
		
			
					$fehler[0] = validateAttackSetTypes($attset_cf);
 
		
	
		
			
					$fehler[1] = validateAttackSetTypes($attset_nf);
 
		
	
		
			
				
 
		
	
		
			
					/////////ALLE NEU
 
		
	
		
			
					$kampf_summon = 1;  /////// spirit2 ist was mit spirit stones
 
		
	
		
			
					$kampf_gift = 1;  /////// Lose ist wie Kaioken nur das man werte verliert
 
		
	
		
			
					$kampf_schatten = 2;  /////// Kaioken ist eine technik die werte gibt
 
		
	
		
			
					$kampf_copy = 1;		/////// Man Trasfert werte.
 
		
	
		
			
					$kampf_kaioken2 = 1;	//////// Man Bekommt sau viel staerke fuer 1runde
 
		
	
		
			
					$kampf_lose2 = 1;		//////// MP Wegmachen
 
		
	
		
			
					$kampf_majin = 1;		/////// Jemnand als majin machen.
 
		
	
		
			
					$kampf_konterheal = 2; /////// Eine Heal-Attacke kontern.
 
		
	
		
			
					$kampf_tausch2 = 3;	/////// Attacke Kopieren.
 
		
	
		
			
					$kampf_frucht = 1;
 
		
	
		
			
					//<2F> berpr<70> fen, wie oft welche Attacke benutzt wird, sowie andere Abh<62> ngigkeiten
 
		
	
		
			
					$x=0;	
 
		
	
		
			
					while($x <  count ( $ list ) )  { 
 
		
	
		
			
							$row = mysql_fetch_array(mysql_query("SELECT a.name AS name, a.type AS type, l.id AS l_id FROM attacken a LEFT JOIN lernen l ON(l.at_id=a.id) WHERE a.id='$list[$x]' AND l.besitzer='$char_id' LIMIT 1"));
 
		
	
		
			
					
 
		
	
		
			
						if($x <  10 )   { 
 
		
	
		
			
							$attacke1[$x] = $row[l_id];
 
		
	
		
			
						} else {
 
		
	
		
			
							$y = $x-10;
 
		
	
		
			
							$attacke2[$y] = $row[l_id];
 
		
	
		
			
						}
 
		
	
		
			
						
 
		
	
		
			
						if($user_ida['admin'] != "ja") {
 
		
	
		
			
							if($row[type] == "tausch") {		$kampf_tausch_n++;
 
		
	
		
			
							}elseif($row[type] == "SSJ") {		$kampf_ssj_n++;	
 
		
	
		
			
							}elseif($row[type] == "hpmp") {		$kampf_hpmp_n++;
 
		
	
		
			
							}elseif($row[type] == "hp") {		$kampf_hp_n++;
 
		
	
		
			
							}elseif($row[type] == "lose") {		$kampf_lose_n++;
 
		
	
		
			
							}elseif($row[type] == "kaioken") {	$kampf_kaioken_n++;
 
		
	
		
			
						 	}elseif($row[type] == "summon") {	$kampf_summon_n++;
 
		
	
		
			
							}elseif($row[type] == "gift") {		$kampf_gift_n++;
 
		
	
		
			
							}elseif($row[type] == "schatten") {	$kampf_schatten_n++;
 
		
	
		
			
						 	}elseif($row[type] == "copy") {		$kampf_copy_n++;
 
		
	
		
			
					 		}elseif($row[type] == "kaioken2") {	$kampf_kaioken2_n++;
 
		
	
		
			
						 	}elseif($row[type] == "lose2") {	$kampf_lose2_n++;
 
		
	
		
			
							}elseif($row[type] == "majin") {	$kampf_majin_n++;
 
		
	
		
			
							}elseif($row[type] == "tausch2") {	$kampf_tausch2_n++;
 
		
	
		
			
							}elseif($row[type] == "frucht") {	$kampf_frucht_n++;
 
		
	
		
			
							}elseif($row[type] == "konterhp") {	$kampf_konterheal_n++;
 
		
	
		
			
							}
 
		
	
		
			
							if($kampf_copy_n > $kampf_copy) {
 
		
	
		
			
					 			$fehler[0] = "Fehler die Technik vom type: Copy darf nur ".$kampf_copy." mal benutzt werden.";
 
		
	
		
			
								$anz++;
 
		
	
		
			
					 		}
 
		
	
		
			
					 		if($kampf_kaioken2_n > $kampf_kaioken2) {
 
		
	
		
			
					 			$fehler[1] = "Fehler die Technik vom type: Kaiaoken2 darf nur ".$kampf_kaioken2." mal benutzt werden.";
 
		
	
		
			
								$anz++;
 
		
	
		
			
					 		}
 
		
	
		
			
					 		if($kampf_lose2_n > $kampf_lose2) {
 
		
	
		
			
					 			$fehler[2] = "Fehler die Technik vom type: lose2 darf nur ".$kampf_lose2." mal benutzt werden.";
 
		
	
		
			
								$anz++;
 
		
	
		
			
					 		}
 
		
	
		
			
					 		if($kampf_majin_n > $kampf_majin) {
 
		
	
		
			
					 			$fehler[3] = "Fehler die Technik vom type: Majin darf nur ".$kampf_majin." mal benutzt werden.";
 
		
	
		
			
								$anz++;
 
		
	
		
			
					 		}
 
		
	
		
			
							if($kampf_tausch2_n > $kampf_tausch2) {
 
		
	
		
			
					 			$fehler[4] = "Fehler die Technik vom type: Tausch darf nur 3 mal benutzt werden.";
 
		
	
		
			
								$anz++;
 
		
	
		
			
					 		}
 
		
	
		
			
					 		if($kampf_summon_n > $kampf_summon) {
 
		
	
		
			
					 			$fehler[5] = "Fehler die Technik vom type: Summon darf nur ".$kampf_summon." mal benutzt werden.";
 
		
	
		
			
								$anz++;
 
		
	
		
			
					 		}
 
		
	
		
			
					 		if($kampf_gift_n > $kampf_gift) {
 
		
	
		
			
					 			$fehler[6] = "Fehler die Technik vom type: Gift darf nur ".$kampf_gift." mal benutzt werden.";
 
		
	
		
			
								$anz++;
 
		
	
		
			
					 		}
 
		
	
		
			
					 		if($kampf_schatten_n > $kampf_schatten) {
 
		
	
		
			
					 			$fehler[7] = "Fehler die Technik vom type: Schatten darf nur 2 mal benutzt werden.";
 
		
	
		
			
								$anz++;
 
		
	
		
			
					 		}
 
		
	
		
			
							if($kampf_ssj_n AND $kampf_kaioken_n) {
 
		
	
		
			
								$fehler[8] = "Fehler sie dü rfen Techniken vom Type SSJ und Kaioken nicht zusammen nutzen.";
 
		
	
		
			
								$anz++;
 
		
	
		
			
					 		}
 
		
	
		
			
							if($kampf_tausch_n > $kampf_tausch) {
 
		
	
		
			
								$fehler[9] = "Fehler die Technik vom type: Kampf darf nur ".$kampf_tausch." mal benutzt werden.";
 
		
	
		
			
								$anz++;
 
		
	
		
			
						 	}
 
		
	
		
			
							if($kampf_ssj_n > $kampf_ssj) {
 
		
	
		
			
								$fehler[10] = "Fehler die Technik vom type: SSJ darf nur ".$kampf_ssj." mal benutzt werden.";
 
		
	
		
			
								$anz++;
 
		
	
		
			
						 	}
 
		
	
		
			
							if($kampf_hp_n > $kampf_hp) {
 
		
	
		
			
								$fehler[11] = "Fehler die Technik vom type: HP darf nur 2  mal benutzt werden.";
 
		
	
		
			
								$anz++;
 
		
	
		
			
					 		}
 
		
	
		
			
							if($kampf_hpmp_n > $kampf_hpmp) {
 
		
	
		
			
								$fehler[12] = "Fehler die Technik vom type: HPMP darf nur ".$kampf_hpmp." mal benutzt werden.";
 
		
	
		
			
								$anz++;
 
		
	
		
			
					 		}
 
		
	
		
			
							if($kampf_sprit_n > $kampf_sprit) {
 
		
	
		
			
								$fehler[13] = "Fehler die Technik vom type:Sprit darf nur ".$kampf_sprit." mal benutzt werden.";
 
		
	
		
			
								$anz++;
 
		
	
		
			
					 		}
 
		
	
		
			
							if($kampf_sprit2_n > $kampf_sprit2) {
 
		
	
		
			
								$fehler[14] = "Fehler die Technik vom type: Sprit2 darf nur ".$kampf_sprit2." mal benutzt werden.";
 
		
	
		
			
								$anz++;
 
		
	
		
			
						 	}
 
		
	
		
			
							if($kampf_lose_n > $kampf_lose) {
 
		
	
		
			
								$fehler[15] = "Fehler die Technik vom type: Lose darf nur ".$kampf_lose." mal benutzt werden.";
 
		
	
		
			
								$anz++;
 
		
	
		
			
					 		}
 
		
	
		
			
							if($kampf_kaioken_n > $kampf_kaioken) {
 
		
	
		
			
								$fehler[16] = "Fehler die Technik vom type: Kaiaoken darf nur ".$kampf_kaioken." mal benutzt werden.";
 
		
	
		
			
								$anz++;	
 
		
	
		
			
					 		}
 
		
	
		
			
					 		if($bild11 != $_POST['bild11']){
 
		
	
		
			
					 			$fehler[17] = 'Die URL fü r das Bild ist ungü ltig!';
 
		
	
		
			
					 			$anz++;
 
		
	
		
			
					 		}
 
		
	
		
			
					 		if($kampf_frucht_n > $kampf_frucht) {
 
		
	
		
			
					 			$fehler[19] = 'Fehler die Technik vom type: frucht darf nur '.$kampf_frucht.' mal benutzt werden!';
 
		
	
		
			
					 			$anz++;
 
		
	
		
			
					 		}
 
		
	
		
			
							if($kampf_konterheal_n > $kampf_konterheal) {
 
		
	
		
			
					 			$fehler[20] = 'Fehler die Technik vom type: Konterheal darf nur '.$kampf_konterheal.' mal benutzt werden!';
 
		
	
		
			
					 			$anz++;
 
		
	
		
			
					 		}
 
		
	
		
			
					 		if($kampf_hp_n >= 1 AND $kampf_hpmp_n >= 1) {
 
		
	
		
			
					 			$fehler[21] = 'Fehler die Technik vom type: HP darf nicht zusammen mit der Technik vom type: HPMP benutzt werden!';
 
		
	
		
			
					 			$anz++;
 
		
	
		
			
					 		}
 
		
	
		
			
						}
 
		
	
		
			
					$x++;
 
		
	
		
			
					//andere Sachen überprüfen
 
		
	
		
			
					if($bild11 != $_POST['bild11']){
 
		
	
		
			
						$fehler[3] = 'Die URL fü r das Bild ist ungü ltig!';
 
		
	
		
			
					}
 
		
	
		
			
					//Schauen ob ein Fehler vorhanden ist
 
		
	
		
			
					if ($anz == 0) { 
 
		
	
		
			
				
 
		
	
		
			
					//In DB einf<6E> gen
 
		
	
		
			
						safe_query('UPDATE chars SET kampf_item=\''.$helm_e.','.$rustung_e.','.$schild_e.','.$schwert_e.','.$schuhe_e.'\', aufgeben=\''.$aufgeben.'\', rustung =\''.$rustung.'\', '.
 
		
	
		
			
								'attacken=\''.$attacke1[0].','.$attacke1[1].','.$attacke1[2].','.$attacke1[3].','.$attacke1[4].','.$attacke1[5].','.$attacke1[6].','.$attacke1[7].','.$attacke1[8].','.$attacke1[9].'\', '.
 
		
	
		
			
								'auswahl1=\''.$auswahl1_0.','.$auswahl1_1.','.$auswahl1_2.','.$auswahl1_3.','.$auswahl1_4.','.$auswahl1_5.','.$auswahl1_6.','.$auswahl1_7.','.$auswahl1_8.','.$auswahl1_9.'\', '.
 
		
	
		
			
								'auswahl2=\''.$auswahl2_0.','.$auswahl2_1.','.$auswahl2_2.','.$auswahl2_3.','.$auswahl2_4.','.$auswahl2_5.','.$auswahl2_6.','.$auswahl2_7.','.$auswahl2_8.','.$auswahl2_9.'\', '.
 
		
	
		
			
								'auswahl3=\''.$auswahl3_0.','.$auswahl3_1.','.$auswahl3_2.','.$auswahl3_3.','.$auswahl3_4.','.$auswahl3_5.','.$auswahl3_6.','.$auswahl3_7.','.$auswahl3_8.','.$auswahl3_9.'\', '.
 
		
	
		
			
								'attacken2=\''.$attacke2[0].','.$attacke2[1].','.$attacke2[2].','.$attacke2[3].','.$attacke2[4].','.$attacke2[5].','.$attacke2[6].','.$attacke2[7].','.$attacke2[8].','.$attacke2[9].'\', '.
 
		
	
		
			
								'bild=\''.$bild11.'\' WHERE id='.$char_1[id].' LIMIT 1');
 
		
	
		
			
					
 
		
	
		
			
					//Schauen ob ein Fehler vorhanden ist
 
		
	
		
			
					if ($fehler[0] == NULL & &  $fehler[1] == NULL & &  $fehler[2] == NULL) {
 
		
	
		
			
						//In DB einfügen (alter müll, vor allen was Attacken angeht!)
 
		
	
		
			
						$qry = 'UPDATE chars SET kampf_item=\''.$helm_e.','.$rustung_e.','.$schild_e.','.$schwert_e.','.$schuhe_e.'\', rustung =\''.$rustung.'\', '.
 
		
	
		
			
								'attacken=\''.implode(',', $attset_nf).'\', '.
 
		
	
		
			
								'attacken2=\''.implode(',', $attset_nf).'\', '.
 
		
	
		
			
								'bild=\''.$bild11.'\' WHERE id='.$char[id].' LIMIT 1';
 
		
	
		
			
						mysql_query($qry);
 
		
	
		
			
						
 
		
	
		
			
						//neues updaten von Attacken
 
		
	
		
			
						updateCharAttackSet($char_id, $attset_cf, CLANKAMPF);
 
		
	
		
			
						updateCharAttackSet($char_id, $attset_nf, NORMALKAMPF);
 
		
	
		
			
						
 
		
	
		
			
						echo 'Profil erfolgreich geä ndert!!< br > ';
 
		
	
		
			
						echo '< a  href = index.php?as=char_profil&char_id='.$char_id.' > < div  align = center > weiter...< / div > < / a > ';
 
		
	
		
			
						//Alle gefundenen Fehler anzeigen
 
		
	
		
			
					} else { $fehler2 = implode("< br > ", $fehler);
 
		
	
		
			
						echo '< div  align = center > '.$fehler2.'< / div > '; 
 
		
	
		
			
						echo '< br >  < a  href = "index.php?as=char_profil&char_id='.$char_id.'" > < div  align = "center" > zurü ck< / div > < / a > ';
 
		
	
		
			
					} else {
 
		
	
		
			
						displayErrorMessage(NULL, $fehler[0].'< br > '.$fehler[1].'< br > '.$fehler[2], displayHistoryBackLink());
 
		
	
		
			
						exit;
 
		
	
		
			
					}
 
		
	
		
			
				}
 
		
	
		
			
				if ($_POST['submit']==1) { eintragen($char_id,$name,$user_ida); }
 
		
	
		
			
				elseif ($char_id) { stelledar($char_id,$user_ida,$name); }
 
		
	
		
			
				else { echo 'Leider wurde die Seite nicht korrekt aufgerufen! Rufen Sie die Seite bitte korrekt auf'; }
 
		
	
		
			
				
 
		
	
		
			
				if ($_POST['submit']==1) { 
 
		
	
		
			
					eintragen($char_id,$name,$user_ida); 
 
		
	
		
			
				} elseif ($char_id) { 
 
		
	
		
			
					stelledar($char_id,$user_ida,$name); 
 
		
	
		
			
				} else {
 
		
	
		
			
					echo 'Leider wurde die Seite nicht korrekt aufgerufen! Rufen Sie die Seite bitte korrekt auf'; 
 
		
	
		
			
				}
 
		
	
		
			
				?>