X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=mod%2Fwebfinger.php;h=6f49a8f28c44ebf9ea33ca2a1f3aa9778a50e7e0;hb=796056a6feaf305dd9fb7c97bb43cdbc75ad0641;hp=4024671b02f271c5a31956b58d54bb98afaf2259;hpb=d6cf791677e3c676108f84e64818ba2a272f6d08;p=friendica.git diff --git a/mod/webfinger.php b/mod/webfinger.php index 4024671b02..6f49a8f28c 100644 --- a/mod/webfinger.php +++ b/mod/webfinger.php @@ -1,9 +1,26 @@ L10n::t("Public access denied."), + "description" => L10n::t("Only logged in users are permitted to perform a probing.") + ] + ); + killme(); + } - $o .= '

Webfinger Diagnostic

'; + $o = '

Webfinger Diagnostic

'; $o .= '
'; $o .= 'Lookup address: '; @@ -11,16 +28,12 @@ function webfinger_content(&$a) { $o .= '

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