dir/mod/opensearch.php

12 lines
240 B
PHP
Raw Permalink Normal View History

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