|
|
@@ -3,7 +3,7 @@
|
|
|
/*
|
|
|
*
|
|
|
* OGP - Open Game Panel
|
|
|
- * Copyright (C) 2008 - 2017 The OGP Development Team
|
|
|
+ * Copyright (C) Copyright (C) 2008 - 2012 The OGP Development Team
|
|
|
*
|
|
|
* http://www.opengamepanel.org/
|
|
|
*
|
|
|
@@ -22,7 +22,6 @@
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
*
|
|
|
*/
|
|
|
-
|
|
|
error_reporting(E_ALL);
|
|
|
require_once('includes/lib_remote.php');
|
|
|
require_once('modules/gamemanager/home_handling_functions.php');
|
|
|
@@ -135,12 +134,12 @@ function get_server_selector($server_homes, $homeid_ip_port = FALSE, $onchange =
|
|
|
$server_xml = read_server_config(SERVER_CONFIG_LOCATION."/".$server_home['home_cfg_file']);
|
|
|
if( $server_xml->installer == "steamcmd" ){
|
|
|
$additionalMarkup = 'steam="1"';
|
|
|
- }
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
$selected = (trim($homeid_ip_port) == trim($server_home['home_id']) || ($homeid_ip_port and $homeid_ip_port == $server_home['home_id']."_".$server_home['ip']."_".$server_home['port'])) ? 'selected="selected"' : '';
|
|
|
$select_game .= "<option value='". $server_home['home_id'] . "_" . $server_home['ip'] .
|
|
|
"_" . $server_home['port'] . "' $selected " . $additionalMarkup . ">" . $server_home['home_name'] .
|
|
|
- " - " . $server_home['ip'] . ":" .$server_home['port'] . "</option>\n";
|
|
|
+ " - " . checkDisplayPublicIP($server_home['display_public_ip'],$server_home['ip']) . ":" .$server_home['port'] . "</option>\n";
|
|
|
}
|
|
|
}
|
|
|
return $select_game .= "</select>\n";
|