3 namespace Friendica\Module;
5 use Friendica\BaseModule;
6 use Friendica\Core\L10n;
7 use Friendica\Core\Renderer;
8 use Friendica\Core\System;
9 use Friendica\Network\Probe;
12 * Web based module to perform webfinger probing
14 class WebFinger extends BaseModule
16 public static function init()
22 'title' => L10n::t('Public access denied.'),
23 'description' => L10n::t('Only logged in users are permitted to perform a probing.'),
30 public static function content()
32 $app = self::getApp();
34 $addr = defaults($_GET, 'addr', '');
38 $res = Probe::lrdd($addr);
39 $res = print_r($res, true);
42 $tpl = Renderer::getMarkupTemplate('webfinger.tpl');
43 return Renderer::replaceMacros($tpl, [