diff options
author | bfabiszewski <github@ushuaia.pl> | 2013-06-23 23:43:09 +0200 |
---|---|---|
committer | bfabiszewski <github@ushuaia.pl> | 2013-06-23 23:43:09 +0200 |
commit | 6549528204f8f01bf363a26081bb1a72df2cac65 (patch) | |
tree | 3bf2f00cd8e0c88df34d00d2dbdd31a928ba27ff /auth.php | |
parent | bf662e9949165d792c8d3d4fc5b6b9d1fa1e6ab6 (diff) | |
download | RunnerUpLive-6549528204f8f01bf363a26081bb1a72df2cac65.zip |
store preferences in cookies
Diffstat (limited to 'auth.php')
-rwxr-xr-x | auth.php | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) { |