aboutsummaryrefslogtreecommitdiffstats
path: root/mod/opensearch.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-08 01:52:01 -0700
committerFriendika <info@friendika.com>2011-04-08 01:52:01 -0700
commitb8479cc2f98bdd3b144cfda127c799ba4740fc83 (patch)
treeb1c1739299725c52128d77eb48ba62fff2b443ce /mod/opensearch.php
parentc4fe8897136378985c2abe941de5af032024096a (diff)
parent1713ffb41cef8b4784f23744b244abed2f773404 (diff)
downloadvolse-hubzilla-b8479cc2f98bdd3b144cfda127c799ba4740fc83.tar.gz
volse-hubzilla-b8479cc2f98bdd3b144cfda127c799ba4740fc83.tar.bz2
volse-hubzilla-b8479cc2f98bdd3b144cfda127c799ba4740fc83.zip
Merge branch 'opensearch' of https://github.com/fabrixxm/friendika into fabrixxm-opensearch
Diffstat (limited to 'mod/opensearch.php')
-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