Просмотр исходного кода

Minor TS3 issues fixed (#434)

* Using the TS3 image instead of the TS2 image

TS3 protocol was using TS2 image for the 'map' image in game monitor, now using the existing teamspeak3.png image which is a duplicate of ts2.png (previously used), but it makes more sense to use the good one. Another issue I noticed it that it also use the wrong icon when starting

* Fixing the unknown_icon.gif problem

in the transition page after clicking Start Server for a Teamspeak3 server, the server icons appear as https://github.com/OpenGamePanel/OGP-Website/blob/master/protocol/lgsl/other/icon_unknown.gif instead of https://github.com/OpenGamePanel/OGP-Website/blob/master/images/icons/ts3.png

This seems to fix it apparently.
®omano 7 лет назад
Родитель
Сommit
9baa3417ab
2 измененных файлов с 4 добавлено и 3 удалено
  1. 3 2
      modules/gamemanager/mini_start.php
  2. 1 1
      protocol/TeamSpeak3/TS3Monitor.php

+ 3 - 2
modules/gamemanager/mini_start.php

@@ -690,8 +690,9 @@ elseif($server_home['home_id'] == $_POST['home_id'])
 	{
 		if(isset($server_xml->lgsl_query_name))$query_name = $server_xml->lgsl_query_name;
 		else $query_name = $server_xml->gameq_query_name;
-	}
-	else $query_name = $server_xml->mods->mod['key'];
+	} elseif ($server_xml->protocol == "teamspeak3") {
+		$query_name = 'ts3';
+	} else $query_name = $server_xml->mods->mod['key'];
 	
 	if ( $server_xml->map_list || $server_xml->maps_location )
 	{

+ 1 - 1
protocol/TeamSpeak3/TS3Monitor.php

@@ -69,7 +69,7 @@ if(isset($server_home['control_password']) && $server_home['control_password'] !
 					$viewer = "Error code:" . $e->getCode() . " [ " . $e->getMessage() . " ]";
 				}
 				$ts3['player_list'] = '<div style="width: 100%; height: 100%; overflow: scroll; border: 1px dashed black">' . $viewer . '</div>';
-				$ts3['maplocation'] = "protocol/lgsl/maps/ts2/ts2.png";
+				$ts3['maplocation'] = "protocol/lgsl/maps/ts3/teamspeak3.png";
 				$ts3['address'] = "<a href='ts3server://" . $cfg["host"] . ":" . $cfg["voice"]  . "'>" . $cfg["host"] . ":" . $cfg["voice"]  . "</a>";
 				$ts3['name'] = addslashes($ts3_ServerInstance["virtualserver_name"]);
 				$ts3['map'] = "teamspeak3";