From 418f53fa5ac1601175fa6a937690a0c70efae446 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Thu, 2 Feb 2012 23:01:37 -0800 Subject: Game loading custom emblems & session loading. Add: Loading of wallColor and wallEmblem for the game. Add: Support for loading of SESSION stored solutions for non-logged in users. --- pages/home.php | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 61 insertions(+), 4 deletions(-) (limited to 'pages') diff --git a/pages/home.php b/pages/home.php index e347d54..66c5182 100644 --- a/pages/home.php +++ b/pages/home.php @@ -1,7 +1,54 @@ = 1) + return true; + else + return false; +} + ?> + + Complete the tutorial to unlock a blue wall color:"; + echo "

"; + } + } + echo "
"; echo "$easy"; echo "$normal"; @@ -93,7 +147,11 @@ $mergesolution = $map; echo DisplayMap($mergesolution, $mapID); - $mysolution = getSolution($userID, $mapID); + if ($_SESSION['accepted'] == 1) + $mysolution = getSolution($userID, $mapID); + if (isset($_SESSION[$mapID.'sol']) AND $mysolution == '') + $mysolution = $_SESSION[$mapID.'sol']; + $solutiondiv .= "'; @@ -106,11 +164,10 @@ $mergesolution = $map; if ($_SESSION['accepted'] != 1) { echo "
- Sign in to have your best solution saved. + Sign in to have your score saved.
"; } - ?>
@@ -156,4 +213,4 @@ $timerem = strtotime("tomorrow") - strtotime("now"); +?> \ No newline at end of file -- cgit v1.2.3