]> git.mxchange.org Git - friendica.git/blob - mod/hostxrd.php
Merge pull request #173 from fabrixxm/master
[friendica.git] / mod / hostxrd.php
1 <?php
2
3 function hostxrd_init(&$a) {
4         header('Access-Control-Allow-Origin: *');
5         header("Content-type: text/xml");
6         $tpl = file_get_contents('view/xrd_host.tpl');
7         echo str_replace(array(
8                 '$zroot','$domain','$zot_post'),array(z_root(),z_path(),z_root() . '/post'),$tpl);
9         session_write_close();
10         exit();
11
12 }