X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhostxrd.php;h=93a9d833c9626426826b4b983789f2f0fae9845b;hb=6c341962648b73c935c2de26996b07332b776a1f;hp=9b2411f26692a659b2b15c573356348158f1903c;hpb=afaf9ec74fe0662de76deabd11d630f871802579;p=friendica.git diff --git a/mod/hostxrd.php b/mod/hostxrd.php index 9b2411f266..93a9d833c9 100644 --- a/mod/hostxrd.php +++ b/mod/hostxrd.php @@ -1,23 +1,34 @@ get_hostname(),z_root(),z_path(),z_root() . '/post', salmon_key(get_config('system','site_pubkey'))),$tpl); - session_write_close(); - exit(); + $tpl = Renderer::getMarkupTemplate('xrd_host.tpl'); + echo Renderer::replaceMacros($tpl, [ + '$zhost' => $a->getHostName(), + '$zroot' => System::baseUrl(), + '$domain' => System::baseUrl(), + '$bigkey' => Salmon::salmonKey(Config::get('system', 'site_pubkey'))] + ); -} \ No newline at end of file + exit(); +}