summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php12
1 files changed, 11 insertions, 1 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");