2011-04-08 04:40:04 -04:00
|
|
|
<?php
|
2017-01-09 07:14:25 -05:00
|
|
|
|
2017-04-30 00:07:00 -04:00
|
|
|
use Friendica\App;
|
2018-10-31 10:35:50 -04:00
|
|
|
use Friendica\Core\Renderer;
|
2017-01-09 07:14:25 -05:00
|
|
|
|
2017-04-30 00:01:26 -04:00
|
|
|
function opensearch_content(App $a) {
|
2017-01-09 07:14:25 -05:00
|
|
|
|
2018-10-31 10:44:06 -04:00
|
|
|
$tpl = Renderer::getMarkupTemplate('opensearch.tpl');
|
2017-01-09 07:14:25 -05:00
|
|
|
|
2017-04-30 00:01:26 -04:00
|
|
|
header("Content-type: application/opensearchdescription+xml");
|
2017-01-09 07:14:25 -05:00
|
|
|
|
2018-10-31 10:35:50 -04:00
|
|
|
$o = Renderer::replaceMacros($tpl, [
|
2018-10-09 13:58:58 -04:00
|
|
|
'$nodename' => $a->getHostName(),
|
2018-01-15 08:05:12 -05:00
|
|
|
]);
|
2017-01-09 07:14:25 -05:00
|
|
|
|
2017-04-30 00:01:26 -04:00
|
|
|
echo $o;
|
|
|
|
|
2018-12-26 00:40:12 -05:00
|
|
|
exit();
|
2017-04-30 00:01:26 -04:00
|
|
|
}
|