From f8c9eb5220afaf2f9a62f9a176a45913240f4081 Mon Sep 17 00:00:00 2001 From: raylu Date: Thu, 7 Apr 2011 00:27:27 -0400 Subject: Initial import from Dropbox --- pages/home.php | 167 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 167 insertions(+) create mode 100644 pages/home.php (limited to 'pages/home.php') diff --git a/pages/home.php b/pages/home.php new file mode 100644 index 0000000..4a034c3 --- /dev/null +++ b/pages/home.php @@ -0,0 +1,167 @@ + + + + + +\n$topscores\n"; +$mergesolution = $map; + +//Like button + //
I made a like button! I'm not sure what happens if you press it. + // + //
Let me know if it makes your computer explode or something. + + +?> +
+ +
+ I'm testing letting the path go over the START and FINISH tiles. +
Have an opinion about this? Let me know! +

+ New maps are generated daily at 9:00 PM Pacific Time. +
Maps for : +
Simple +
Normal +
Complex +
Today's Special +

+ + +
+ +
+ + New? Check out How to Play +
+ The object of the game is to make the longest maze. +
Sign in using Google to have your best solution saved. + "; + + +//Get the current day as int. +$numday = date('w'); +$numday = intval($numday); +switch ($numday) { + case 0: + $mapstyle = 'Thirty'; + break; + case 1: + $mapstyle = 'Simple'; + break; + case 2: + $mapstyle = "ABC's"; + break; + case 3: + $mapstyle = 'Teleport Madness'; + break; + case 4: + $mapstyle = 'Rocky Maze'; + break; + case 5: //Friday + $mapstyle = 'Side to Side'; + break; + case 6: //Saturday + $mapstyle = "ABC's"; + break; +} + +echo "
$date
Simple | "; +echo "Normal | "; +echo "Complex | "; +$today = date('l'); +//if ($today == 'Sunday' OR $today == 'Saturday') + //$today = 'Weekend Map'; +//else + $today .= "'s"; +echo " NEW: $today $mapstyle"; + + +echo DisplayMap($mergesolution, $mapID); + +$mysolution = getSolution($userID, $mapID); +$solutiondiv .= " + + + + + + -- cgit v1.2.3