Changeset 142 for minimanager/stat.php
- Timestamp:
- Nov 23, 2007, 11:29:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/stat.php
r19 r142 61 61 $total_gms = $sql->result($query,1); 62 62 63 $sql->connect($ mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);63 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 64 64 $query = $sql->query("SELECT count(*) FROM `character`"); 65 65 $total_chars = $sql->result($query,0); 66 66 67 $sql->connect($mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']); 67 68 $query = $sql->query("SELECT AVG(uptime)/60,MAX(uptime)/60,(100*SUM(uptime)/(UNIX_TIMESTAMP()-MIN(starttime))) FROM uptime"); 68 69 $uptime = $sql->fetch_row($query); … … 87 88 $output .= "<div class=\"top\"><h1>{$lang_stat['srv_statistics']}</h1></div>"; 88 89 90 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 91 89 92 //there is always less hordies 90 93 $query = $sql->query("SELECT count(guid) FROM `character` WHERE race IN(2,5,6,8,10)");
Note:
See TracChangeset
for help on using the changeset viewer.