Configured and customized qrcode.libre-service.eu code.

This commit is contained in:
Christian P. MOMON 2021-10-23 18:34:52 +02:00 committed by root
parent 3be4b60012
commit 35cb26a162
17 changed files with 36 additions and 7 deletions

View file

@ -11,7 +11,7 @@ $timeBeforeDeletion = 60 * 60 * 24 * 2;
// EN: Theme's name (must be in the themes directory) // EN: Theme's name (must be in the themes directory)
// FR : Nom du thème (doit être dans le dossier themes) // FR : Nom du thème (doit être dans le dossier themes)
$theme = "libreqr"; $theme = "libre-service.eu";
// EN: Language used if those requested by the user are not available // EN: Language used if those requested by the user are not available
// FR : Langue utilisée si celles demandées par l'utilisateurice ne sont pas disponibles // FR : Langue utilisée si celles demandées par l'utilisateurice ne sont pas disponibles
@ -27,5 +27,5 @@ $fileNameLenght = 32;
// EN: Will be printed at the bottom of the interface // EN: Will be printed at the bottom of the interface
// FR : Sera affiché en bas de l'interface // FR : Sera affiché en bas de l'interface
$customTextEnabled = false; $customTextEnabled = true;
$customText = "This LibreQR instance is hosted by <a href='https://foo.example/'>foo</a>."; $customText = "Cette instance de LibreQR est hébergée par <a href='https://www.libre-service.eu/'>https://www.libre-service.eu/</a>.";

View file

@ -8,7 +8,7 @@ define("DEFAULT_SIZE", 4);
define("DEFAULT_BGCOLOR", "FFFFFF"); define("DEFAULT_BGCOLOR", "FFFFFF");
define("DEFAULT_MAINCOLOR", "000000"); define("DEFAULT_MAINCOLOR", "000000");
$libreqrVersion = "1.4.0dev"; $libreqrVersion = "libre-service.eu-1.3.0";
// Defines the locale to be used // Defines the locale to be used
if ($forceLocale == false AND isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { if ($forceLocale == false AND isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {

View file

@ -110,7 +110,7 @@ if (
<a id="linkTitles" href="./"> <a id="linkTitles" href="./">
<img alt="" id="logo" src="themes/<?php echo $theme; ?>/icons/128.png"> <img alt="" id="logo" src="themes/<?php echo $theme; ?>/icons/128.png">
<div id="titles"> <div id="titles">
<h1>LibreQR</h1> <h1>QRCode.libre-service.eu</h1>
<h2><?= $loc['subtitle'] ?></h2> <h2><?= $loc['subtitle'] ?></h2>
</div> </div>
</a> </a>

View file

@ -41,7 +41,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. 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.
<a href='https://en.wikipedia.org/wiki/QR_code'>QR code on Wikipedia</a>. <a href='https://en.wikipedia.org/wiki/QR_code'>QR code on Wikipedia</a>.
", ",
'metaText_legal' => "LibreQR " . $libreqrVersion . " is a free software whose <a href='https://code.antopie.org/miraty/libreqr/'>source code</a> is available under the terms of the <abbr title='GNU Affero General Public License version 3 or any later version'><a href='LICENSE.html'>AGPLv3</a>+</abbr>.", 'metaText_legal' => "<a href='https://code.antopie.org/miraty/libreqr/'>LibreQR</a> version " . $libreqrVersion . " is a free software whose <a href='https://forge.devinsy.fr/libre-service.eu/qrcode.libre-service.eu-libreqr/'>source code</a> is available under the terms of the <abbr title='GNU Affero General Public License version 3 or any later version'><a href='LICENSE.html'>AGPLv3</a>+</abbr>.",
'opensearch_description' => "Generate QR codes from your search or address bar", 'opensearch_description' => "Generate QR codes from your search or address bar",
); );

View file

@ -41,7 +41,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. 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.
<a href='https://fr.wikipedia.org/wiki/Code_QR'>Code QR sur Wikipédia</a>. <a href='https://fr.wikipedia.org/wiki/Code_QR'>Code QR sur Wikipédia</a>.
", ",
'metaText_legal' => "LibreQR " . $libreqrVersion . " est un logiciel libre dont le <a href='https://code.antopie.org/miraty/libreqr/'>code source</a> est disponible selon les termes de l'<abbr title='GNU Affero General Public License version 3 ou toute version ultérieure'><a href='LICENSE.html'>AGPLv3</a>+</abbr>.", 'metaText_legal' => "<a href='https://code.antopie.org/miraty/libreqr/'>LibreQR</a> version " . $libreqrVersion . " est un logiciel libre dont le <a href='https://forge.devinsy.fr/libre-service.eu/qrcode.libre-service.eu-libreqr'>code source</a> est disponible selon les termes de l'<abbr title='GNU Affero General Public License version 3 ou toute version ultérieure'><a href='LICENSE.html'>AGPLv3</a>+</abbr>.",
'opensearch_description' => "Générez des codes QR depuis votre barre de recherche ou d'adresse", 'opensearch_description' => "Générez des codes QR depuis votre barre de recherche ou d'adresse",
); );

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

View file

@ -0,0 +1,29 @@
<?php
// List icons dimensions
$themeDimensionsIcons = array(16, 32, 48, 64, 96, 128, 192, 256, 384, 512);
$colorScheme = array(
// Light theme
"text-light" => "#2a2a2a",
"bg-light" => "white",
"bgField-light" => "#eeeeee",
"bgHelp-light" => "#ececec",
"bgTextarea-light" => "#e5e5e5",
"textareaText-light" => "#2a2a2a",
"textareaPlaceholder-light" => "#868686",
"border-light" => "#65666b",
"borderHover-light" => "#46484e",
"borderFocus-light" => "#2a2a2a",
// Dark theme
"text-dark" => "white",
"bg-dark" => "#2a2a2a",
"bgField-dark" => "#31363B",
"bgHelp-dark" => "#151616",
"bgTextarea-dark" => "#232629",
"textareaText-dark" => "white",
"textareaPlaceholder-dark" => "#bababa",
"border-dark" => "#5f5f5f",
"borderHover-dark" => "#808080",
"borderFocus-dark" => "white"
);