3 function hostxrd_init(&$a) {
4 header('Access-Control-Allow-Origin: *');
5 header("Content-type: text/xml");
6 $tpl = file_get_contents('view/xrd_host.tpl');
7 echo str_replace(array(
8 '$zroot','$domain','$zot_post'),array(z_root(),z_path(),z_root() . '/post'),$tpl);