3 namespace Friendica\Module\Debug;
5 use Friendica\BaseModule;
6 use Friendica\Core\L10n;
7 use Friendica\Core\Renderer;
8 use Friendica\Network\Probe;
11 * Web based module to perform webfinger probing
13 class WebFinger extends BaseModule
15 public static function content(array $parameters = [])
18 $e = new \Friendica\Network\HTTPException\ForbiddenException(L10n::t('Only logged in users are permitted to perform a probing.'));
19 $e->httpdesc = L10n::t('Public access denied.');
23 $addr = $_GET['addr'] ?? '';
27 $res = Probe::lrdd($addr);
28 $res = print_r($res, true);
31 $tpl = Renderer::getMarkupTemplate('webfinger.tpl');
32 return Renderer::replaceMacros($tpl, [