From 2a4e8972e0edfa3156d9ce54d68ce0e54c0ec289 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 18 Apr 2016 20:38:38 -0700 Subject: module updates --- mod/webfinger.php | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 mod/webfinger.php (limited to 'mod/webfinger.php') diff --git a/mod/webfinger.php b/mod/webfinger.php deleted file mode 100644 index e35767338..000000000 --- a/mod/webfinger.php +++ /dev/null @@ -1,48 +0,0 @@ -Webfinger Diagnostic'; - - $o .= '
'; - $o .= 'Lookup address: '; - $o .= '
'; - - $o .= '

'; - - $old = false; - if(x($_GET,'addr')) { - $addr = trim($_GET['addr']); -// if(strpos($addr,'@') !== false) { - $res = webfinger_rfc7033($addr,true); - if(! $res) { - $res = old_webfinger($addr); - $old = true; - } -// } -// else { -// if(function_exists('lrdd')) -// $res = lrdd($addr); -// } - - if($res && $old) { - foreach($res as $r) { - if($r['@attributes']['rel'] === 'http://microformats.org/profile/hcard') { - $hcard = unamp($r['@attributes']['href']); - require_once('library/HTML5/Parser.php'); - $res['vcard'] = scrape_vcard($hcard); - break; - } - } - } - - - $o .= '
';
-		$o .= str_replace("\n",'
',print_r($res,true)); - $o .= '
'; - } - return $o; -} -- cgit v1.2.3