From 8761d0e33a24981dd124352a8243d1f33ecb4846 Mon Sep 17 00:00:00 2001 From: Miraty Date: Fri, 18 Feb 2022 17:15:43 +0100 Subject: [PATCH] New config.inc.php and fuse inc.php in index.php --- config.inc.php | 39 ++++++++++++++------------------------- inc.php | 39 --------------------------------------- index.php | 40 +++++++++++++++++++++++++++++++++++----- locales/en.php | 2 +- locales/fr.php | 2 +- locales/oc.php | 2 +- 6 files changed, 52 insertions(+), 72 deletions(-) delete mode 100644 inc.php diff --git a/config.inc.php b/config.inc.php index 9f98e49..7f145a4 100755 --- a/config.inc.php +++ b/config.inc.php @@ -1,31 +1,20 @@ foo."); -// EN: Should the locales requested by the user be ignored? -// FR : Faut-il ignorer les langues demandées par l'utilisateurice ? -$forceLocale = false; - -// EN: Lenght of the QR code filename -// FR : Longueur du nom du fichier du code QR -$fileNameLenght = 32; - -// EN: Will be printed at the bottom of the interface -// FR : Sera affiché en bas de l'interface -$customTextEnabled = false; -$customText = "This LibreQR instance is hosted by foo."; +// Default values +define("DEFAULT_REDUNDANCY", "high"); +define("DEFAULT_MARGIN", NULL); +define("DEFAULT_SIZE", NULL); +define("DEFAULT_BGCOLOR", "FFFFFF"); +define("DEFAULT_MAINCOLOR", "000000"); diff --git a/inc.php b/inc.php deleted file mode 100644 index 1ded916..0000000 --- a/inc.php +++ /dev/null @@ -1,39 +0,0 @@ - "", @@ -78,7 +108,7 @@ if ( require_once "less.php/lib/Less/Autoloader.php"; Less_Autoloader::register(); - $colorScheme['theme'] = $theme; + $colorScheme['theme'] = THEME; $options = array('cache_dir' => 'css/', 'compress' => true); $cssFileName = Less_Cache::Get(array("style.less" => ""), $options, $colorScheme); @@ -86,7 +116,7 @@ if ( ' . "\n"; + echo ' ' . "\n"; } ?> @@ -254,9 +284,9 @@ if ( - +
- +
diff --git a/locales/en.php b/locales/en.php index da5b1cb..f74d5c3 100644 --- a/locales/en.php +++ b/locales/en.php @@ -37,7 +37,7 @@ $loc = array( A QR code is a 2 dimensional barcode in which text is written in binary. It can be decoded with a device equipped with a photo sensor and an adequate software. QR code on Wikipedia. ", - 'metaText_legal' => "LibreQR " . $libreqrVersion . " is a free software whose source code is available under the terms of the AGPLv3+.", + 'metaText_legal' => "LibreQR " . LIBREQR_VERSION . " is a free software whose source code is available under the terms of the AGPLv3+.", 'opensearch_description' => "Generate QR codes from your search or address bar", ); diff --git a/locales/fr.php b/locales/fr.php index c074198..42872e6 100644 --- a/locales/fr.php +++ b/locales/fr.php @@ -37,7 +37,7 @@ $loc = array( Un code QR est un code-barres en 2 dimensions dans lequel du texte est inscrit en binaire. Il peut être décodé avec un appareil muni d'un capteur photo et d'un logiciel adéquat. Code QR sur Wikipédia. ", - 'metaText_legal' => "LibreQR " . $libreqrVersion . " est un logiciel libre dont le code source est disponible selon les termes de l'AGPLv3+.", + 'metaText_legal' => "LibreQR " . LIBREQR_VERSION . " est un logiciel libre dont le code source est disponible selon les termes de l'AGPLv3+.", 'opensearch_description' => "Générez des codes QR depuis votre barre de recherche ou d'adresse", ); diff --git a/locales/oc.php b/locales/oc.php index bbb626b..3ea1b2a 100644 --- a/locales/oc.php +++ b/locales/oc.php @@ -37,7 +37,7 @@ $loc = array( Un còdi QR es un còdi de barras en doas dimensions dins lo qual lo tèxt es escrich en binari. Un aparalh equipat d’un capteur optic pòt lo deschifrar, amb l’aplicacion que cal. Còdi QR a la Wikipèdia. ", - 'metaText_legal' => "LibreQR " . $libreqrVersion . " es un logicial liure que son còdi font es disponible jols tèrmes de la licéncia AGPLv3+.", + 'metaText_legal' => "LibreQR " . LIBREQR_VERSION . " es un logicial liure que son còdi font es disponible jols tèrmes de la licéncia AGPLv3+.", 'opensearch_description' => "Generatz de còdis QR a partir de la barra de recèrca o d’adreça", );