- Timestamp:
- Aug 7, 2009, 10:48:28 PM (15 years ago)
- Location:
- trunk/inc
- Files:
-
- 2 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
Note:
See TracChangeset
for help on using the changeset viewer.