streams/mod/hostxrd.php

18 lines
420 B
PHP
Raw Normal View History

2010-07-23 23:33:34 +00:00
<?php
function hostxrd_init(&$a) {
2011-06-26 02:40:37 +00:00
header('Access-Control-Allow-Origin: *');
2015-09-16 04:47:01 +00:00
header("Content-type: application/xrd+xml");
logger('hostxrd',LOGGER_DEBUG);
2011-09-28 10:45:48 +00:00
2013-01-06 21:42:51 +00:00
$tpl = get_markup_template('xrd_host.tpl');
$x = replace_macros(get_markup_template('xrd_host.tpl'), array(
2013-01-06 21:42:51 +00:00
'$zhost' => $a->get_hostname(),
'$zroot' => z_root()
2013-01-06 21:42:51 +00:00
));
$arr = array('xrd' => $x);
call_hooks('hostxrd',$arr);
echo $arr['xrd'];
killme();
2013-01-06 21:42:51 +00:00
}