basic zot discovery framework

This commit is contained in:
Friendika 2011-09-19 02:13:59 -07:00
parent 2aef98f71d
commit 0a30a91b14
4 changed files with 27 additions and 1 deletions

View file

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