X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fprobe.php;h=7fc3a92899f78be6314116e23775b0389189c366;hb=708ffaff51d3f5112af6b1fbd25d7ff6391e496e;hp=dfd4792c9b97131123ea81f846240fe46e11f0b6;hpb=47bd3243cdb4a4840ca4d40452402a86b792ce1b;p=friendica.git diff --git a/mod/probe.php b/mod/probe.php index dfd4792c9b..7fc3a92899 100644 --- a/mod/probe.php +++ b/mod/probe.php @@ -1,31 +1,37 @@ t("Public access denied."), - "description" => t("Only logged in users are permitted to perform a probing."))); - killme(); + $e = new \Friendica\Network\HTTPException\ForbiddenException(L10n::t("Only logged in users are permitted to perform a probing.")); + $e->httpdesc = L10n::t("Public access denied."); + throw $e; } + $o = '
'; $o .= '

Probe Diagnostic

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

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