6 use Friendica\Core\L10n;
7 use Friendica\Core\System;
8 use Friendica\Network\Probe;
10 function probe_content(App $a)
13 System::httpExit(403, ["title" => L10n::t("Public access denied."),
14 "description" => L10n::t("Only logged in users are permitted to perform a probing.")]);
18 $o = '<h3>Probe Diagnostic</h3>';
20 $o .= '<form action="probe" method="get">';
21 $o .= 'Lookup address: <input type="text" style="width: 250px;" name="addr" value="' . $_GET['addr'] . '" />';
22 $o .= '<input type="submit" name="submit" value="Submit" /></form>';
26 if (x($_GET, 'addr')) {
27 $addr = trim($_GET['addr']);
28 $res = Probe::uri($addr, "", 0, false);
30 $o .= str_replace("\n", '<br />', print_r($res, true));