2012-06-03 01:05:23 +00:00
|
|
|
<?php
|
|
|
|
|
2017-04-30 04:07:00 +00:00
|
|
|
use Friendica\App;
|
2017-11-07 02:22:52 +00:00
|
|
|
use Friendica\Network\Probe;
|
2012-06-03 01:05:23 +00:00
|
|
|
|
2018-01-05 00:42:48 +00:00
|
|
|
function acctlink_init()
|
|
|
|
{
|
|
|
|
if (x($_GET, 'addr')) {
|
2012-06-03 01:05:23 +00:00
|
|
|
$addr = trim($_GET['addr']);
|
2017-11-07 02:22:52 +00:00
|
|
|
$res = Probe::uri($addr);
|
2018-01-05 00:42:48 +00:00
|
|
|
if ($res['url']) {
|
2012-06-03 01:05:23 +00:00
|
|
|
goaway($res['url']);
|
|
|
|
killme();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|