From 79d928cd42c32122edd47d1a450fb0c4ced3de2f Mon Sep 17 00:00:00 2001 From: raylu Date: Wed, 18 Jul 2012 01:45:55 -0700 Subject: fix lots of warnings, whitespace --- pages/home.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'pages/home.php') diff --git a/pages/home.php b/pages/home.php index e9b65be..b1335a4 100644 --- a/pages/home.php +++ b/pages/home.php @@ -9,7 +9,8 @@ include_once ('./includes/datas.php'); //Get custom wall colors; $wallColor = ''; $wallEmblem = ''; -if ($_SESSION[accepted] == 1) { +$noteScript = ''; +if ($accepted) { $userID = $_SESSION['userID']; $sql = " @@ -87,8 +88,8 @@ switch ($numday) { Complete the tutorial to unlock a blue wall color:"; echo "

"; @@ -110,7 +111,7 @@ if ($_SESSION['accepted'] == 1) { $motd = MapOfTheDay(1); $jmid[1] = $motd['id']; -$mapContent .= displayMaze($motd, 1); +$mapContent = displayMaze($motd, 1); $motd = MapOfTheDay(2); $jmid[2] = $motd['id']; @@ -148,7 +149,7 @@ if ($special == '') { \n$topscores\n"; - $userID = $_SESSION['userID']; - if ($_SESSION['accepted'] == 1) { + $mysolution = ''; + $mymoves = ''; + if ($accepted) { $sol = getSolution($userID, $mapID); $mysolution = $sol['solution']; //!! implement mymoves $mymoves = $sol['moves']; } - if (isset($_SESSION[$mapID.'sol']) AND $mysolution == '') { + if (isset($_SESSION[$mapID.'sol']) && $mysolution == '') { $mysolution = $_SESSION[$mapID.'sol']; $mymoves = $_SESSION[$mapID.'moves']; } - $r .= "
"; + $r = "
"; $r .= "
"; // if ($width <= 16) { -- cgit v1.2.3