From ef8a2511156b86c23aa794d7b0eb2514896ea10c Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 16 Aug 2017 22:14:14 -0700 Subject: move ap_probe to pubcrawl addon --- Zotlabs/Module/Ap_probe.php | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 Zotlabs/Module/Ap_probe.php (limited to 'Zotlabs/Module') diff --git a/Zotlabs/Module/Ap_probe.php b/Zotlabs/Module/Ap_probe.php deleted file mode 100644 index 57e254267..000000000 --- a/Zotlabs/Module/Ap_probe.php +++ /dev/null @@ -1,42 +0,0 @@ -ActivityPub Probe Diagnostic'; - - $o .= '
'; - $o .= 'Lookup URI:
'; - $o .= 'Request Signed version:
'; - $o .= '
'; - - $o .= '

'; - - if(x($_GET,'addr')) { - $addr = $_GET['addr']; - - if($_GET['magenv']) { - $headers = 'Accept: application/magic-envelope+json, application/activity+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams"'; - } - else { - $headers = 'Accept: application/activity+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams"'; - } - - $redirects = 0; - $x = z_fetch_url($addr,true,$redirects, [ 'headers' => [ $headers ]]); - if($x['success']) - $o .= '
' . $x['header'] . '
' . EOL; - - $o .= 'verify returns: ' . \HTTPSig::verify($x) . EOL; - - $o .= '
' . str_replace(['\\n','\\'],["\n",''],jindent($x['body'])) . '
'; - } - return $o; - } - -} -- cgit v1.2.3