aboutsummaryrefslogtreecommitdiffstats
path: root/include/hostxrd.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-21 20:19:33 -0800
committerFriendika <info@friendika.com>2011-02-21 20:19:33 -0800
commit5f2f64406407839d0a9d906e0ad165067d90d130 (patch)
tree08734b4cd12d7c66756bcde3d5bf9cf1ad32c67e /include/hostxrd.php
parentd124c67322b8f79f18152d6f24394b3a38b4e0f5 (diff)
downloadvolse-hubzilla-5f2f64406407839d0a9d906e0ad165067d90d130.tar.gz
volse-hubzilla-5f2f64406407839d0a9d906e0ad165067d90d130.tar.bz2
volse-hubzilla-5f2f64406407839d0a9d906e0ad165067d90d130.zip
resolve file inclusion conflicts w/ multiple plugins, improve the typo checker
Diffstat (limited to 'include/hostxrd.php')
-rw-r--r--include/hostxrd.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/hostxrd.php b/include/hostxrd.php
index f8c398927..9161b265c 100644
--- a/include/hostxrd.php
+++ b/include/hostxrd.php
@@ -1,6 +1,11 @@
<?php
+
+function hostxrd($hostname) {
+
header("Content-type: text/xml");
$tpl = file_get_contents('view/xrd_host.tpl');
- echo str_replace('$domain',$this->hostname,$tpl);
+ echo str_replace('$domain',$hostname,$tpl);
session_write_close();
exit();
+
+} \ No newline at end of file