From 3356db65558c08e04824240cb332895afd8797d4 Mon Sep 17 00:00:00 2001 From: Miraty Date: Wed, 1 Jul 2020 20:47:02 +0200 Subject: [PATCH] Adds i18n, english l10n, CHANGELOG and lesserphp instead of lessphp --- CHANGELOG.md | 49 + README.md | 5 +- config.inc.php | 53 +- inc.php | 48 + index.php | 96 +- {lessphp => lesserphp}/LICENSE | 5 +- {lessphp => lesserphp}/README.md | 13 +- lesserphp/docs/docs.md | 1400 +++++++++++ lesserphp/lessc.inc.php | 4019 ++++++++++++++++++++++++++++++ lessphp/lessc.inc.php | 3880 ---------------------------- locales/en.php | 47 + locales/fr.php | 47 + locales/template.php | 27 + manifest.php | 24 +- opensearch.php | 6 +- style.less | 10 +- style.min.css | 2 +- 17 files changed, 5732 insertions(+), 3999 deletions(-) create mode 100644 CHANGELOG.md create mode 100644 inc.php rename {lessphp => lesserphp}/LICENSE (99%) mode change 100755 => 100644 rename {lessphp => lesserphp}/README.md (86%) mode change 100755 => 100644 create mode 100644 lesserphp/docs/docs.md create mode 100644 lesserphp/lessc.inc.php delete mode 100755 lessphp/lessc.inc.php create mode 100644 locales/en.php create mode 100644 locales/fr.php create mode 100644 locales/template.php diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..09a833b --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,49 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). + +## Unreleased + +### Added + +* i18n system +* English l10n +* Changelog + +### Changed + +* Use lesserphp instead of lessphp + +## 1.2.0 - 2020-03-23 + +### Added + +* Ability to chooses QR code colors + +### Changed + +* The software is now named LibreQR +* Parameters now uses GET instead of POST +* The OpenSearch plugin now generate QR codes with arguments used when added + +## 1.1.0 - 2019-03-29 + +### Added + +* OpenSearch +* WebManifest + +### Changed + +* Server-side LESS compilation +* Icons are now themed and in multiple dimensions + +### Fixed + +* Placeholder font + +## 1.0.0 - 2019-02-13 + +Initial release diff --git a/README.md b/README.md index 048aabf..b818c22 100755 --- a/README.md +++ b/README.md @@ -59,8 +59,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 -[pngquant](https://pngquant.org). +Cela nécessitera d'avoir installé [ImageMagick](https://imagemagick.org) et [pngquant](https://pngquant.org). ## Contribuer @@ -80,7 +79,7 @@ Ce code source inclus : * [phpqrcode](https://github.com/t0k4rt/phpqrcode) pour générer les codes QR * [La police Ubuntu packagée pour le Web](https://github.com/earaujoassis/ubuntu-fontface) -* [lessphp](http://leafo.net/lessphp) pour compiler le [Less](http://lesscss.org) +* [lesserphp](https://github.com/MarcusSchwarz/lesserphp) pour compiler le [Less](http://lesscss.org) ## Licence diff --git a/config.inc.php b/config.inc.php index 8e68363..9d73ace 100755 --- a/config.inc.php +++ b/config.inc.php @@ -1,47 +1,22 @@ getFilename() != "." AND $listeCodesQR->getFilename() != ".." AND $listeCodesQR->getFilename() != ".gitkeep") { - if ((time() - filemtime("temp/" . $listeCodesQR->getFilename())) > $tempsDeSuppression) { // Si le temps actuel (en heure Posix) moins la date de dernière modification de l'image est supérieur à la durée de vie demandée de l'image - unlink("temp/" . $listeCodesQR->getFilename()); // Alors supprimer cette image - } - } - } -} +//$additionalText = "This LibreQR instance is hosted by foo."; diff --git a/inc.php b/inc.php new file mode 100644 index 0000000..04d911d --- /dev/null +++ b/inc.php @@ -0,0 +1,48 @@ + $deleteAfter) { + unlink("temp/" . $file); // Deletes this image + } + } +} diff --git a/index.php b/index.php index e72a97a..3835de6 100755 --- a/index.php +++ b/index.php @@ -1,4 +1,4 @@ - +