2010-07-23 23:33:34 +00:00
|
|
|
<?php
|
2011-02-22 04:19:33 +00:00
|
|
|
|
2011-08-05 05:37:45 +00:00
|
|
|
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");
|
2015-09-15 08:24:55 +00:00
|
|
|
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');
|
2014-04-02 21:56:20 +00:00
|
|
|
$x = replace_macros(get_markup_template('xrd_host.tpl'), array(
|
2013-01-06 21:42:51 +00:00
|
|
|
'$zhost' => $a->get_hostname(),
|
2014-04-02 21:56:20 +00:00
|
|
|
'$zroot' => z_root()
|
2013-01-06 21:42:51 +00:00
|
|
|
));
|
2014-04-02 21:56:20 +00:00
|
|
|
$arr = array('xrd' => $x);
|
|
|
|
call_hooks('hostxrd',$arr);
|
|
|
|
echo $arr['xrd'];
|
|
|
|
killme();
|
2013-01-06 21:42:51 +00:00
|
|
|
}
|