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