2021-11-25 22:36:21 +01:00
|
|
|
<?php // This file is part of LibreQR, which is distributed under the GNU AGPLv3+ license
|
|
|
|
require "inc.php"; ?>
|
2019-03-17 16:03:43 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
|
2020-07-01 20:47:02 +02:00
|
|
|
<ShortName>LibreQR</ShortName>
|
2021-07-11 22:22:43 +02:00
|
|
|
<Description><?= $loc['description'] ?></Description>
|
2019-08-13 21:17:08 +02:00
|
|
|
<?php
|
2020-03-15 21:19:01 +01:00
|
|
|
foreach($themeDimensionsIcons as $dimIcon) {
|
2020-11-03 21:28:29 +01:00
|
|
|
echo ' <Image height="' . $dimIcon . '" width="' . $dimIcon . '" type="image/png">' . $rootPath . 'themes/' . $theme . '/icons/' . $dimIcon . '.png</Image>' . "\n";
|
2020-03-15 21:19:01 +01:00
|
|
|
} ?>
|
2020-03-17 14:02:31 +01:00
|
|
|
<Language>*</Language>
|
2019-03-17 16:03:43 +01:00
|
|
|
<InputEncoding>UTF-8</InputEncoding>
|
2020-03-17 14:02:31 +01:00
|
|
|
<?php
|
2022-02-13 01:24:34 +01:00
|
|
|
$redundancy = htmlspecialchars((isset($_GET['redundancy'])) ? $_GET['redundancy'] : DEFAULT_REDUNDANCY);
|
2021-07-11 14:00:35 +02:00
|
|
|
$margin = htmlspecialchars((isset($_GET['margin'])) ? $_GET['margin'] : DEFAULT_MARGIN);
|
|
|
|
$size = htmlspecialchars((isset($_GET['size'])) ? $_GET['size'] : DEFAULT_SIZE);
|
|
|
|
$bgColor = htmlspecialchars(urlencode((isset($_GET['bgColor'])) ? $_GET['bgColor'] : "%23" . DEFAULT_BGCOLOR));
|
|
|
|
$mainColor = htmlspecialchars(urlencode((isset($_GET['mainColor'])) ? $_GET['mainColor'] : "%23" . DEFAULT_MAINCOLOR));
|
2020-03-17 14:02:31 +01:00
|
|
|
?>
|
2021-07-11 14:00:35 +02:00
|
|
|
<Url type="text/html" method="post" template="<?= $rootPath ?>">
|
2020-03-17 14:02:31 +01:00
|
|
|
<Param name="txt" value="{searchTerms}"/>
|
2022-02-13 01:24:34 +01:00
|
|
|
<Param name="redundancy" value="<?= $redundancy ?>"/>
|
2020-03-17 14:02:31 +01:00
|
|
|
<Param name="margin" value="<?= $margin ?>"/>
|
|
|
|
<Param name="size" value="<?= $size ?>"/>
|
|
|
|
<Param name="bgColor" value="<?= $bgColor ?>"/>
|
|
|
|
<Param name="mainColor" value="<?= $mainColor ?>"/>
|
|
|
|
</Url>
|
2021-07-11 14:00:35 +02:00
|
|
|
<Url type="application/opensearchdescription+xml" rel="self" template="<?= $rootPath ?>opensearch.php">
|
2022-02-13 01:24:34 +01:00
|
|
|
<Param name="redundancy" value="<?= $redundancy ?>"/>
|
2020-03-17 14:02:31 +01:00
|
|
|
<Param name="margin" value="<?= $margin ?>"/>
|
|
|
|
<Param name="size" value="<?= $size ?>"/>
|
|
|
|
<Param name="bgColor" value="<?= $bgColor ?>"/>
|
|
|
|
<Param name="mainColor" value="<?= $mainColor ?>"/>
|
|
|
|
</Url>
|
2019-03-17 16:03:43 +01:00
|
|
|
</OpenSearchDescription>
|