Skip to content

Commit

Permalink
IDragonfire#183 change map name and queryport
Browse files Browse the repository at this point in the history
  • Loading branch information
xDGeForcexD committed Sep 16, 2012
1 parent 333250a commit 36e282d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions inc/server_query/bf3.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function server_query_bf3($ip, $port, $q_port, $request)
{
global $server_timeout;

$q_port = empty($q_port) ? 48888 : $q_port;
$q_port = empty($q_port) ? 47200 : $q_port;

@set_time_limit(20);
$fp = @fsockopen("tcp://$ip", $q_port, $errno, $errstr, $server_timeout);
Expand Down Expand Up @@ -48,14 +48,14 @@ function server_query_bf3($ip, $port, $q_port, $request)
case 'XP1_002': $nmap = 'Gulf of Oman'; break;
case 'XP1_003': $nmap = 'Sharqi Peninsula'; break;
case 'XP1_004': $nmap = 'Wake Island'; break;
case 'xp2_factory': $nmap = 'Altmetall'; break;
case 'xp2_office': $nmap = 'Operation 925'; break;
case 'xp2_palace': $nmap = 'Donya-Festung'; break;
case 'xp2_skybar': $nmap = 'Ziba-Turm'; break;
case 'xp3_alborz': $nmap = 'Elburs-Gebirge'; break;
case 'xp3_desert': $nmap = 'Bandar-Wüste'; break;
case 'xp3_shield': $nmap = 'Armored Shield'; break;
case 'xp3_valley': $nmap = 'Tal des Todes'; break;
case 'XP2_Factory': $nmap = 'Altmetall'; break;
case 'XP2_Office': $nmap = 'Operation 925'; break;
case 'XP2_Palace': $nmap = 'Donya-Festung'; break;
case 'XP2_Skybar': $nmap = 'Ziba-Turm'; break;
case 'XP3_Alborz': $nmap = 'Elburs-Gebirge'; break;
case 'XP3_Desert': $nmap = 'Bandar-Wüste'; break;
case 'XP3_Shield': $nmap = 'Armored Shield'; break;
case 'XP3_Valley': $nmap = 'Tal des Todes'; break;
}
$data['mapname'] = $nmap;
} else if($request == 'players') {
Expand Down

0 comments on commit 36e282d

Please sign in to comment.