Changeset 142 for minimanager/stat.php


Ignore:
Timestamp:
Nov 23, 2007, 11:29:33 PM (17 years ago)
Author:
george
Message:

Minimanager 0.1.5b

File:
1 edited

Legend:

Unmodified
Added
Removed
  • minimanager/stat.php

    r19 r142  
    6161 $total_gms = $sql->result($query,1);
    6262
    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']);
    6464 $query = $sql->query("SELECT count(*) FROM `character`");
    6565 $total_chars = $sql->result($query,0);
    6666 
     67 $sql->connect($mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);
    6768 $query = $sql->query("SELECT AVG(uptime)/60,MAX(uptime)/60,(100*SUM(uptime)/(UNIX_TIMESTAMP()-MIN(starttime))) FROM uptime");
    6869 $uptime = $sql->fetch_row($query);
     
    8788 $output .= "<div class=\"top\"><h1>{$lang_stat['srv_statistics']}</h1></div>";
    8889 
     90 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']);
     91
    8992 //there is always less hordies
    9093 $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.