aboutsummaryrefslogtreecommitdiffstats
path: root/mod/hostxrd.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/hostxrd.php')
-rw-r--r--mod/hostxrd.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/mod/hostxrd.php b/mod/hostxrd.php
new file mode 100644
index 000000000..c7861d26d
--- /dev/null
+++ b/mod/hostxrd.php
@@ -0,0 +1,11 @@
+<?php
+
+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);
+ session_write_close();
+ exit();
+
+} \ No newline at end of file