PHP-Code:
<?
// Rallys abfragen
$ref=mysql_fetch_array(mysql_query("SELECT start, ende, ralley FROM ".$db_prefix."_ralleydaten WHERE ralley='refralley'"));
$klick=mysql_fetch_array(mysql_query("SELECT start, ende, ralley FROM ".$db_prefix."_ralleydaten WHERE ralley='klickralley'"));
$aktiv=mysql_fetch_array(mysql_query("SELECT start, ende, ralley FROM ".$db_prefix."_ralleydaten WHERE ralley='aktivralley'"));
$surf=mysql_fetch_array(mysql_query("SELECT start, ende, ralley FROM ".$db_prefix."_ralleydaten WHERE ralley='betauralley'"));
$tagesk=mysql_fetch_array(mysql_query("SELECT start, ende, ralley FROM ".$db_prefix."_ralleydaten WHERE ralley='tagrally'"));
$tagesb=mysql_fetch_array(mysql_query("SELECT start, ende, ralley FROM ".$db_prefix."_neu_rallydaten WHERE ralley='tbettelrally'"));
$tourn=mysql_fetch_array(mysql_query("SELECT start, ende, name FROM stg_ralleyconfig WHERE name='tournament'"));
$sow=mysql_fetch_array(mysql_query("SELECT start, ende, name FROM stg_ralleyconfig WHERE name='slotofweek'"));
$high=mysql_fetch_array(mysql_query("SELECT start, ende, ralley FROM ".$db_prefix."_ralleydaten WHERE ralley='highlander'"));
?>
<?head("Ralley System")?>
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#000000">
<tr bgcolor="#00008B" style="background-image:url('/images/leiste.gif');">
<td width="40" align="center"><b>Status</b></td><td align="center"><b>Rallyart</b></td><td width="150" align="center"><b>Start</b></td><td width="150" align="center"><b>Ende</b></td>
</tr>
<tr bgcolor="#1E90FF">
<td align="center">
<? if ($ref[ende]>= time() and $ref[start]<= time()){echo"<img src='images/gruen.gif' alt='on' border='0'>";} else{echo"<img src='images/rot.gif' alt='off' border='0'>";}?></td><td><a href="index.php?content=/ralleys/ref" target="_self" class="menue"><font color="000000">Refralley</font></a></td><td align="center"><?
// Ralleydaten auslesen
$ralleydaten = mysql_fetch_array (db_query ('SELECT * FROM '.$db_prefix.'_ralleydaten WHERE ralley = "refralley" LIMIT 1'));
date('d.m.Y H:i', $ralleydaten['start']);?><?
?><b><?=date('d.m.Y ; H:i ', $ralleydaten['start']);?></b>
</td><td align="center"><b><?=date('d.m.Y ; H:i ', $ralleydaten['ende']);?></b></td>
</tr>
<tr bgcolor="#87CEFA">
<td align="center">
<? if ($klick[ende]>= time() and $klick[start]<= time()){echo"<img src='images/gruen.gif' alt='on' border='0'>";} else{echo"<img src='images/rot.gif' alt='off' border='0'>";}?></td><td><a href="index.php?content=/ralleys/klick" target="_self" class="menue"><font color="000000">Klickralley</font></a></td><td align="center"><?
// Ralleydaten auslesen
$ralleydaten = mysql_fetch_array (db_query ('SELECT * FROM '.$db_prefix.'_ralleydaten WHERE ralley = "klickralley" LIMIT 1'));
date('d.m.Y H:i', $ralleydaten['start']);?><?
?><b><?=date('d.m.Y ; H:i ', $ralleydaten['start']);?></b>
</td><td align="center"><b><?=date('d.m.Y ; H:i ', $ralleydaten['ende']);?></b></td>
</tr>
<tr bgcolor="#1E90FF">
<td align="center">
<? if ($aktiv[ende]>= time() and $aktiv[start]<= time()){echo"<img src='images/gruen.gif' alt='on' border='0'>";} else{echo"<img src='images/rot.gif' alt='off' border='0'>";}?></td><td><a href="index.php?content=/ralleys/aktiv" target="_self" class="menue"><font color="000000">Aktivralley</font></a></td><td align="center"><?
// Ralleydaten auslesen
$ralleydaten = mysql_fetch_array (db_query ('SELECT * FROM '.$db_prefix.'_ralleydaten WHERE ralley = "aktivralley" LIMIT 1'));
date('d.m.Y H:i', $ralleydaten['start']);?><?
?><b><?=date('d.m.Y ; H:i ', $ralleydaten['start']);?></b>
</td><td align="center"><b><?=date('d.m.Y ; H:i ', $ralleydaten['ende']);?></b></td>
</tr>
<tr bgcolor="#87CEFA">
<td align="center">
<? if ($surf[ende]>= time() and $surf[start]<= time()){echo"<img src='images/gruen.gif' alt='on' border='0'>";} else{echo"<img src='images/rot.gif' alt='off' border='0'>";}?></td><td><a href="index.php?content=/ralleys/autosurf" target="_self" class="menue"><font color="000000">Surfralley</font></a></td><td align="center"><?
// Ralleydaten auslesen
$ralleydaten = mysql_fetch_array (db_query ('SELECT * FROM '.$db_prefix.'_ralleydaten WHERE ralley = "betauralley" LIMIT 1'));
date('d.m.Y H:i', $ralleydaten['start']);?><?
?><b><?=date('d.m.Y ; H:i ', $ralleydaten['start']);?></b>
</td><td align="center"><b><?=date('d.m.Y ; H:i ', $ralleydaten['ende']);?></b></td>
</tr>
<tr bgcolor="#1E90FF">
<td align="center">
<? if ($tagesk[ende]>= time() and $tagesk[start]<= time()){echo"<img src='images/gruen.gif' alt='on' border='0'>";} else{echo"<img src='images/rot.gif' alt='off' border='0'>";}?></td><td><a href="index.php?content=/ralleys/tagesklick" target="_self" class="menue"><font color="000000">Tagesklick</font></a></td><td align="center"><?
// Ralleydaten auslesen
$ralleydaten = mysql_fetch_array (db_query ('SELECT * FROM '.$db_prefix.'_ralleydaten WHERE ralley = "tagrally" LIMIT 1'));
date('d.m.Y H:i', $ralleydaten['start']);?><?
?><b><?=date('d.m.Y ; H:i ', $ralleydaten['start']);?></b>
</td><td align="center"><b><?=date('d.m.Y ; H:i ', $ralleydaten['ende']);?></b></td>
</tr>
<tr bgcolor="#87CEFA">
<td align="center">
<? if ($tagesb[ende]>= time() and $tagesb[start]<= time()){echo"<img src='images/gruen.gif' alt='on' border='0'>";} else{echo"<img src='images/rot.gif' alt='off' border='0'>";}?></td><td><a href="index.php?content=/ralleys/tbettelrally" target="_self" class="menue"><font color="000000">Tagesbettel</font></a></td><td align="center"><?
// Ralleydaten auslesen
$ralleydaten = mysql_fetch_array (db_query ('SELECT * FROM '.$db_prefix.'_neu_rallydaten WHERE ralley = "tbettelrally" LIMIT 1'));
date('d.m.Y H:i', $ralleydaten['start']);?><?
?><b><?=date('d.m.Y ; H:i ', $ralleydaten['start']);?></b>
</td><td align="center"><b><?=date('d.m.Y ; H:i ', $ralleydaten['ende']);?></b></td>
</tr>
<tr bgcolor="#1E90FF">
<td align="center">
<? if ($tourn[ende]>= time() and $tourn[start]<= time()){echo"<img src='images/gruen.gif' alt='on' border='0'>";} else{echo"<img src='images/rot.gif' alt='off' border='0'>";}?></td><td><a href="index.php?content=/ralleys/tournament" target="_self" class="menue"><font color="000000">Tournament</font></a></td><td align="center"><?
// Ralleydaten auslesen
$ralleydaten = mysql_fetch_array (db_query ('SELECT * FROM stg_ralleyconfig WHERE name = "tournament" LIMIT 1'));
date('d.m.Y H:i', $ralleydaten['start']);?><?
?><b><?=date('d.m.Y ; H:i ', $ralleydaten['start']);?></b>
</td><td align="center"><b><?=date('d.m.Y ; H:i ', $ralleydaten['ende']);?></b></td>
</tr>
<tr bgcolor="#87CEFA">
<td align="center">
<? if ($sow[ende]>= time() and $sow[start]<= time()){echo"<img src='images/gruen.gif' alt='on' border='0'>";} else{echo"<img src='images/rot.gif' alt='off' border='0'>";}?></td><td><a href="index.php?content=/ralleys/slotofweek" target="_self" class="menue"><font color="000000">Slot Of The Week</font></a></td><td align="center"><?
// Ralleydaten auslesen
$ralleydaten = mysql_fetch_array (db_query ('SELECT * FROM stg_ralleyconfig WHERE name = "slotofweek" LIMIT 1'));
date('d.m.Y H:i', $ralleydaten['start']);?><?
?><b><?=date('d.m.Y ; H:i ', $ralleydaten['start']);?></b>
</td><td align="center"><b><?=date('d.m.Y ; H:i ', $ralleydaten['ende']);?></b></td>
</tr>
<tr bgcolor="#1E90FF">
<td align="center">
<? if ($high[ende]>= time() and $high[start]<= time()){echo"<img src='images/gruen.gif' alt='on' border='0'>";} else{echo"<img src='images/rot.gif' alt='off' border='0'>";}?></td><td><a href="index.php?content=/ralleys/highlander" target="_self" class="menue"><font color="000000">Highlander</font></a></td><td align="center"><?
// Ralleydaten auslesen
$ralleydaten = mysql_fetch_array (db_query ('SELECT * FROM '.$db_prefix.'_ralleydaten WHERE ralley = "highlander" LIMIT 1'));
date('d.m.Y H:i', $ralleydaten['start']);?><?
?><b><?=date('d.m.Y ; H:i ', $ralleydaten['start']);?></b>
</td><td align="center"><b><?=date('d.m.Y ; H:i ', $ralleydaten['ende']);?></b></td>
</tr>
</table>
<!-- Diese Addon basiert auf vms1.1 wurde jedoch auf vms1.2 getestet ,das entfernen dieses Copyrighthinweises ohne Erlaubnis zieht
rechtliche Schritte mit sich
-->
<div align="center"><font size="1">© by <a href="http://www.designerscripte.net/member.php?u=1717" target="_blank">adi</a></font></div>
<?foot();?>