# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1341412437 14400 # Node ID 2b11de2404396c3fb2c00467a3889c68b10170c2 # Parent b3ab7efb68613d071764c1b85c4bb0022c1112b7 Rewrite, better computation of dates diff --git a/index.php b/index.php --- a/index.php +++ b/index.php @@ -1,43 +1,59 @@ += $day + && $today['mday'] <= $endday){ + $octconf = true; +} + +$days = $octdate['yday'] - $today['yday']; + +if ($days > 1){ + $daysstring = "$days days until OctConf 2012!!"; +} +elseif($days == 1){ + $daysstring = "OctConf starts tomorrow!"; +} +elseif($octconf) { + $daysstring = "OctConf currently underway!"; +} +else{ + $daysstring = "OctConf 2012 is over... when will the next one be?"; +} + +?> + Is it OctConf? - - - - - + + - +


+ +


- - - -


-