t('Zotfinger Diagnostic'), '$resource' => ['resource', t('Lookup URL'), $_GET['resource'], EMPTY_STR], '$submit' => t('Submit') ]); if ($_GET['resource']) { $channel = App::get_channel(); $resource = trim(escape_tags($_GET['resource'])); $do_import = ((intval($_GET['import']) && is_site_admin()) ? true : false); $j = Zfinger::exec($resource, $channel); if ($do_import && $j) { $x = Libzot::import_xchan($j['data']); } $o .= '
' . str_replace("\n", '
', print_array($j)) . '
'; } return $o; } }