aboutsummaryrefslogtreecommitdiffstats
path: root/mod/acctlink.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-02 18:05:23 -0700
committerfriendica <info@friendica.com>2012-06-02 18:05:23 -0700
commit4978ee12d10a9a18f9fc26795e09515ef6db7949 (patch)
treec13226f751abf22be3a835ba32145b96bcc922fc /mod/acctlink.php
parent608d424b0b94eacd99ceeeca3e2caf112abd5b48 (diff)
downloadvolse-hubzilla-4978ee12d10a9a18f9fc26795e09515ef6db7949.tar.gz
volse-hubzilla-4978ee12d10a9a18f9fc26795e09515ef6db7949.tar.bz2
volse-hubzilla-4978ee12d10a9a18f9fc26795e09515ef6db7949.zip
webfinger profile linker
Diffstat (limited to 'mod/acctlink.php')
-rw-r--r--mod/acctlink.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/mod/acctlink.php b/mod/acctlink.php
new file mode 100644
index 000000000..a2365803a
--- /dev/null
+++ b/mod/acctlink.php
@@ -0,0 +1,16 @@
+<?php
+
+require_once('include/Scrape.php');
+
+function acctlink_init(&$a) {
+
+ if(x($_GET,'addr')) {
+ $addr = trim($_GET['addr']);
+ $res = probe_url($addr);
+ //logger('acctlink: ' . print_r($res,true));
+ if($res['url']) {
+ goaway($res['url']);
+ killme();
+ }
+ }
+}