X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fwebfinger.php;h=6f49a8f28c44ebf9ea33ca2a1f3aa9778a50e7e0;hb=5743bb0daec2f91f06689c84a69c8d7315311c51;hp=4024671b02f271c5a31956b58d54bb98afaf2259;hpb=0c764684bb32a9432fd161e62db907efb78af1a5;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; } -}