summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSnap <snapwilliam@gmail.com>2015-05-02 23:04:55 -0700
committerSnap <snapwilliam@gmail.com>2015-05-02 23:04:55 -0700
commitc2f0b4afcd8dd0359b6345a82fbfea54bb3617dd (patch)
treeae0a7eea58504ebf4c59d0afba33c3153ca4cbca
parentc21481d9806ea5e7350b60134e0360fe392fc78d (diff)
downloadpathery-c2f0b4afcd8dd0359b6345a82fbfea54bb3617dd.tar.xz
missing $userID issue.
-rw-r--r--index.php12
-rw-r--r--pages/home.php1
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 = "
<div class="wrapper">
<br />
-Test
<?
if ($accepted) {