Changeset 168
- Timestamp:
- Dec 9, 2007, 5:43:15 PM (17 years ago)
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
global.php
r126 r168 23 23 array('online_player.php', 'Online hráèi', 'online_player'), 24 24 array('honor.php', 'Tabulka cti', 'honor'), 25 array('Death%20Dealers%20Hratelne%20Rasy.php', 'Rasy', 'rasy'), 26 array('Death%20Dealers%20Povolani.php', 'Povolání', 'povolani'), 27 array('Death%20Dealers%20Profese.php', 'Profese', 'profese'), 25 array('events.php', 'Události', 'udalosti'), 26 //array('Death%20Dealers%20Hratelne%20Rasy.php', 'Rasy', 'rasy'), 27 //array('Death%20Dealers%20Povolani.php', 'Povolání', 'povolani'), 28 //array('Death%20Dealers%20Profese.php', 'Profese', 'profese'), 28 29 ); 29 30 -
index.php
r162 r168 1 1 <?php 2 3 function Events()4 {5 global $Database;6 $Database->select_db('mangos');7 $DbResult = $Database->select('game_event', '*,UNIX_TIMESTAMP(start) as start', 'end > NOW() AND start < NOW()');8 $Result = '<strong>Probíhající události ve høe:</strong><br>';9 while($Row = $DbResult->fetch_array())10 {11 $Start = floor((time() - $Row['start']) / ($Row['occurence'] * 60)) * $Row['occurence'] + $Row['start'];12 $End = $Start + $Row['length'] * 60;13 $Result .= $Row['description'].' '.date('H:i:s j.n.Y', $Start).' '.date('H:i:s j.n.Y', $End).'<br>';14 }15 16 return($Result);17 }18 2 19 3 include('global.php');
Note:
See TracChangeset
for help on using the changeset viewer.