Changeset 611
- Timestamp:
- Aug 7, 2009, 10:48:28 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/html.php
r609 r611 297 297 '<tr>'. 298 298 '<td colspan="2">'. 299 '<strong>Server : </strong>'.$server->ServerImg($server->ServerOnline($Config['Web']['WoWServerAddr'], 3724)).'<b> (<a href="?page= online">'.$server->ServerMangosOnline().' hráčů</a>) | Patch '.$Config['Mangos']['ClientVersion'].' | <a href="'.$Config['Web']['BaseURL'].'/pages/realmlist.wtf">Realmlist</a> | Více info<a href="?page=server">zde</a></b>'.299 '<strong>Server : </strong>'.$server->ServerImg($server->ServerOnline($Config['Web']['WoWServerAddr'], 3724)).'<b> (<a href="?page=realmlist">'.$server->ServerMangosOnline().' hráčů celkem</a>) | Patch '.$Config['Mangos']['ClientVersion'].' | <a href="'.$Config['Web']['BaseURL'].'/pages/realmlist.wtf">Realmlist</a> | Více informací <a href="?page=server">zde</a></b>'. 300 300 '</td></tr></table><br />'); 301 301 } -
trunk/inc/server.php
r609 r611 103 103 global $Config; 104 104 105 $this->db->select_db($Config['Mangos']['RealmList'][$RealmId]['DatabaseCharacters']); 106 $row = $this->db->query('SELECT COUNT(*) FROM characters')->fetch_row(); 107 return($row[0]); 105 $this->db->select_db($Config['Mangos']['RealmList'][$RealmId]['DatabaseCharacters']); 106 $DbResult = $this->db->query('SELECT COUNT(*) FROM `characters`'); 107 $DbRow = $DbResult->fetch_row(); 108 return($DbRow[0]); 108 109 } 109 110 -
trunk/index.php
r610 r611 46 46 array('link' => 'forum/', 'Text' => 'Fórum'), 47 47 array('link' => '?page=server', 'Text' => 'Server'), 48 array('link' => '?page=gmteam', 'Text' => 'GM Tým'),49 48 array('link' => 'bug_tracker/', 'Text' => 'Nahlaš chybu'), 50 49 array('link' => 'gallery/', 'Text' => 'Galerie'), … … 61 60 $RealmMenuItems = array( 62 61 array('link' => '?page=online', 'Text' => 'Online hráči'), 63 array('link' => '#', 'Text' => 'Mapa hráčů', 'OnClick' => "popup('../minimanager/pomm/pomm.php?realmid= 1', 1000, 800); return false;"),62 array('link' => '#', 'Text' => 'Mapa hráčů', 'OnClick' => "popup('../minimanager/pomm/pomm.php?realmid=".$_COOKIE['RealmIndex']."', 1000, 800); return false;"), 64 63 array('link' => '?page=tophraci', 'Text' => 'Nej hráči'), 65 64 array('link' => '?page=guildy', 'Text' => 'Spolky'), 65 array('link' => '?page=gmteam', 'Text' => 'GM Tým'), 66 66 array('link' => '?page=gh', 'Text' => 'Domky spolků'), 67 67 array('link' => '?page=arena', 'Text' => 'Arény'), -
trunk/pages/gmteam.php
r583 r611 27 27 $Acc = $Line['AccID']; 28 28 */ 29 $db->select_db($Config['Mangos'][' DatabaseCharacters']);29 $db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']); 30 30 echo('<tr><th>GM Postavy ve hře:</th>'); 31 31 echo('<td>'); -
trunk/pages/realmlist.php
r609 r611 9 9 '<th>Zaměření</th>'. 10 10 '<th>Stav</th>'. 11 '<th> Online hráčů</th>'.11 '<th>Hráči online / max. online / celkem</th>'. 12 12 '</tr>'; 13 13 … … 19 19 { 20 20 $DbRow = $DbResult->fetch_assoc(); 21 $Output .= '<tr><td>'.$RealmConfig['Name'].'</td><td>'.$RealmConfig['XPRate'].'x</td><td>'.$RealmConfig['Type'].'</td><td>'.$server->ServerImg($server->ServerOnline($DbRow['address'], $DbRow['port'])).'</td><td>'.$server->MangosOnline($DbRow['id']).' / '.$RealmConfig['MaxOnlinePlayers'].' </td></tr>';21 $Output .= '<tr><td>'.$RealmConfig['Name'].'</td><td>'.$RealmConfig['XPRate'].'x</td><td>'.$RealmConfig['Type'].'</td><td>'.$server->ServerImg($server->ServerOnline($DbRow['address'], $DbRow['port'])).'</td><td>'.$server->MangosOnline($DbRow['id']).' / '.$RealmConfig['MaxOnlinePlayers'].' / '.$server->CharacterCount($Index).'</td></tr>'; 22 22 $Output .= '<tr><td colspan="5">'.$RealmConfig['Description'].'</td></tr>'; 23 23 if(array_key_exists($Index + 1, $Config['Mangos']['RealmList'])) $Output .= '<tr><td colspan="5"> </td></tr>';
Note:
See TracChangeset
for help on using the changeset viewer.