3 * @file mod/webfinger.php
6 use Friendica\Core\L10n;
7 use Friendica\Core\System;
8 use Friendica\Network\Probe;
10 function webfinger_content(App $a)
16 "title" => L10n::t("Public access denied."),
17 "description" => L10n::t("Only logged in users are permitted to perform a probing.")
23 $o = '<div class="generic-page-wrapper">';
24 $o .= '<h3>Webfinger Diagnostic</h3>';
26 $o .= '<form action="webfinger" method="get">';
27 $o .= 'Lookup address: <input type="text" style="width: 250px;" name="addr" value="' . defaults($_GET, 'addr', '') .'" />';
28 $o .= '<input type="submit" name="submit" value="Submit" /></form>';
32 if (!empty($_GET['addr'])) {
33 $addr = trim($_GET['addr']);
34 $res = Probe::lrdd($addr);
36 $o .= str_replace("\n", '<br />', print_r($res, true));