]> git.mxchange.org Git - friendica.git/blob - mod/webfinger.php
Merge pull request #3149 from annando/1601-new-diaspora-mention
[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 }