Un générateur de codes QR en PHP pour le Web. https://qr.antopie.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.7 KiB

  1. <?php require "inc.php"; ?>
  2. <?xml version="1.0" encoding="UTF-8" ?>
  3. <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
  4. <ShortName>LibreQR</ShortName>
  5. <Description><?= $loc['opensearch_actionName'] ?></Description>
  6. <?php
  7. foreach($themeDimensionsIcons as $dimIcon) {
  8. echo ' <Image height="' . $dimIcon . '" width="' . $dimIcon . '" type="image/png">' . $instPath . 'themes/' . $theme . '/icons/' . $dimIcon . '.png</Image>' . "\n";
  9. } ?>
  10. <Language>*</Language>
  11. <InputEncoding>UTF-8</InputEncoding>
  12. <?php
  13. $redondancy = htmlspecialchars((isset($_GET['redondancy'])) ? $_GET['redondancy'] : 'H');
  14. $margin = htmlspecialchars((isset($_GET['margin'])) ? $_GET['margin'] : '2');
  15. $size = htmlspecialchars((isset($_GET['size'])) ? $_GET['size'] : '4');
  16. $bgColor = htmlspecialchars(urlencode((isset($_GET['bgColor'])) ? $_GET['bgColor'] : '%23FFFFFF'));
  17. $mainColor = htmlspecialchars(urlencode((isset($_GET['mainColor'])) ? $_GET['mainColor'] : '%23000000'));
  18. ?>
  19. <Url type="text/html" template="<?= $instPath; ?>">
  20. <Param name="txt" value="{searchTerms}"/>
  21. <Param name="redondancy" value="<?= $redondancy ?>"/>
  22. <Param name="margin" value="<?= $margin ?>"/>
  23. <Param name="size" value="<?= $size ?>"/>
  24. <Param name="bgColor" value="<?= $bgColor ?>"/>
  25. <Param name="mainColor" value="<?= $mainColor ?>"/>
  26. </Url>
  27. <Url type="application/opensearchdescription+xml" rel="self" template="<?= $instPath; ?>opensearch.php">
  28. <Param name="redondancy" value="<?= $redondancy ?>"/>
  29. <Param name="margin" value="<?= $margin ?>"/>
  30. <Param name="size" value="<?= $size ?>"/>
  31. <Param name="bgColor" value="<?= $bgColor ?>"/>
  32. <Param name="mainColor" value="<?= $mainColor ?>"/>
  33. </Url>
  34. </OpenSearchDescription>