<?php
+require_once("include/Probe.php");
-if(! function_exists('webfinger_content')) {
-function webfinger_content(&$a) {
+function webfinger_content(App $a) {
+
+ if (!local_user()) {
+ http_status_exit(403,
+ array("title" => t("Public access denied."),
+ "description" => t("Only logged in users are permitted to perform a probing.")));
+ killme();
+ }
$o .= '<h3>Webfinger Diagnostic</h3>';
if(x($_GET,'addr')) {
$addr = trim($_GET['addr']);
- if(strpos($addr,'@' !== false))
- $res = webfinger($addr);
- else
- $res = lrdd($addr);
+ $res = Probe::lrdd($addr);
$o .= '<pre>';
$o .= str_replace("\n",'<br />',print_r($res,true));
$o .= '</pre>';
}
return $o;
}
-}