Changeset 141
- Timestamp:
- Nov 23, 2007, 11:20:39 PM (17 years ago)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guildy.php
r140 r141 1 1 <? 2 2 include('global.php'); 3 $Database->select_db('characters');4 3 ShowHeader(); 5 4 … … 27 26 } 28 27 29 $Database->select_db('mangos');28 $Database->select_db('characters'); 30 29 if(!array_key_exists('guild', $_GET)) 31 30 { … … 83 82 } 84 83 85 86 84 ShowFooter(); 87 85 ?> -
index.php
r126 r141 1 1 <?php 2 include('global.php'); 3 include('news.php'); 4 ShowHeader(); 5 echo('<TABLE width="100%" border="0"> 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 19 include('global.php'); 20 include('news.php'); 21 ShowHeader(); 22 echo('<TABLE width="100%" border="0"> 6 23 <TR> 7 24 <TD id="MainCell" valign="top"> … … 15 32 <tr><td width="60%" valign="top">'); 16 33 34 17 35 echo(ShowNews()); 18 36 echo(' 19 </td><td id="EmuInfo" valign="top"> 20 <br> 37 </td><td id="EmuInfo" valign="top">'); 38 39 // Second column 40 41 //echo(Events()); 42 43 echo('<br> 21 44 <div align="center"> 22 45 <table class="MiniTable" border="1" cellspacing="0" cellpadding="2"> … … 38 61 39 62 echo('</a></td></tr> 63 40 64 <tr><th>Návod</th><td><a href="jak_zacit.php">zde</a></td></tr> 41 65 <tr><th>Stav registrací</th><td>'); … … 68 92 <tr><th>Postav</th><td>'); 69 93 70 $Database->select_db(' mangos');94 $Database->select_db('characters'); 71 95 $Result = $Database->select('character', 'COUNT(*)'); 72 96 $Row = $Result->fetch_array();
Note:
See TracChangeset
for help on using the changeset viewer.