3 namespace Friendica\Module\Diagnostic;
5 use Friendica\BaseModule;
6 use Friendica\Core\L10n;
7 use Friendica\Core\Renderer;
8 use Friendica\Network\HTTPException;
9 use Friendica\Network\Probe as NetworkProbe;
12 * Fetch information (protocol endpoints and user information) about a given uri
14 class Probe extends BaseModule
16 public static function content()
19 $e = new HTTPException\ForbiddenException(L10n::t("Only logged in users are permitted to perform a probing."));
20 $e->httpdesc = L10n::t("Public access denied.");
24 $addr = defaults($_GET, 'addr', '');
28 $res = NetworkProbe::uri($addr, '', 0, false);
29 $res = print_r($res, true);
32 $tpl = Renderer::getMarkupTemplate('probe.tpl');
33 return Renderer::replaceMacros($tpl, [
35 L10n::t('Lookup address'),