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