diff options
author | Friendika <info@friendika.com> | 2011-09-19 02:13:59 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-09-19 02:13:59 -0700 |
commit | 0a30a91b14c8887db668d74759953405f02d4e65 (patch) | |
tree | 5abe63464ced99ea7f6b7dcaa105f1946b85634b /mod | |
parent | 2aef98f71d95ba5c2caae7637002daef0bce6de5 (diff) | |
download | volse-hubzilla-0a30a91b14c8887db668d74759953405f02d4e65.tar.gz volse-hubzilla-0a30a91b14c8887db668d74759953405f02d4e65.tar.bz2 volse-hubzilla-0a30a91b14c8887db668d74759953405f02d4e65.zip |
basic zot discovery framework
Diffstat (limited to 'mod')
-rw-r--r-- | mod/hostxrd.php | 3 | ||||
-rw-r--r-- | mod/xrd.php | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/mod/hostxrd.php b/mod/hostxrd.php index c7861d26d..1cc18da7a 100644 --- a/mod/hostxrd.php +++ b/mod/hostxrd.php @@ -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(); diff --git a/mod/xrd.php b/mod/xrd.php index fcec74336..dae6e4828 100644 --- a/mod/xrd.php +++ b/mod/xrd.php @@ -45,6 +45,7 @@ function xrd_init(&$a) { '$profile_url' => $a->get_baseurl() . '/profile/' . $r[0]['nickname'], '$hcard_url' => $a->get_baseurl() . '/hcard/' . $r[0]['nickname'], '$atom' => $a->get_baseurl() . '/dfrn_poll/' . $r[0]['nickname'], + '$zot_post' => $a->get_baseurl() . '/post/' . $r[0]['nickname'], '$photo' => $a->get_baseurl() . '/photo/profile/' . $r[0]['uid'] . '.jpg', '$dspr' => $dspr, '$salmon' => $a->get_baseurl() . '/salmon/' . $r[0]['nickname'], |