Changeset 631


Ignore:
Timestamp:
Aug 26, 2009, 8:20:27 PM (15 years ago)
Author:
george
Message:
  • Opraveno: RSS kanál a WoWEmu statistiky.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/rss.php

    r627 r631  
    33Header('Content-Type: text/xml');
    44
    5 include('inc/db.php');
     5include('inc/config.php');
     6include('inc/database.php');
     7include('inc/system.php');
    68include('inc/rss_generator.php');
    79
     10$System = new System($Config);
     11$db = $System->Database;
    812$NewsCount = 10;
    913$Items = array();
  • trunk/stat/stat.php

    r614 r631  
    11<?php
    2 include('../inc/db.php');
     2
     3include('../inc/config.php');
     4include('../inc/database.php');
     5include('../inc/system.php');
    36
    47$Hostname = $Config['Database']['Host'];
    58$Username = $Config['Database']['User'];
    69$Password = $Config['Database']['Password'];
    7 $Database = $Config['Mangos']['RealmList'][1]['DatabaseMangos']; // must contains characters table
     10$Database = $Config['Mangos']['RealmList'][4]['DatabaseMangos']; // must contains characters table
    811$RealmHostname = $Hostname;
    912$RealmUsername = $Username;
    1013$RealmPassword = $Password;
    1114$RealmDatabase = $Config['Mangos']['DatabaseRealmd'];  // must contains zone_coordinates and accounts table
    12 $CharactersDatabase = $Config['Mangos']['RealmList'][1]['DatabaseCharacters'];  // must contains zone_coordinates and accounts table
     15$CharactersDatabase = $Config['Mangos']['RealmList'][4]['DatabaseCharacters'];  // must contains zone_coordinates and accounts table
    1316$EmuVersion = $Config['Mangos']['ClientVersion'];
    1417$Owner = $Config['Web']['Admin'];
Note: See TracChangeset for help on using the changeset viewer.