diff --git a/README.md b/README.md index 78ed5da..09d205f 100755 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ Par défaut, trois thèmes sont proposés : php themes/resize.php [nom de votre thème] ``` -Cela nécessitera d'avoir installé [ImageMagick](https://imagemagick.org) et +Cela nécessitera d'avoir installé [ImageMagick](https://imagemagick.org) et [pngquant](https://pngquant.org). ## Bibliothèques tierces diff --git a/config.inc.php b/config.inc.php index f062654..8e68363 100755 --- a/config.inc.php +++ b/config.inc.php @@ -4,7 +4,7 @@ deleteOldQR(60 * 60 * 24 * 7); // Temps en secondes après lequel le code QR sera supprimé lors du chargement d'un page -$theme = "parinux"; // dark, light ou parinux +$theme = "dark"; // dark, light ou parinux $fileNameLenght = 32; // Longueur du nom du fichier du code QR diff --git a/index.php b/index.php index 1efa567..3426c60 100755 --- a/index.php +++ b/index.php @@ -264,8 +264,24 @@ if (badQuery()) { if (!empty($_GET['txt']) AND !empty($_GET['size']) AND !empty($_GET['redondancy']) AND !empty($_GET['margin']) AND !empty($_GET['bgColor']) AND !empty($_GET['mainColor'])) { if (isset($_GET['txt']) AND isset($_GET['size']) AND isset($_GET['redondancy']) AND isset($_GET['margin']) AND isset($_GET['bgColor']) AND isset($_GET['mainColor'])) { - require "phpqrcode.php"; + require "phpqrcode.php"; ?> +
+ + + + Nombre de pixels des bandes blanches autour du code QR. + +
+ +
$cheminImage = "temp/" . generateRandomString($fileNameLenght) . ".png"; QRcode::png($_GET['txt'], $cheminImage, $_GET['redondancy'], $_GET['size'], $_GET['margin'], false, hexdec($_GET['bgColor']), hexdec($_GET['mainColor'])); diff --git a/style.less b/style.less index 690fe31..bc2f990 100755 --- a/style.less +++ b/style.less @@ -130,6 +130,16 @@ h2 { margin-top: 30px; } +h1 { + padding: auto; + margin-left: 10px; +} + +#titre { + text-align: center; + justify-content: center; +} + .param { padding: 10px; padding-left: 0px;