diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2012-08-18 00:24:27 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2012-08-18 00:24:27 -0700 |
commit | 748a984d7e914d2211175d95e564c6f56e566f6e (patch) | |
tree | 7492677d3563b2b62bc585ea0cbfab016e61ed09 /globe.php | |
parent | a160d8b5a9b4c82bf886275ac0e751fa66815db0 (diff) | |
download | pathery-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.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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)
|