From 098de66c2fcda2e6e2449640e888a0d1f9e5aa84 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 29 Dec 2012 00:33:04 -0800 Subject: probe diagnostic translated to zot, will use your current channel for permissions, logout to check anonymous permissions --- mod/probe.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'mod') diff --git a/mod/probe.php b/mod/probe.php index c95db291b..f90728df2 100644 --- a/mod/probe.php +++ b/mod/probe.php @@ -1,6 +1,7 @@
'; if(x($_GET,'addr')) { - + $channel = $a->get_channel(); $addr = trim($_GET['addr']); - $res = probe_url($addr); + $res = zot_finger($addr,$channel); $o .= '
';
-		$o .= str_replace("\n",'
',print_r($res,true)); + $j = json_decode($res['body'],true); + if($j && $j['permissions'] && $j['permissions']['iv']) + $j['permissions'] = json_decode(aes_unencapsulate($j['permissions'],$channel['channel_prvkey']),true); + $o .= str_replace("\n",'
',print_r($j,true)); $o .= '
'; } return $o; -- cgit v1.2.3