aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Ap_probe.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Module/Ap_probe.php')
-rw-r--r--Zotlabs/Module/Ap_probe.php38
1 files changed, 0 insertions, 38 deletions
diff --git a/Zotlabs/Module/Ap_probe.php b/Zotlabs/Module/Ap_probe.php
deleted file mode 100644
index 769cd4c4e..000000000
--- a/Zotlabs/Module/Ap_probe.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-namespace Zotlabs\Module;
-
-require_once('include/zot.php');
-
-
-class Ap_probe extends \Zotlabs\Web\Controller {
-
- function get() {
-
- $o .= '<h3>ActivityPub Probe Diagnostic</h3>';
-
- $o .= '<form action="ap_probe" method="get">';
- $o .= 'Lookup URI: <input type="text" style="width: 250px;" name="addr" value="' . $_GET['addr'] .'" /><br>';
- $o .= 'Request Signed version: <input type=checkbox name="magenv" value="1" ><br>';
- $o .= '<input type="submit" name="submit" value="Submit" /></form>';
-
- $o .= '<br /><br />';
-
- if(x($_GET,'addr')) {
- $addr = $_GET['addr'];
-
- if($_GET['magenv']) {
- $headers = 'Accept: application/magic-envelope+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams"';
- }
- else {
- $headers = 'Accept: 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 .= '<pre>' . str_replace(['\\n','\\'],["\n",''],jindent($x['body'])) . '</pre>';
- }
- return $o;
- }
-
-}