Changeset 583 for trunk/inc/server.php


Ignore:
Timestamp:
May 7, 2009, 9:15:17 AM (16 years ago)
Author:
george
Message:
  • Opraveno: Chyba v CSS stylech způsobovala špatné zobrazení rámečků tabulek a stylů dalších prvnků.
  • Upraveno: Sjednocen styl různých tabulek.
  • Upraveno: Přepis nejednotného přístupu k databázi přes jiné proměnné a konstanty než dle konfigurace proměnné $Config.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/inc/server.php

    r558 r583  
    4848    global $Config;
    4949   
    50     include('inc/db.php');
    5150    $this->db->select_db($Config['Mangos']['DatabaseCharacters']);
    5251    $pocet = $this->db->query('SELECT `guid` FROM `characters` WHERE `online` = 1')->num_rows;
     
    7675          global $Config;
    7776
    78     include('inc/db.php');
    7977    $this->db->select_db($Config['Mangos']['DatabaseRealmd']);
    8078    $row = $this->db->query('SELECT `starttime`, `uptime` FROM `uptime` ORDER BY `starttime` DESC LIMIT 1')
     
    8886    global $Config;
    8987
    90     include('inc/db.php');
    9188    $this->db->select_db($Config['Mangos']['DatabaseCharacters']);
    9289    $row = $this->db->query('SELECT COUNT(*) FROM characters')->fetch_array();
     
    9895          global $Config;
    9996
    100     include('inc/db.php');
    10197    $this->db->select_db($Config['Mangos']['DatabaseRealmd']);
    10298    $row = $this->db->query('SELECT COUNT(*) FROM account')->fetch_array();
     
    107103  {
    108104          global $Config;
    109     include('inc/db.php');
     105
    110106    $this->db->select_db($Config['Mangos']['DatabaseCharacters']);
    111107    $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.