servers'; $gamesa=safe_query("SELECT tag, name FROM ".PREFIX."games ORDER BY name"); while($dv=mysql_fetch_array($gamesa)) { $games.=''; } if($_GET['action']=="add") { echo'
Server-Name:
Game:
Server IP:
Info:
 
'; } elseif($_GET['action']=="edit") { $serverID = $_GET['serverID']; $ergebnis=safe_query("SELECT * FROM ".PREFIX."servers WHERE serverID='".$serverID."'"); $ds=mysql_fetch_array($ergebnis); $games=str_replace(' selected', '', $games); $games=str_replace('value="'.$ds[game].'"', 'value="'.$ds[game].'" selected', $games); echo'
Server-Name:
Game:
Server IP:
Info:
'; } else { echo'

'; $ergebnis=safe_query("SELECT * FROM ".PREFIX."servers ORDER BY sort"); $anz=mysql_num_rows($ergebnis); if($anz) { echo'
'; while($ds=mysql_fetch_array($ergebnis)) { $list = ''; $list = str_replace('value="'.$ds[serverID].'-'.$ds[sort].'"','value="'.$ds[serverID].'-'.$ds[sort].'" selected',$list); echo''; } echo'
Server: Actions:
- IP: '.$ds[ip].'
'.$ds[name].'
'.$list.'
'; } else echo'no servers available'; } ?>