2012-05-16 07:31:36 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
function opensearch_init(&$a) {
|
|
|
|
|
2014-08-09 00:49:00 +02:00
|
|
|
$tpl = file_get_contents('view/osearch.tpl');
|
2012-05-16 07:31:36 +02:00
|
|
|
header("Content-type: application/opensearchdescription+xml");
|
2014-08-09 00:49:00 +02:00
|
|
|
echo replace_macros($tpl, array(
|
|
|
|
'$base' => $a->get_baseurl()
|
|
|
|
));
|
2012-05-16 07:31:36 +02:00
|
|
|
killme();
|
2014-08-09 00:49:00 +02:00
|
|
|
|
2012-05-16 07:31:36 +02:00
|
|
|
}
|