From c2f0b4afcd8dd0359b6345a82fbfea54bb3617dd Mon Sep 17 00:00:00 2001 From: Snap Date: Sat, 2 May 2015 23:04:55 -0700 Subject: missing $userID issue. --- index.php | 12 +++++++++++- pages/home.php | 1 - 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 2ac1aa1..cc3e7cb 100644 --- a/index.php +++ b/index.php @@ -46,6 +46,11 @@ if (!$accepted) { if (isset($_SESSION['accepted']) AND $_SESSION['accepted'] == 1) $accepted = true; +if ($accepted) { + $userID = $_SESSION['userID']; +} + + //Could be simplified; but store $wallColor and etc. if ($accepted && !isset($wallColor)) { if (isset($_SESSION['wallColor'])) { @@ -53,7 +58,6 @@ if ($accepted && !isset($wallColor)) { $wallEmblem = $_SESSION['wallEmblem']; $wallOrientation = $_SESSION['wallOrientation']; } else { - $userID = $_SESSION['userID']; $sql = " SELECT users.wallColor, @@ -70,6 +74,7 @@ if ($accepted && !isset($wallColor)) { } } + // Footer Links //ROW 1 if ($accepted) { @@ -146,6 +151,7 @@ switch ($request) { require("pages/test.php"); break; + // deprecate at some point case "creategame": require("pages/creategame.php"); break; @@ -153,6 +159,10 @@ switch ($request) { case "games": require("pages/games.php"); break; + + case "matches": + require("pages/matches.php"); + break; case "m": require("pages/mobile.php"); diff --git a/pages/home.php b/pages/home.php index a488f19..d82ba21 100644 --- a/pages/home.php +++ b/pages/home.php @@ -117,7 +117,6 @@ $adContent = "

-Test