Changeset 427 for beta/inc/server.php
- Timestamp:
- Feb 10, 2009, 4:45:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
beta/inc/server.php
r405 r427 48 48 public function MangosOnline() 49 49 { 50 $this -> db -> select_db("realm1_characters"); 50 include("inc/db.php"); 51 $this -> db -> select_db($db_characters); 51 52 $pocet = $this -> db -> query("SELECT `guid` FROM `characters` WHERE `online` = '1'") -> num_rows; 52 53 return $pocet; … … 78 79 public function ServerUptime () 79 80 { 80 $this -> db -> select_db("realm1_mangos"); 81 include("inc/db.php"); 82 $this -> db -> select_db($db_mangos); 81 83 $row = $this -> db -> query('SELECT `starttime`, `uptime` FROM `uptime` ORDER BY `starttime` DESC LIMIT 1') ->fetch_array(); 82 84 $uptime = round($row["uptime"] / 3600); … … 86 88 public function CharacterCount() 87 89 { 88 $this -> db -> select_db("realm1_characters"); 90 include("inc/db.php"); 91 $this -> db -> select_db($db_characters); 89 92 $row = $this -> db -> query("SELECT COUNT(*) FROM characters") -> fetch_array(); 90 93 return($row[0]); … … 93 96 public function AccountCount() 94 97 { 95 $this -> db -> select_db("realm1_realmd"); 98 include("inc/db.php"); 99 $this -> db -> select_db($db_realmd); 96 100 $row = $this -> db -> query("SELECT COUNT(*) FROM account") -> fetch_array(); 97 101 return($row[0]); … … 100 104 public function GuidToCharName ($guid) 101 105 { 102 $this -> db -> select_db("realm1_characters"); 106 include("inc/db.php"); 107 $this -> db -> select_db($db_characters); 103 108 $row = $this -> db -> query("SELECT `name` FROM `characters` WHERE `guid` = '".$guid."' LIMIT 1;") -> fetch_array(); 104 109 return $row["name"];
Note:
See TracChangeset
for help on using the changeset viewer.