Database->query('SELECT Logon.Id, Host.Address, Logon.Port FROM Logon JOIN Host ON Host.Id=Logon.Host WHERE Logon.Id='.$_GET['Server'].' AND Logon.Enabled=1'); if($DbResult->num_rows > 0) { $Realm = $DbResult->fetch_assoc(); echo('set realmlist '.$Realm['Address']); if($Realm['Port'] != 3724) echo(':'.$Realm['Port']); echo(''); } else echo('Neznámé Id serveru'); } else { $Output = '

Seznam světů

'; $DbResult = $System->Database->query('SELECT Logon.ClientVersion, Logon.Name, Logon.Id, Host.Address, Logon.Port FROM Logon JOIN Host ON Host.Id=Logon.Host WHERE Logon.Enabled=1'); while($DbRow = $DbResult->fetch_assoc()) { $Server = new Server($System, $DbRow['Id']); $Output .= '
'.$DbRow['Name'].' '.$DbRow['ClientVersion'].' - realmlist: '.$DbRow['Address']; if($DbRow['Port'] != 3724) $Output .= ':'.$DbRow['Port']; $Output .= '
'; $Output .= ''. ''. ''. ''. ''. ''. ''. ''. ''; $DbResult2 = $System->Database->query('SELECT *, '.$System->SQLURLName('Name').' AS URLName FROM Realm WHERE Logon='.$Server->Id.' AND Enabled=1 ORDER BY Name'); while($DbRow = $DbResult2->fetch_assoc()) { $Realm = new Realm($System, $DbRow['Id']); $Output .= ''; $Output .= ''; //if(array_key_exists($Index + 1, $Config['Mangos']['RealmList'])) $Output .= ''; } $Output .= '
NázevNásobek XPZaměřeníJazykStavHráči online
'.$Realm->Data['Name'].''.$Realm->Data['Rate'].''.$Realm->Data['Type'].''.$Realm->Data['Locale'].''.$Server->OnlineStateImage($Realm->Data['Online']).''.$Realm->OnlineCharactersCount().'
'.$Realm->Data['Description'].'
 

'; } echo($Output); } } function RealmInfo() { global $System; $DbResult = $System->Database->query('SELECT * FROM Realm WHERE Id='.$_COOKIE['RealmIndex']); $Realm = $DbResult->fetch_assoc(); echo('

'.$Realm['Name'].'

'); echo($Realm['Information']); } if(count($QueryItems) > 1) { $RealmName = $QueryItems[1]; $DbResult = $System->Database->query('SELECT Id FROM Realm WHERE '.$System->SQLURLName('Name').'="'.$RealmName.'"'); $DbRow = $DbResult->fetch_assoc(); $_COOKIE['RealmIndex'] = $DbRow['Id']; if(count($QueryItems) > 2) { if($QueryItems[2] == 'online-hraci') include('online-hraci.php'); else if($QueryItems[2] == 'prikazy') include('prikazy.php'); else if($QueryItems[2] == 'akce') include('akce.php'); else if($QueryItems[2] == 'arena') include('arena.php'); else if($QueryItems[2] == 'nej-hraci') include('nej-hraci.php'); else if($QueryItems[2] == 'mapa') include('mapa.php'); else if($QueryItems[2] == 'spolek') include('spolek.php'); else if($QueryItems[2] == 'spolky') include('spolky.php'); else RealmInfo(); } else RealmInfo(); } else RealmList(); ?>