Changeset 682 for trunk/pages/events.php
- Timestamp:
- Jan 23, 2010, 4:03:37 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/events.php
r681 r682 40 40 function Events() 41 41 { 42 global $db, $EventsLinks, $Config ;42 global $db, $EventsLinks, $Config, $System; 43 43 44 44 $Events = array('Running' => array(), 'Planned' => array()); 45 $ db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseMangos']);45 $Realm = new Realm($System, $_COOKIE['RealmIndex']); 46 46 47 $DbResult = $ db->query('SELECT *, UNIX_TIMESTAMP(start_time) as start FROM game_event WHERE end_time > NOW() AND start_time < NOW()');47 $DbResult = $Realm->MangosDatabase->query('SELECT *, UNIX_TIMESTAMP(start_time) as start FROM game_event WHERE end_time > NOW() AND start_time < NOW()'); 48 48 while($Row = $DbResult->fetch_array()) 49 49 {
Note:
See TracChangeset
for help on using the changeset viewer.