$config_file = $srvinfo[0]['config_file'];
 #echo '<pre>';
 #var_dump($srvinfo);
 #echo '</pre>';
 // Check if IP:Port combo already exists
 if ($url_netid != $orig_netid && isset($_SESSION['gpx_admin'])) {
     if (!$Servers->checkcombo($url_netid, $url_port)) {
         die($lang['ip_port_used']);
     }
 }
 ########################################################################
 // Need to move gameserver directories (user,ip,or port changes)
 if (isset($_SESSION['gpx_admin'])) {
     if ($url_userid != $orig_userid || $url_netid != $orig_netid || $url_port != $orig_port) {
         // Move directory on gameserver
         $srv_move = $Servers->moveserver($url_id, $orig_userid, $orig_username, $orig_netid, $orig_ip, $orig_port, $url_userid, $url_netid, $url_port);
         if ($srv_move != 'success') {
             die('Failed to move server: ' . $srv_move);
         }
     }
 }
 ########################################################################
 // Admins
 if (isset($_SESSION['gpx_admin'])) {
     if (GPXDEBUG) {
         echo "Saving description: {$url_descr}, for ID: {$url_id}<br>";
     }
     @mysql_query("UPDATE servers SET \r\n                          netid = '{$url_netid}',userid = '{$url_userid}',port = '{$url_port}',maxplayers = '{$url_maxpl}',\r\n                          last_updated = NOW(),startup = '{$url_startup}',working_dir = '{$url_working_dir}',pid_file = '{$url_pid_file}',\r\n                          description = '{$url_descr}',update_cmd = '{$url_updatecmd}',simplecmd = '{$url_cmd}',hostname = '{$url_hostn}',\r\n                          map = '{$url_map}',rcon = '{$url_rcon}',sv_password = '******' \r\n                      WHERE id = '{$url_id}'") or die('Failed to update admin server settings: ' . mysql_error());
 } else {
     @mysql_query("UPDATE servers SET \r\n                          last_updated = NOW(),description = '{$url_descr}',hostname = '{$url_hostn}',\r\n                          map = '{$url_map}',rcon = '{$url_rcon}',sv_password = '******' \r\n                      WHERE id = '{$url_id}' AND userid = '{$gpx_userid}'") or die('Failed to update client server settings!');
 }