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