forked from science-ation/science-ation
Huh, odd, winners from past years, once rollover has happened, has been broken all along.. FIX IT!
This commit is contained in:
parent
30df2c8af8
commit
50dbdbf599
19
winners.php
19
winners.php
@ -38,15 +38,20 @@ if($_GET['year'] && $_GET['type'])
|
|||||||
echo "<h2>".i18n("%1 %2 Award Winners",array($_GET['year'],$_GET['type']))."</h2>";
|
echo "<h2>".i18n("%1 %2 Award Winners",array($_GET['year'],$_GET['type']))."</h2>";
|
||||||
$year=$_GET['year'];
|
$year=$_GET['year'];
|
||||||
|
|
||||||
|
$ok=true;
|
||||||
//first, lets make sure someone isnt tryint to see something that they arent allowed to!
|
//first, lets make sure someone isnt tryint to see something that they arent allowed to!
|
||||||
$q=mysql_query("SELECT (NOW()>'".$config['dates']['postwinners']."') AS test");
|
//but only if the year they want is the FAIRYEAR. If they want a past year, thats cool
|
||||||
$r=mysql_fetch_object($q);
|
if($_GET['year']>=$config['FAIRYEAR']) {
|
||||||
if($r->test!=1)
|
$q=mysql_query("SELECT (NOW()>'".$config['dates']['postwinners']."') AS test");
|
||||||
{
|
$r=mysql_fetch_object($q);
|
||||||
echo error(i18n("Crystal ball says future is very hard to see!"));
|
if($r->test!=1)
|
||||||
|
{
|
||||||
|
echo error(i18n("Crystal ball says future is very hard to see!"));
|
||||||
|
$ok=false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
if($ok)
|
||||||
{
|
{
|
||||||
|
|
||||||
$q=mysql_query("SELECT
|
$q=mysql_query("SELECT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user