Add opensearch description

This commit is contained in:
2022-12-26 21:56:40 +01:00
parent 76673842b7
commit 560cd9c72c
2 changed files with 14 additions and 1 deletions

12
www/opensearch.php Normal file
View File

@ -0,0 +1,12 @@
<?php
require_once(__DIR__.'/../common_config.php');
header('Content-Type: application/opensearchdescription+xml');
?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName><?php echo _('Onion link list'); ?></ShortName>
<Description><?php echo _('Search the onion link list'); ?></Description>
<Contact>daniel@danwin1210.de</Contact>
<Developer>Daniel Winzen</Developer>
<Image width="192" height="192" type="image/gif"><?php echo CANONICAL_URL; ?>/favicon.ico</Image>
<Url type="text/html" method="get" template="<?php echo CANONICAL_URL; ?>/onions.php?q={searchTerms}" />
</OpenSearchDescription>