]> git.mxchange.org Git - friendica.git/blobdiff - include/hostxrd.php
"firewall" setting - block all public pages from the public if configured to do so
[friendica.git] / include / hostxrd.php
index 3279cea68e305934e95ba684216af966bd8786a2..987175c33164ff7336c9a53259409ab70168314d 100644 (file)
@@ -1,6 +1,11 @@
 <?php
 
+function hostxrd($baseurl) {
+
+       header("Content-type: text/xml");
        $tpl = file_get_contents('view/xrd_host.tpl');
-       echo str_replace('$domain',$this->hostname,$tpl);
+       echo str_replace('$domain',$baseurl,$tpl);
        session_write_close();
        exit();
+
+}
\ No newline at end of file