aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-04-08 10:40:04 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-04-08 10:40:04 +0200
commit1713ffb41cef8b4784f23744b244abed2f773404 (patch)
treebf47d6536d54bb0b5a40e20649fca99ae40ef37f /mod
parente35a5bac55e0e259c7c587adfaf546484b032c92 (diff)
downloadvolse-hubzilla-1713ffb41cef8b4784f23744b244abed2f773404.tar.gz
volse-hubzilla-1713ffb41cef8b4784f23744b244abed2f773404.tar.bz2
volse-hubzilla-1713ffb41cef8b4784f23744b244abed2f773404.zip
add opensearch support
Diffstat (limited to 'mod')
-rw-r--r--mod/opensearch.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/mod/opensearch.php b/mod/opensearch.php
new file mode 100644
index 000000000..69afba75c
--- /dev/null
+++ b/mod/opensearch.php
@@ -0,0 +1,18 @@
+<?php
+ function opensearch_content(&$a) {
+
+ $tpl = load_view_file('view/opensearch.tpl');
+
+ header("Content-type: application/opensearchdescription+xml");
+
+ $o = replace_macros($tpl, array(
+ '$baseurl' => $a->get_baseurl(),
+ '$nodename' => $a->get_hostname(),
+ ));
+
+ echo $o;
+
+ killme();
+
+ }
+?> \ No newline at end of file