From 68cbec8a8d6a082f795b226d638edccb0b68cdc3 Mon Sep 17 00:00:00 2001 From: Miraty Date: Mon, 30 May 2022 20:16:36 +0200 Subject: [PATCH] Use tabs instead of spaces, better indentation --- LICENSE.html | 1370 +++++++++++++++---------------- composer.json | 8 +- index.php | 467 ++++++----- locales/en.php | 62 +- locales/fr.php | 62 +- locales/oc.php | 62 +- locales/template.php | 42 +- style.less | 591 ++++++------- themes/libreqr/libreqr.svg | 512 ++++++------ themes/libreqr/logo.less | 8 +- themes/libreqr/theme.php | 58 +- themes/parinux/icons/128.png | Bin 207 -> 0 bytes themes/parinux/icons/16.png | Bin 163 -> 0 bytes themes/parinux/icons/192.png | Bin 249 -> 0 bytes themes/parinux/icons/256.png | Bin 246 -> 0 bytes themes/parinux/icons/32.png | Bin 187 -> 0 bytes themes/parinux/icons/384.png | Bin 293 -> 0 bytes themes/parinux/icons/48.png | Bin 217 -> 0 bytes themes/parinux/icons/512.png | Bin 354 -> 0 bytes themes/parinux/icons/64.png | Bin 198 -> 0 bytes themes/parinux/icons/96.png | Bin 231 -> 0 bytes themes/parinux/icons/source.png | Bin 6414 -> 0 bytes themes/parinux/theme.php | 27 - themes/resize.php | 46 +- vendor/composer/installed.php | 4 +- 25 files changed, 1645 insertions(+), 1674 deletions(-) delete mode 100755 themes/parinux/icons/128.png delete mode 100755 themes/parinux/icons/16.png delete mode 100755 themes/parinux/icons/192.png delete mode 100755 themes/parinux/icons/256.png delete mode 100755 themes/parinux/icons/32.png delete mode 100755 themes/parinux/icons/384.png delete mode 100755 themes/parinux/icons/48.png delete mode 100755 themes/parinux/icons/512.png delete mode 100755 themes/parinux/icons/64.png delete mode 100755 themes/parinux/icons/96.png delete mode 100755 themes/parinux/icons/source.png delete mode 100755 themes/parinux/theme.php diff --git a/LICENSE.html b/LICENSE.html index 7bbd64e..aca1430 100755 --- a/LICENSE.html +++ b/LICENSE.html @@ -1,688 +1,688 @@ - - - GNU AFFERO GENERAL PUBLIC LICENSE - - - - -

GNU AFFERO GENERAL PUBLIC LICENSE

-

Version 3, 19 November 2007

- -

Copyright © 2007 Free Software Foundation, - Inc. <https://fsf.org/> -
- Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed.

- -

Preamble

- -

The GNU Affero General Public License is a free, copyleft license - for software and other kinds of works, specifically designed to ensure - cooperation with the community in the case of network server software.

- -

The licenses for most software and other practical works are - designed to take away your freedom to share and change the works. By - contrast, our General Public Licenses are intended to guarantee your - freedom to share and change all versions of a program--to make sure it - remains free software for all its users.

- -

When we speak of free software, we are referring to freedom, not - price. Our General Public Licenses are designed to make sure that you - have the freedom to distribute copies of free software (and charge for - them if you wish), that you receive source code or can get it if you - want it, that you can change the software or use pieces of it in new - free programs, and that you know you can do these things.

- -

Developers that use our General Public Licenses protect your rights - with two steps: (1) assert copyright on the software, and (2) offer - you this License which gives you legal permission to copy, distribute - and/or modify the software.

- -

A secondary benefit of defending all users' freedom is that - improvements made in alternate versions of the program, if they - receive widespread use, become available for other developers to - incorporate. Many developers of free software are heartened and - encouraged by the resulting cooperation. However, in the case of - software used on network servers, this result may fail to come about. - The GNU General Public License permits making a modified version and - letting the public access it on a server without ever releasing its - source code to the public.

- -

The GNU Affero General Public License is designed specifically to - ensure that, in such cases, the modified source code becomes available - to the community. It requires the operator of a network server to - provide the source code of the modified version running there to the - users of that server. Therefore, public use of a modified version, on - a publicly accessible server, gives the public access to the source - code of the modified version.

- -

An older license, called the Affero General Public License and - published by Affero, was designed to accomplish similar goals. This is - a different license, not a version of the Affero GPL, but Affero has - released a new version of the Affero GPL which permits relicensing under - this license.

- -

The precise terms and conditions for copying, distribution and - modification follow.

- -

TERMS AND CONDITIONS

- -

0. Definitions.

- -

"This License" refers to version 3 of the GNU Affero General Public - License.

- -

"Copyright" also means copyright-like laws that apply to other kinds - of works, such as semiconductor masks.

- -

"The Program" refers to any copyrightable work licensed under this - License. Each licensee is addressed as "you". "Licensees" and - "recipients" may be individuals or organizations.

- -

To "modify" a work means to copy from or adapt all or part of the work - in a fashion requiring copyright permission, other than the making of an - exact copy. The resulting work is called a "modified version" of the - earlier work or a work "based on" the earlier work.

- -

A "covered work" means either the unmodified Program or a work based - on the Program.

- -

To "propagate" a work means to do anything with it that, without - permission, would make you directly or secondarily liable for - infringement under applicable copyright law, except executing it on a - computer or modifying a private copy. Propagation includes copying, - distribution (with or without modification), making available to the - public, and in some countries other activities as well.

- -

To "convey" a work means any kind of propagation that enables other - parties to make or receive copies. Mere interaction with a user through - a computer network, with no transfer of a copy, is not conveying.

- -

An interactive user interface displays "Appropriate Legal Notices" - to the extent that it includes a convenient and prominently visible - feature that (1) displays an appropriate copyright notice, and (2) - tells the user that there is no warranty for the work (except to the - extent that warranties are provided), that licensees may convey the - work under this License, and how to view a copy of this License. If - the interface presents a list of user commands or options, such as a - menu, a prominent item in the list meets this criterion.

- -

1. Source Code.

- -

The "source code" for a work means the preferred form of the work - for making modifications to it. "Object code" means any non-source - form of a work.

- -

A "Standard Interface" means an interface that either is an official - standard defined by a recognized standards body, or, in the case of - interfaces specified for a particular programming language, one that - is widely used among developers working in that language.

- -

The "System Libraries" of an executable work include anything, other - than the work as a whole, that (a) is included in the normal form of - packaging a Major Component, but which is not part of that Major - Component, and (b) serves only to enable use of the work with that - Major Component, or to implement a Standard Interface for which an - implementation is available to the public in source code form. A - "Major Component", in this context, means a major essential component - (kernel, window system, and so on) of the specific operating system - (if any) on which the executable work runs, or a compiler used to - produce the work, or an object code interpreter used to run it.

- -

The "Corresponding Source" for a work in object code form means all - the source code needed to generate, install, and (for an executable - work) run the object code and to modify the work, including scripts to - control those activities. However, it does not include the work's - System Libraries, or general-purpose tools or generally available free - programs which are used unmodified in performing those activities but - which are not part of the work. For example, Corresponding Source - includes interface definition files associated with source files for - the work, and the source code for shared libraries and dynamically - linked subprograms that the work is specifically designed to require, - such as by intimate data communication or control flow between those - subprograms and other parts of the work.

- -

The Corresponding Source need not include anything that users - can regenerate automatically from other parts of the Corresponding - Source.

- -

The Corresponding Source for a work in source code form is that - same work.

- -

2. Basic Permissions.

- -

All rights granted under this License are granted for the term of - copyright on the Program, and are irrevocable provided the stated - conditions are met. This License explicitly affirms your unlimited - permission to run the unmodified Program. The output from running a - covered work is covered by this License only if the output, given its - content, constitutes a covered work. This License acknowledges your - rights of fair use or other equivalent, as provided by copyright law.

- -

You may make, run and propagate covered works that you do not - convey, without conditions so long as your license otherwise remains - in force. You may convey covered works to others for the sole purpose - of having them make modifications exclusively for you, or provide you - with facilities for running those works, provided that you comply with - the terms of this License in conveying all material for which you do - not control copyright. Those thus making or running the covered works - for you must do so exclusively on your behalf, under your direction - and control, on terms that prohibit them from making any copies of - your copyrighted material outside their relationship with you.

- -

Conveying under any other circumstances is permitted solely under - the conditions stated below. Sublicensing is not allowed; section 10 - makes it unnecessary.

- -

3. Protecting Users' Legal Rights From Anti-Circumvention Law.

- -

No covered work shall be deemed part of an effective technological - measure under any applicable law fulfilling obligations under article - 11 of the WIPO copyright treaty adopted on 20 December 1996, or - similar laws prohibiting or restricting circumvention of such - measures.

- -

When you convey a covered work, you waive any legal power to forbid - circumvention of technological measures to the extent such circumvention - is effected by exercising rights under this License with respect to - the covered work, and you disclaim any intention to limit operation or - modification of the work as a means of enforcing, against the work's - users, your or third parties' legal rights to forbid circumvention of - technological measures.

- -

4. Conveying Verbatim Copies.

- -

You may convey verbatim copies of the Program's source code as you - receive it, in any medium, provided that you conspicuously and - appropriately publish on each copy an appropriate copyright notice; - keep intact all notices stating that this License and any - non-permissive terms added in accord with section 7 apply to the code; - keep intact all notices of the absence of any warranty; and give all - recipients a copy of this License along with the Program.

- -

You may charge any price or no price for each copy that you convey, - and you may offer support or warranty protection for a fee.

- -

5. Conveying Modified Source Versions.

- -

You may convey a work based on the Program, or the modifications to - produce it from the Program, in the form of source code under the - terms of section 4, provided that you also meet all of these conditions:

- - - -

A compilation of a covered work with other separate and independent - works, which are not by their nature extensions of the covered work, - and which are not combined with it such as to form a larger program, - in or on a volume of a storage or distribution medium, is called an - "aggregate" if the compilation and its resulting copyright are not - used to limit the access or legal rights of the compilation's users - beyond what the individual works permit. Inclusion of a covered work - in an aggregate does not cause this License to apply to the other - parts of the aggregate.

- -

6. Conveying Non-Source Forms.

- -

You may convey a covered work in object code form under the terms - of sections 4 and 5, provided that you also convey the - machine-readable Corresponding Source under the terms of this License, - in one of these ways:

- - - -

A separable portion of the object code, whose source code is excluded - from the Corresponding Source as a System Library, need not be - included in conveying the object code work.

- -

A "User Product" is either (1) a "consumer product", which means any - tangible personal property which is normally used for personal, family, - or household purposes, or (2) anything designed or sold for incorporation - into a dwelling. In determining whether a product is a consumer product, - doubtful cases shall be resolved in favor of coverage. For a particular - product received by a particular user, "normally used" refers to a - typical or common use of that class of product, regardless of the status - of the particular user or of the way in which the particular user - actually uses, or expects or is expected to use, the product. A product - is a consumer product regardless of whether the product has substantial - commercial, industrial or non-consumer uses, unless such uses represent - the only significant mode of use of the product.

- -

"Installation Information" for a User Product means any methods, - procedures, authorization keys, or other information required to install - and execute modified versions of a covered work in that User Product from - a modified version of its Corresponding Source. The information must - suffice to ensure that the continued functioning of the modified object - code is in no case prevented or interfered with solely because - modification has been made.

- -

If you convey an object code work under this section in, or with, or - specifically for use in, a User Product, and the conveying occurs as - part of a transaction in which the right of possession and use of the - User Product is transferred to the recipient in perpetuity or for a - fixed term (regardless of how the transaction is characterized), the - Corresponding Source conveyed under this section must be accompanied - by the Installation Information. But this requirement does not apply - if neither you nor any third party retains the ability to install - modified object code on the User Product (for example, the work has - been installed in ROM).

- -

The requirement to provide Installation Information does not include a - requirement to continue to provide support service, warranty, or updates - for a work that has been modified or installed by the recipient, or for - the User Product in which it has been modified or installed. Access to a - network may be denied when the modification itself materially and - adversely affects the operation of the network or violates the rules and - protocols for communication across the network.

- -

Corresponding Source conveyed, and Installation Information provided, - in accord with this section must be in a format that is publicly - documented (and with an implementation available to the public in - source code form), and must require no special password or key for - unpacking, reading or copying.

- -

7. Additional Terms.

- -

"Additional permissions" are terms that supplement the terms of this - License by making exceptions from one or more of its conditions. - Additional permissions that are applicable to the entire Program shall - be treated as though they were included in this License, to the extent - that they are valid under applicable law. If additional permissions - apply only to part of the Program, that part may be used separately - under those permissions, but the entire Program remains governed by - this License without regard to the additional permissions.

- -

When you convey a copy of a covered work, you may at your option - remove any additional permissions from that copy, or from any part of - it. (Additional permissions may be written to require their own - removal in certain cases when you modify the work.) You may place - additional permissions on material, added by you to a covered work, - for which you have or can give appropriate copyright permission.

- -

Notwithstanding any other provision of this License, for material you - add to a covered work, you may (if authorized by the copyright holders of - that material) supplement the terms of this License with terms:

- - - -

All other non-permissive additional terms are considered "further - restrictions" within the meaning of section 10. If the Program as you - received it, or any part of it, contains a notice stating that it is - governed by this License along with a term that is a further restriction, - you may remove that term. If a license document contains a further - restriction but permits relicensing or conveying under this License, you - may add to a covered work material governed by the terms of that license - document, provided that the further restriction does not survive such - relicensing or conveying.

- -

If you add terms to a covered work in accord with this section, you - must place, in the relevant source files, a statement of the - additional terms that apply to those files, or a notice indicating - where to find the applicable terms.

- -

Additional terms, permissive or non-permissive, may be stated in the - form of a separately written license, or stated as exceptions; - the above requirements apply either way.

- -

8. Termination.

- -

You may not propagate or modify a covered work except as expressly - provided under this License. Any attempt otherwise to propagate or - modify it is void, and will automatically terminate your rights under - this License (including any patent licenses granted under the third - paragraph of section 11).

- -

However, if you cease all violation of this License, then your - license from a particular copyright holder is reinstated (a) - provisionally, unless and until the copyright holder explicitly and - finally terminates your license, and (b) permanently, if the copyright - holder fails to notify you of the violation by some reasonable means - prior to 60 days after the cessation.

- -

Moreover, your license from a particular copyright holder is - reinstated permanently if the copyright holder notifies you of the - violation by some reasonable means, this is the first time you have - received notice of violation of this License (for any work) from that - copyright holder, and you cure the violation prior to 30 days after - your receipt of the notice.

- -

Termination of your rights under this section does not terminate the - licenses of parties who have received copies or rights from you under - this License. If your rights have been terminated and not permanently - reinstated, you do not qualify to receive new licenses for the same - material under section 10.

- -

9. Acceptance Not Required for Having Copies.

- -

You are not required to accept this License in order to receive or - run a copy of the Program. Ancillary propagation of a covered work - occurring solely as a consequence of using peer-to-peer transmission - to receive a copy likewise does not require acceptance. However, - nothing other than this License grants you permission to propagate or - modify any covered work. These actions infringe copyright if you do - not accept this License. Therefore, by modifying or propagating a - covered work, you indicate your acceptance of this License to do so.

- -

10. Automatic Licensing of Downstream Recipients.

- -

Each time you convey a covered work, the recipient automatically - receives a license from the original licensors, to run, modify and - propagate that work, subject to this License. You are not responsible - for enforcing compliance by third parties with this License.

- -

An "entity transaction" is a transaction transferring control of an - organization, or substantially all assets of one, or subdividing an - organization, or merging organizations. If propagation of a covered - work results from an entity transaction, each party to that - transaction who receives a copy of the work also receives whatever - licenses to the work the party's predecessor in interest had or could - give under the previous paragraph, plus a right to possession of the - Corresponding Source of the work from the predecessor in interest, if - the predecessor has it or can get it with reasonable efforts.

- -

You may not impose any further restrictions on the exercise of the - rights granted or affirmed under this License. For example, you may - not impose a license fee, royalty, or other charge for exercise of - rights granted under this License, and you may not initiate litigation - (including a cross-claim or counterclaim in a lawsuit) alleging that - any patent claim is infringed by making, using, selling, offering for - sale, or importing the Program or any portion of it.

- -

11. Patents.

- -

A "contributor" is a copyright holder who authorizes use under this - License of the Program or a work on which the Program is based. The - work thus licensed is called the contributor's "contributor version".

- -

A contributor's "essential patent claims" are all patent claims - owned or controlled by the contributor, whether already acquired or - hereafter acquired, that would be infringed by some manner, permitted - by this License, of making, using, or selling its contributor version, - but do not include claims that would be infringed only as a - consequence of further modification of the contributor version. For - purposes of this definition, "control" includes the right to grant - patent sublicenses in a manner consistent with the requirements of - this License.

- -

Each contributor grants you a non-exclusive, worldwide, royalty-free - patent license under the contributor's essential patent claims, to - make, use, sell, offer for sale, import and otherwise run, modify and - propagate the contents of its contributor version.

- -

In the following three paragraphs, a "patent license" is any express - agreement or commitment, however denominated, not to enforce a patent - (such as an express permission to practice a patent or covenant not to - sue for patent infringement). To "grant" such a patent license to a - party means to make such an agreement or commitment not to enforce a - patent against the party.

- -

If you convey a covered work, knowingly relying on a patent license, - and the Corresponding Source of the work is not available for anyone - to copy, free of charge and under the terms of this License, through a - publicly available network server or other readily accessible means, - then you must either (1) cause the Corresponding Source to be so - available, or (2) arrange to deprive yourself of the benefit of the - patent license for this particular work, or (3) arrange, in a manner - consistent with the requirements of this License, to extend the patent - license to downstream recipients. "Knowingly relying" means you have - actual knowledge that, but for the patent license, your conveying the - covered work in a country, or your recipient's use of the covered work - in a country, would infringe one or more identifiable patents in that - country that you have reason to believe are valid.

- -

If, pursuant to or in connection with a single transaction or - arrangement, you convey, or propagate by procuring conveyance of, a - covered work, and grant a patent license to some of the parties - receiving the covered work authorizing them to use, propagate, modify - or convey a specific copy of the covered work, then the patent license - you grant is automatically extended to all recipients of the covered - work and works based on it.

- -

A patent license is "discriminatory" if it does not include within - the scope of its coverage, prohibits the exercise of, or is - conditioned on the non-exercise of one or more of the rights that are - specifically granted under this License. You may not convey a covered - work if you are a party to an arrangement with a third party that is - in the business of distributing software, under which you make payment - to the third party based on the extent of your activity of conveying - the work, and under which the third party grants, to any of the - parties who would receive the covered work from you, a discriminatory - patent license (a) in connection with copies of the covered work - conveyed by you (or copies made from those copies), or (b) primarily - for and in connection with specific products or compilations that - contain the covered work, unless you entered into that arrangement, - or that patent license was granted, prior to 28 March 2007.

- -

Nothing in this License shall be construed as excluding or limiting - any implied license or other defenses to infringement that may - otherwise be available to you under applicable patent law.

- -

12. No Surrender of Others' Freedom.

- -

If conditions are imposed on you (whether by court order, agreement or - otherwise) that contradict the conditions of this License, they do not - excuse you from the conditions of this License. If you cannot convey a - covered work so as to satisfy simultaneously your obligations under this - License and any other pertinent obligations, then as a consequence you may - not convey it at all. For example, if you agree to terms that obligate you - to collect a royalty for further conveying from those to whom you convey - the Program, the only way you could satisfy both those terms and this - License would be to refrain entirely from conveying the Program.

- -

13. Remote Network Interaction; Use with the GNU General Public License.

- -

Notwithstanding any other provision of this License, if you modify the - Program, your modified version must prominently offer all users - interacting with it remotely through a computer network (if your version - supports such interaction) an opportunity to receive the Corresponding - Source of your version by providing access to the Corresponding Source - from a network server at no charge, through some standard or customary - means of facilitating copying of software. This Corresponding Source - shall include the Corresponding Source for any work covered by version 3 - of the GNU General Public License that is incorporated pursuant to the - following paragraph.

- -

Notwithstanding any other provision of this License, you have permission - to link or combine any covered work with a work licensed under version 3 - of the GNU General Public License into a single combined work, and to - convey the resulting work. The terms of this License will continue to - apply to the part which is the covered work, but the work with which it is - combined will remain governed by version 3 of the GNU General Public - License.

- -

14. Revised Versions of this License.

- -

The Free Software Foundation may publish revised and/or new versions of - the GNU Affero General Public License from time to time. Such new - versions will be similar in spirit to the present version, but may differ - in detail to address new problems or concerns.

- -

Each version is given a distinguishing version number. If the - Program specifies that a certain numbered version of the GNU Affero - General Public License "or any later version" applies to it, you have - the option of following the terms and conditions either of that - numbered version or of any later version published by the Free - Software Foundation. If the Program does not specify a version number - of the GNU Affero General Public License, you may choose any version - ever published by the Free Software Foundation.

- -

If the Program specifies that a proxy can decide which future - versions of the GNU Affero General Public License can be used, that - proxy's public statement of acceptance of a version permanently - authorizes you to choose that version for the Program.

- -

Later license versions may give you additional or different - permissions. However, no additional obligations are imposed on any - author or copyright holder as a result of your choosing to follow a - later version.

- -

15. Disclaimer of Warranty.

- -

THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

- -

16. Limitation of Liability.

- -

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - SUCH DAMAGES.

- -

17. Interpretation of Sections 15 and 16.

- -

If the disclaimer of warranty and limitation of liability provided - above cannot be given local legal effect according to their terms, - reviewing courts shall apply local law that most closely approximates - an absolute waiver of all civil liability in connection with the - Program, unless a warranty or assumption of liability accompanies a - copy of the Program in return for a fee.

- -

END OF TERMS AND CONDITIONS

- -

How to Apply These Terms to Your New Programs

- -

If you develop a new program, and you want it to be of the greatest - possible use to the public, the best way to achieve this is to make it - free software which everyone can redistribute and change under these terms.

- -

To do so, attach the following notices to the program. It is safest - to attach them to the start of each source file to most effectively - state the exclusion of warranty; and each file should have at least - the "copyright" line and a pointer to where the full notice is found.

- -
    <one line to give the program's name and a brief idea of what it does.>
-        Copyright (C) <year>  <name of author>
-
-        This program is free software: you can redistribute it and/or modify
-        it under the terms of the GNU Affero General Public License as
-        published by the Free Software Foundation, either version 3 of the
-        License, or (at your option) any later version.
-
-        This program is distributed in the hope that it will be useful,
-        but WITHOUT ANY WARRANTY; without even the implied warranty of
-        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-        GNU Affero General Public License for more details.
-
-        You should have received a copy of the GNU Affero General Public License
-        along with this program.  If not, see <https://www.gnu.org/licenses/>.
-    
- -

Also add information on how to contact you by electronic and paper mail.

- -

If your software can interact with users remotely through a computer - network, you should also make sure that it provides a way for users to - get its source. For example, if your program is a web application, its - interface could display a "Source" link that leads users to an archive - of the code. There are many ways you could offer source, and different - solutions will be better for different programs; see section 13 for the - specific requirements.

- -

You should also get your employer (if you work as a programmer) or school, - if any, to sign a "copyright disclaimer" for the program, if necessary. - For more information on this, and how to apply and follow the GNU AGPL, see - <https://www.gnu.org/licenses/>.

- + + + GNU AFFERO GENERAL PUBLIC LICENSE + + + + +

GNU AFFERO GENERAL PUBLIC LICENSE

+

Version 3, 19 November 2007

+ +

Copyright © 2007 Free Software Foundation, + Inc. <https://fsf.org/> +
+ Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed.

+ +

Preamble

+ +

The GNU Affero General Public License is a free, copyleft license + for software and other kinds of works, specifically designed to ensure + cooperation with the community in the case of network server software.

+ +

The licenses for most software and other practical works are + designed to take away your freedom to share and change the works. By + contrast, our General Public Licenses are intended to guarantee your + freedom to share and change all versions of a program--to make sure it + remains free software for all its users.

+ +

When we speak of free software, we are referring to freedom, not + price. Our General Public Licenses are designed to make sure that you + have the freedom to distribute copies of free software (and charge for + them if you wish), that you receive source code or can get it if you + want it, that you can change the software or use pieces of it in new + free programs, and that you know you can do these things.

+ +

Developers that use our General Public Licenses protect your rights + with two steps: (1) assert copyright on the software, and (2) offer + you this License which gives you legal permission to copy, distribute + and/or modify the software.

+ +

A secondary benefit of defending all users' freedom is that + improvements made in alternate versions of the program, if they + receive widespread use, become available for other developers to + incorporate. Many developers of free software are heartened and + encouraged by the resulting cooperation. However, in the case of + software used on network servers, this result may fail to come about. + The GNU General Public License permits making a modified version and + letting the public access it on a server without ever releasing its + source code to the public.

+ +

The GNU Affero General Public License is designed specifically to + ensure that, in such cases, the modified source code becomes available + to the community. It requires the operator of a network server to + provide the source code of the modified version running there to the + users of that server. Therefore, public use of a modified version, on + a publicly accessible server, gives the public access to the source + code of the modified version.

+ +

An older license, called the Affero General Public License and + published by Affero, was designed to accomplish similar goals. This is + a different license, not a version of the Affero GPL, but Affero has + released a new version of the Affero GPL which permits relicensing under + this license.

+ +

The precise terms and conditions for copying, distribution and + modification follow.

+ +

TERMS AND CONDITIONS

+ +

0. Definitions.

+ +

"This License" refers to version 3 of the GNU Affero General Public + License.

+ +

"Copyright" also means copyright-like laws that apply to other kinds + of works, such as semiconductor masks.

+ +

"The Program" refers to any copyrightable work licensed under this + License. Each licensee is addressed as "you". "Licensees" and + "recipients" may be individuals or organizations.

+ +

To "modify" a work means to copy from or adapt all or part of the work + in a fashion requiring copyright permission, other than the making of an + exact copy. The resulting work is called a "modified version" of the + earlier work or a work "based on" the earlier work.

+ +

A "covered work" means either the unmodified Program or a work based + on the Program.

+ +

To "propagate" a work means to do anything with it that, without + permission, would make you directly or secondarily liable for + infringement under applicable copyright law, except executing it on a + computer or modifying a private copy. Propagation includes copying, + distribution (with or without modification), making available to the + public, and in some countries other activities as well.

+ +

To "convey" a work means any kind of propagation that enables other + parties to make or receive copies. Mere interaction with a user through + a computer network, with no transfer of a copy, is not conveying.

+ +

An interactive user interface displays "Appropriate Legal Notices" + to the extent that it includes a convenient and prominently visible + feature that (1) displays an appropriate copyright notice, and (2) + tells the user that there is no warranty for the work (except to the + extent that warranties are provided), that licensees may convey the + work under this License, and how to view a copy of this License. If + the interface presents a list of user commands or options, such as a + menu, a prominent item in the list meets this criterion.

+ +

1. Source Code.

+ +

The "source code" for a work means the preferred form of the work + for making modifications to it. "Object code" means any non-source + form of a work.

+ +

A "Standard Interface" means an interface that either is an official + standard defined by a recognized standards body, or, in the case of + interfaces specified for a particular programming language, one that + is widely used among developers working in that language.

+ +

The "System Libraries" of an executable work include anything, other + than the work as a whole, that (a) is included in the normal form of + packaging a Major Component, but which is not part of that Major + Component, and (b) serves only to enable use of the work with that + Major Component, or to implement a Standard Interface for which an + implementation is available to the public in source code form. A + "Major Component", in this context, means a major essential component + (kernel, window system, and so on) of the specific operating system + (if any) on which the executable work runs, or a compiler used to + produce the work, or an object code interpreter used to run it.

+ +

The "Corresponding Source" for a work in object code form means all + the source code needed to generate, install, and (for an executable + work) run the object code and to modify the work, including scripts to + control those activities. However, it does not include the work's + System Libraries, or general-purpose tools or generally available free + programs which are used unmodified in performing those activities but + which are not part of the work. For example, Corresponding Source + includes interface definition files associated with source files for + the work, and the source code for shared libraries and dynamically + linked subprograms that the work is specifically designed to require, + such as by intimate data communication or control flow between those + subprograms and other parts of the work.

+ +

The Corresponding Source need not include anything that users + can regenerate automatically from other parts of the Corresponding + Source.

+ +

The Corresponding Source for a work in source code form is that + same work.

+ +

2. Basic Permissions.

+ +

All rights granted under this License are granted for the term of + copyright on the Program, and are irrevocable provided the stated + conditions are met. This License explicitly affirms your unlimited + permission to run the unmodified Program. The output from running a + covered work is covered by this License only if the output, given its + content, constitutes a covered work. This License acknowledges your + rights of fair use or other equivalent, as provided by copyright law.

+ +

You may make, run and propagate covered works that you do not + convey, without conditions so long as your license otherwise remains + in force. You may convey covered works to others for the sole purpose + of having them make modifications exclusively for you, or provide you + with facilities for running those works, provided that you comply with + the terms of this License in conveying all material for which you do + not control copyright. Those thus making or running the covered works + for you must do so exclusively on your behalf, under your direction + and control, on terms that prohibit them from making any copies of + your copyrighted material outside their relationship with you.

+ +

Conveying under any other circumstances is permitted solely under + the conditions stated below. Sublicensing is not allowed; section 10 + makes it unnecessary.

+ +

3. Protecting Users' Legal Rights From Anti-Circumvention Law.

+ +

No covered work shall be deemed part of an effective technological + measure under any applicable law fulfilling obligations under article + 11 of the WIPO copyright treaty adopted on 20 December 1996, or + similar laws prohibiting or restricting circumvention of such + measures.

+ +

When you convey a covered work, you waive any legal power to forbid + circumvention of technological measures to the extent such circumvention + is effected by exercising rights under this License with respect to + the covered work, and you disclaim any intention to limit operation or + modification of the work as a means of enforcing, against the work's + users, your or third parties' legal rights to forbid circumvention of + technological measures.

+ +

4. Conveying Verbatim Copies.

+ +

You may convey verbatim copies of the Program's source code as you + receive it, in any medium, provided that you conspicuously and + appropriately publish on each copy an appropriate copyright notice; + keep intact all notices stating that this License and any + non-permissive terms added in accord with section 7 apply to the code; + keep intact all notices of the absence of any warranty; and give all + recipients a copy of this License along with the Program.

+ +

You may charge any price or no price for each copy that you convey, + and you may offer support or warranty protection for a fee.

+ +

5. Conveying Modified Source Versions.

+ +

You may convey a work based on the Program, or the modifications to + produce it from the Program, in the form of source code under the + terms of section 4, provided that you also meet all of these conditions:

+ + + +

A compilation of a covered work with other separate and independent + works, which are not by their nature extensions of the covered work, + and which are not combined with it such as to form a larger program, + in or on a volume of a storage or distribution medium, is called an + "aggregate" if the compilation and its resulting copyright are not + used to limit the access or legal rights of the compilation's users + beyond what the individual works permit. Inclusion of a covered work + in an aggregate does not cause this License to apply to the other + parts of the aggregate.

+ +

6. Conveying Non-Source Forms.

+ +

You may convey a covered work in object code form under the terms + of sections 4 and 5, provided that you also convey the + machine-readable Corresponding Source under the terms of this License, + in one of these ways:

+ + + +

A separable portion of the object code, whose source code is excluded + from the Corresponding Source as a System Library, need not be + included in conveying the object code work.

+ +

A "User Product" is either (1) a "consumer product", which means any + tangible personal property which is normally used for personal, family, + or household purposes, or (2) anything designed or sold for incorporation + into a dwelling. In determining whether a product is a consumer product, + doubtful cases shall be resolved in favor of coverage. For a particular + product received by a particular user, "normally used" refers to a + typical or common use of that class of product, regardless of the status + of the particular user or of the way in which the particular user + actually uses, or expects or is expected to use, the product. A product + is a consumer product regardless of whether the product has substantial + commercial, industrial or non-consumer uses, unless such uses represent + the only significant mode of use of the product.

+ +

"Installation Information" for a User Product means any methods, + procedures, authorization keys, or other information required to install + and execute modified versions of a covered work in that User Product from + a modified version of its Corresponding Source. The information must + suffice to ensure that the continued functioning of the modified object + code is in no case prevented or interfered with solely because + modification has been made.

+ +

If you convey an object code work under this section in, or with, or + specifically for use in, a User Product, and the conveying occurs as + part of a transaction in which the right of possession and use of the + User Product is transferred to the recipient in perpetuity or for a + fixed term (regardless of how the transaction is characterized), the + Corresponding Source conveyed under this section must be accompanied + by the Installation Information. But this requirement does not apply + if neither you nor any third party retains the ability to install + modified object code on the User Product (for example, the work has + been installed in ROM).

+ +

The requirement to provide Installation Information does not include a + requirement to continue to provide support service, warranty, or updates + for a work that has been modified or installed by the recipient, or for + the User Product in which it has been modified or installed. Access to a + network may be denied when the modification itself materially and + adversely affects the operation of the network or violates the rules and + protocols for communication across the network.

+ +

Corresponding Source conveyed, and Installation Information provided, + in accord with this section must be in a format that is publicly + documented (and with an implementation available to the public in + source code form), and must require no special password or key for + unpacking, reading or copying.

+ +

7. Additional Terms.

+ +

"Additional permissions" are terms that supplement the terms of this + License by making exceptions from one or more of its conditions. + Additional permissions that are applicable to the entire Program shall + be treated as though they were included in this License, to the extent + that they are valid under applicable law. If additional permissions + apply only to part of the Program, that part may be used separately + under those permissions, but the entire Program remains governed by + this License without regard to the additional permissions.

+ +

When you convey a copy of a covered work, you may at your option + remove any additional permissions from that copy, or from any part of + it. (Additional permissions may be written to require their own + removal in certain cases when you modify the work.) You may place + additional permissions on material, added by you to a covered work, + for which you have or can give appropriate copyright permission.

+ +

Notwithstanding any other provision of this License, for material you + add to a covered work, you may (if authorized by the copyright holders of + that material) supplement the terms of this License with terms:

+ + + +

All other non-permissive additional terms are considered "further + restrictions" within the meaning of section 10. If the Program as you + received it, or any part of it, contains a notice stating that it is + governed by this License along with a term that is a further restriction, + you may remove that term. If a license document contains a further + restriction but permits relicensing or conveying under this License, you + may add to a covered work material governed by the terms of that license + document, provided that the further restriction does not survive such + relicensing or conveying.

+ +

If you add terms to a covered work in accord with this section, you + must place, in the relevant source files, a statement of the + additional terms that apply to those files, or a notice indicating + where to find the applicable terms.

+ +

Additional terms, permissive or non-permissive, may be stated in the + form of a separately written license, or stated as exceptions; + the above requirements apply either way.

+ +

8. Termination.

+ +

You may not propagate or modify a covered work except as expressly + provided under this License. Any attempt otherwise to propagate or + modify it is void, and will automatically terminate your rights under + this License (including any patent licenses granted under the third + paragraph of section 11).

+ +

However, if you cease all violation of this License, then your + license from a particular copyright holder is reinstated (a) + provisionally, unless and until the copyright holder explicitly and + finally terminates your license, and (b) permanently, if the copyright + holder fails to notify you of the violation by some reasonable means + prior to 60 days after the cessation.

+ +

Moreover, your license from a particular copyright holder is + reinstated permanently if the copyright holder notifies you of the + violation by some reasonable means, this is the first time you have + received notice of violation of this License (for any work) from that + copyright holder, and you cure the violation prior to 30 days after + your receipt of the notice.

+ +

Termination of your rights under this section does not terminate the + licenses of parties who have received copies or rights from you under + this License. If your rights have been terminated and not permanently + reinstated, you do not qualify to receive new licenses for the same + material under section 10.

+ +

9. Acceptance Not Required for Having Copies.

+ +

You are not required to accept this License in order to receive or + run a copy of the Program. Ancillary propagation of a covered work + occurring solely as a consequence of using peer-to-peer transmission + to receive a copy likewise does not require acceptance. However, + nothing other than this License grants you permission to propagate or + modify any covered work. These actions infringe copyright if you do + not accept this License. Therefore, by modifying or propagating a + covered work, you indicate your acceptance of this License to do so.

+ +

10. Automatic Licensing of Downstream Recipients.

+ +

Each time you convey a covered work, the recipient automatically + receives a license from the original licensors, to run, modify and + propagate that work, subject to this License. You are not responsible + for enforcing compliance by third parties with this License.

+ +

An "entity transaction" is a transaction transferring control of an + organization, or substantially all assets of one, or subdividing an + organization, or merging organizations. If propagation of a covered + work results from an entity transaction, each party to that + transaction who receives a copy of the work also receives whatever + licenses to the work the party's predecessor in interest had or could + give under the previous paragraph, plus a right to possession of the + Corresponding Source of the work from the predecessor in interest, if + the predecessor has it or can get it with reasonable efforts.

+ +

You may not impose any further restrictions on the exercise of the + rights granted or affirmed under this License. For example, you may + not impose a license fee, royalty, or other charge for exercise of + rights granted under this License, and you may not initiate litigation + (including a cross-claim or counterclaim in a lawsuit) alleging that + any patent claim is infringed by making, using, selling, offering for + sale, or importing the Program or any portion of it.

+ +

11. Patents.

+ +

A "contributor" is a copyright holder who authorizes use under this + License of the Program or a work on which the Program is based. The + work thus licensed is called the contributor's "contributor version".

+ +

A contributor's "essential patent claims" are all patent claims + owned or controlled by the contributor, whether already acquired or + hereafter acquired, that would be infringed by some manner, permitted + by this License, of making, using, or selling its contributor version, + but do not include claims that would be infringed only as a + consequence of further modification of the contributor version. For + purposes of this definition, "control" includes the right to grant + patent sublicenses in a manner consistent with the requirements of + this License.

+ +

Each contributor grants you a non-exclusive, worldwide, royalty-free + patent license under the contributor's essential patent claims, to + make, use, sell, offer for sale, import and otherwise run, modify and + propagate the contents of its contributor version.

+ +

In the following three paragraphs, a "patent license" is any express + agreement or commitment, however denominated, not to enforce a patent + (such as an express permission to practice a patent or covenant not to + sue for patent infringement). To "grant" such a patent license to a + party means to make such an agreement or commitment not to enforce a + patent against the party.

+ +

If you convey a covered work, knowingly relying on a patent license, + and the Corresponding Source of the work is not available for anyone + to copy, free of charge and under the terms of this License, through a + publicly available network server or other readily accessible means, + then you must either (1) cause the Corresponding Source to be so + available, or (2) arrange to deprive yourself of the benefit of the + patent license for this particular work, or (3) arrange, in a manner + consistent with the requirements of this License, to extend the patent + license to downstream recipients. "Knowingly relying" means you have + actual knowledge that, but for the patent license, your conveying the + covered work in a country, or your recipient's use of the covered work + in a country, would infringe one or more identifiable patents in that + country that you have reason to believe are valid.

+ +

If, pursuant to or in connection with a single transaction or + arrangement, you convey, or propagate by procuring conveyance of, a + covered work, and grant a patent license to some of the parties + receiving the covered work authorizing them to use, propagate, modify + or convey a specific copy of the covered work, then the patent license + you grant is automatically extended to all recipients of the covered + work and works based on it.

+ +

A patent license is "discriminatory" if it does not include within + the scope of its coverage, prohibits the exercise of, or is + conditioned on the non-exercise of one or more of the rights that are + specifically granted under this License. You may not convey a covered + work if you are a party to an arrangement with a third party that is + in the business of distributing software, under which you make payment + to the third party based on the extent of your activity of conveying + the work, and under which the third party grants, to any of the + parties who would receive the covered work from you, a discriminatory + patent license (a) in connection with copies of the covered work + conveyed by you (or copies made from those copies), or (b) primarily + for and in connection with specific products or compilations that + contain the covered work, unless you entered into that arrangement, + or that patent license was granted, prior to 28 March 2007.

+ +

Nothing in this License shall be construed as excluding or limiting + any implied license or other defenses to infringement that may + otherwise be available to you under applicable patent law.

+ +

12. No Surrender of Others' Freedom.

+ +

If conditions are imposed on you (whether by court order, agreement or + otherwise) that contradict the conditions of this License, they do not + excuse you from the conditions of this License. If you cannot convey a + covered work so as to satisfy simultaneously your obligations under this + License and any other pertinent obligations, then as a consequence you may + not convey it at all. For example, if you agree to terms that obligate you + to collect a royalty for further conveying from those to whom you convey + the Program, the only way you could satisfy both those terms and this + License would be to refrain entirely from conveying the Program.

+ +

13. Remote Network Interaction; Use with the GNU General Public License.

+ +

Notwithstanding any other provision of this License, if you modify the + Program, your modified version must prominently offer all users + interacting with it remotely through a computer network (if your version + supports such interaction) an opportunity to receive the Corresponding + Source of your version by providing access to the Corresponding Source + from a network server at no charge, through some standard or customary + means of facilitating copying of software. This Corresponding Source + shall include the Corresponding Source for any work covered by version 3 + of the GNU General Public License that is incorporated pursuant to the + following paragraph.

+ +

Notwithstanding any other provision of this License, you have permission + to link or combine any covered work with a work licensed under version 3 + of the GNU General Public License into a single combined work, and to + convey the resulting work. The terms of this License will continue to + apply to the part which is the covered work, but the work with which it is + combined will remain governed by version 3 of the GNU General Public + License.

+ +

14. Revised Versions of this License.

+ +

The Free Software Foundation may publish revised and/or new versions of + the GNU Affero General Public License from time to time. Such new + versions will be similar in spirit to the present version, but may differ + in detail to address new problems or concerns.

+ +

Each version is given a distinguishing version number. If the + Program specifies that a certain numbered version of the GNU Affero + General Public License "or any later version" applies to it, you have + the option of following the terms and conditions either of that + numbered version or of any later version published by the Free + Software Foundation. If the Program does not specify a version number + of the GNU Affero General Public License, you may choose any version + ever published by the Free Software Foundation.

+ +

If the Program specifies that a proxy can decide which future + versions of the GNU Affero General Public License can be used, that + proxy's public statement of acceptance of a version permanently + authorizes you to choose that version for the Program.

+ +

Later license versions may give you additional or different + permissions. However, no additional obligations are imposed on any + author or copyright holder as a result of your choosing to follow a + later version.

+ +

15. Disclaimer of Warranty.

+ +

THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY + APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT + HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY + OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, + THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM + IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF + ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

+ +

16. Limitation of Liability.

+ +

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING + WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS + THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY + GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE + USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF + DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD + PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), + EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF + SUCH DAMAGES.

+ +

17. Interpretation of Sections 15 and 16.

+ +

If the disclaimer of warranty and limitation of liability provided + above cannot be given local legal effect according to their terms, + reviewing courts shall apply local law that most closely approximates + an absolute waiver of all civil liability in connection with the + Program, unless a warranty or assumption of liability accompanies a + copy of the Program in return for a fee.

+ +

END OF TERMS AND CONDITIONS

+ +

How to Apply These Terms to Your New Programs

+ +

If you develop a new program, and you want it to be of the greatest + possible use to the public, the best way to achieve this is to make it + free software which everyone can redistribute and change under these terms.

+ +

To do so, attach the following notices to the program. It is safest + to attach them to the start of each source file to most effectively + state the exclusion of warranty; and each file should have at least + the "copyright" line and a pointer to where the full notice is found.

+ +
	<one line to give the program's name and a brief idea of what it does.>
+		Copyright (C) <year>  <name of author>
+
+		This program is free software: you can redistribute it and/or modify
+		it under the terms of the GNU Affero General Public License as
+		published by the Free Software Foundation, either version 3 of the
+		License, or (at your option) any later version.
+
+		This program is distributed in the hope that it will be useful,
+		but WITHOUT ANY WARRANTY; without even the implied warranty of
+		MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+		GNU Affero General Public License for more details.
+
+		You should have received a copy of the GNU Affero General Public License
+		along with this program.  If not, see <https://www.gnu.org/licenses/>.
+		
+ +

Also add information on how to contact you by electronic and paper mail.

+ +

If your software can interact with users remotely through a computer + network, you should also make sure that it provides a way for users to + get its source. For example, if your program is a web application, its + interface could display a "Source" link that leads users to an archive + of the code. There are many ways you could offer source, and different + solutions will be better for different programs; see section 13 for the + specific requirements.

+ +

You should also get your employer (if you work as a programmer) or school, + if any, to sign a "copyright disclaimer" for the program, if necessary. + For more information on this, and how to apply and follow the GNU AGPL, see + <https://www.gnu.org/licenses/>.

+ diff --git a/composer.json b/composer.json index a8d89ae..a014db5 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { - "require": { - "endroid/qr-code": "^4.4", - "wikimedia/less.php": "^3.1" - } + "require": { + "endroid/qr-code": "^4.4", + "wikimedia/less.php": "^3.1" + } } diff --git a/index.php b/index.php index dd7718b..5889201 100755 --- a/index.php +++ b/index.php @@ -14,295 +14,292 @@ define("LIBREQR_VERSION", "2.0.0dev"); // Defines the locale to be used if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { - $clientLocales = $_SERVER['HTTP_ACCEPT_LANGUAGE']; - $clientLocales = preg_replace("#[A-Z0-9]|q=|;|-|\.#", "", $clientLocales); - $clientLocales = explode(',', $clientLocales); - $availableLocales = array('en', 'fr', 'oc', 'template'); - foreach ($clientLocales as $clientLocale) { - if (in_array($clientLocale, $availableLocales)) { - $locale = $clientLocale; - break; - } - } + $clientLocales = $_SERVER['HTTP_ACCEPT_LANGUAGE']; + $clientLocales = preg_replace("#[A-Z0-9]|q=|;|-|\.#", "", $clientLocales); + $clientLocales = explode(',', $clientLocales); + $availableLocales = array('en', 'fr', 'oc', 'template'); + foreach ($clientLocales as $clientLocale) { + if (in_array($clientLocale, $availableLocales)) { + $locale = $clientLocale; + break; + } + } } else { - $locale = DEFAULT_LOCALE; + $locale = DEFAULT_LOCALE; } require "locales/" . $locale . ".php"; $params = array( - "txt" => "", - "redundancy" => DEFAULT_REDUNDANCY, - "margin" => DEFAULT_MARGIN, - "size" => DEFAULT_SIZE, - "bgColor" => DEFAULT_BGCOLOR, - "mainColor" => DEFAULT_MAINCOLOR, + "txt" => "", + "redundancy" => DEFAULT_REDUNDANCY, + "margin" => DEFAULT_MARGIN, + "size" => DEFAULT_SIZE, + "bgColor" => DEFAULT_BGCOLOR, + "mainColor" => DEFAULT_MAINCOLOR, ); $validFormSubmitted = false; if ( - isset($_POST['txt']) - AND isset($_POST['redundancy']) - AND isset($_POST['margin']) - AND isset($_POST['size']) - AND isset($_POST['bgColor']) - AND isset($_POST['mainColor']) + isset($_POST['txt']) + AND isset($_POST['redundancy']) + AND isset($_POST['margin']) + AND isset($_POST['size']) + AND isset($_POST['bgColor']) + AND isset($_POST['mainColor']) ) { - if (strlen($_POST['txt']) >= 1 AND strlen($_POST['txt']) <= 4096) { - $params['txt'] = $_POST['txt']; - } else { - http_response_code(400); - exit("Wrong value for txt"); - } + if (strlen($_POST['txt']) >= 1 AND strlen($_POST['txt']) <= 4096) { + $params['txt'] = $_POST['txt']; + } else { + http_response_code(400); + exit("Wrong value for txt"); + } - if ($_POST['redundancy'] === "low" OR $_POST['redundancy'] === "medium" OR $_POST['redundancy'] === "quartile" OR $_POST['redundancy'] === "high") { - $params['redundancy'] = $_POST['redundancy']; - } else { - http_response_code(400); - exit("Wrong value for redundancy"); - } + if ($_POST['redundancy'] === "low" OR $_POST['redundancy'] === "medium" OR $_POST['redundancy'] === "quartile" OR $_POST['redundancy'] === "high") { + $params['redundancy'] = $_POST['redundancy']; + } else { + http_response_code(400); + exit("Wrong value for redundancy"); + } - if (is_numeric($_POST['margin']) AND $_POST['margin'] >= 0 AND $_POST['margin'] <= 1024) { - $params['margin'] = $_POST['margin']; - } else if (empty($_POST['margin'])) { - $params['margin'] = NULL; - } else { - http_response_code(400); - exit("Wrong value for margin"); - } + if (is_numeric($_POST['margin']) AND $_POST['margin'] >= 0 AND $_POST['margin'] <= 1024) { + $params['margin'] = $_POST['margin']; + } else if (empty($_POST['margin'])) { + $params['margin'] = NULL; + } else { + http_response_code(400); + exit("Wrong value for margin"); + } - if (is_numeric($_POST['size']) AND $_POST['size'] >= 1 AND $_POST['size'] <= 4096) { - $params['size'] = $_POST['size']; - } else if (empty($_POST['size'])) { - $params['size'] = NULL; - } else { - http_response_code(400); - exit("Wrong value for size"); - } + if (is_numeric($_POST['size']) AND $_POST['size'] >= 1 AND $_POST['size'] <= 4096) { + $params['size'] = $_POST['size']; + } else if (empty($_POST['size'])) { + $params['size'] = NULL; + } else { + http_response_code(400); + exit("Wrong value for size"); + } - if (preg_match("/^#[abcdefABCDEF0-9]{6}$/", $_POST['bgColor'])) { - $params['bgColor'] = substr($_POST['bgColor'], -6); - } else { - http_response_code(400); - exit("Wrong value for bgColor"); - } + if (preg_match("/^#[abcdefABCDEF0-9]{6}$/", $_POST['bgColor'])) { + $params['bgColor'] = substr($_POST['bgColor'], -6); + } else { + http_response_code(400); + exit("Wrong value for bgColor"); + } - if (preg_match("/^#[abcdefABCDEF0-9]{6}$/", $_POST['mainColor'])) { - $params['mainColor'] = substr($_POST['mainColor'], -6); - } else { - http_response_code(400); - exit("Wrong value for mainColor"); - } + if (preg_match("/^#[abcdefABCDEF0-9]{6}$/", $_POST['mainColor'])) { + $params['mainColor'] = substr($_POST['mainColor'], -6); + } else { + http_response_code(400); + exit("Wrong value for mainColor"); + } - $validFormSubmitted = true; + $validFormSubmitted = true; } ?> - - - LibreQR · <?= $loc['subtitle'] ?> - - - - - - - + + LibreQR · <?= $loc['subtitle'] ?> + + + + + + + 'css/', 'compress' => true); - $cssFileName = Less_Cache::Get(array("style.less" => ""), $options, $colorScheme); - ?> - - ' . "\n"; - } - ?> - +$options = array('cache_dir' => 'css/', 'compress' => true); +$cssFileName = Less_Cache::Get(array("style.less" => ""), $options, $colorScheme); +?> + +' . "\n"; +?> + - + -
- -
-

LibreQR

-

-
-
-
+
+ +
+

LibreQR

+

+
+
+
-
+ -
-
- -
- -
-
- -
+
+
+ +
+ +
+
+ +
-
+
-
-
- -

- -

-
- -
+
+
+ +

+ +

+
+ +
-
-
- -

- -

-
- - - -
+
+
+ +

+ +

+
+ + + +
-
-
- -

- -

-
- - - -
+
+
+ +

+ +

+
+ + + +
-
+
-
+
+
+ + +
+
+ + +
+
-
- - -
+
+ +
-
- - -
-
+
-
- -
+ +if ($validFormSubmitted) { - hexdec(substr($params['bgColor'],0,2)), + 'g' => hexdec(substr($params['bgColor'],2,2)), + 'b' => hexdec(substr($params['bgColor'],4,2)), + ); - if ($validFormSubmitted) { + $qrCode = Builder::create() + ->data($params['txt']); + if (!is_null($params['margin'])) + $qrCode->margin($params['margin']); + if (!is_null($params['size'])) + $qrCode->size($params['size']); - $rgbBgColor = array( - 'r' => hexdec(substr($params['bgColor'],0,2)), - 'g' => hexdec(substr($params['bgColor'],2,2)), - 'b' => hexdec(substr($params['bgColor'],4,2)), - ); + if ($params['redundancy'] === "high") + $qrCode->errorCorrectionLevel(new ErrorCorrectionLevelHigh()); + else if ($params['redundancy'] === "quartile") + $qrCode->errorCorrectionLevel(new ErrorCorrectionLevelQuartile()); + else if ($params['redundancy'] === "medium") + $qrCode->errorCorrectionLevel(new ErrorCorrectionLevelMedium()); + else if ($params['redundancy'] === "low") + $qrCode->errorCorrectionLevel(new ErrorCorrectionLevelLow()); - $qrCode = Builder::create() - ->data($params['txt']); - if (!is_null($params['margin'])) - $qrCode->margin($params['margin']); - if (!is_null($params['size'])) - $qrCode->size($params['size']); + $qrCode + ->backgroundColor(new Color( + $rgbBgColor['r'], + $rgbBgColor['g'], + $rgbBgColor['b'] + )) + ->foregroundColor(new Color( + hexdec(substr($params['mainColor'],0,2)), + hexdec(substr($params['mainColor'],2,2)), + hexdec(substr($params['mainColor'],4,2)) + )); - if ($params['redundancy'] === "high") - $qrCode->errorCorrectionLevel(new ErrorCorrectionLevelHigh()); - else if ($params['redundancy'] === "quartile") - $qrCode->errorCorrectionLevel(new ErrorCorrectionLevelQuartile()); - else if ($params['redundancy'] === "medium") - $qrCode->errorCorrectionLevel(new ErrorCorrectionLevelMedium()); - else if ($params['redundancy'] === "low") - $qrCode->errorCorrectionLevel(new ErrorCorrectionLevelLow()); + $result = $qrCode->build(); - $qrCode - ->backgroundColor(new Color( - $rgbBgColor['r'], - $rgbBgColor['g'], - $rgbBgColor['b'] - )) - ->foregroundColor(new Color( - hexdec(substr($params['mainColor'],0,2)), - hexdec(substr($params['mainColor'],2,2)), - hexdec(substr($params['mainColor'],4,2)) - )); + $dataUri = $result->getDataUri(); - $result = $qrCode->build(); +?> - $dataUri = $result->getDataUri(); +
+
+ +
- ?> +
+ <?= $loc[' id="qrCode" -
- -
+ // Compute the difference between the QR code and theme background colors + $diffLight = abs($rgbBgColor['r']-hexdec(substr($colorScheme['bg-light'],-6,2))) + abs($rgbBgColor['g']-hexdec(substr($colorScheme['bg-light'],-4,2))) + abs($rgbBgColor['b']-hexdec(substr($colorScheme['bg-light'],-2,2))); + $diffDark = abs($rgbBgColor['r']-hexdec(substr($colorScheme['bg-dark'],-6,2))) + abs($rgbBgColor['g']-hexdec(substr($colorScheme['bg-dark'],-4,2))) + abs($rgbBgColor['b']-hexdec(substr($colorScheme['bg-dark'],-2,2))); - +
- // Compute the difference between the QR code and theme background colors - $diffLight = abs($rgbBgColor['r']-hexdec(substr($colorScheme['bg-light'],-6,2))) + abs($rgbBgColor['g']-hexdec(substr($colorScheme['bg-light'],-4,2))) + abs($rgbBgColor['b']-hexdec(substr($colorScheme['bg-light'],-2,2))); - $diffDark = abs($rgbBgColor['r']-hexdec(substr($colorScheme['bg-dark'],-6,2))) + abs($rgbBgColor['g']-hexdec(substr($colorScheme['bg-dark'],-4,2))) + abs($rgbBgColor['b']-hexdec(substr($colorScheme['bg-dark'],-2,2))); + - // Determine whether a CSS corner is needed to let the user see the margin of the QR code - $contrastThreshold = 64; - if ($diffLight < $contrastThreshold) - echo " class='needLightContrast'"; - if ($diffDark < $contrastThreshold) - echo " class='needDarkContrast'"; - ?> src=""> - - + - - + diff --git a/locales/en.php b/locales/en.php index 3eb98ec..d9a63e8 100644 --- a/locales/en.php +++ b/locales/en.php @@ -1,41 +1,41 @@ "QR codes generator", - 'description' => "Generate QR codes freely. Choose content, size, colors…", + 'subtitle' => "QR codes generator", + 'description' => "Generate QR codes freely. Choose content, size, colors…", - 'label_content' => "Text to encode", - 'label_redundancy' => "Redundancy rate", - 'label_margin' => "Margin size", - 'label_size' => "Image size", - 'label_bgColor' => "Background color", - 'label_mainColor' => "Foreground color", + 'label_content' => "Text to encode", + 'label_redundancy' => "Redundancy rate", + 'label_margin' => "Margin size", + 'label_size' => "Image size", + 'label_bgColor' => "Background color", + 'label_mainColor' => "Foreground color", - 'placeholder' => "Enter the text to encode in the QR code", - 'placeholder_pixels' => "automatic", + 'placeholder' => "Enter the text to encode in the QR code", + 'placeholder_pixels' => "automatic", - 'help_content' => " -

You can encode whatever text you want.

-

Software which decodes these QR codes could suggest to open them with dedicated software, depending on their URI scheme.

-

For instance, to open a webpage: https://www.example/

-

To send an email: mailto:contact@email.example

-

To share geographic coordinates: geo:48.867564,2.364057

- ", - 'help_redundancy' => "Redundancy is the duplication of information in the QR code to correct errors during decoding. A higher rate will produce a bigger QR code, but will have a better chance of being decoded correctly.", - 'help_margin' => "Number of pixels in each white band around the QR code.", - 'help_size' => "Image width and height in pixels, without the margin.", + 'help_content' => " +

You can encode whatever text you want.

+

Software which decodes these QR codes could suggest to open them with dedicated software, depending on their URI scheme.

+

For instance, to open a webpage: https://www.example/

+

To send an email: mailto:contact@email.example

+

To share geographic coordinates: geo:48.867564,2.364057

+", + 'help_redundancy' => "Redundancy is the duplication of information in the QR code to correct errors during decoding. A higher rate will produce a bigger QR code, but will have a better chance of being decoded correctly.", + 'help_margin' => "Number of pixels in each white band around the QR code.", + 'help_size' => "Image width and height in pixels, without the margin.", - 'button_create' => "Generate", - 'button_download' => "Save this QR code", + 'button_create' => "Generate", + 'button_download' => "Save this QR code", - 'title_showOnlyQR' => "Show this QR code only", + 'title_showOnlyQR' => "Show this QR code only", - 'alt_QR_before' => 'QR code meaning "', - 'alt_QR_after' => '"', + 'alt_QR_before' => 'QR code meaning "', + 'alt_QR_after' => '"', - 'metaText_qr' => " -

What's a QR code?

- 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 " . LIBREQR_VERSION . " is a free software whose source code is available under the terms of the AGPLv3+.", + 'metaText_qr' => " +

What's a QR code?

+ 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 " . LIBREQR_VERSION . " is a free software whose source code is available under the terms of the AGPLv3+.", ); diff --git a/locales/fr.php b/locales/fr.php index e103728..32e62da 100644 --- a/locales/fr.php +++ b/locales/fr.php @@ -1,41 +1,41 @@ "Générer des codes QR", - 'description' => "Générer des codes QR librement. Choix du contenu, de la taille, des couleurs…", + 'subtitle' => "Générer des codes QR", + 'description' => "Générer des codes QR librement. Choix du contenu, de la taille, des couleurs…", - 'label_content' => "Texte à encoder", - 'label_redundancy' => "Taux de redondance", - 'label_margin' => "Taille de la marge", - 'label_size' => "Taille de l'image", - 'label_bgColor' => "Couleur de fond", - 'label_mainColor' => "Couleur de premier plan", + 'label_content' => "Texte à encoder", + 'label_redundancy' => "Taux de redondance", + 'label_margin' => "Taille de la marge", + 'label_size' => "Taille de l'image", + 'label_bgColor' => "Couleur de fond", + 'label_mainColor' => "Couleur de premier plan", - 'placeholder' => "Entrez le texte à encoder dans le code QR", - 'placeholder_pixels' => "automatique", + 'placeholder' => "Entrez le texte à encoder dans le code QR", + 'placeholder_pixels' => "automatique", - 'help_content' => " -

Vous pouvez encoder ce que vous voulez sous forme de texte.

-

Les logiciels qui décodent ces codes QR pourraient proposer de les ouvrir avec un logiciel dédié, en fonction de leur schéma d'URI.

-

Par exemple, pour ouvrir une page Web : https://www.example/

-

Pour envoyer un mail : mailto:contact@email.example

-

Pour partager des coordonnées géographique : geo:48.867564,2.364057

- ", - 'help_redundancy' => "La redondance est la duplication des informations dans le code QR afin de corriger les erreurs lors du décodage. Un taux plus élevé produira un code QR plus grand, mais aura plus de chance d'être décodé correctement.", - 'help_margin' => "Nombre de pixels de chaque bande blanche autour du code QR.", - 'help_size' => "Largeur et hauteur de l'image en pixels, sans la marge.", + 'help_content' => " +

Vous pouvez encoder ce que vous voulez sous forme de texte.

+

Les logiciels qui décodent ces codes QR pourraient proposer de les ouvrir avec un logiciel dédié, en fonction de leur schéma d'URI.

+

Par exemple, pour ouvrir une page Web : https://www.example/

+

Pour envoyer un mail : mailto:contact@email.example

+

Pour partager des coordonnées géographique : geo:48.867564,2.364057

+", + 'help_redundancy' => "La redondance est la duplication des informations dans le code QR afin de corriger les erreurs lors du décodage. Un taux plus élevé produira un code QR plus grand, mais aura plus de chance d'être décodé correctement.", + 'help_margin' => "Nombre de pixels de chaque bande blanche autour du code QR.", + 'help_size' => "Largeur et hauteur de l'image en pixels, sans la marge.", - 'button_create' => "Générer", - 'button_download' => "Enregistrer ce code QR", + 'button_create' => "Générer", + 'button_download' => "Enregistrer ce code QR", - 'title_showOnlyQR' => "Afficher uniquement ce code QR", + 'title_showOnlyQR' => "Afficher uniquement ce code QR", - 'alt_QR_before' => "Code QR signifiant « ", - 'alt_QR_after' => " »", + 'alt_QR_before' => "Code QR signifiant « ", + 'alt_QR_after' => " »", - 'metaText_qr' => " -

Qu'est-ce qu'un code QR ?

- 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 " . LIBREQR_VERSION . " est un logiciel libre dont le code source est disponible selon les termes de l'AGPLv3+.", + 'metaText_qr' => " +

Qu'est-ce qu'un code QR ?

+ 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 " . LIBREQR_VERSION . " est un logiciel libre dont le code source est disponible selon les termes de l'AGPLv3+.", ); diff --git a/locales/oc.php b/locales/oc.php index 86e420a..8d3cdc4 100644 --- a/locales/oc.php +++ b/locales/oc.php @@ -1,41 +1,41 @@ "Generator de còdis QR", - 'description' => "Generatz de còdis QR liurament. Causissètz lo contengut, la talha, las colors…", + 'subtitle' => "Generator de còdis QR", + 'description' => "Generatz de còdis QR liurament. Causissètz lo contengut, la talha, las colors…", - 'label_content' => "Tèxt de codar", - 'label_redundancy' => "Taus de redondància", - 'label_margin' => "Talha del marge", - 'label_size' => "Talha de l’imatge", - 'label_bgColor' => "Color de fons", - 'label_mainColor' => "Color del primièr plan", + 'label_content' => "Tèxt de codar", + 'label_redundancy' => "Taus de redondància", + 'label_margin' => "Talha del marge", + 'label_size' => "Talha de l’imatge", + 'label_bgColor' => "Color de fons", + 'label_mainColor' => "Color del primièr plan", - 'placeholder' => "Dintratz lo tèxt de codar en còdi QR", - 'placeholder_pixels' => "auto", + 'placeholder' => "Dintratz lo tèxt de codar en còdi QR", + 'placeholder_pixels' => "auto", - 'help_content' => " -

Podètz pas que codar lo tèxt que volètz.

-

Los logicials que deschifran los còdis QR poirián suggerir de los dubrir dins de logicials especials, segon lor esquèma URI.

-

Per exemple, per dubrir la pagina web : https://www.example/

-

Per enviar un corrièl : mailto:contact@email.example

-

Per partejar de coordonadas geograficas : geo:48.867564,2.364057

- ", - 'help_redundancy' => "La redondància es la duplicacion de las informacions al còdi QR per dire de corregir las errors pendent lo deschiframent. Un taux mai naut produirà un còdi mai grand, mas serà de melhor deschifrar corrèctament.", - 'help_margin' => "Nombre de pixèls de la banda blanca a l’entorn del còdi QR.", - 'help_size' => "Per quant deu la dimensions de l’imatge èsser multiplicada ?", + 'help_content' => " +

Podètz pas que codar lo tèxt que volètz.

+

Los logicials que deschifran los còdis QR poirián suggerir de los dubrir dins de logicials especials, segon lor esquèma URI.

+

Per exemple, per dubrir la pagina web : https://www.example/

+

Per enviar un corrièl : mailto:contact@email.example

+

Per partejar de coordonadas geograficas : geo:48.867564,2.364057

+", + 'help_redundancy' => "La redondància es la duplicacion de las informacions al còdi QR per dire de corregir las errors pendent lo deschiframent. Un taux mai naut produirà un còdi mai grand, mas serà de melhor deschifrar corrèctament.", + 'help_margin' => "Nombre de pixèls de la banda blanca a l’entorn del còdi QR.", + 'help_size' => "Per quant deu la dimensions de l’imatge èsser multiplicada ?", - 'button_create' => "Generar", - 'button_download' => "Telecargar aqueste còdi QR", + 'button_create' => "Generar", + 'button_download' => "Telecargar aqueste còdi QR", - 'title_showOnlyQR' => "Mostrar sonque aqueste còdi QR", + 'title_showOnlyQR' => "Mostrar sonque aqueste còdi QR", - 'alt_QR_before' => 'Significacion de còdi QR"', - 'alt_QR_after' => '"', + 'alt_QR_before' => 'Significacion de còdi QR"', + 'alt_QR_after' => '"', - 'metaText_qr' => " -

Qu’es aquò un còdi QR ?

- 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 " . LIBREQR_VERSION . " es un logicial liure que son còdi font es disponible jols tèrmes de la licéncia AGPLv3+.", + 'metaText_qr' => " +

Qu’es aquò un còdi QR ?

+ 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 " . LIBREQR_VERSION . " es un logicial liure que son còdi font es disponible jols tèrmes de la licéncia AGPLv3+.", ); diff --git a/locales/template.php b/locales/template.php index 1050f78..f3b5717 100644 --- a/locales/template.php +++ b/locales/template.php @@ -1,32 +1,32 @@ "subtitle", - 'description' => "description", + 'subtitle' => "subtitle", + 'description' => "description", - 'label_content' => "label_content", - 'label_redundancy' => "label_redundancy", - 'label_margin' => "label_margin", - 'label_size' => "label_size", - 'label_bgColor' => "label_bgColor", - 'label_mainColor' => "label_mainColor", + 'label_content' => "label_content", + 'label_redundancy' => "label_redundancy", + 'label_margin' => "label_margin", + 'label_size' => "label_size", + 'label_bgColor' => "label_bgColor", + 'label_mainColor' => "label_mainColor", - 'placeholder' => "placeholder", + 'placeholder' => "placeholder", - 'value_default' => "value_default", + 'value_default' => "value_default", - 'help_content' => "help_content", - 'help_redundancy' => "help_redundancy", - 'help_margin' => "help_margin", - 'help_size' => "help_size", + 'help_content' => "help_content", + 'help_redundancy' => "help_redundancy", + 'help_margin' => "help_margin", + 'help_size' => "help_size", - 'button_create' => "button_create", - 'button_download' => "button_download", + 'button_create' => "button_create", + 'button_download' => "button_download", - 'title_showOnlyQR' => "title_showOnlyQR", + 'title_showOnlyQR' => "title_showOnlyQR", - 'alt_QR_before' => "alt_QR_before", - 'alt_QR_after' => "alt_QR_after", + 'alt_QR_before' => "alt_QR_before", + 'alt_QR_after' => "alt_QR_after", - 'metaText_qr' => "metaText_qr", - 'metaText_legal' => "metaText_legal", + 'metaText_qr' => "metaText_qr", + 'metaText_legal' => "metaText_legal", ); diff --git a/style.less b/style.less index bdcee14..163b99a 100755 --- a/style.less +++ b/style.less @@ -5,456 +5,457 @@ @import "themes/@{theme}/logo.less"; :root { - @media @light { - color-scheme: light; - } - @media @dark { - color-scheme: dark; - } + @media @light { + color-scheme: light; + } + @media @dark { + color-scheme: dark; + } } * { - font-family: system-ui, sans-serif; + font-family: system-ui, sans-serif; - scrollbar-width: auto; + scrollbar-width: auto; - @media @light { - scrollbar-color: @text-light @bg-light; - } + @media @light { + scrollbar-color: @text-light @bg-light; + } - @media @dark { - scrollbar-color: @text-dark @bg-dark; - } + @media @dark { + scrollbar-color: @text-dark @bg-dark; + } } html { - height: 100%; + height: 100%; } body { - display: flex; - flex-direction: column; + display: flex; + flex-direction: column; - max-width: 812px; - height: 100%; + max-width: 812px; + height: 100%; - margin: 0px; - margin-left: auto; - margin-right: auto; + margin: 0px; + margin-left: auto; + margin-right: auto; - font-weight: normal; - font-size: 20px; + font-weight: normal; + font-size: 20px; - @media @light { - color: @text-light; - background-color: @bg-light; - } + @media @light { + color: @text-light; + background-color: @bg-light; + } - @media @dark { - color: @text-dark; - background-color: @bg-dark; - } + @media @dark { + color: @text-dark; + background-color: @bg-dark; + } } a { - text-decoration: underline; + text-decoration: underline; - @media @light { - color: @text-light; - } + @media @light { + color: @text-light; + } - @media @dark { - color: @text-dark; - } + @media @dark { + color: @text-dark; + } - &:hover { - text-decoration: none; - } + &:hover { + text-decoration: none; + } } code { - font-family: monospace; + font-family: monospace; } .helpText { - margin: 5px 0px 0px 0px; - padding: 5px; - border-radius: 10px; - border-width: 2px; - border-style: dashed; - text-align: left; + margin: 5px 0px 0px 0px; + padding: 5px; + border-radius: 10px; + border-width: 2px; + border-style: dashed; + text-align: left; - @media @light { - background-color: @bgHelp-light; - border-color: @borderHelp-light; - } + @media @light { + background-color: @bgHelp-light; + border-color: @borderHelp-light; + } - @media @dark { - background-color: @bgHelp-dark; - border-color: @borderHelp-dark; - } + @media @dark { + background-color: @bgHelp-dark; + border-color: @borderHelp-dark; + } - & p { - margin-top: 0px; - margin-bottom: 8px; - &:last-child { - margin-bottom: 0px; - } - } + & p { + margin-top: 0px; + margin-bottom: 8px; + &:last-child { + margin-bottom: 0px; + } + } } #sideParams { - width: 100%; - text-align: center; - display: flex; - flex-direction: row; - flex-wrap: wrap; - justify-content: center; - & .param { - max-width: 270px; - box-sizing: border-box; - } + width: 100%; + text-align: center; + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: center; + & .param { + max-width: 270px; + box-sizing: border-box; + } } summary { - margin-left: 20px; - cursor: help; + margin-left: 20px; + cursor: help; } #qrCode { - max-width: 94%; - width: auto; - height: auto; + max-width: 94%; + width: auto; + height: auto; - @width: 2px; - @lenght: 16px; - padding: @width; + @width: 2px; + @lenght: 16px; + padding: @width; - &.needLightContrast { - @media @light { - background: - linear-gradient(to right, @borderQr-light @width, transparent 0px) 0 0, - linear-gradient(to right, @borderQr-light @width, transparent 0px) 0 100%, - linear-gradient(to left, @borderQr-light @width, transparent 0px) 100% 0, - linear-gradient(to left, @borderQr-light @width, transparent 0px) 100% 100%, - linear-gradient(to bottom, @borderQr-light @width, transparent 0px) 0 0, - linear-gradient(to bottom, @borderQr-light @width, transparent 0px) 100% 0, - linear-gradient(to top, @borderQr-light @width, transparent 0px) 0 100%, - linear-gradient(to top, @borderQr-light @width, transparent 0px) 100% 100%; - background-repeat: no-repeat; - background-size: @lenght @lenght; - } - } + &.needLightContrast { + @media @light { + background: + linear-gradient(to right, @borderQr-light @width, transparent 0px) 0 0, + linear-gradient(to right, @borderQr-light @width, transparent 0px) 0 100%, + linear-gradient(to left, @borderQr-light @width, transparent 0px) 100% 0, + linear-gradient(to left, @borderQr-light @width, transparent 0px) 100% 100%, + linear-gradient(to bottom, @borderQr-light @width, transparent 0px) 0 0, + linear-gradient(to bottom, @borderQr-light @width, transparent 0px) 100% 0, + linear-gradient(to top, @borderQr-light @width, transparent 0px) 0 100%, + linear-gradient(to top, @borderQr-light @width, transparent 0px) 100% 100%; + background-repeat: no-repeat; + background-size: @lenght @lenght; + } + } - &.needDarkContrast { - @media @dark { - background: - linear-gradient(to right, @borderQr-dark @width, transparent 0px) 0 0, - linear-gradient(to right, @borderQr-dark @width, transparent 0px) 0 100%, - linear-gradient(to left, @borderQr-dark @width, transparent 0px) 100% 0, - linear-gradient(to left, @borderQr-dark @width, transparent 0px) 100% 100%, - linear-gradient(to bottom, @borderQr-dark @width, transparent 0px) 0 0, - linear-gradient(to bottom, @borderQr-dark @width, transparent 0px) 100% 0, - linear-gradient(to top, @borderQr-dark @width, transparent 0px) 0 100%, - linear-gradient(to top, @borderQr-dark @width, transparent 0px) 100% 100%; - background-repeat: no-repeat; - background-size: @lenght @lenght; - } - } + &.needDarkContrast { + @media @dark { + background: + linear-gradient(to right, @borderQr-dark @width, transparent 0px) 0 0, + linear-gradient(to right, @borderQr-dark @width, transparent 0px) 0 100%, + linear-gradient(to left, @borderQr-dark @width, transparent 0px) 100% 0, + linear-gradient(to left, @borderQr-dark @width, transparent 0px) 100% 100%, + linear-gradient(to bottom, @borderQr-dark @width, transparent 0px) 0 0, + linear-gradient(to bottom, @borderQr-dark @width, transparent 0px) 100% 0, + linear-gradient(to top, @borderQr-dark @width, transparent 0px) 0 100%, + linear-gradient(to top, @borderQr-dark @width, transparent 0px) 100% 100%; + background-repeat: no-repeat; + background-size: @lenght @lenght; + } + } } .centered { - text-align: center; + text-align: center; } .button { - padding: 3px 10px 3px 10px; - text-decoration: none; + padding: 3px 10px 3px 10px; + text-decoration: none; } header { - text-align: center; - padding-top: 12px; - height: 64px; + text-align: center; + padding-top: 12px; + height: 64px; } #linkTitles::before { - width: 64px; - height: 64px; - content: ""; + width: 64px; + height: 64px; + content: ""; - background-repeat: no-repeat; - @media @light { - background-image: var(--logo-light); - } + background-repeat: no-repeat; + @media @light { + background-image: var(--logo-light); + } - @media @dark { - background-image: var(--logo-dark); - } + @media @dark { + background-image: var(--logo-dark); + } } #titles { - margin-left: 2%; + margin-left: 2%; } h1, h2, h3, h4, h5, h6 { - margin: 0px; - font-weight: normal; + margin: 0px; + font-weight: normal; } h1 { - font-size: 29px; + font-size: 29px; } h2 { - font-size: 22px; + font-size: 22px; } #linkTitles { - text-align: left; - justify-content: center; - text-decoration: none; - display: flex; - flex-direction: row; + text-align: left; + justify-content: center; + text-decoration: none; + display: flex; + flex-direction: row; } #downloadQR { - margin-top: 20px; + margin-top: 20px; } #showOnlyQR { - margin-top: 30px; + margin-top: 30px; } .param { - padding: 4px; - margin-left: 0px; - margin-right: 0px; + padding: 4px; + margin-left: 0px; + margin-right: 0px; } ::selection { - @media @light { - color: @bg-light; - background-color: @text-light; - } + @media @light { + color: @bg-light; + background-color: @text-light; + } - @media @dark { - color: @bg-dark; - background-color: @text-dark; - } + @media @dark { + color: @bg-dark; + background-color: @text-dark; + } } label[for=txt] summary { - margin-left: 22px; + margin-left: 22px; } #colors { - display: flex; - flex-direction: row; - justify-content: space-around; - flex-wrap: wrap; - text-align: center; + display: flex; + flex-direction: row; + justify-content: space-around; + flex-wrap: wrap; + text-align: center; - & .param { - text-align: center; - display: flex; - justify-content: center; - flex-direction: column; - align-items: center; - } + & .param { + text-align: center; + display: flex; + justify-content: center; + flex-direction: column; + align-items: center; + } } .metaText { - padding: 6px; - @media @light { - color: @text-light; - } + padding: 6px; + @media @light { + color: @text-light; + } - @media @dark { - color: @text-dark; - } + @media @dark { + color: @text-dark; + } - & a, a:visited { - text-decoration: underline; - @media @light { - color: @text-light; - } + & a, a:visited { + text-decoration: underline; + @media @light { + color: @text-light; + } - @media @dark { - color: @text-dark; - } - } + @media @dark { + color: @text-dark; + } + } } footer { - font-size: 16px; - margin-top: auto; - padding-top: 10px; - text-align: left; + font-size: 16px; + margin-top: auto; + padding-top: 10px; + text-align: left; } small { - font-size: 14px; + font-size: 14px; } #info { - font-size: 16px; - margin: 0px; + font-size: 16px; + margin: 0px; - & h3 { - font-size: 20px; - font-weight: normal; - padding-bottom: 10px; - } + & h3 { + font-size: 20px; + font-weight: normal; + padding-bottom: 10px; + } } /* Inputs */ #redundancy, #margin, #txt, #size, input[type=color], input[type=submit], .button { - border-width: 2px; - border-style: solid; - border-radius: 10px; - font-size: 20px; - padding-left: 10px; - font-weight: normal; - transition: border-color 0.1s ease; - margin: 6px; + border-width: 2px; + border-style: solid; + border-radius: 10px; + font-size: 20px; + padding-left: 10px; + font-weight: normal; + transition: border-color 0.1s ease; + margin: 6px; - @media @light { - color: @text-light; - background-color: @bgField-light; - border-color: @border-light; - } + @media @light { + color: @text-light; + background-color: @bgField-light; + border-color: @border-light; + } - @media @dark { - color: @text-dark; - background-color: @bgField-dark; - border-color: @border-dark; - } + @media @dark { + color: @text-dark; + background-color: @bgField-dark; + border-color: @border-dark; + } - &:hover { - border-width: 3px; - margin: 5px; - border-style: solid; + &:hover { + border-width: 3px; + margin: 5px; + border-style: solid; - @media @light { - border-color: @borderHover-light; - } + @media @light { + border-color: @borderHover-light; + } - @media @dark { - border-color: @borderHover-dark; - } - } + @media @dark { + border-color: @borderHover-dark; + } + } - &:focus { - border-width: 4px; - margin: 4px; - border-style: solid; - outline: none; + &:focus { + border-width: 4px; + margin: 4px; + border-style: solid; + outline: none; - @media @light { - border-color: @borderFocus-light; - } + @media @light { + border-color: @borderFocus-light; + } - @media @dark { - border-color: @borderFocus-dark; - } - } + @media @dark { + border-color: @borderFocus-dark; + } + } } #redundancy { - width: 250px; - height: 44px; - &:hover { - width: 252px; - height: 46px; - } - &:focus { - width: 254px; - height: 48px; - } + width: 250px; + height: 44px; + &:hover { + width: 252px; + height: 46px; + } + &:focus { + width: 254px; + height: 48px; + } } input[type=color] { - height: 60px; - width: 84px; - padding: 5px; - &:hover { - height: 62px; - width: 86px; - } - &:focus { - height: 64px; - width: 88px; - } + height: 60px; + width: 84px; + padding: 5px; + &:hover { + height: 62px; + width: 86px; + } + &:focus { + height: 64px; + width: 88px; + } } #size, #margin { - width: 234px; - height: 38px; + width: 234px; + height: 38px; } #redundancy, #size, #margin { - @media @light { - background-color: @bgField-light; - } + @media @light { + background-color: @bgField-light; + } - @media @dark { - background-color: @bgField-dark; - } + @media @dark { + background-color: @bgField-dark; + } } #txtParam { - display: flex; - flex-direction: column; + display: flex; + flex-direction: column; } #txt { - padding: 10px; - width: auto; - scrollbar-width: auto; + padding: 10px; + width: auto; + scrollbar-width: auto; - @media @light { - background-color: @bgTextarea-light; - color: @textareaText-light; - scrollbar-color: @textareaText-light @bgTextarea-light; - } + @media @light { + background-color: @bgTextarea-light; + color: @textareaText-light; + scrollbar-color: @textareaText-light @bgTextarea-light; + } - @media @dark { - background-color: @bgTextarea-dark; - color: @textareaText-dark; - scrollbar-color: @textareaText-dark @bgTextarea-dark; - } + @media @dark { + background-color: @bgTextarea-dark; + color: @textareaText-dark; + scrollbar-color: @textareaText-dark @bgTextarea-dark; + } } input[type=submit] { - cursor: pointer; - font-size: 28px; - padding: 10px; - padding-left: 14px; - padding-right: 14px; + cursor: pointer; + font-size: 28px; + padding: 10px; + padding-left: 14px; + padding-right: 14px; } #txt::placeholder { - opacity: 1; - font-family: system-ui, sans-serif; - font-weight: normal; - font-size: 1em; - @media @light { - color: @textareaPlaceholder-light; - } + opacity: 1; + font-family: system-ui, sans-serif; + font-weight: normal; + font-size: 1em; + @media @light { + color: @textareaPlaceholder-light; + } - @media @dark { - color: @textareaPlaceholder-dark; - } + @media @dark { + color: @textareaPlaceholder-dark; + } } a[download]::before { - content: "💾 "; + content: "💾 "; - filter: drop-shadow(-1px 1px 1px white) - drop-shadow(1px -1px 1px white); + filter: + drop-shadow(-1px 1px 1px white) + drop-shadow(1px -1px 1px white); } diff --git a/themes/libreqr/libreqr.svg b/themes/libreqr/libreqr.svg index 3d39785..4c5853a 100644 --- a/themes/libreqr/libreqr.svg +++ b/themes/libreqr/libreqr.svg @@ -1,259 +1,259 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/themes/libreqr/logo.less b/themes/libreqr/logo.less index 8eb7297..09c35b8 100644 --- a/themes/libreqr/logo.less +++ b/themes/libreqr/logo.less @@ -1,7 +1,7 @@ :root { - // base64 -w 0 logo-light.png - --logo-light: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQMAAACQp+OdAAAABlBMVEX///8AAABVwtN+AAAAWElEQVQoz43O0RHAMAgCUDZg/y3ZgKJtP8PF/LzkiApcFG3IVgVICB0cqCPH368jMvCffsLuPWMLmOQ+FMBxNqvgXCZ8xixGsSNppWsF33hFaLjD27Xioh5ZH8ftcymlGAAAAABJRU5ErkJggg=="); - // base64 -w 0 logo-dark.png - --logo-dark: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQMAAACQp+OdAAAABlBMVEX///8AAABVwtN+AAAAXklEQVQoz43SsRHAIAxDUW3g/bfUBoqckDL/AgWvMFgcKGcIYCkjDSJ2JgwvhhFHZ9cn2vDt/oUNvkcS3MpNRuh0ew6iyyYjbDCPGa2+WxL8lCN6vZYy+nBxED/+xgWM9DYk64ncIgAAAABJRU5ErkJggg=="); + // base64 -w 0 logo-light.png + --logo-light: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQMAAACQp+OdAAAABlBMVEX///8AAABVwtN+AAAAWElEQVQoz43O0RHAMAgCUDZg/y3ZgKJtP8PF/LzkiApcFG3IVgVICB0cqCPH368jMvCffsLuPWMLmOQ+FMBxNqvgXCZ8xixGsSNppWsF33hFaLjD27Xioh5ZH8ftcymlGAAAAABJRU5ErkJggg=="); + // base64 -w 0 logo-dark.png + --logo-dark: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQMAAACQp+OdAAAABlBMVEX///8AAABVwtN+AAAAXklEQVQoz43SsRHAIAxDUW3g/bfUBoqckDL/AgWvMFgcKGcIYCkjDSJ2JgwvhhFHZ9cn2vDt/oUNvkcS3MpNRuh0ew6iyyYjbDCPGa2+WxL8lCN6vZYy+nBxED/+xgWM9DYk64ncIgAAAABJRU5ErkJggg=="); } diff --git a/themes/libreqr/theme.php b/themes/libreqr/theme.php index 7dcae02..baa4a61 100755 --- a/themes/libreqr/theme.php +++ b/themes/libreqr/theme.php @@ -4,33 +4,33 @@ $themeDimensionsIcons = array(16, 32, 48, 64, 96, 128, 192, 256, 384, 512); $colorScheme = array( - // Light theme - "text-light" => "black", - "bg-light" => "#ffffff", // Must be a long hexadecimal color - "bgField-light" => "white", - "bgHelp-light" => "white", - "bgTextarea-light" => "white", - "textareaText-light" => "black", - "textareaPlaceholder-light" => "#868686", - "border-light" => "black", - "borderHover-light" => "black", - "borderFocus-light" => "black", - "borderHelp-light" => "black", - "borderQr-light" => "black", - // Dark theme - "text-dark" => "white", - "bg-dark" => "#000000", // Must be a long hexadecimal color - "bgField-dark" => "#000000", - "bgHelp-dark" => "#000000", - "bgTextarea-dark" => "#000000", - "textareaText-dark" => "white", - "textareaPlaceholder-dark" => "#bababa", - "border-dark" => "white", - "borderWidth-dark" => "2px", - "borderHover-dark" => "white", - "borderHoverWidth-dark" => "3px", - "borderFocus-dark" => "white", - "borderFocusWidth-dark" => "4px", - "borderHelp-dark" => "white", - "borderQr-dark" => "white", + // Light theme + "text-light" => "black", + "bg-light" => "#ffffff", // Must be a long hexadecimal color + "bgField-light" => "white", + "bgHelp-light" => "white", + "bgTextarea-light" => "white", + "textareaText-light" => "black", + "textareaPlaceholder-light" => "#868686", + "border-light" => "black", + "borderHover-light" => "black", + "borderFocus-light" => "black", + "borderHelp-light" => "black", + "borderQr-light" => "black", + // Dark theme + "text-dark" => "white", + "bg-dark" => "#000000", // Must be a long hexadecimal color + "bgField-dark" => "#000000", + "bgHelp-dark" => "#000000", + "bgTextarea-dark" => "#000000", + "textareaText-dark" => "white", + "textareaPlaceholder-dark" => "#bababa", + "border-dark" => "white", + "borderWidth-dark" => "2px", + "borderHover-dark" => "white", + "borderHoverWidth-dark" => "3px", + "borderFocus-dark" => "white", + "borderFocusWidth-dark" => "4px", + "borderHelp-dark" => "white", + "borderQr-dark" => "white", ); diff --git a/themes/parinux/icons/128.png b/themes/parinux/icons/128.png deleted file mode 100755 index c87cc18d211990988d6fb64584ac87dc4b4dcd36..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 207 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?O3?zSk_}l@cSkfJR9T^xl_H+M9WCijWi-X*q z7}lMWc?smO1^9%x{{R19B)wbCx?Tz>lJ4o^7~*mK?A3$32NZam1K;o8vO3AhN&Lst zh6i)ksOWx5?_}D$nqNkx_dFxBXh-YR%uvqO-N_O?op+^~y_Ogn@mR=8)ix_kmy_fO zsh<+k(d@FiMIq*)!;Mt0)fOIVyX{k0{(XFBFR5=EpwgatX@O1TaS?83{1OPWL BNbUdt diff --git a/themes/parinux/icons/16.png b/themes/parinux/icons/16.png deleted file mode 100755 index e2481c6e4b832aa9a74fa59ba8c01e9aa2d77e7e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 163 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!D3?x-;bCrM;OS+@4BLl<6e(pbstUx|vage(c z!@6@aFM%Ak0G|-o|NsAsq<70%*GmCKtUX;ELpZK88Zeyy&+z|0L$f2puDcAYt}^VF zWoUF{_`jB6!ghvpr3}xHGc?X-*jdc5LXu&ZAw%<9pyDqRM0OrmYzLacz~JfX=d#Wz Gp$Py1WHEmL diff --git a/themes/parinux/icons/192.png b/themes/parinux/icons/192.png deleted file mode 100755 index f10d2d7c76ae628ca642a7543b662bf5f439d1b7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 249 zcmeAS@N?(olHy`uVBq!ia0vp^2SAvS8AxUb{c{0QEa{HEjtmSN`?>!lvI6;x#X;^) z4C~IxyaaOC0(?ST|Ns9llHM(6T`vU`nds@_7!q;#?TwSX2Mjn^9IO`n*L&F@Be3CU zlow<6Q^D##QH{kN@@)cYGmccKy|N5sYEw5pJ-b@7TtMN9sJEAebIS|4rDm5@O-h^( zty2|QldNlfh-LDrJnPdO!uRI&u`VfS-=1Q diff --git a/themes/parinux/icons/256.png b/themes/parinux/icons/256.png deleted file mode 100755 index f8d9000393c5845d7894f8ccc9098b220f21d2d8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 246 zcmeAS@N?(olHy`uVBq!ia0y~yU<5K585o&?RN5XZRUpNZ?&#~tz_78O`%fY(NVYi0 z-HBn{IhmJ04qJdvi0l9V|3%Wf<*e(afFgaKE{-7?_uk%&=4vqDVZHdK{xa7k_eqQN z64VwrjkY{jH-!|>)}7YEi<=AX9;Sr`gr z3|}h<9yq|`)#oFn%_K2n$@-v0EE*H+W!iZdd9E-YJN8)jK%>koJ1-U&f%OLk1swOD rIybwkfxXD*)zhgB?0?Q{N0c(xKH&ZLIO$Lb&}9ssu6{1-oD!M671>X7{YPg_S`|v0|q?I2O8KvXtnY@xXSxa zYKzx_c;{Im0k(WBRT*z4e|-3h!!c~)nOQ6ol=RBWZ(4UBX_$D`%=5OZ(btiIVPik{pF~z5pRqW| z-HBn{IhmJ04qJdvi0l9V|3%Wf<*e(afFgT6T^vIyZoR!_$kpn=!+K!v|D}I>7pO%B z{O~l5?vOhEX=3lX$B(0cD*qqF47#ixE-}>yy*#^}5>!9tPqG?C@co-NK$lp2p&PYw3fx*G}1b^;v zpdT3iE|BqP4UbU=GL;pM-&}W}iGe|a`KkDBnJl1Cvcj2ppDqI#lNHp%e`c!zE#>*K d1<0RukpIEz`}tiDe{=$Q44$rjF6*2UngF2fVnhG{ diff --git a/themes/parinux/icons/48.png b/themes/parinux/icons/48.png deleted file mode 100755 index a69de2ce7ed2e10514a1d46993500c02554fc8b6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 217 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDH3?y^UWFG-iEa{HEjtmSN`?>!lvI6;x#X;^) z4C~IxyaaOC0(?ST|Ns9llHM(6T`vU`DfD!443W5;dtoDQgMtXl1!J)(dI^uDO4cml z&WLe1p2RC8cHmso2iM#uAI#V9{%v`pSfkLuR^;L2zV1{r+2vg+8w~hf@&2B4`cEFG z`5}3yBkyGRyiaIt6jXBGeN(`0rD90Vfi*Lh+&=Jx^U1$85At_$ADgn)>-VNUC!pmF Mp00i_>zopr0D}uq00000 diff --git a/themes/parinux/icons/512.png b/themes/parinux/icons/512.png deleted file mode 100755 index 1c276343c5c3857fb1e3853c7f8120ffd2cd895d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 354 zcmeAS@N?(olHy`uVBq!ia0y~yU;;9k7#Nv>)VXbLJAo8Sx}&cn1H;CC?mvmFKt5w} zkh>GZx^prwfgH8~pAgso|No1mcgtDVO94fGdAc};RNQ)d+mY|E0uPJBzyB}41ch>L zbj@jRv7|ftIx;Y9?C1WI$O_~$76-XI zF|0c$^AgBm3-AeX{r~^JNP4%Nb-ff&B+k>tF+}5h@1>1`2NZam19Knz-F}6wYt96t z|4gjw4I*ST(m4_|m3fuQ)OhsU1l`lGtKa(Y_FpUSK6jxzr+nRBlvMLAI<2OhW6&?T sc3-s6pDD^!d#4%wDkv1N|96bF=Zl%j>&`n$K${pmUHx3vIVCg!0H`HH@c;k- diff --git a/themes/parinux/icons/96.png b/themes/parinux/icons/96.png deleted file mode 100755 index 4e35de1a48ae518837232e680b0575be76d79fc6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 231 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeK3?y%aJ*@^(Ea{HEjtmSN`?>!lvI6;x#X;^) z4C~IxyaaOC0(?ST|Ns9llHM(6T`vU`srPho46!)9cFILg21OocX1)g=+pFA*7#27BBSvW7qg0E!Xjc>;d1n#g(ncn_qx9#mQPJs%xbz7$G z4`NTV^IX4m%L~B^n|WhmwwqM)@3_OrHm~I51Q|_-%k$4Ozfb?-8@b@W7{}V3driL= z{$g0Na`hA5f&z{n5sm7*kMG95-TSwC+0Fa>K~Y7s%966?0HcL1$=lt9;Xep2*t>i( z1B1A+r;B4q#jQ8D0ynNP5OKM9dbNjwRA<8u1*S)aN)>wNj(>^bTgGXywflA5z4!b; zBYtH5_W@E2Odvu5L=a>)fK_pTNP&up8cG zDm>xM8_B=Fe@E~!GW_`e_&v>l;R_;+8BYR}H^cY(C7YK!Gt8@ZkQhzd7-2<1BtlX=_Ot*@+bP!7 zQjB;0Py7|Z*ZBJVzwf^p7ySSyR_r>ki<00R46k4}5iBaeFwAQ0fH%A5e>Y}knD7Kr zpsd^fy8rY0KkT1I%MF zv{1naFcNYx-a;kz`{%l}6Q$owoHp1^6a4V!@MnIT|961F{#yRfXuA+SVPixCdQQMl zfHj^PlCJ;VGhfmJ7VHe~?LYi$m)OSu0$6om7sap*k8{wyg55+|S`h|1qydPDZ`**> z64!9T-sr+EN}P!bAj=`PV>d=*_q*qRC$U>pTd^`U0$VH}{vH3@|NH(=^)7voP6rS{ zgSHc%=)ka&@c>A*0uT>yI5vQtfIS?si(-$Yqq8_SecjmOux9ge!GeE#{~!3ve`K^R zj*-ep$(LZY4&eAfPg)CZl-j?aZgb$K@h^ri8~?@BU%&sA{lIVj_w{%F?>|3UlA{MR z_E5wpinUw@_3%|*CrdIux4&}pvf_ci{mfaBq_B kXY~1`@I)4H{hA=g^uFJsM8xAWFyI+HUHx3vIVCg!0FOp8!vFvP diff --git a/themes/parinux/theme.php b/themes/parinux/theme.php deleted file mode 100755 index 43e7ff6..0000000 --- a/themes/parinux/theme.php +++ /dev/null @@ -1,27 +0,0 @@ - "#14678b", - "bgField-light" => "#2186b1", - "bgTextField-light" => "#2186b1", - "bgHelp-light" => "#118abe", - "border-light" => "#42a0c8", - "borderHover-light" => "#87d1f1", - "borderFocus-light" => "#e2f6ff", - "text-light" => "#ffffff", - "secondaryText-light" => "#bbe1f1", - // Dark theme - "bg-dark" => "#14678b", - "bgField-dark" => "#2186b1", - "bgTextField-dark" => "#2186b1", - "bgHelp-dark" => "#118abe", - "border-dark" => "#42a0c8", - "borderHover-dark" => "#87d1f1", - "borderFocus-dark" => "#e2f6ff", - "text-dark" => "#ffffff", - "secondaryText-dark" => "#bbe1f1" -); diff --git a/themes/resize.php b/themes/resize.php index 5ec79d2..286b086 100755 --- a/themes/resize.php +++ b/themes/resize.php @@ -1,36 +1,36 @@ \n"; - } + } else { + echo "Usage: php themes/resize.php \n"; + } } else { - echo "Available only via CLI for security reasons. Use 'php themes/resize.php '"; + echo "Available only via CLI for security reasons. Use 'php themes/resize.php '"; } diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 7c55a55..38c6135 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -5,7 +5,7 @@ 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => '6832804dc0ad475cfe3976075eec51ae81fb6723', + 'reference' => '147a25c93f60c0ff38343291c7a7819bdce7cfc4', 'name' => '__root__', 'dev' => true, ), @@ -16,7 +16,7 @@ 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => '6832804dc0ad475cfe3976075eec51ae81fb6723', + 'reference' => '147a25c93f60c0ff38343291c7a7819bdce7cfc4', 'dev_requirement' => false, ), 'bacon/bacon-qr-code' => array(