diff options
Diffstat (limited to 'Zotlabs/Module/Opensearch.php')
-rw-r--r-- | Zotlabs/Module/Opensearch.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Zotlabs/Module/Opensearch.php b/Zotlabs/Module/Opensearch.php new file mode 100644 index 000000000..8e76038c9 --- /dev/null +++ b/Zotlabs/Module/Opensearch.php @@ -0,0 +1,24 @@ +<?php +namespace Zotlabs\Module; + + +class Opensearch extends \Zotlabs\Web\Controller { + + function init() { + + $tpl = get_markup_template('opensearch.tpl'); + + header("Content-type: application/opensearchdescription+xml"); + + $o = replace_macros($tpl, array( + '$baseurl' => z_root(), + '$nodename' => \App::get_hostname(), + )); + + echo $o; + + killme(); + + } + +} |