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-08-26 02:04:21 -04:00
|
|
|
use Friendica\Core\System;
|
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
|
|
|
|
2017-04-30 00:01:26 -04:00
|
|
|
$tpl = get_markup_template('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, [
|
2017-08-26 03:32:10 -04:00
|
|
|
'$baseurl' => System::baseUrl(),
|
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;
|
|
|
|
|
|
|
|
killme();
|
|
|
|
}
|