diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-05-21 16:03:08 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-05-21 16:03:08 -0700 |
commit | a81858ef82af7469e843e2e6a84ca220330003e3 (patch) | |
tree | 9a2e9b3fccdb1ad5964b18593d2214ed1def3904 /globe.php | |
parent | 329cc1f9b6657ce580b3a297e39a7cd259a62537 (diff) | |
download | pathery-a81858ef82af7469e843e2e6a84ca220330003e3.tar.xz |
Some code cleanup; fixed a $mydomain missing.
Diffstat (limited to 'globe.php')
-rw-r--r-- | globe.php | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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;
}
}
|