diff --git a/boot.php b/boot.php index b36a255eb4..8d2628845a 100644 --- a/boot.php +++ b/boot.php @@ -73,6 +73,10 @@ class App { else { $this->module = 'home'; } + + if($this->cmd == '.well-known/host-meta') + require_once('include/hostxrd.php'); + $this->pager['page'] = ((x($_GET,'page')) ? $_GET['page'] : 1); $this->pager['itemspage'] = 50; $this->pager['start'] = ($this->pager['page'] * $this->pager['itemspage']) - $this->pager['itemspage']; diff --git a/include/hostxrd.php b/include/hostxrd.php new file mode 100644 index 0000000000..3279cea68e --- /dev/null +++ b/include/hostxrd.php @@ -0,0 +1,6 @@ +hostname,$tpl); + session_write_close(); + exit(); diff --git a/mod/xrd.php b/mod/xrd.php new file mode 100644 index 0000000000..5d43147a70 --- /dev/null +++ b/mod/xrd.php @@ -0,0 +1,27 @@ + $uri, + '$profile_url' => $a->get_baseurl() . '/profile/' . $r[0]['nickname'], + '$photo' => $a->get_baseurl() . '/photo/profile/' . $r[0]['uid'] + )); + + echo $o; + killme(); + +} \ No newline at end of file diff --git a/view/xrd_host.tpl b/view/xrd_host.tpl new file mode 100644 index 0000000000..091c1541ba --- /dev/null +++ b/view/xrd_host.tpl @@ -0,0 +1,11 @@ + + + + $domain + + + Resource Descriptor + + diff --git a/view/xrd_person.tpl b/view/xrd_person.tpl new file mode 100644 index 0000000000..acf3c4cf4a --- /dev/null +++ b/view/xrd_person.tpl @@ -0,0 +1,17 @@ + + + + $accturi + $profile_url + + + + + +