diff --git a/winners.php b/winners.php index 856f3b16..0efb4443 100644 --- a/winners.php +++ b/winners.php @@ -38,15 +38,20 @@ if($_GET['year'] && $_GET['type']) echo "

".i18n("%1 %2 Award Winners",array($_GET['year'],$_GET['type']))."

"; $year=$_GET['year']; + $ok=true; //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"); - $r=mysql_fetch_object($q); - if($r->test!=1) - { - echo error(i18n("Crystal ball says future is very hard to see!")); - + //but only if the year they want is the FAIRYEAR. If they want a past year, thats cool + if($_GET['year']>=$config['FAIRYEAR']) { + $q=mysql_query("SELECT (NOW()>'".$config['dates']['postwinners']."') AS test"); + $r=mysql_fetch_object($q); + 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