Changeset 682 for trunk/pages
- Timestamp:
- Jan 23, 2010, 4:03:37 PM (15 years ago)
- Location:
- trunk/pages
- Files:
-
- 1 deleted
- 3 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 { -
trunk/pages/gmteam.php
r681 r682 55 55 56 56 $Output .= ShowGMList(array('Id' => 0, 'Name' => 'Všechny světy')); 57 foreach($Config['Mangos']['RealmList'] as $Realm) 57 $DbResult = $System->Database->query('SELECT * FROM Realm'); 58 while($Realm = $DbResult->fetch_assoc()) 58 59 { 59 60 $Output .= ShowGMList($Realm); -
trunk/pages/server.php
r681 r682 1 1 <?php 2 3 $DbResult = $System->Database->query('SELECT COUNT(*) FROM Realm'); 4 $DbRow = $DbResult->fetch_row(); 5 $RealmCount = $DbRow[0]; 2 6 3 7 $Output = '<h3 class="PageTitle">Server Heroes of Fantasy</h3>'. … … 12 16 <tr> 13 17 <td>Celkem světů</td> 14 <td>'. count($Config['Mangos']['RealmList']).'</td>18 <td>'.$RealmCount.'</td> 15 19 </tr> 16 20 <tr>
Note:
See TracChangeset
for help on using the changeset viewer.