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