summaryrefslogtreecommitdiff
path: root/auth.php
diff options
context:
space:
mode:
authorbfabiszewski <github@ushuaia.pl>2013-06-23 23:43:09 +0200
committerbfabiszewski <github@ushuaia.pl>2013-06-23 23:43:09 +0200
commit6549528204f8f01bf363a26081bb1a72df2cac65 (patch)
tree3bf2f00cd8e0c88df34d00d2dbdd31a928ba27ff /auth.php
parentbf662e9949165d792c8d3d4fc5b6b9d1fa1e6ab6 (diff)
downloadRunnerUpLive-6549528204f8f01bf363a26081bb1a72df2cac65.zip
store preferences in cookies
Diffstat (limited to 'auth.php')
-rwxr-xr-xauth.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/auth.php b/auth.php
index ab4729c..c7d881b 100755
--- a/auth.php
+++ b/auth.php
@@ -18,6 +18,11 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
require_once("config.php");
+// if is set cookie overwrite config value
+if (isset($_COOKIE["phpTrackme_api"])) { $mapapi = $_COOKIE["phpTrackme_api"]; }
+if (isset($_COOKIE["phpTrackme_lang"])) { $lang = $_COOKIE["phpTrackme_lang"]; }
+if (isset($_COOKIE["phpTrackme_units"])) { $units = $_COOKIE["phpTrackme_units"]; }
+if (isset($_COOKIE["phpTrackme_interval"])) { $interval = $_COOKIE["phpTrackme_interval"]; }
require_once("lang.php");
$mysqli = new mysqli($dbhost, $dbuser, $dbpass, $dbname);
if ($mysqli->connect_errno) {