]> git.mxchange.org Git - friendica.git/blobdiff - include/hostxrd.php
Merge pull request #139 from fabrixxm/update
[friendica.git] / include / hostxrd.php
index 3279cea68e305934e95ba684216af966bd8786a2..7040f927d6c31cc252c4033c975948085e31a756 100644 (file)
@@ -1,6 +1,12 @@
 <?php
 
+function hostxrd($baseurl) {
+
+       header('Access-Control-Allow-Origin: *');
+       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