From 50dbdbf59979b16c1d80c09777447c1e3a256545 Mon Sep 17 00:00:00 2001 From: james Date: Fri, 5 Oct 2007 19:20:09 +0000 Subject: [PATCH] Huh, odd, winners from past years, once rollover has happened, has been broken all along.. FIX IT! --- winners.php | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) 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