3 if(! function_exists('webfinger_content')) {
4 function webfinger_content(&$a) {
6 $o .= '<h3>Webfinger Diagnostic</h3>';
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>';
15 $addr = trim($_GET['addr']);
16 if(strpos($addr,'@' !== false))
17 $res = webfinger($addr);
21 $o .= str_replace("\n",'<br />',print_r($res,true));