summaryrefslogtreecommitdiffstats
path: root/globe.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2012-08-18 00:24:27 -0700
committerPatrick Davison <snapwilliam@gmail.com>2012-08-18 00:24:27 -0700
commit748a984d7e914d2211175d95e564c6f56e566f6e (patch)
tree7492677d3563b2b62bc585ea0cbfab016e61ed09 /globe.php
parenta160d8b5a9b4c82bf886275ac0e751fa66815db0 (diff)
downloadpathery-748a984d7e914d2211175d95e564c6f56e566f6e.tar.xz
Bugs, timezone.
This server should remain using the New_York timezone. Maps start at 9, not 12! Fixed a bug where default displaycolor was not being used. Fixed a bug where the user would not be logged in instantly.
Diffstat (limited to 'globe.php')
-rw-r--r--globe.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/globe.php b/globe.php
index 22e455f..2764b4f 100644
--- a/globe.php
+++ b/globe.php
@@ -1,5 +1,5 @@
<?PHP
-date_default_timezone_set('America/Los_Angeles');
+date_default_timezone_set('America/New_York');
if (!session_id())
session_start();
//session_regenerate_id();
@@ -22,6 +22,7 @@ function sql_clean($string) {
}
function CookieLogin() {
+ global $accepted;
include_once "includes/db.inc.php";
$userID = $_COOKIE['userID'];
$auth = $_COOKIE['auth'];
@@ -53,6 +54,7 @@ function CookieLogin() {
if ($auth == $three) {
$_SESSION['accepted'] = 1;
+ $accepted = 1;
$_SESSION['userID'] = $userID;
$_SESSION['displayName'] = $display;
if ($isAdmin == 1)