$r['channel_address'], '$accturi' => $resource, '$subject' => $subject, '$aliases' => $aliases, '$channel_url' => z_root() . '/channel/' . $r['channel_address'], '$profile_url' => z_root() . '/channel/' . $r['channel_address'], '$hcard_url' => z_root() . '/hcard/' . $r['channel_address'], '$atom' => z_root() . '/ofeed/' . $r['channel_address'], '$zot_post' => z_root() . '/post/' . $r['channel_address'], '$poco_url' => z_root() . '/poco/' . $r['channel_address'], '$photo' => z_root() . '/photo/profile/l/' . $r['channel_id'], '$modexp' => 'data:application/magic-public-key,' . $salmon_key, '$subscribe' => z_root() . '/follow?f=&url={uri}', )); $arr = array('user' => $r, 'xml' => $o); /** * @hooks personal_xrd * Called with the rendered XML document for a channel. * * \e array \b user - the combined fields of the `channel` and `xchan` of * the requested channel. * * \e string \b xml - The rendered XML to be returned to the client. */ call_hooks('personal_xrd', $arr); echo $arr['xml']; killme(); } }