summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2012-04-21 13:47:55 -0700
committerPatrick Davison <snapwilliam@gmail.com>2012-04-21 13:47:55 -0700
commit5b33957d580121cfc7bc77e7d70c7f9d26a26335 (patch)
treeb10c69cf711103c900d2d60c4bafd917f2697a1f
parent73c7ff257800efa0300579ca9b17c7319af819e0 (diff)
downloadpathery-5b33957d580121cfc7bc77e7d70c7f9d26a26335.tar.xz
Auto login in background requests.
-rw-r--r--do.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/do.php b/do.php
index a8ad136..3a12661 100644
--- a/do.php
+++ b/do.php
@@ -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']);