From 35cb26a16231e75922a98813e3001db0ca6c1bfb Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sat, 23 Oct 2021 18:34:52 +0200 Subject: [PATCH] Configured and customized qrcode.libre-service.eu code. --- config.inc.php | 6 ++--- inc.php | 2 +- index.php | 2 +- locales/en.php | 2 +- locales/fr.php | 2 +- themes/libre-service.eu/icons/128.png | Bin 0 -> 207 bytes themes/libre-service.eu/icons/16.png | Bin 0 -> 163 bytes themes/libre-service.eu/icons/192.png | Bin 0 -> 249 bytes themes/libre-service.eu/icons/256.png | Bin 0 -> 246 bytes themes/libre-service.eu/icons/32.png | Bin 0 -> 187 bytes themes/libre-service.eu/icons/384.png | Bin 0 -> 293 bytes themes/libre-service.eu/icons/48.png | Bin 0 -> 217 bytes themes/libre-service.eu/icons/512.png | Bin 0 -> 354 bytes themes/libre-service.eu/icons/64.png | Bin 0 -> 198 bytes themes/libre-service.eu/icons/96.png | Bin 0 -> 231 bytes themes/libre-service.eu/icons/source.png | Bin 0 -> 6388 bytes themes/libre-service.eu/theme.php | 29 +++++++++++++++++++++++ 17 files changed, 36 insertions(+), 7 deletions(-) create mode 100755 themes/libre-service.eu/icons/128.png create mode 100755 themes/libre-service.eu/icons/16.png create mode 100755 themes/libre-service.eu/icons/192.png create mode 100755 themes/libre-service.eu/icons/256.png create mode 100755 themes/libre-service.eu/icons/32.png create mode 100755 themes/libre-service.eu/icons/384.png create mode 100755 themes/libre-service.eu/icons/48.png create mode 100755 themes/libre-service.eu/icons/512.png create mode 100755 themes/libre-service.eu/icons/64.png create mode 100755 themes/libre-service.eu/icons/96.png create mode 100755 themes/libre-service.eu/icons/source.png create mode 100755 themes/libre-service.eu/theme.php diff --git a/config.inc.php b/config.inc.php index bd40b5d..871e194 100755 --- a/config.inc.php +++ b/config.inc.php @@ -11,7 +11,7 @@ $timeBeforeDeletion = 60 * 60 * 24 * 2; // EN: Theme's name (must be in the themes directory) // 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 // 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 // FR : Sera affiché en bas de l'interface -$customTextEnabled = false; -$customText = "This LibreQR instance is hosted by foo."; +$customTextEnabled = true; +$customText = "Cette instance de LibreQR est hébergée par https://www.libre-service.eu/."; diff --git a/inc.php b/inc.php index e857d40..f275ca3 100644 --- a/inc.php +++ b/inc.php @@ -8,7 +8,7 @@ define("DEFAULT_SIZE", 4); define("DEFAULT_BGCOLOR", "FFFFFF"); define("DEFAULT_MAINCOLOR", "000000"); -$libreqrVersion = "1.4.0dev"; +$libreqrVersion = "libre-service.eu-1.3.0"; // Defines the locale to be used if ($forceLocale == false AND isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { diff --git a/index.php b/index.php index 8dc0736..b27cd7a 100755 --- a/index.php +++ b/index.php @@ -110,7 +110,7 @@ if (
-

LibreQR

+

QRCode.libre-service.eu

diff --git a/locales/en.php b/locales/en.php index d83ebb0..f7c2464 100644 --- a/locales/en.php +++ b/locales/en.php @@ -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. 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 version " . $libreqrVersion . " 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 7812083..a56534e 100644 --- a/locales/fr.php +++ b/locales/fr.php @@ -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. 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 version " . $libreqrVersion . " 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/themes/libre-service.eu/icons/128.png b/themes/libre-service.eu/icons/128.png new file mode 100755 index 0000000000000000000000000000000000000000..ad434497c06571869676063956cc8f4e83cf353b GIT binary patch literal 207 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?O3?zSk_}l@cSkfJR9T^xl_H+M9WCijWi-X*q z7}lMWc?smO1^9%x{{R19OH1p@3DIppk#tWN#}JR>XRjXQJ)pqj9Qc0!meom4PU1hF zHawWSMn(5idMDG~)%-Flz2_O3MLSxjW`=UM?oO8I>AWk=?6t(uh{r-!sli=0u_ImAhPqgVmr_j1_n=8KbLh* G2~7Y`$uevJ literal 0 HcmV?d00001 diff --git a/themes/libre-service.eu/icons/192.png b/themes/libre-service.eu/icons/192.png new file mode 100755 index 0000000000000000000000000000000000000000..8f6a74e26dac0ada7277bb75260519d322ba842a GIT binary patch literal 249 zcmeAS@N?(olHy`uVBq!ia0vp^2SAvS8AxUb{c{0QEa{HEjtmSN`?>!lvI6;x#X;^) z4C~IxyaaOC0(?ST|NsB5rKNS{gy=S)$V5*U$B>A_Z*QFBJz&7W;$XGlzuwCR8G#K) zqr4cip9)t0iE1qFkZ%)En{lKDkqqVf^Oh)sMFaK+1`y1#u22WQ%mvv4FO#o9TTCD&8 literal 0 HcmV?d00001 diff --git a/themes/libre-service.eu/icons/256.png b/themes/libre-service.eu/icons/256.png new file mode 100755 index 0000000000000000000000000000000000000000..83c4e721e48bcd3ae866c7f7eb5c7a95a6462fb6 GIT binary patch literal 246 zcmeAS@N?(olHy`uVBq!ia0y~yU<5K585o&?RN5XZRUpNZ?&#~tz_78O`%fY(NVYi0 z-HBn{IhmJ04qJdvi0l9V|FyKVuAC6v1{CS@ba4#HxcByEG*^QG59`G@^_RIWxldZ8 zm!P&_N`;+%=E}mqAsh(`VYa>31V0?;I2JX%kAdUUWh*9y8-_O*yEw3>GXK0)$ih${ zWB6J@@W25cuRb3sZ6=8sOV$T1V$qmjFVoJ$$a97H*s;gD2O4E&*?FOl39#j3smgdW`QyW19FAcV&&*<(prlt`e$%@9NW;XdW}df=9tkOM1W#Hn hyo9Upt>?$Kn4H+ literal 0 HcmV?d00001 diff --git a/themes/libre-service.eu/icons/384.png b/themes/libre-service.eu/icons/384.png new file mode 100755 index 0000000000000000000000000000000000000000..e6bff6ffe73f52555860c7059be40cef8ab853be GIT binary patch literal 293 zcmeAS@N?(olHy`uVBq!ia0y~yU~B+kMrNSMJWlmLK#C>Z(btiIVPik{pF~z5pRqW| z-HBn{IhmJ04qJdvi0l9V|FyKVuAC6v1{B%r>EaktaqI0ZL#|c_9@YbU|1bU9yFe{6 z;D@JabcfXOPZN9BJ$@VoRQWf-_IhMQDJKI%0$YsbR=M&nAqIv6A}5aTVqst~V09{L zt>XsDNr*`A`EKpXz|c_N{MKhr4#<*U2W|HhO*_iR!@#gW{?6HVMr!g53=YO8_;Zf~ z{lM^dfs99Mc#JxbsjP7P=DPb#3=9&?PsMl3WC4Ye70%52bQ#E)te_tLGg}R4DbJ5B dK>n!lvI6;x#X;^) z4C~IxyaaOC0(?ST|NsB5rKNS{gy=S)NTH{TV~E7%+zT6d8x%xXE*OhV(MxzFRkCIY zcSelE@g!a$u>4y>86IRPza N@O1TaS?83{1ONklQ0)K! literal 0 HcmV?d00001 diff --git a/themes/libre-service.eu/icons/512.png b/themes/libre-service.eu/icons/512.png new file mode 100755 index 0000000000000000000000000000000000000000..d86b54a16bbd75ab6e2d477f151bfe1ae0dfe67e GIT binary patch literal 354 zcmeAS@N?(olHy`uVBq!ia0y~yU;;9k7#Nv>)VXbLJAo8Sx}&cn1H;CC?mvmFKt5w} zkh>GZx^prwfgH8~pAgso|Nm=gXCZMtL-`pCe(Pm} zr5Ie8Luag*B?RI8W6qFQ*jM`y!uxRfKv_rO)d>)u0Oy&;Mck69n?YV-U~o_|P~N@S zXdy(hgLxPCZAUf;XX1gZhJ{V~)ezoB2XT`!Urq?;=7Cq~?Ro_e&Iz_vimmUAz?_Df p1>C}-HPQtvV6FhWO(aCoqXuzRZ}YD{r&t9*0-mmZF6*2UngHZcUt$0N literal 0 HcmV?d00001 diff --git a/themes/libre-service.eu/icons/64.png b/themes/libre-service.eu/icons/64.png new file mode 100755 index 0000000000000000000000000000000000000000..ba3cba19c76c5b4ce63eb73f7028a5af9ae03d90 GIT binary patch literal 198 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0P3?wHke>@jRv7|ftIx;Y9?C1WI$O_~$76-XI zF|0c$^AgBm3-AeX{r~^JmX_9)6QbLIB5|HBjv*T7doOJiJfOhi9GLsy@AfNfU2`TF z{byobZxA7)k+B?nYS3#kG{l8FVdQ&MBb@02cs6-T(jq literal 0 HcmV?d00001 diff --git a/themes/libre-service.eu/icons/96.png b/themes/libre-service.eu/icons/96.png new file mode 100755 index 0000000000000000000000000000000000000000..985075af1a5651fa63605376a583b5a4e06af248 GIT binary patch literal 231 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeK3?y%aJ*@^(Ea{HEjtmSN`?>!lvI6;x#X;^) z4C~IxyaaOC0(?ST|NsB5rKNS{gy=S)NWG_vV~EA+wNox~GAQymGxI(0*k0vc#ISIB z*t-w*f(PyFopM5+m?|7*Gbq;4>t{@RC%IG3kNrsFLq;$4*k!B%?E9(|4st%OxSAL& zm|9+PKW9Ux8UBDw=wIP1y$z z_8(o<+`V}n-?}D+AB>Nlyjb!=N%fz;=9Z3+4|d4Ee`ovd9;4IRBPOeJc`lUP_ECM5 zq_$hBEl$vdy~>cwF>RWmwx{QhzV+2CKdQtZNB(>MPv&mcxg-Y%m3fJ6nZoOZ{c~@z zJ+FPlp?ym0qvgjAPjQvHC%Ybflz!fHn(2JcjF(qr3R@y{wrsd`XiY}ek;z8_LoaK_ zpQu<*@QaUoWOde2WkZ9jhrq%GO}tYQl-*YQb+wATJzo2Vd0o8H zbfliQ3UlKk$>I=t^`0)Su ze|d?A+@OdV1i8|I!2pzNNbxCpYEl4s1taXhq75J!A`MpntEJfR1F7pdBc>hUc<^uj zm1~L&=j{`E^g$*&fQ=`vG@)6%901v`0Cov+9vuYn(tyXg)Ay>~xONQ`)>Dos7W}>Y zzs~-ENIXabL>F<+R{&|io`5h!i8HYQVqya)kahsG2RPzEZlF9>=~bVzoG;1Hpqjh9 zzFz41{jbM=mj7e_2~JAHc@Pp9qxB?uGEx9V5JqAvxVhWTA$oa2gwS*O4}X}S-~WC8 z>-XO?AB+~>#DyRBPz8%N0D~K|W;l>~-txKe;dR^GB!ESD#lMF?+2_^2s|TiZ`Oz8^ zqaIZNhaqtl30Q3dSOa?8K?0q5^)0Ey2q9&Ld-V_g@*CHH%Lt0i#%?3nF&McGyC?_4 zFza;fcw_mz<}~w`QZ5EIRl}z5_V4QN{6A+OJR0H{-Dy(lG_YFiRqT#8rU$pFxFv)| zD?j*C{lD?I{EX4kgr=oQwA_NXUl=_;J^!`)-#U9>ky7#h@xTAI`@rQ7%~~HI(}^>j zg+UmowgIF8BOI`cDu9#{U1R~3Hh|ORL`D<&-SauvrQ{G0h`v`vT}f(qc!#vX!L zMX^T@w0QzF?2p-K*U|wTs7MtfaRnYy#fYRA#BBKg_Qpn#p$8P|Uq`;t>VXuYXP69Z VyME*xd1D8X^K|udS?83{1OU4wC7b{N literal 0 HcmV?d00001 diff --git a/themes/libre-service.eu/theme.php b/themes/libre-service.eu/theme.php new file mode 100755 index 0000000..d4116a0 --- /dev/null +++ b/themes/libre-service.eu/theme.php @@ -0,0 +1,29 @@ + "#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" +);