X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwebfinger.php;h=3e205ec03057afb82c686ed622a729f897243cc4;hb=6ef2fd56f78b3bfe1df59bbd35bd9fdb547b3291;hp=74bd2c9543c6ceda125719b075f1fe08f7845c08;hpb=dfa5183774e24fe2b1a355c9427372d4cd55ea70;p=friendica.git diff --git a/mod/webfinger.php b/mod/webfinger.php index 74bd2c9543..3e205ec030 100644 --- a/mod/webfinger.php +++ b/mod/webfinger.php @@ -1,25 +1,37 @@ L10n::t("Public access denied."), + "description" => L10n::t("Only logged in users are permitted to perform a probing.") + ] + ); + killme(); + } $o .= '

Webfinger Diagnostic

'; $o .= '
'; $o .= 'Lookup address: '; - $o .= '
'; + $o .= ''; $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;