X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhostxrd.php;h=fd4bfd10b06fa8daea782515fa5489fa15da7504;hb=7003f576e27bc1590329556c8b801bafbb324cea;hp=9b2411f26692a659b2b15c573356348158f1903c;hpb=71fe34332454e6dab239f8af27a1dcac3ba4b2e5;p=friendica.git diff --git a/mod/hostxrd.php b/mod/hostxrd.php index 9b2411f266..fd4bfd10b0 100644 --- a/mod/hostxrd.php +++ b/mod/hostxrd.php @@ -1,8 +1,11 @@ get_hostname(),z_root(),z_path(),z_root() . '/post', salmon_key(get_config('system','site_pubkey'))),$tpl); - session_write_close(); + //$tpl = file_get_contents('view/xrd_host.tpl'); + /*echo str_replace(array( + '$zhost','$zroot','$domain','$zot_post','$bigkey'),array($a->get_hostname(),System::baseUrl(),System::baseUrl(),System::baseUrl() . '/post', salmon_key(get_config('system','site_pubkey'))),$tpl);*/ + $tpl = get_markup_template('xrd_host.tpl'); + echo replace_macros($tpl, array( + '$zhost' => $a->get_hostname(), + '$zroot' => System::baseUrl(), + '$domain' => System::baseUrl(), + '$zot_post' => System::baseUrl() . '/post', + '$bigkey' => salmon_key(get_config('system','site_pubkey')), + )); exit(); -} \ No newline at end of file +}