libreqr/opensearch.php

16 lines
1.0 KiB
PHP
Raw Normal View History

2019-03-28 22:44:06 +01:00
<?php require "options.inc.php"; ?>
<?xml version="1.0" encoding="UTF-8" ?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Générer un code QR</ShortName>
<Description>Générez des codes QR depuis votre barre de recherche ou d'adresse</Description>
2019-08-13 21:17:08 +02:00
<?php
foreach($themeDimensionsFavicons as $dimFav) {
echo ' <Image height="' . $dimFav . '" width="' . $dimFav . '" type="image/png">' . $cheminInstall . 'themes/' . $theme . '/favicons/' . $dimFav . '.png</Image>' . "\n";
}
?>
<Language>fr</Language>
<InputEncoding>UTF-8</InputEncoding>
2020-01-26 14:23:34 +01:00
<Url type="text/html" template="<?php echo $cheminInstall; ?>&#63;text={searchTerms}&amp;redondancy=<?= if (isset())$_GET['redondancy'] ?>&amp;margin=<?= $_GET['margin'] ?>&amp;size=<?= $_GET['size'] ?>&amp;bgColor=<?= urlencode($_GET['bgColor']) ?>&amp;mainColor=<?= urlencode($_GET['mainColor']) ?>"/>
2019-03-28 22:44:06 +01:00
<Url type="application/opensearchdescription+xml" rel="self" template="<?php echo $cheminInstall; ?>opensearch.php" />
</OpenSearchDescription>