]> git.mxchange.org Git - friendica.git/blob - mod/hostxrd.php
zot/salmon new key format for batch keys
[friendica.git] / mod / hostxrd.php
1 <?php
2
3 require_once('include/crypto.php');
4
5 function hostxrd_init(&$a) {
6         header('Access-Control-Allow-Origin: *');
7         header("Content-type: text/xml");
8         $tpl = file_get_contents('view/xrd_host.tpl');
9         echo str_replace(array(
10                 '$zroot','$domain','$zot_post','$bigkey'),array(z_root(),z_path(),z_root() . '/post', salmon_key(get_config('system','site_pubkey'))),$tpl);
11         session_write_close();
12         exit();
13
14 }