3 * @file mod/webfinger.php
6 use Friendica\Core\L10n;
7 use Friendica\Network\Probe;
9 function webfinger_content(App $a)
15 "title" => L10n::t("Public access denied."),
16 "description" => L10n::t("Only logged in users are permitted to perform a probing.")
22 $o .= '<h3>Webfinger Diagnostic</h3>';
24 $o .= '<form action="webfinger" method="get">';
25 $o .= 'Lookup address: <input type="text" style="width: 250px;" name="addr" value="' . $_GET['addr'] .'" />';
26 $o .= '<input type="submit" name="submit" value="Submit" /></form>';
30 if (x($_GET, 'addr')) {
31 $addr = trim($_GET['addr']);
32 $res = Probe::lrdd($addr);
34 $o .= str_replace("\n", '<br />', print_r($res, true));