mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
basic zot discovery framework
This commit is contained in:
parent
2aef98f71d
commit
0a30a91b14
4 changed files with 27 additions and 1 deletions
|
@ -4,7 +4,8 @@ function hostxrd_init(&$a) {
|
|||
header('Access-Control-Allow-Origin: *');
|
||||
header("Content-type: text/xml");
|
||||
$tpl = file_get_contents('view/xrd_host.tpl');
|
||||
echo str_replace(array('$zroot','$domain'),array(z_root(),z_path()),$tpl);
|
||||
echo str_replace(array(
|
||||
'$zroot','$domain','$zot_post'),array(z_root(),z_path(),z_root() . '/post'),$tpl);
|
||||
session_write_close();
|
||||
exit();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue