From 5c7f2f17f9c471d306955df457c7cab4e5c6ed3b Mon Sep 17 00:00:00 2001 From: Snap Date: Thu, 16 Apr 2015 14:51:26 -0700 Subject: Google's OpenID Connect method $google_client_id & $google_client_secret must be added to db.inc.php! --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index fce390a..3d99b95 100644 --- a/index.php +++ b/index.php @@ -287,4 +287,4 @@ switch ($request) { require("pages/home.php"); } -?> +?> \ No newline at end of file -- cgit v1.2.3 From e6b60448bc08df316daf220db8ecfddc58aefe84 Mon Sep 17 00:00:00 2001 From: Snap Date: Fri, 1 May 2015 16:25:28 -0700 Subject: Minor fixes and adjustments. Moved Javascript in chat to: js/chat.js re-ordered script loading so Jquery loads first. Fixed cookie login issue. --- ajax/chat.ajax.php | 4 +- globe.php | 3 +- includes/header.php | 11 +- index.php | 42 +++-- js/chat.js | 430 ++++++++++++++++++++++++++++++++++++++++++++++++++ js/globe.js | 30 ++++ js/mapspecs.js | 28 ---- pages/chat.php | 441 +--------------------------------------------------- 8 files changed, 501 insertions(+), 488 deletions(-) create mode 100644 js/chat.js (limited to 'index.php') diff --git a/ajax/chat.ajax.php b/ajax/chat.ajax.php index 2ffa878..036efad 100644 --- a/ajax/chat.ajax.php +++ b/ajax/chat.ajax.php @@ -72,10 +72,8 @@ $use_psuedo_longpoll = true; // } require_once('../includes/chats.php'); - -//exit; - enterChannel($userID); + $sent = false; //User is sending a message diff --git a/globe.php b/globe.php index fe7123b..5abff5f 100644 --- a/globe.php +++ b/globe.php @@ -98,7 +98,8 @@ function CookieLogin() { $_SESSION['displayName'] = $display; $_SESSION['dateJoined'] = $dateJoined; if ($isAdmin == 1) $_SESSION['isAdmin'] = true; - header("Location: $mydomain"); + // There should be no reason to re-load the page. + //header("Location: $mydomain"); } else { setcookie("doLogin", "lastAttemptFailed"); setcookie("userID", ""); diff --git a/includes/header.php b/includes/header.php index cb34fac..427a57d 100644 --- a/includes/header.php +++ b/includes/header.php @@ -22,18 +22,21 @@ function htmlHeader($css = array(), $title = 'Pathery', $desc = '', $scripts = a -\n"; } - if ($desc !== '') echo " "; - - foreach ($scripts as $s) echo ""; ?> +"; + + foreach ($scripts as $s) echo ""; +?> + - -

Pathery Chat - BETA

-- cgit v1.2.3 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(-) (limited to 'index.php') 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