From d7907b2889bda9926ebe9e2e574864d6b8d79fc3 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Fri, 6 Apr 2012 13:19:56 -0700 Subject: Brought back Special-map-names --- pages/home.php | 44 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 37 insertions(+), 7 deletions(-) (limited to 'pages') diff --git a/pages/home.php b/pages/home.php index cc4aca9..ff47634 100644 --- a/pages/home.php +++ b/pages/home.php @@ -22,7 +22,8 @@ if ($_SESSION[accepted] == 1) { if ($result) list($wallColor, $wallEmblem) = mysql_fetch_row($result); - $note = getNotified($userID); + //$note = getNotified($userID); + $note = false; if ($note !== false) { //$note = str_replace("'", "\'", $note); //Double your slashes double your fun (Required) @@ -51,6 +52,36 @@ function tutorialComplete($userID) { return false; } +//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 = "Seeing Double"; + break; +} + + + + ?> @@ -67,10 +98,9 @@ topbar($Links); ?>
-Update in progress -

Many improvements including Achievements are being added! -
During this testing phase, some achievements and unlocks may be removed or re-added for you. -
Thank your for your patience! - Also please email me or contact me if you have suggestions or feedback. +If you notice any issues, please press the Refresh button on your browser. +

Many improvements including Achievements have been added! +
Please email me or contact me if you have suggestions!

Simple Normal Complex - Special +
@@ -134,7 +164,7 @@ function displayMaze($mapType, $name) { // echo ' '; echo "
"; echo "
"; - echo " Load your best solution
"; + echo " Load your best solution
"; echo DisplayMap($map, $mapID); echo "
"; -- cgit v1.2.3