From a81858ef82af7469e843e2e6a84ca220330003e3 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Tue, 21 May 2013 16:03:08 -0700 Subject: Some code cleanup; fixed a $mydomain missing. --- globe.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'globe.php') diff --git a/globe.php b/globe.php index d8cc78d..cd3425c 100644 --- a/globe.php +++ b/globe.php @@ -10,7 +10,9 @@ if (!session_id()) //!! CONFIRM THIS DOMAIN BEFORE TRANSFER //$mydomain = "http://www.mazetd.4xg.net/"; //$mydomain = "http://www.blue.4xg.net/ -$mydomain = "http://www.pathery.com/"; +//$mydomain = "http://www.pathery.com/"; +$mydomain = "http://beta.snapems.com/"; +//include_once('includes/db.inc.php'); function LogError($error) { @@ -74,7 +76,7 @@ function sql_clean($string) { } function CookieLogin() { - global $accepted; + global $accepted, $mydomain; include_once "includes/sqlEmbedded.php"; $userID = $_COOKIE['userID']; $auth = $_COOKIE['auth']; @@ -112,9 +114,9 @@ function CookieLogin() { if ($isAdmin == 1) $_SESSION['isAdmin'] = true; header("Location: $mydomain"); } else { - setcookie("doLogin", "lastAttemptFailed"); - setcookie("userID", ""); - setcookie("auth", ""); + setcookie("doLogin", "lastAttemptFailed"); + setcookie("userID", ""); + setcookie("auth", ""); return false; } } -- cgit v1.2.3