X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fprobe.php;h=dfd4792c9b97131123ea81f846240fe46e11f0b6;hb=5640c42469b8ec1c5731b599b0dc9d9a0e762ce6;hp=8c951a7fcfd62f63f9c3fbe5bda5a02af735ad65;hpb=f99bb958f61f17e81452f3f9c4d3472c3de8b37b;p=friendica.git diff --git a/mod/probe.php b/mod/probe.php index 8c951a7fcf..dfd4792c9b 100644 --- a/mod/probe.php +++ b/mod/probe.php @@ -1,31 +1,31 @@ t("Public access denied."), - "description" => t("Only logged in users are permitted to perform a probing."))); + http_status_exit(403, array("title" => t("Public access denied."), + "description" => t("Only logged in users are permitted to perform a probing."))); killme(); } $o .= '

Probe Diagnostic

'; $o .= '
'; - $o .= 'Lookup address: '; + $o .= 'Lookup address: '; $o .= '
'; $o .= '

'; - if(x($_GET,'addr')) { - + if (x($_GET, 'addr')) { $addr = trim($_GET['addr']); - $res = probe_url($addr); + $res = Probe::uri($addr, "", 0, false); $o .= '
';
-		$o .= str_replace("\n",'
',print_r($res,true)); + $o .= str_replace("\n", '
', print_r($res, true)); $o .= '
'; } + return $o; }