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 = '<h3>Webfinger Diagnostic</h3>';
25 $o .= '<form action="webfinger" method="get">';
26 $o .= 'Lookup address: <input type="text" style="width: 250px;" name="addr" value="' . $_GET['addr'] .'" />';
27 $o .= '<input type="submit" name="submit" value="Submit" /></form>';
31 if (x($_GET, 'addr')) {
32 $addr = trim($_GET['addr']);
33 $res = Probe::lrdd($addr);
35 $o .= str_replace("\n", '<br />', print_r($res, true));