aboutsummaryrefslogtreecommitdiffstats
path: root/mod/acctlink.php
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2012-06-03 14:21:51 +0200
committerzottel <github@zottel.net>2012-06-03 14:21:51 +0200
commit70c4ab68754941749a5e89434d6db19f6bba1e16 (patch)
tree525a6536b6ab7f9020e83daf9287c785303ad584 /mod/acctlink.php
parentdf2fdf08ddf8cb354022992d4353ced4295b77b3 (diff)
parentdaa4f5213f726b22846859f2f12d06889e9bdc9b (diff)
downloadvolse-hubzilla-70c4ab68754941749a5e89434d6db19f6bba1e16.tar.gz
volse-hubzilla-70c4ab68754941749a5e89434d6db19f6bba1e16.tar.bz2
volse-hubzilla-70c4ab68754941749a5e89434d6db19f6bba1e16.zip
Merge remote branch 'upstream/master'
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();
+ }
+ }
+}