diff options
-rw-r--r-- | index.php | 12 | ||||
-rw-r--r-- | pages/home.php | 1 |
2 files changed, 11 insertions, 2 deletions
@@ -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 = " <div class="wrapper">
<br />
-Test
<?
if ($accepted) {
|