$api_relid = $GPXIN['id']; $usr_username = $GPXIN['username']; $usr_game_intname = $GPXIN['game']; $usr_password = $GPXIN['password']; $usr_email = $GPXIN['email']; $usr_first_name = $GPXIN['first_name']; $usr_last_name = $GPXIN['last_name']; $srv_total_slots = $GPXIN['slots']; $srv_url_port = $GPXIN['port']; $srv_rcon_pass = $GPXIN['rcon_password']; $srv_private_pass = $GPXIN['private_password']; $srv_is_private = $GPXIN['is_private']; // Create server if ($api_action == 'create' || $api_action == 'createserver') { // Get available IP with default port (for now ...later we will add incremental ports) $combo = $Servers->get_avail_ip_port($usr_game_intname, $srv_url_port); #var_dump($combo); echo '<br>'; // Get ID for this game $result_gid = @mysql_query("SELECT id FROM default_games WHERE intname = '{$usr_game_intname}'"); $row_gid = mysql_fetch_row($result_gid); $this_gid = $row_gid[0]; if (empty($this_gid)) { die('Invalid game specified!'); } if ($combo['available'] == 'yes') { $srv_netid = $combo['netid']; $srv_port = $combo['port']; $srv_description = ''; // Check if username exists $result_ck = @mysql_query("SELECT id FROM users WHERE username = '******' AND deleted = '0' LIMIT 1"); $row_ck = mysql_fetch_row($result_ck);