Changeset 583 for trunk/inc/server.php
- Timestamp:
- May 7, 2009, 9:15:17 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/server.php
r558 r583 48 48 global $Config; 49 49 50 include('inc/db.php');51 50 $this->db->select_db($Config['Mangos']['DatabaseCharacters']); 52 51 $pocet = $this->db->query('SELECT `guid` FROM `characters` WHERE `online` = 1')->num_rows; … … 76 75 global $Config; 77 76 78 include('inc/db.php');79 77 $this->db->select_db($Config['Mangos']['DatabaseRealmd']); 80 78 $row = $this->db->query('SELECT `starttime`, `uptime` FROM `uptime` ORDER BY `starttime` DESC LIMIT 1') … … 88 86 global $Config; 89 87 90 include('inc/db.php');91 88 $this->db->select_db($Config['Mangos']['DatabaseCharacters']); 92 89 $row = $this->db->query('SELECT COUNT(*) FROM characters')->fetch_array(); … … 98 95 global $Config; 99 96 100 include('inc/db.php');101 97 $this->db->select_db($Config['Mangos']['DatabaseRealmd']); 102 98 $row = $this->db->query('SELECT COUNT(*) FROM account')->fetch_array(); … … 107 103 { 108 104 global $Config; 109 include('inc/db.php'); 105 110 106 $this->db->select_db($Config['Mangos']['DatabaseCharacters']); 111 107 $row = $this->db->query('SELECT `name` FROM `characters` WHERE `guid` = "'.$guid.'" LIMIT 1')->fetch_array();
Note:
See TracChangeset
for help on using the changeset viewer.