This commit is contained in:
Ulrich Block 2014-05-18 13:50:14 +02:00
parent 37b9194405
commit 347d9edf72
2 changed files with 2 additions and 6 deletions

View File

@ -206,11 +206,7 @@ if (!isset($ip) or $ui->escaped('SERVER_ADDR', 'server') == $ip or in_array($ip,
// without the gameq value we cannot query. So this results need to be sorted out.
if (!in_array($row['gameq'], array('', null, false))) {
if (in_array($row['gameq'], array('cube2', 'ut', 'ut2004', 'ut3', 'mta'))) {
$checkAtIPPort = $row['serverip'] . ':' . $row['port2'];
} else {
$checkAtIPPort = $row['serverip'] . ':' . $row['port'];
}
$checkAtIPPort = (in_array($row['gameq'], array('cube2', 'ut', 'ut2004', 'ut3', 'mta'))) ? $row['serverip'] . ':' . $row['port2'] : $row['serverip'] . ':' . $row['port'];
$serverBatchArray[] = array('id' => $row['id'], 'type' => $row['gameq'], 'host' => $checkAtIPPort);
$i++;

View File

@ -75,7 +75,7 @@ if (isset($_SESSION['sID'])) {
}
$gscount = count($substituteAccess['gs']);
$vhostcount = count($substituteAccess['ws']);
$vhostcount = count($substituteAccess['wv']);
$voicecount = count($substituteAccess['vo']);
$tsdnscount = count($substituteAccess['vd']);
$dbcount = count($substituteAccess['db']);