]> git.mxchange.org Git - friendica.git/blob - mod/webfinger.php
Merge branch 'develop' into rewrites/dbm_is_result
[friendica.git] / mod / webfinger.php
1 <?php
2 require_once("include/Probe.php");
3
4 function webfinger_content(App &$a) {
5
6         $o .= '<h3>Webfinger Diagnostic</h3>';
7
8         $o .= '<form action="webfinger" method="get">';
9         $o .= 'Lookup address: <input type="text" style="width: 250px;" name="addr" value="' . $_GET['addr'] .'" />';
10         $o .= '<input type="submit" name="submit" value="Submit" /></form>';
11
12         $o .= '<br /><br />';
13
14         if(x($_GET,'addr')) {
15                 $addr = trim($_GET['addr']);
16                 $res = Probe::lrdd($addr);
17                 $o .= '<pre>';
18                 $o .= str_replace("\n",'<br />',print_r($res,true));
19                 $o .= '</pre>';
20         }
21         return $o;
22 }