aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-07-03 02:20:40 -0700
committerfriendica <info@friendica.com>2014-07-03 02:20:40 -0700
commit1e86a88f0d7e6f6ec3328861de7f17f8d8b77713 (patch)
treec42fad63beec01f8c9336db7e557628e62e4ae6b /mod
parentc7086b77fdac7b7cf4e96010c72e0cff4829f10f (diff)
downloadvolse-hubzilla-1e86a88f0d7e6f6ec3328861de7f17f8d8b77713.tar.gz
volse-hubzilla-1e86a88f0d7e6f6ec3328861de7f17f8d8b77713.tar.bz2
volse-hubzilla-1e86a88f0d7e6f6ec3328861de7f17f8d8b77713.zip
session DNT - if you want it use it.
Diffstat (limited to 'mod')
-rw-r--r--mod/post.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/post.php b/mod/post.php
index 05053e798..2b85f3f11 100644
--- a/mod/post.php
+++ b/mod/post.php
@@ -153,6 +153,7 @@ function post_init(&$a) {
$remote_service_class = '';
$remote_level = 0;
$remote_hub = $x[0]['hubloc_url'];
+ $DNT = 0;
// Also check that they are coming from the same site as they authenticated with originally.
@@ -214,6 +215,8 @@ function post_init(&$a) {
$remote_service_class = $j['service_class'];
if(array_key_exists('level',$j))
$remote_level = $j['level'];
+ if(array_key_exists('DNT',$j))
+ $DNT = $j['DNT'];
}
// everything is good... maybe
if(local_user()) {
@@ -248,6 +251,7 @@ function post_init(&$a) {
$_SESSION['remote_service_class'] = $remote_service_class;
$_SESSION['remote_level'] = $remote_level;
$_SESSION['remote_hub'] = $remote_hub;
+ $_SESSION['DNT'] = $DNT;
$arr = array('xchan' => $x[0], 'url' => $desturl, 'session' => $_SESSION);
call_hooks('magic_auth_success',$arr);