From cf4af138b16da878404cf3319d5d988dacee198a Mon Sep 17 00:00:00 2001 From: raylu Date: Sat, 5 Nov 2011 03:04:49 -0700 Subject: new layout --- pages/home.php | 179 +++++++++++++++++++-------------------------------------- 1 file changed, 60 insertions(+), 119 deletions(-) (limited to 'pages/home.php') diff --git a/pages/home.php b/pages/home.php index 8bd7d11..044fc5f 100644 --- a/pages/home.php +++ b/pages/home.php @@ -1,10 +1,8 @@ - - Simple'; +$normal = 'Normal'; +$hard = 'Complex'; -$today = date('l'); -//if ($today == 'Sunday' OR $today == 'Saturday') - //$today = 'Weekend Map'; -//else - $today .= "'s"; -$special = "$today $mapstyle"; +$today = date('l') . "'s"; +$special = "$today $mapstyle"; switch ($_GET['maptype']) { + case "easy": + case "1": + default: + $maptype = 1; + $easy = 'Simple'; + break; case "normal": case "2": - $maptype = 2; - $normal = 'Normal'; - break; - + $maptype = 2; + $normal = 'Normal'; + break; case "hard": case "3": - $maptype = 3; - $hard = 'Complex'; - break; - + $maptype = 3; + $hard = 'Complex'; + break; case "day": case "4": - $maptype = 4; - $special = "$special"; - break; - - case "easy": - case "1": - default: - $maptype = 1; - $easy = 'Simple'; + $maptype = 4; + $special = "$today $mapstyle"; + break; } //$motd = getMapOfTheDay(); @@ -83,7 +75,6 @@ topbar($Links); $mapID = $motd['id']; $map = $motd['map']; $userID = $_SESSION['userID']; -$date = date("m-d-y"); //$mergesolution = mergeMapSolution($map, $mysolution); $topscores = topScores($motd['id'], 30); $topscorediv = "
\n$topscores\n
"; @@ -91,89 +82,39 @@ $mergesolution = $map; ?> -
- - -
-

- News:
- We've moved to pathery.com (look up, you're already there)! You'll need to re-login with Google. -
Don't worry – we've saved all your solutions and history (soon you'll even be able to see them! hehe). -

-

Maps for : -
-
-
-
-

-

- New maps are generated daily at 9:00 PM Pacific Time. -
-

- - -
- -
- - 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. +
"; - + echo "
"; + echo "$easy"; + echo "$normal"; + echo "$hard"; + echo "$special"; + echo "
"; - -echo "
$date
$easy | "; -echo "$normal | "; -echo "$hard | "; -echo "$special"; + echo DisplayMap($mergesolution, $mapID); + $mysolution = getSolution($userID, $mapID); + $solutiondiv .= "'; -echo DisplayMap($mergesolution, $mapID); - -$mysolution = getSolution($userID, $mapID); -$solutiondiv .= " - +
+ + Copyright © 2011 pathery.com +
+ + - - + -- cgit v1.2.3