4 function xrd_content(&$a) {
6 $uri = notags(trim($_GET['uri']));
7 $local = str_replace('acct:', '', $uri);
8 $name = substr($local,0,strpos($local,'@'));
10 $r = q("SELECT * FROM `user` WHERE `nickname` = '%s' LIMIT 1",
16 $tpl = file_get_contents('view/xrd_person.tpl');
18 $o = replace_macros($tpl, array(
20 '$profile_url' => $a->get_baseurl() . '/profile/' . $r[0]['nickname'],
21 '$photo' => $a->get_baseurl() . '/photo/profile/' . $r[0]['uid']