aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Hostxrd.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-04-18 01:35:09 -0700
committerredmatrix <git@macgirvin.com>2016-04-18 01:35:09 -0700
commit1698732cffab2f625c16a1d8d1227497a0965d43 (patch)
tree44d6802923840e34495cfeb6aef24ec4cfebf334 /Zotlabs/Module/Hostxrd.php
parenta9f68e4d2ac9b585b09b29c2663709e6d42c286c (diff)
downloadvolse-hubzilla-1698732cffab2f625c16a1d8d1227497a0965d43.tar.gz
volse-hubzilla-1698732cffab2f625c16a1d8d1227497a0965d43.tar.bz2
volse-hubzilla-1698732cffab2f625c16a1d8d1227497a0965d43.zip
convert all the _well_known service controllers which are a bit touchy when it comes to the router
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();
+ }
+
+}