diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2012-04-21 13:47:55 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2012-04-21 13:47:55 -0700 |
commit | 5b33957d580121cfc7bc77e7d70c7f9d26a26335 (patch) | |
tree | b10c69cf711103c900d2d60c4bafd917f2697a1f | |
parent | 73c7ff257800efa0300579ca9b17c7319af819e0 (diff) | |
download | pathery-5b33957d580121cfc7bc77e7d70c7f9d26a26335.tar.xz |
Auto login in background requests.
-rw-r--r-- | do.php | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -3,11 +3,17 @@ session_start(); include "includes/maps.php";
include "includes/db.inc.php";
-
include "includes/datas.php";
+//Auto login;
+include_once("globe.php");
+if ($_SESSION['accepted'] <> 1)
+ if ($_COOKIE['doLogin'] == 'yes')
+ CookieLogin();
+
// encode array $json to JSON string
+
if ($_GET['act'] == "getmap") {
$map = GenerateMapByCode($_GET['mapcode']);
|