diff options
author | friendica <info@friendica.com> | 2013-11-17 01:10:46 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-11-17 01:10:46 -0800 |
commit | 92f37fd0d5222d4f8cb7234d3de5fa8c784f81d3 (patch) | |
tree | 8cab5633fd959c0020ce30c001b625734b1c9e2a /boot.php | |
parent | 8893643da065fb12bf9b60e3d31f65cf64c6754b (diff) | |
download | volse-hubzilla-92f37fd0d5222d4f8cb7234d3de5fa8c784f81d3.tar.gz volse-hubzilla-92f37fd0d5222d4f8cb7234d3de5fa8c784f81d3.tar.bz2 volse-hubzilla-92f37fd0d5222d4f8cb7234d3de5fa8c784f81d3.zip |
document extra features
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2318,8 +2318,8 @@ function zid_init(&$a) { $arr = array('zid' => $tmp_str, 'url' => $a->cmd); call_hooks('zid_init',$arr); if((! local_user()) && (! remote_user())) { - logger('zid_init: not authenticated. Invoking reverse magic-auth'); - $r = q("select * from hubloc where hubloc_addr = '%s' limit 1", + logger('zid_init: not authenticated. Invoking reverse magic-auth for ' . $tmp_str); + $r = q("select * from hubloc where hubloc_addr = '%s' order by hubloc_id desc limit 1", dbesc($tmp_str) ); // try to avoid recursion - but send them home to do a proper magic auth @@ -2328,6 +2328,8 @@ function zid_init(&$a) { if($r && ($r[0]['hubloc_url'] != z_root()) && (! strstr($dest,'/magic')) && (! strstr($dest,'/rmagic'))) { goaway($r[0]['hubloc_url'] . '/magic' . '?f=&rev=1&dest=' . z_root() . $dest); } + else + logger('zid_init: no hubloc found.'); } } } |