aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Hostxrd.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Module/Hostxrd.php')
-rw-r--r--Zotlabs/Module/Hostxrd.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/Zotlabs/Module/Hostxrd.php b/Zotlabs/Module/Hostxrd.php
new file mode 100644
index 000000000..1aae8da9e
--- /dev/null
+++ b/Zotlabs/Module/Hostxrd.php
@@ -0,0 +1,24 @@
+<?php
+namespace Zotlabs\Module;
+
+
+class Hostxrd extends \Zotlabs\Web\Controller {
+
+ function init() {
+ header('Access-Control-Allow-Origin: *');
+ header("Content-type: application/xrd+xml");
+ logger('hostxrd',LOGGER_DEBUG);
+
+ $tpl = get_markup_template('xrd_host.tpl');
+ $x = replace_macros(get_markup_template('xrd_host.tpl'), array(
+ '$zhost' => \App::get_hostname(),
+ '$zroot' => z_root()
+ ));
+ $arr = array('xrd' => $x);
+ call_hooks('hostxrd',$arr);
+
+ echo $arr['xrd'];
+ killme();
+ }
+
+}