5 function webfinger_content(&$a) {
7 $o .= '<h3>Webfinger Diagnostic</h3>';
9 $o .= '<form action="webfinger" method="get">';
10 $o .= 'Lookup address: <input type="text" style="width: 250px;" name="addr" value="' . $_GET['addr'] .'" />';
11 $o .= '<input type="submit" name="submit" value="Submit" /></form>';
16 $addr = trim($_GET['addr']);
17 if(strpos($addr,'@' !== false))
18 $res = webfinger($addr);
22 $o .= str_replace("\n",'<br />',print_r($res,true));