Răsfoiți Sursa

Change for http://opengamepanel.org/forum/viewthread.php?thread_id=5239

own3mall 9 ani în urmă
părinte
comite
28cb0838ab

+ 1 - 1
modules/dashboard/query_ref.php

@@ -93,7 +93,7 @@ function exec_ogp_module()
 			 $server_home['home_id']."-".$server_home['mod_id']."-".$server_home['ip']."-".$server_home['port'].
 			 "' ><img style='border:0;height:12px;' src='images/magnifglass.png'/><span>". 
 			 htmlentities($server_home['home_name'])."</span></a></div>".
-			 "<div><div style='font-size:8pt;' >[".$players.'/'.$playersmax."]</div> ".$map.'</div>'.
+			 "<div><div style='font-size:8pt;' >[".$players.'/'.$playersmax."]</div> " . ((isset($mapRaw) && !empty($mapRaw)) ? htmlentities($mapRaw) : $map) .'</div>'.
 			 "<div id='gamelink' >$address</div>";
 		$_SESSION[$server_key]['playersmax'] = $playersmax;
 		if ( $players >= 1 )

+ 1 - 1
modules/gamemanager/ref_servermonitor.php

@@ -108,7 +108,7 @@ function exec_ogp_module()
 			$onlineT .= "</div>";
 			$onlineT .= "<div class='server-info' >";
 				@$onlineT .= hostname .": <marquee class='hostname'>" . htmlentities($name) . "</marquee><br />";
-				@$onlineT .= current_map .": $currentmap";
+				@$onlineT .= current_map . ": " . ((isset($mapRaw) && !empty($mapRaw)) ? htmlentities($mapRaw) : $currentmap);
 			$onlineT .= "</div>";
 		}
 		else if($status == "half")

+ 2 - 1
protocol/lgsl/LGSLMonitor.php

@@ -65,6 +65,7 @@ if($num_of_servers < $numberservers_to_skip_query)
 		$playersmax= $data['s']['playersmax'];
 		$name = $data['s']['name'];
 		$map  = preg_replace("/[^a-z0-9_]/", "_", strtolower($data['s']['map']));
+		$mapRaw = $data['s']['map'];
 		$address = $data['link'];
 		
 		if ( $data['s']['players'] > 0 )
@@ -81,4 +82,4 @@ else
 	$status = "half";
 	$notifications = get_lang_f('queries_disabled_by_setting_disable_queries_after',$numberservers_to_skip_query,$num_of_servers);
 }
-?>
+?>