g1barre
|
@ -0,0 +1,661 @@
|
||||||
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 19 November 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://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) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
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) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
Barre de financement intégrable
|
||||||
|
Copyright (C) 2019 Pierre-Jean CHANCELLIER
|
||||||
|
|
||||||
|
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 <http://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
|
||||||
|
<http://www.gnu.org/licenses/>.
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Barre de financement intégrable
|
||||||
|
|
||||||
|
Générateur de barre de financement intégrable dans une page web pour suivre l'évolution d'un financement participatif.
|
||||||
|
|
||||||
|
![Capture](img/capture.jpg)
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
* Déposez l'ensemble des fichiers dans un dossier sur votre serveur
|
||||||
|
* Paramétrez votre serveur web (Apache ou Nginx) pour rendre le dossier accessible depuis le web
|
||||||
|
* Le dossier img/qrcodes doit être accessible en écriture pour le compte utilisé par votre serveur web (en général www-data)
|
||||||
|
* Le générateur sera alors accessible via http(s)://votredomaine.com/votre_chemin/generate.php
|
|
@ -0,0 +1,185 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="fr">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<link rel="stylesheet" href="styles/w3.css">
|
||||||
|
<link rel="stylesheet" href="styles/font_awesome.min.css">
|
||||||
|
<link rel="stylesheet" href="styles/gh-fork-ribbon.min.css" />
|
||||||
|
<link rel="stylesheet" href="styles/generator.css">
|
||||||
|
<title>Génération de votre barre de financement</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<a class="github-fork-ribbon" href="https://git.duniter.org/paidge/barre-de-financement-int-grable" data-ribbon="Fork me on Gitlab" title="Fork me on Duniter's Gitlab">Fork me on Duniter's Gitlab</a>
|
||||||
|
<header>
|
||||||
|
<div class="w3-panel w3-padding-16 w3-display-middle w3-center w3-theme-d2">
|
||||||
|
<h1 class="w3-jumbo">Générez votre barre de financement</h1>
|
||||||
|
<h2>En monnaie libre Ğ1</h2>
|
||||||
|
<p><a href="#content" id="smooth-scroll" class="w3-btn w3-theme-l5 w3-padding-large w3-large w3-margin-top w3-hover-theme">Commencer</a></p>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
<section id="content" class="w3-padding-32 w3-container w3-theme-l1">
|
||||||
|
<div class="w3-content">
|
||||||
|
<form class="w3-container">
|
||||||
|
<fieldset class="w3-theme-l5">
|
||||||
|
<legend class="w3-theme-d5 w3-padding-small w3-xlarge">Paramètres obligatoires</legend>
|
||||||
|
<p class="field">
|
||||||
|
<label for="type">Type d'intégration :</label>
|
||||||
|
<select id="type" name="type" class="w3-select w3-border" required>
|
||||||
|
<option value="iframe" selected>Iframe</option>
|
||||||
|
<option value="png">Image PNG</option>
|
||||||
|
<option value="svg">Image SVG</option>
|
||||||
|
</select>
|
||||||
|
</p>
|
||||||
|
<p class="field">
|
||||||
|
<label for="pubkey">Pubkey :</label>
|
||||||
|
<input id="pubkey" name="pubkey" type="text" class="w3-input w3-border w3-animate-input" required placeholder="27b1j7BPssdjbXmGNMYU2JJrRotqrZMruu5p5AWowUEy" pattern="^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{43,44}$" />
|
||||||
|
</p>
|
||||||
|
<p class="field">
|
||||||
|
<label for="target">Montant cible à atteindre :</label>
|
||||||
|
<input id="target" name="target" type="number" class="w3-input w3-border" required placeholder="1000" min="0" />
|
||||||
|
</p>
|
||||||
|
</fieldset>
|
||||||
|
<fieldset class="w3-theme-l5">
|
||||||
|
<legend class="w3-theme-d5 w3-padding-small w3-xlarge">Paramètres facultatifs</legend>
|
||||||
|
<p class="field">
|
||||||
|
<label for="title">Titre :</label>
|
||||||
|
<input id="title" name="title" type="text" class="w3-input w3-border w3-animate-input" placeholder="Financement participatif en monnaie libre" />
|
||||||
|
</p>
|
||||||
|
<p class="field">
|
||||||
|
<label for="unit">Unité :</label>
|
||||||
|
<select id="unit" name="unit" class="w3-select w3-border">
|
||||||
|
<option value="quantitative" selected>quantitatif (Junes)</option>
|
||||||
|
<option value="relative">relatif (DU)</option>
|
||||||
|
</select>
|
||||||
|
</p>
|
||||||
|
<p class="field">
|
||||||
|
<label for="lang">Langue :</label>
|
||||||
|
<select id="lang" name="lang" class="w3-select w3-border">
|
||||||
|
<option value="fr" selected>français</option>
|
||||||
|
<option value="en">anglais</option>
|
||||||
|
<option value="eo">esperanto</option>
|
||||||
|
</select>
|
||||||
|
</p>
|
||||||
|
<p class="field">
|
||||||
|
<label for="node">Nœud duniter :</label>
|
||||||
|
<input id="node" name="node" type="text" class="w3-input w3-border w3-animate-input" placeholder="g1.duniter.org" pattern="^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,6}$" />
|
||||||
|
</p>
|
||||||
|
<fieldset class="w3-theme-l5">
|
||||||
|
<legend class="w3-theme-d5 w3-padding-small w3-xlarge">Période de financement</legend>
|
||||||
|
<p class="field">
|
||||||
|
<label for="period">Période de financement :</label>
|
||||||
|
<select id="period" name="period" class="w3-select w3-border">
|
||||||
|
<option value="current-monh" selected>Mois courant</option>
|
||||||
|
<option value="one-date">A partir d'une date</option>
|
||||||
|
<option value="two-dates">Entre deux dates</option>
|
||||||
|
</select>
|
||||||
|
</p>
|
||||||
|
<p id="p-start_date" class="field w3-hide">
|
||||||
|
<label for="start_date">Date de début :</label>
|
||||||
|
<input id="start_date" name="start_date" type="date" class="w3-input w3-border" />
|
||||||
|
</p>
|
||||||
|
<p id="p-end_date" class="field w3-hide">
|
||||||
|
<label for="end_date">Date de fin :</label>
|
||||||
|
<input id="end_date" name="end_date" type="date" class="w3-input w3-border" />
|
||||||
|
</p>
|
||||||
|
</fieldset>
|
||||||
|
<fieldset class="w3-theme-l5">
|
||||||
|
<legend class="w3-theme-d5 w3-padding-small w3-xlarge">Options d'affichage</legend>
|
||||||
|
<p class="field">
|
||||||
|
<label for="display_pubkey">Affichage de la pubkey :</label>
|
||||||
|
<input id="display_pubkey" name="display_pubkey" type="checkbox" class="w3-check" />
|
||||||
|
</p>
|
||||||
|
<p class="field">
|
||||||
|
<label for="display_qrcode">Affichage du QRcode :</label>
|
||||||
|
<input id="display_qrcode" name="display_qrcode" type="checkbox" class="w3-check" />
|
||||||
|
</p>
|
||||||
|
<p id="p-display_button" class="field">
|
||||||
|
<label for="display_button">Affichage du bouton API Cesium :</label>
|
||||||
|
<input id="display_button" name="display_button" type="checkbox" class="w3-check" />
|
||||||
|
</p>
|
||||||
|
<p id="p-display_graph" class="field">
|
||||||
|
<label for="display_graph">Affichage du graphique :</label>
|
||||||
|
<input id="display_graph" name="display_graph" type="checkbox" class="w3-check" />
|
||||||
|
</p>
|
||||||
|
<p id="p-logo" class="field w3-hide">
|
||||||
|
<label for="logo">Logo :</label>
|
||||||
|
<select id="logo" name="logo" class="w3-select w3-border">
|
||||||
|
<option value="no-logo" selected>Aucun</option>
|
||||||
|
<option value="cesium">Cesium</option>
|
||||||
|
<option value="duniter">Duniter</option>
|
||||||
|
<option value="dunitrust">Dunitrust</option>
|
||||||
|
<option value="junes">Junes</option>
|
||||||
|
<option value="sakia">Sakia</option>
|
||||||
|
<option value="silkaj">Silkaj</option>
|
||||||
|
</select>
|
||||||
|
</p>
|
||||||
|
</fieldset>
|
||||||
|
<fieldset class="w3-theme-l5">
|
||||||
|
<legend class="w3-theme-d5 w3-padding-small w3-xlarge">Personnalisation des couleurs</legend>
|
||||||
|
<p class="field">
|
||||||
|
<label for="background_color">Couleur de fond :</label>
|
||||||
|
<input id="background_color" name="background_color" type="color" value="#ffffff" />
|
||||||
|
</p>
|
||||||
|
<p class="field">
|
||||||
|
<label for="font_color">Couleur de la police :</label>
|
||||||
|
<input id="font_color" name="font_color" type="color" value="#212529" />
|
||||||
|
</p>
|
||||||
|
<p class="field">
|
||||||
|
<label for="progress_color">Couleur de la barre de progression :</label>
|
||||||
|
<input id="progress_color" name="progress_color" type="color" value="#ffc107" />
|
||||||
|
</p>
|
||||||
|
<p class="field">
|
||||||
|
<label for="border_color">Couleur des bordures :</label>
|
||||||
|
<input id="border_color" name="border_color" type="color" value="#343a40" />
|
||||||
|
</p>
|
||||||
|
</fieldset>
|
||||||
|
</fieldset>
|
||||||
|
<div class="w3-center">
|
||||||
|
<button id="submit" class="w3-btn w3-theme-l5 w3-padding-large w3-large w3-margin-top w3-hover-theme">Générer</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section id="display_result" class="w3-padding-32 w3-container w3-theme-d1">
|
||||||
|
<div class="w3-content">
|
||||||
|
<h2>Résultat :</h2>
|
||||||
|
<p>Copier-coller le code suivant pour l'intégrer sur votre site web/blog/forum :</p>
|
||||||
|
<textarea id="result" onclick="select();" onfocus="select();" readonly></textarea>
|
||||||
|
<div id="buttons" class="w3-bar w3-center w3-hide">
|
||||||
|
<div class="tooltip"><button id="copy" class="w3-btn w3-theme-l5 w3-padding-large w3-large w3-margin-top w3-hover-theme" onclick="copyToClipboard('#result')">Copier</button>
|
||||||
|
<span class="tooltiptext">Copié !</span></div>
|
||||||
|
<button id="reset" class="w3-btn w3-theme-l5 w3-padding-large w3-large w3-margin-top w3-hover-theme">Réinitialiser</button>
|
||||||
|
</div>
|
||||||
|
<h2 id="preview_label" class="w3-hide">Prévisualisation :</h2>
|
||||||
|
<div id="preview" class="w3-margin-top w3-center">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<div id="back-to-top" class="w3-hover-theme">
|
||||||
|
<i class="fa fa-angle-double-up" aria-hidden="true"></i>
|
||||||
|
</div>
|
||||||
|
<footer class="w3-container w3-padding-16 w3-center w3-theme-d5">
|
||||||
|
<p>Code source disponible sur <a href="https://git.duniter.org" target="_blank">le Gitlab Duniter</a></p>
|
||||||
|
<p>Développé par <a href="https://g1.duniter.fr/#/app/wot/27b1j7BPssdjbXmGNMYU2JJrRotqrZMruu5p5AWowUEy/" target="_blank">Paidge</a></p>
|
||||||
|
<div class="w3-xlarge">
|
||||||
|
<a href="https://www.facebook.com/pjchancellier" target="_blank"><i class="fab fa-facebook-f w3-margin-right"></i></a>
|
||||||
|
<a href="https://diaspora.normandie-libre.fr/people/97f6cd801bcf01365ebe002564b8841f" target="_blank"><i class="fab fa-diaspora w3-margin-right"></i></a>
|
||||||
|
<a href="https://www.youtube.com/watch?v=SjoYIz_3JLI&list=PLmKEBjWrttOu93a92v62EWnjcs_fX6I7C" target="_blank"><i class="fab fa-youtube w3-margin-right"></i></a>
|
||||||
|
<a href="https://normandie-libre.fr" target="_blank"><i class="fas fa-globe"></i></a>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
<script>
|
||||||
|
</script>
|
||||||
|
<script src="lib/js/jquery-3.4.1.min.js"></script>
|
||||||
|
<script src="lib/js/generate.js"></script>
|
||||||
|
<script>
|
||||||
|
function copyToClipboard(element) {
|
||||||
|
$(element).select();
|
||||||
|
document.execCommand("copy");
|
||||||
|
$('.tooltip').addClass('tooltip_display');
|
||||||
|
setTimeout(function(){$('.tooltip').removeClass('tooltip_display');}, 600)
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,325 @@
|
||||||
|
<?php
|
||||||
|
if(isset($_GET['lang'])) {
|
||||||
|
if(empty($_GET['lang'])) $langdetect = true;
|
||||||
|
else $lang = $_GET['lang'];
|
||||||
|
}
|
||||||
|
require('lib/locales.php');
|
||||||
|
include('lib/phpqrcode/qrlib.php');
|
||||||
|
$api_node = 'g1.duniter.fr';
|
||||||
|
$format_pubkey = '#^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{43,44}$#';
|
||||||
|
$units = ['quantitative','relative'];
|
||||||
|
date_default_timezone_set('Europe/Paris');
|
||||||
|
$today = new DateTime();
|
||||||
|
$format = 'Y-m-d';
|
||||||
|
function isDate(&$date, $format){
|
||||||
|
$champsDate = date_parse_from_format($format, $date);
|
||||||
|
$date = DateTime::createFromFormat($format, $date);
|
||||||
|
return checkdate($champsDate['month'], $champsDate['day'], $champsDate['year']);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Vérification du node et des couleurs
|
||||||
|
$node = (!empty($_GET['node'])) ? $_GET['node'] : 'g1.duniter.org';
|
||||||
|
$font_color = (!empty($_GET['font_color'])) ? '#' . $_GET['font_color'] : '#212529';
|
||||||
|
$background_color = (!empty($_GET['background_color'])) ? '#' . $_GET['background_color'] : '#FFF';
|
||||||
|
$border_color = (!empty($_GET['border_color'])) ? '#' . $_GET['border_color'] : '#343a40';
|
||||||
|
$progress_color = (!empty($_GET['progress_color'])) ? '#' . $_GET['progress_color'] : '#ffc107';
|
||||||
|
|
||||||
|
// Vérification des dates et calcul du nombre de jours entre la date du jour et la date de fin
|
||||||
|
if (!empty($_GET['start_date'])){
|
||||||
|
$start_date = $_GET['start_date'];
|
||||||
|
$classcol = 'col-4';
|
||||||
|
if (!isDate($start_date, $format)){
|
||||||
|
echo '<div>'.tr('error_date_start_invalid').'</div>';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
if (!empty($_GET['end_date'])){
|
||||||
|
if ($_GET['end_date'] !=0){
|
||||||
|
$end_date = $_GET['end_date'];
|
||||||
|
if (!isDate($end_date, $format)){
|
||||||
|
echo '<div>'.tr('error_date_end_invalid').'</div>';
|
||||||
|
exit;
|
||||||
|
}elseif ($end_date < $start_date) {
|
||||||
|
echo '<div>'.tr('error_date_end_invalid').'</div>';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
// Si pas de start_date, on prend le mois courant
|
||||||
|
$start_date = new DateTime('first day of this month');
|
||||||
|
$end_date = new DateTime('last day of this month');
|
||||||
|
}
|
||||||
|
$start_date->setTime(0,0,0);
|
||||||
|
if (isset($end_date)){
|
||||||
|
$classcol = 'col-3';
|
||||||
|
if ($end_date < $today){
|
||||||
|
$days_left = 0;
|
||||||
|
}else{
|
||||||
|
$dteDiff = $end_date->diff($today);
|
||||||
|
$days_left = $dteDiff->format('%a');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Vérification du format de la pubkey
|
||||||
|
if (!empty($_GET['pubkey'])){
|
||||||
|
if (preg_match($format_pubkey, $_GET['pubkey'])){
|
||||||
|
$pubkey = $_GET['pubkey'];
|
||||||
|
$contribution_url = 'https://' . $api_node . '/api/#/v1/payment/' . $pubkey . '?amount=10|20|50|100|1000&comment=don&redirect_url=https%3A%252F%252F' . $api_node . '&cancel_url=https%3A%252F%252F' . $api_node;
|
||||||
|
$display_pubkey = (!empty($_GET['display_pubkey']));
|
||||||
|
$display_button = (!empty($_GET['display_button']));
|
||||||
|
$display_graph = (!empty($_GET['display_graph']));
|
||||||
|
// Génération du QRcode
|
||||||
|
$display_qrcode = (!empty($_GET['display_qrcode']));
|
||||||
|
$qrcode_path = 'img/qrcodes/' . $pubkey . '.png';
|
||||||
|
if (($display_qrcode) && (!file_exists($qrcode_path))) {
|
||||||
|
QRcode::png($pubkey, $qrcode_path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo '<div>'.tr('error_pubkey_invalid').'</div>';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
echo '<div>'.tr('error_pubkey_missing').'</div>';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Vérification du format de la valeur cible à atteindre
|
||||||
|
if (!empty($_GET['target'])){
|
||||||
|
$target = (int)$_GET['target'];
|
||||||
|
if (!is_int($target)){
|
||||||
|
echo '<div>'.tr('error_target_not_int').'</div>';
|
||||||
|
exit;
|
||||||
|
}elseif ($target<=0){
|
||||||
|
echo '<div>'.tr('error_target_negative').'</div>';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
echo '<div>'.tr('error_target_missing').'</div>';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Récupération des transactions entrantes entre la date de début et la date du jour
|
||||||
|
$start_timestamp = $start_date->getTimestamp();
|
||||||
|
$today_timestamp = $today->getTimestamp();
|
||||||
|
$url_json = 'https://' . $node . '/tx/history/' . $pubkey . '/times/' . $start_timestamp . '/' . $today_timestamp;
|
||||||
|
$json = @file_get_contents($url_json);
|
||||||
|
if ($json === false){
|
||||||
|
echo '<div>'.tr('error_connect_node').'</div>';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
$json = json_decode($json);
|
||||||
|
$transactions = $json->history->received;
|
||||||
|
$total = 0;
|
||||||
|
$donneurs = [];
|
||||||
|
$tmp_timestamp = $start_timestamp;
|
||||||
|
$array_final = [];
|
||||||
|
$map_delta = [];
|
||||||
|
foreach ($transactions as $transaction){
|
||||||
|
$donneur = $transaction->issuers[0];
|
||||||
|
if ($donneur != $pubkey){
|
||||||
|
if(!in_array($donneur, $donneurs)){
|
||||||
|
array_push($donneurs, $donneur);
|
||||||
|
}
|
||||||
|
$outputs = $transaction->outputs;
|
||||||
|
foreach ($outputs as $output){
|
||||||
|
if (strstr($output,$pubkey)){
|
||||||
|
$timestamp = $transaction->time;
|
||||||
|
$output = explode(':', $output);
|
||||||
|
$montant_transaction = $output[0]/100;
|
||||||
|
if ($timestamp != $tmp_timestamp){
|
||||||
|
array_push($array_final, ['t'=>$tmp_timestamp*1000, 'y'=>(string) $total]);
|
||||||
|
}
|
||||||
|
$tday = 43200 + $timestamp - $timestamp%86400;
|
||||||
|
if(isset($map_delta[$tday]))
|
||||||
|
$map_delta[$tday] += intval($montant_transaction);
|
||||||
|
else
|
||||||
|
$map_delta[$tday] = intval($montant_transaction);
|
||||||
|
$total += $montant_transaction;
|
||||||
|
$tmp_timestamp = $timestamp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$donors = count($donneurs);
|
||||||
|
if ($display_graph){
|
||||||
|
// On complète le tableau avec la derniere transaction et pour la date de visualisation du graph
|
||||||
|
array_push($array_final, ['t'=>$tmp_timestamp*1000, 'y'=>(string) $total]);
|
||||||
|
array_push($array_final, ['t'=>$today_timestamp*1000, 'y'=>(string) $total]);
|
||||||
|
$array_line = [['t'=>$start_timestamp*1000, 'y'=>(string) $target],['t'=>$today_timestamp*1000, 'y'=>(string) $target]];
|
||||||
|
|
||||||
|
$array_delta = array();
|
||||||
|
foreach($map_delta as $k=> $v) {
|
||||||
|
$array_delta[] = array('t'=>$k*1000, 'y'=>$v);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Vérification de l'unité
|
||||||
|
$unit = (!empty($_GET['unit']))
|
||||||
|
? ((!in_array($_GET['unit'], $units)) ? 'quantitative' : $_GET['unit'])
|
||||||
|
: 'quantitative';
|
||||||
|
|
||||||
|
// Si l'unité est relative
|
||||||
|
if ($unit == 'relative'){
|
||||||
|
// On récupère le dernier block qui contient le DU
|
||||||
|
$url_json = 'https://' . $node . '/blockchain/with/ud';
|
||||||
|
$json = file_get_contents($url_json);
|
||||||
|
$json = json_decode($json);
|
||||||
|
$last_block_with_ud = end($json->result->blocks);
|
||||||
|
|
||||||
|
// Puis on récupère le montant du DU pour mettre à jour les données
|
||||||
|
$url_json = 'https://' . $node . '/blockchain/block/' . $last_block_with_ud;
|
||||||
|
$json = file_get_contents($url_json);
|
||||||
|
$json = json_decode($json);
|
||||||
|
$ud = $json->dividend/100;
|
||||||
|
$total = round($total/$ud);
|
||||||
|
if ($display_graph){
|
||||||
|
for($i=0;$i<count($array_final);$i++){
|
||||||
|
$array_final[$i]['y'] = round($array_final[$i]['y']/$ud,2);
|
||||||
|
}
|
||||||
|
for($i=0;$i<count($array_delta);$i++){
|
||||||
|
$array_delta[$i]['y'] = round($array_delta[$i]['y']/$ud,2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$percentage = round($total/$target*100);
|
||||||
|
?>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="<?php echo $lang; ?>">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title><?php if (!empty($_GET['title'])){echo $_GET['title'];}else{echo tr('title_default');} ?></title>
|
||||||
|
<link rel="stylesheet" href="styles/iframe.css">
|
||||||
|
</head>
|
||||||
|
<body style="color:<?php echo $font_color; ?>;background-color:<?php echo $background_color; ?>;">
|
||||||
|
<section class="wrapper-numbers">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col">
|
||||||
|
<?php if (!empty($_GET['title'])){echo '<h1>' . $_GET['title'] . '</h1>';} ?>
|
||||||
|
<?php if ($display_pubkey){echo '<h2 class="pubkey">' . tr('label_pubkey') . ' ' . $pubkey . '</h2>';} ?>
|
||||||
|
<?php if ($display_qrcode){echo '<img src="' . $qrcode_path . '" alt="'.tr('label_qrcode').'">';} ?>
|
||||||
|
<div id="progressbar" class="progress border rounded-0" style="border-color:<?php echo $border_color; ?> !important;">
|
||||||
|
<div class="progress-bar progress-bar-animated" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width:0%;background:<?php echo $progress_color; ?> !important;"><span class="sr-only">0%</span></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row countup text-center">
|
||||||
|
<div class="column <?php echo $classcol; ?>">
|
||||||
|
<p><i class="fas fa-chart-pie" aria-hidden="true"></i></p>
|
||||||
|
<p> <span class="count"><?php echo $percentage?></span><span class="sup">%</span></p>
|
||||||
|
<h3><?php echo tr('label_reached'); ?></h3>
|
||||||
|
</div>
|
||||||
|
<div class="column <?php echo $classcol; ?>">
|
||||||
|
<p><i class="far fa-user" aria-hidden="true"></i></p>
|
||||||
|
<p> <span class="count"><?php echo $donors; ?></span></p>
|
||||||
|
<h3><?php echo tr('label_donators'); ?></h3>
|
||||||
|
</div>
|
||||||
|
<div class="column <?php echo $classcol; ?>">
|
||||||
|
<p><i class="far fa-money-bill-alt" aria-hidden="true"></i></p>
|
||||||
|
<p> <span class="count"><?php echo $total; ?></span><?php if ($unit == 'relative'){echo ' '.tr('ud');} ?><span class="sub">Ğ1</span></p>
|
||||||
|
<h3><?php echo tr('label_ontotal', array('total'=>$target, 'unit'=>(($unit=='relative') ? tr('ud').'<span class="sub">Ğ1<br></span>' : 'Ğ1'))); ?></h3>
|
||||||
|
</div>
|
||||||
|
<?php if (isset($end_date)){ ?>
|
||||||
|
<div class="column col-3">
|
||||||
|
<p><i class="far fa-calendar-alt" aria-hidden="true"></i></p>
|
||||||
|
<p> <span class="count"><?php echo $days_left; ?></span></p>
|
||||||
|
<h3><?php echo tr('label_remaining_d'); ?></h3>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
<?php if ($display_button){ ?>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col">
|
||||||
|
<a class="btn btn-success" href="<?php echo $contribution_url; ?>" target="_blank" role="button" style="width: 100%;">
|
||||||
|
<i class="fas fa-check"></i><span> <?php echo tr('label_contribute'); ?></span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<?php if ($display_graph){ ?>
|
||||||
|
<script src="lib/js/moment.min.js"></script>
|
||||||
|
<script src="locales/moment.js/<?php echo $lang; ?>.js"></script>
|
||||||
|
<script src="lib/js/chart.min.js"></script>
|
||||||
|
<script>
|
||||||
|
window.onload = function() {
|
||||||
|
moment.locale('<?php echo $lang; ?>');
|
||||||
|
var currentLocaleData = moment.localeData();
|
||||||
|
var dateFormat = currentLocaleData.longDateFormat('L');
|
||||||
|
var hourFormat = currentLocaleData.longDateFormat('LT');
|
||||||
|
var container = document.querySelector('.container');
|
||||||
|
var div = document.createElement('div');
|
||||||
|
div.classList.add('chart-container');
|
||||||
|
var canvas = document.createElement('canvas');
|
||||||
|
div.appendChild(canvas);
|
||||||
|
container.appendChild(div);
|
||||||
|
var chartData = {
|
||||||
|
datasets: [{
|
||||||
|
type: "line",
|
||||||
|
label: "<?php echo tr('graph_target'); ?>",
|
||||||
|
data: <?php echo json_encode($array_line); ?>,
|
||||||
|
borderColor: '#FF3E3D',
|
||||||
|
borderDash: [5, 5],
|
||||||
|
radius: 0,
|
||||||
|
fill: false
|
||||||
|
},{
|
||||||
|
type: "bar",
|
||||||
|
label: '<?php echo tr('graph_delta'); ?>',
|
||||||
|
data: <?php echo json_encode($array_delta); ?>,
|
||||||
|
borderColor: 'rgba(0,200,100,0.7)',
|
||||||
|
backgroundColor: 'rgba(96,200,120,0.7)',
|
||||||
|
borderWidth: 2
|
||||||
|
},{
|
||||||
|
type: "line",
|
||||||
|
label: '<?php echo tr('graph_title'); ?>',
|
||||||
|
data: <?php echo json_encode($array_final); ?>,
|
||||||
|
borderColor: '#0099FF',
|
||||||
|
backgroundColor: '#80CCFF',
|
||||||
|
lineTension: 0,
|
||||||
|
pointRadius: 1,
|
||||||
|
borderWidth: 2,
|
||||||
|
steppedLine: true
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
new Chart(canvas.getContext('2d'), {
|
||||||
|
type: 'bar',
|
||||||
|
data: chartData,
|
||||||
|
options: {
|
||||||
|
responsive: true,
|
||||||
|
animation: {
|
||||||
|
duration: 1800,
|
||||||
|
easing: 'easeInCubic'
|
||||||
|
},
|
||||||
|
title: {
|
||||||
|
display: true
|
||||||
|
},
|
||||||
|
scales: {
|
||||||
|
xAxes: [{
|
||||||
|
type: 'time',
|
||||||
|
time: {
|
||||||
|
minUnit: 'day',
|
||||||
|
tooltipFormat: dateFormat + ' - ' + hourFormat
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
tooltips: {
|
||||||
|
intersect: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<?php } ?>
|
||||||
|
<script src="lib/js/jquery-3.4.1.min.js"></script>
|
||||||
|
<script src="lib/js/counter.js"></script>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
$('.progress-bar').animate({
|
||||||
|
width: '<?php echo $percentage; ?>%'
|
||||||
|
}, 1300, '');
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,335 @@
|
||||||
|
<?php
|
||||||
|
header ("Content-type: image/png");
|
||||||
|
|
||||||
|
if(isset($_GET['lang'])) {
|
||||||
|
if(empty($_GET['lang'])) $langdetect = true;
|
||||||
|
else $lang = $_GET['lang'];
|
||||||
|
}
|
||||||
|
require('lib/locales.php');
|
||||||
|
include('lib/phpqrcode/qrlib.php');
|
||||||
|
|
||||||
|
function isDate(&$date, $format){
|
||||||
|
$champsDate = date_parse_from_format($format, $date);
|
||||||
|
$date = DateTime::createFromFormat($format, $date);
|
||||||
|
return checkdate($champsDate['month'], $champsDate['day'], $champsDate['year']);
|
||||||
|
}
|
||||||
|
|
||||||
|
function hex2RGB($hexStr, $returnAsString = false, $seperator = ',') {
|
||||||
|
$hexStr = preg_replace("/[^0-9A-Fa-f]/", '', $hexStr); // Gets a proper hex string
|
||||||
|
$rgbArray = array();
|
||||||
|
if (strlen($hexStr) == 6) { //If a proper hex code, convert using bitwise operation. No overhead... faster
|
||||||
|
$colorVal = hexdec($hexStr);
|
||||||
|
$rgbArray['red'] = 0xFF & ($colorVal >> 0x10);
|
||||||
|
$rgbArray['green'] = 0xFF & ($colorVal >> 0x8);
|
||||||
|
$rgbArray['blue'] = 0xFF & $colorVal;
|
||||||
|
} elseif (strlen($hexStr) == 3) { //if shorthand notation, need some string manipulations
|
||||||
|
$rgbArray['red'] = hexdec(str_repeat(substr($hexStr, 0, 1), 2));
|
||||||
|
$rgbArray['green'] = hexdec(str_repeat(substr($hexStr, 1, 1), 2));
|
||||||
|
$rgbArray['blue'] = hexdec(str_repeat(substr($hexStr, 2, 1), 2));
|
||||||
|
} else {
|
||||||
|
return false; //Invalid hex color code
|
||||||
|
}
|
||||||
|
return $returnAsString ? implode($seperator, $rgbArray) : $rgbArray; // returns the rgb string or the associative array
|
||||||
|
}
|
||||||
|
|
||||||
|
function display_column($img,$font_file,$icon_file,$icone,$txt1,$txt2,$x,$y,$color){
|
||||||
|
$fontsize_icon = 20;
|
||||||
|
$font_size1 = 15;
|
||||||
|
$font_size2 = 10;
|
||||||
|
$type_space = imagettfbbox($fontsize_icon, 0, $icon_file, json_decode($icone));
|
||||||
|
$icon_width = abs($type_space[4] - $type_space[0]);
|
||||||
|
$font = 3;
|
||||||
|
$font_width = imagefontwidth($font);
|
||||||
|
$txt_width2 = $font_width*strlen($txt2);
|
||||||
|
imagettftext($img, $fontsize_icon, 0, $x-$icon_width/2, $y, $color, $icon_file, json_decode($icone));
|
||||||
|
$type_space = imagettfbbox($font_size1, 0, $font_file, $txt1);
|
||||||
|
$txt_width1 = abs($type_space[4] - $type_space[0]);
|
||||||
|
imagettftext($img, $font_size1, 0, $x-$txt_width1/2, $y+$fontsize_icon+10, $color, $font_file, $txt1);
|
||||||
|
$type_space = imagettfbbox($font_size2, 0, $font_file, $txt2);
|
||||||
|
$txt_width2 = abs($type_space[4] - $type_space[0]);
|
||||||
|
imagettftext($img, $font_size2, 0, $x-$txt_width2/2, $y+$fontsize_icon+15+$font_size1, $color, $font_file, $txt2);
|
||||||
|
}
|
||||||
|
|
||||||
|
function display($img){
|
||||||
|
imagepng($img);
|
||||||
|
imagedestroy($img);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===============================================================================================================
|
||||||
|
|
||||||
|
// Définition des variables
|
||||||
|
$api_node = 'g1.duniter.fr';
|
||||||
|
$format_pubkey = '#^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{43,44}$#';
|
||||||
|
$units = ['quantitative','relative'];
|
||||||
|
date_default_timezone_set('Europe/Paris');
|
||||||
|
$today = new DateTime();
|
||||||
|
$format = 'Y-m-d';
|
||||||
|
$display_qrcode = (!empty($_GET['display_qrcode']));
|
||||||
|
$titre = (!empty($_GET['title'])) ? $_GET['title'] : utf8_decode(tr('title_default'));
|
||||||
|
$node = (!empty($_GET['node'])) ? $_GET['node'] : 'g1.duniter.org';
|
||||||
|
$logo = (!empty($_GET['logo'])) ? $_GET['logo'] : 'no-logo';
|
||||||
|
$logo = 'img/logos/png/' . $logo . '.png';
|
||||||
|
if (!file_exists($logo)){$logo='no-logo';}
|
||||||
|
$whitespace = 25;
|
||||||
|
$content_x = $whitespace;
|
||||||
|
$content_y = $whitespace+5;
|
||||||
|
$font_size = 15;
|
||||||
|
$fontsize_icon = 20;
|
||||||
|
$font_error = 2;
|
||||||
|
$arial_font = './lib/webfonts/LiberationSans-Regular.ttf';
|
||||||
|
$font900 = './lib/webfonts/fontawesome/900/fa-solid-900.ttf';
|
||||||
|
$font400 = './lib/webfonts/fontawesome/400/fa-regular-400.ttf';
|
||||||
|
$height = 200;
|
||||||
|
$width = 500;
|
||||||
|
$barwidth = 450;
|
||||||
|
$barheight = 25;
|
||||||
|
|
||||||
|
// Adaptation de la largeur de l'image en fonction des paramètres
|
||||||
|
if ($logo != 'no-logo'){
|
||||||
|
$img_logo = imagecreatefrompng($logo);
|
||||||
|
$largeur_logo = imagesx($img_logo);
|
||||||
|
$width += $largeur_logo + $whitespace;
|
||||||
|
$content_x += $largeur_logo + $whitespace;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Vérification du format de la pubkey
|
||||||
|
if (!empty($_GET['pubkey'])){
|
||||||
|
if (preg_match($format_pubkey, $_GET['pubkey'])){
|
||||||
|
$pubkey = $_GET['pubkey'];
|
||||||
|
|
||||||
|
// ASTROPORT UGGLY PATCH.... MMMMmmmm. but it should works.
|
||||||
|
$YOU = shell_exec('ps auxf --sort=+utime | grep -w ipfs | grep -v -E "color=auto|grep" | tail -n 1 | cut -d " " -f 1');
|
||||||
|
$pubkey = shell_exec('cat /home/'.$YOU.'/secret.astroport.key | grep G1PUB | cut -d '"' -f 2');
|
||||||
|
|
||||||
|
$contribution_url = 'https://' . $api_node . '/api/#/v1/payment/' . $pubkey . '?amount=10|20|50|100|1000&comment=don&redirect_url=https%3A%252F%252F' . $api_node . '&cancel_url=https%3A%252F%252F' . $api_node;
|
||||||
|
$display_pubkey = (!empty($_GET['display_pubkey']));
|
||||||
|
if ($display_qrcode){
|
||||||
|
$qrcode_path = 'img/qrcodes/' . $pubkey . '.png';
|
||||||
|
if (!file_exists($qrcode_path)){
|
||||||
|
QRcode::png($pubkey, $qrcode_path);
|
||||||
|
}
|
||||||
|
$img_qrcode = imagecreatefrompng($qrcode_path);
|
||||||
|
$qrcode_width = imagesx($img_qrcode);
|
||||||
|
$width += $qrcode_width + $whitespace;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Création de l'image de base
|
||||||
|
$source = imagecreatetruecolor ($width, $height);
|
||||||
|
imagealphablending($source, false);
|
||||||
|
|
||||||
|
// Définition des couleurs de base
|
||||||
|
$transparence = imagecolorallocatealpha($source, 255, 255, 255, 127);
|
||||||
|
$progress_back = ImageColorAllocate($source,233,236,239); // #e9ecef
|
||||||
|
$noir = imagecolorallocate($source, 0, 0, 0); // #000000
|
||||||
|
$background_color = (!empty($_GET['background_color'])) ? '#' . $_GET['background_color'] : '#FFF';
|
||||||
|
$background_color = hex2RGB($background_color);
|
||||||
|
if (!$background_color){
|
||||||
|
$background_color = imagecolorallocate($source, 255, 255, 255);
|
||||||
|
}else{
|
||||||
|
$background_color = imagecolorallocate($source, $background_color['red'], $background_color['green'], $background_color['blue']);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remplissage du fond avec gestion de la transparence
|
||||||
|
imagefill($source, 0, 0, $background_color);
|
||||||
|
imagefilledrectangle($source, 0, 0, $width,$height,$transparence);
|
||||||
|
imagealphablending($source, true);
|
||||||
|
imagesavealpha($source, true);
|
||||||
|
imagefill($source, 0, 0, $background_color);
|
||||||
|
|
||||||
|
// Intégration du logo
|
||||||
|
if ($logo != 'no-logo'){
|
||||||
|
imagecopy($source, $img_logo, $whitespace, $whitespace, 0, 0, 150, 150);
|
||||||
|
imagedestroy($img_logo);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (empty($pubkey)){
|
||||||
|
imagestring($source, $font_error, $content_x, $content_y, utf8_decode(tr('error_pubkey_missing')), $noir);
|
||||||
|
display($source);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Vérification de la couleur de bordure
|
||||||
|
$border_color = (!empty($_GET['border_color'])) ? '#' . $_GET['border_color'] : '#343a40';
|
||||||
|
$border_color = hex2RGB($border_color);
|
||||||
|
if (!$border_color){
|
||||||
|
imagestring($source, $font_error, $content_x, $content_y, utf8_decode(tr('error_border_color_invalid')), $noir);
|
||||||
|
display($source);
|
||||||
|
}else{
|
||||||
|
$border_color = imagecolorallocate($source, $border_color['red'], $border_color['green'], $border_color['blue']);
|
||||||
|
}
|
||||||
|
ImageRectangle($source,0,0,$width-1,$height-1,$border_color);
|
||||||
|
ImageRectangle($source,2,2,$width-3,$height-3,$border_color);
|
||||||
|
|
||||||
|
// Vérification des dates et calcul du nombre de jours entre la date du jour et la date de fin
|
||||||
|
if (!empty($_GET['start_date'])){
|
||||||
|
$start_date = $_GET['start_date'];
|
||||||
|
$nb_col = 3;
|
||||||
|
if (!isDate($start_date, $format)){
|
||||||
|
imagestring($source, $font_error, $content_x, $content_y, utf8_decode(tr('error_date_start_invalid')), $noir);
|
||||||
|
display($source);
|
||||||
|
}
|
||||||
|
if (!empty($_GET['end_date'])){
|
||||||
|
if ($_GET['end_date'] !=0){
|
||||||
|
$end_date = $_GET['end_date'];
|
||||||
|
if (!isDate($end_date, $format)){
|
||||||
|
imagestring($source, $font_error, $content_x, $content_y, utf8_decode(tr('error_date_end_invalid')), $noir);
|
||||||
|
display($source);
|
||||||
|
}elseif ($end_date < $start_date) {
|
||||||
|
imagestring($source, $font_error, $content_x, $content_y, utf8_decode(tr('error_date_end_invalid')), $noir);
|
||||||
|
display($source);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
// Si pas de start_date, on prend le mois courant
|
||||||
|
$start_date = new DateTime('first day of this month');
|
||||||
|
$end_date = new DateTime('last day of this month');
|
||||||
|
}
|
||||||
|
$start_date->setTime(0,0,0);
|
||||||
|
if (isset($end_date)){
|
||||||
|
$nb_col = 4;
|
||||||
|
if ($end_date < $today){
|
||||||
|
$days_left = 0;
|
||||||
|
}else{
|
||||||
|
$dteDiff = $end_date->diff($today);
|
||||||
|
$days_left = $dteDiff->format('%a');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Génération du QRcode
|
||||||
|
if ($display_qrcode) {
|
||||||
|
imagecopymerge($source, $img_qrcode, $width - $qrcode_width - $whitespace, 42, 0, 0, 111, 111, 100);
|
||||||
|
imagedestroy($img_qrcode);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Vérification du format de la valeur cible à atteindre
|
||||||
|
if (!empty($_GET['target'])){
|
||||||
|
$target = (int)$_GET['target'];
|
||||||
|
if (!is_int($target)){
|
||||||
|
imagestring($source, $font_error, $content_x, $content_y, utf8_decode(tr('error_target_not_int')), $noir);
|
||||||
|
display($source);
|
||||||
|
}elseif ($target<=0){
|
||||||
|
imagestring($source, $font_error, $content_x, $content_y, utf8_decode(tr('error_target_negative')), $noir);
|
||||||
|
display($source);
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
imagestring($source, $font_error, $content_x, $content_y, utf8_decode(tr('error_target_missing')), $noir);
|
||||||
|
display($source);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Récupération des transactions entrantes entre la date de début et la date du jour
|
||||||
|
$start_timestamp = $start_date->getTimestamp();
|
||||||
|
$today_timestamp = $today->getTimestamp();
|
||||||
|
$url_json = 'https://' . $node . '/tx/history/' . $pubkey . '/times/' . $start_timestamp . '/' . $today_timestamp;
|
||||||
|
$json = @file_get_contents($url_json);
|
||||||
|
if ($json === false){
|
||||||
|
imagestring($source, 2, $content_x, $content_y, utf8_decode(tr('error_connect_node')), $noir);
|
||||||
|
display($source);
|
||||||
|
}
|
||||||
|
$json = json_decode($json);
|
||||||
|
$transactions = $json->history->received;
|
||||||
|
$total = 0;
|
||||||
|
$donneurs = [];
|
||||||
|
$tmp_timestamp = $start_timestamp;
|
||||||
|
$array_final = [];
|
||||||
|
foreach ($transactions as $transaction){
|
||||||
|
$donneur = $transaction->issuers[0];
|
||||||
|
if ($donneur != $pubkey){
|
||||||
|
if(!in_array($donneur, $donneurs)){
|
||||||
|
array_push($donneurs, $donneur);
|
||||||
|
}
|
||||||
|
$outputs = $transaction->outputs;
|
||||||
|
foreach ($outputs as $output){
|
||||||
|
if (strstr($output,$pubkey)){
|
||||||
|
$timestamp = $transaction->blockstampTime;
|
||||||
|
$output = explode(':', $output);
|
||||||
|
$montant_transaction = $output[0]/100;
|
||||||
|
if ($timestamp != $tmp_timestamp){
|
||||||
|
array_push($array_final, ['t'=>$tmp_timestamp*1000, 'y'=>(string) $total]);
|
||||||
|
}
|
||||||
|
$total += $montant_transaction;
|
||||||
|
$tmp_timestamp = $timestamp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$donors = count($donneurs);
|
||||||
|
|
||||||
|
// Vérification de l'unité
|
||||||
|
$unit = (!empty($_GET['unit']))
|
||||||
|
? ((!in_array($_GET['unit'], $units)) ? 'quantitative' : $_GET['unit'])
|
||||||
|
: 'quantitative';
|
||||||
|
|
||||||
|
// Si l'unité est relative
|
||||||
|
if ($unit == 'relative'){
|
||||||
|
// On récupère le dernier block qui contient le DU
|
||||||
|
$url_json = 'https://' . $node . '/blockchain/with/ud';
|
||||||
|
$json = file_get_contents($url_json);
|
||||||
|
$json = json_decode($json);
|
||||||
|
$last_block_with_ud = end($json->result->blocks);
|
||||||
|
|
||||||
|
// Puis on récupère le montant du DU pour mettre à jour les données
|
||||||
|
$url_json = 'https://' . $node . '/blockchain/block/' . $last_block_with_ud;
|
||||||
|
$json = file_get_contents($url_json);
|
||||||
|
$json = json_decode($json);
|
||||||
|
$ud = $json->dividend/100;
|
||||||
|
$total = round($total/$ud);
|
||||||
|
}
|
||||||
|
$percentage = round($total/$target*100);
|
||||||
|
$percentage_bar = ($percentage>100) ? 100 : $percentage;
|
||||||
|
|
||||||
|
// ==================================================================================
|
||||||
|
|
||||||
|
// Vérification de la couleur de fonte
|
||||||
|
$font_color = (!empty($_GET['font_color'])) ? '#' . $_GET['font_color'] : '#212529';
|
||||||
|
$font_color = hex2RGB($font_color);
|
||||||
|
if (!$font_color){
|
||||||
|
imagestring($source, $font_error, $content_x, $content_y, utf8_decode(tr('error_font_color_invalid')), $noir);
|
||||||
|
display($source);
|
||||||
|
}else{
|
||||||
|
$font_color = imagecolorallocate($source, $font_color['red'], $font_color['green'], $font_color['blue']);
|
||||||
|
}
|
||||||
|
// Vérification de la couleur de la barre de progression
|
||||||
|
$progress_color = (!empty($_GET['progress_color'])) ? '#' . $_GET['progress_color'] : '#ffc107';
|
||||||
|
$progress_color = hex2RGB($progress_color);
|
||||||
|
if (!$progress_color){
|
||||||
|
imagestring($source, $font_error, $content_x, $content_y, utf8_decode(tr('error_bar_color_invalid')), $noir);
|
||||||
|
display($source);
|
||||||
|
}else{
|
||||||
|
$progress_color = imagecolorallocate($source, $progress_color['red'], $progress_color['green'], $progress_color['blue']);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Affichage du titre
|
||||||
|
$title_y = ($display_pubkey) ? 23 : $content_y;
|
||||||
|
imagettftext($source, $font_size, 0, $content_x, $title_y, $font_color, $arial_font, $titre);
|
||||||
|
if ($display_pubkey){imagettftext($source, $font_size-5, 0, $content_x, $content_y+15, $font_color, $arial_font, 'Pubkey : '.$pubkey);}
|
||||||
|
|
||||||
|
// On dessine la barre de progression
|
||||||
|
$remplissage = $percentage_bar*$barwidth/100;
|
||||||
|
ImageFilledRectangle($source,$content_x+1,$content_y+$whitespace+1,$content_x+$barwidth,$content_y+$whitespace+$barheight,$progress_back);
|
||||||
|
ImageFilledRectangle($source,$content_x+1,$content_y+$whitespace+1,$content_x+$remplissage,$content_y+$whitespace+$barheight,$progress_color);
|
||||||
|
ImageRectangle($source,$content_x,$content_y+$whitespace,$content_x+$barwidth+1,$content_y+$whitespace+$barheight+1,$border_color);
|
||||||
|
imagettftext($source, $font_size, 0, $content_x+$remplissage/2, $content_y+$whitespace+$barheight/2+9, $font_color, $arial_font, $percentage . '%');
|
||||||
|
|
||||||
|
// Colonnes avec icônes Font awesome
|
||||||
|
$column = $barwidth/$nb_col;
|
||||||
|
$mid_column = $column/2;
|
||||||
|
$icone_pos_y = $content_y+$whitespace+$barheight+$whitespace+$fontsize_icon;
|
||||||
|
// Colonne 1
|
||||||
|
display_column($source,$arial_font,$font900,'""',$percentage.'%',utf8_decode(tr('label_reached')),$content_x+$mid_column,$icone_pos_y,$font_color);
|
||||||
|
// Colonne 2
|
||||||
|
display_column($source,$arial_font,$font400,'""',$donors,utf8_decode(tr('label_donators')),$content_x+$column+$mid_column,$icone_pos_y,$font_color);
|
||||||
|
// Colonne 3
|
||||||
|
$unit = ($unit=='relative') ? tr('ud').'Ğ1' : 'Ğ1';
|
||||||
|
$txt_target = tr('label_ontotal_short', array('total'=>$target, 'unit'=>($unit)));
|
||||||
|
$total = round($total) . ' ' . $unit;
|
||||||
|
display_column($source,$arial_font,$font400,'""',$total,$txt_target,$content_x+2*$column+$mid_column,$icone_pos_y,$font_color);
|
||||||
|
// Colonne 4
|
||||||
|
if ($nb_col==4){
|
||||||
|
display_column($source,$arial_font,$font400,'""',$days_left,utf8_decode(tr('label_remaining_d')),$content_x+3*$column+$mid_column,$icone_pos_y,$font_color);
|
||||||
|
}
|
||||||
|
|
||||||
|
// On affiche l'image finale
|
||||||
|
display($source);
|
||||||
|
?>
|
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 59 KiB |
After Width: | Height: | Size: 6.7 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 8.0 KiB |
After Width: | Height: | Size: 8.0 KiB |
After Width: | Height: | Size: 4.8 KiB |
|
@ -0,0 +1,57 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<svg width="512px" height="512px" viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg" xmlns:bx="https://boxy-svg.com">
|
||||||
|
<path d="M 390.992 122.276 C 418.209 157.183 434.924 200.278 441.202 248.24 C 441.187 276.711 435.71 305.292 425.308 333.282 C 371.101 416.727 274.951 449.213 167.669 434.279 C 136.406 416.036 109.009 390.076 86.272 358.016 C 67.778 323.794 57.942 284.4 56.489 242.062 C 62.206 199.766 79.617 161.912 106.301 129.617 C 162.524 85.439 239.03 70.181 321.968 82.52 C 345.508 92.535 368.657 105.883 390.992 122.276 Z" style="fill: rgb(255, 255, 255);" bx:origin="0 0"/>
|
||||||
|
<g transform="matrix(0.517848, 0, 0, 0.517848, -53.306625, -599.931213)" style="opacity: 1;">
|
||||||
|
<g id="g-14" style="display: inline; opacity: 0.5;" transform="matrix(1, 0, 0, 1, 144.570724, 1007.099426)">
|
||||||
|
<path style="display:inline;fill:#ffd086;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="M 585.16992,524.91211 C 447.41745,738.84015 285.93093,797.68142 93.347656,801.03711 158.66452,921.84083 287.20038,1003.1698 434.03906,1001.2559 607.56851,998.99446 752.51317,881.18488 796.65234,721.9668 c -2.6864,-6.57764 -6.20106,-13.62037 -10.8164,-21.13477 C 768.68987,677.03878 709.10478,568.47721 585.16992,524.91211 Z" id="path-102"/>
|
||||||
|
<path style="display:inline;fill:#270b0b;fill-opacity:0.99393939;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="M 586.254 524.115 C 564.682 650.453 477.974 754.472 498.584 835.602 C 524.648 938.199 419.458 961.515 333.973 989.342 C 365.923 997.545 399.475 1001.706 434.039 1001.256 C 634.052 998.649 796.093 842.536 809.561 646.439 C 793.197 641.777 777.425 634.689 766.723 622.746 C 734.035 586.272 650.117 546.564 586.254 524.115 Z" id="path-103" bx:origin="0.5 0.5"/>
|
||||||
|
<path style="display: inline; fill: rgb(203, 137, 3); fill-opacity: 0.993939; fill-rule: evenodd; stroke: none; stroke-width: 1px; stroke-linecap: butt; stroke-linejoin: miter; stroke-opacity: 1;" d="M 586.254 524.115 C 564.682 650.453 477.974 754.472 498.584 835.602 C 524.648 938.199 419.458 961.515 333.973 989.342 C 365.923 997.545 399.475 1001.706 434.039 1001.256 C 634.052 998.649 796.093 842.536 809.561 646.439 C 793.197 641.777 777.425 634.689 766.723 622.746 C 734.035 586.272 650.117 546.564 586.254 524.115 Z" id="path-104" bx:origin="0.5 0.5"/>
|
||||||
|
</g>
|
||||||
|
<g id="g-15" style="display: inline; opacity: 0.5;" transform="matrix(1, 0, 0, 1, 144.570724, 1007.099426)">
|
||||||
|
<rect x="504.265" y="500.287" width="23.492" height="25.527" style="display:inline;opacity:1;fill:#fabb37;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843" id="path-105"/>
|
||||||
|
<rect x="369.174" y="415.429" width="22.384" height="24.419" style="display:inline;opacity:1;fill:#ffd086;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843" id="path-106"/>
|
||||||
|
<rect x="418.995" y="433.019" width="30.524" height="30.524" style="display:inline;opacity:1;fill:#fabb37;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843" id="path-107"/>
|
||||||
|
<rect x="417.34" y="652.556" width="46.803" height="46.803" style="display:inline;opacity:1;fill:#fbc14c;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843" id="path-108"/>
|
||||||
|
<rect x="422.586" y="475.891" width="30.524" height="30.524" style="display:inline;opacity:1;fill:#fabb37;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843" id="path-109"/>
|
||||||
|
<rect x="472.618" y="605.457" width="24.419" height="26.454" style="display:inline;opacity:1;fill:#cc8902;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843" id="path-110"/>
|
||||||
|
<rect x="520.772" y="557.902" width="18.314" height="18.314" style="display:inline;opacity:1;fill:#fabb37;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843" id="path-111"/>
|
||||||
|
<rect x="454.784" y="563.028" width="30.524" height="30.524" style="display:inline;opacity:1;fill:#fabb37;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843" id="path-112"/>
|
||||||
|
<rect x="335.342" y="720.987" width="38.663" height="40.698" style="display:inline;opacity:1;fill:#fbc14c;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843" id="path-113"/>
|
||||||
|
<rect x="371.97" y="661.975" width="26.454" height="30.524" style="display:inline;opacity:1;fill:#fbc14c;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843" id="path-114"/>
|
||||||
|
<rect x="-427.93" y="610.085" width="24.507" height="24.419" style="display:inline;opacity:1;fill:#cc8902;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843" id="path-115" transform="scale(-1,1)"/>
|
||||||
|
<rect x="480.411" y="523.469" width="20.349" height="22.384" style="display:inline;opacity:1;fill:#ffd086;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843" id="path-116"/>
|
||||||
|
<rect x="-499.5" y="466.314" width="24.507" height="24.419" style="display:inline;opacity:1;fill:#cc8902;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843" id="path-117" transform="scale(-1,1)"/>
|
||||||
|
</g>
|
||||||
|
<g id="g-16" style="display: inline; opacity: 1;" transform="matrix(1.0000000700020495, 0, 0, 1.0000000700020495, 144.57072391079612, 1007.0994398715994)">
|
||||||
|
<path style="display: inline; fill: none; fill-opacity: 1; fill-rule: evenodd; stroke: rgb(255, 122, 0); stroke-width: 2.34888; stroke-linecap: butt; stroke-linejoin: miter; stroke-opacity: 1;" d="M 585.16992,524.91211 C 447.41745,738.84015 285.93093,797.68142 93.347656,801.03711 158.66452,921.84083 287.20038,1003.1698 434.03906,1001.2559 607.56851,998.99446 752.51317,881.18488 796.65234,721.9668 c -2.6864,-6.57764 -6.20106,-13.62037 -10.8164,-21.13477 C 768.68987,677.03878 709.10478,568.47721 585.16992,524.91211 Z" id="path-118"/>
|
||||||
|
<path style="display: inline; fill: none; fill-opacity: 0.993939; fill-rule: evenodd; stroke: rgb(255, 122, 0); stroke-width: 2.34888; stroke-linecap: butt; stroke-linejoin: miter; stroke-opacity: 1;" d="M 586.254 524.115 C 564.682 650.453 477.974 754.472 498.584 835.602 C 524.648 938.199 419.458 961.515 333.973 989.342 C 365.923 997.545 399.475 1001.706 434.039 1001.256 C 634.052 998.649 796.093 842.536 809.561 646.439 C 793.197 641.777 777.425 634.689 766.723 622.746 C 734.035 586.272 650.117 546.564 586.254 524.115 Z" id="path-119" bx:origin="0.5 0.5"/>
|
||||||
|
<path style="display: inline; fill: none; fill-opacity: 0.993939; fill-rule: evenodd; stroke: rgb(255, 122, 0); stroke-width: 2.34888; stroke-linecap: butt; stroke-linejoin: miter; stroke-opacity: 1;" d="M 586.254 524.115 C 564.682 650.453 477.974 754.472 498.584 835.602 C 524.648 938.199 419.458 961.515 333.973 989.342 C 365.923 997.545 399.475 1001.706 434.039 1001.256 C 634.052 998.649 796.093 842.536 809.561 646.439 C 793.197 641.777 777.425 634.689 766.723 622.746 C 734.035 586.272 650.117 546.564 586.254 524.115 Z" id="path-120" bx:origin="0.5 0.5"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(0.608261, 0, 0, 0.608261, -20.084976, 3.255736)">
|
||||||
|
<g>
|
||||||
|
<path style="display: inline; fill: rgb(64, 178, 255); fill-opacity: 1; fill-rule: evenodd; stroke: none; stroke-width: 1px; stroke-linecap: butt; stroke-linejoin: miter; stroke-opacity: 1; opacity: 0.78;" id="path-10" d="M 419.133 85.738 C 417.295 85.739 415.455 85.754 413.611 85.778 C 354.852 86.561 299.023 99.174 248.358 121.32 C 584.121 13.206 796.175 211.26 831.7 508.773 L 846.383 507.124 C 815.586 235.801 652.477 85.588 419.133 85.738 Z" transform="matrix(0.96373, 0.266878, -0.266878, 0.96373, 89.505231, -136.615061)" bx:origin="0.5 0.5"/>
|
||||||
|
<path style="display: inline; fill: rgb(64, 178, 255); fill-opacity: 1; fill-rule: evenodd; stroke: none; stroke-width: 1px; stroke-linecap: butt; stroke-linejoin: miter; stroke-opacity: 1; opacity: 1;" id="path-3" d="M 146.037 194.065 C 144.201 194.066 142.361 194.081 140.517 194.104 C 81.76 194.888 25.931 207.503 -24.736 229.648 C 311.029 121.531 523.083 319.583 558.604 617.093 L 573.284 615.443 C 542.49 344.122 379.385 193.913 146.037 194.065 Z" transform="matrix(-0.180988, -0.983485, 0.983485, -0.180988, -39.298581, 705.897544)" bx:origin="0.5 0.5"/>
|
||||||
|
<path style="display: inline; fill: rgb(64, 178, 255); fill-opacity: 1; fill-rule: evenodd; stroke: none; stroke-width: 1px; stroke-linecap: butt; stroke-linejoin: miter; stroke-opacity: 1; opacity: 0.4;" id="path-11" d="M 487.744 193.084 C 485.906 193.085 484.067 193.1 482.223 193.123 C 423.464 193.907 367.635 206.52 316.975 228.668 C 652.726 120.552 864.775 318.605 900.299 616.109 L 914.979 614.46 C 884.184 343.144 721.081 192.935 487.744 193.084 Z" transform="matrix(0.619997, 0.784605, -0.784605, 0.619997, 523.067231, -343.331539)" bx:origin="0.5 0.5"/>
|
||||||
|
<path style="display: inline; fill: rgb(64, 178, 255); fill-opacity: 1; fill-rule: evenodd; stroke: none; stroke-width: 1px; stroke-linecap: butt; stroke-linejoin: miter; stroke-opacity: 1; opacity: 0.84;" id="path-12" d="M 295.969 432.757 C 294.131 432.758 292.293 432.773 290.449 432.797 C 231.688 433.58 175.86 446.194 125.198 468.341 C 460.957 360.226 673.005 558.28 708.526 855.786 L 723.207 854.139 C 692.412 582.819 529.31 432.609 295.969 432.757 Z" transform="matrix(-0.978849, 0.204584, -0.204584, -0.978849, 963.820796, 1116.367293)" bx:origin="0.5 0.5"/>
|
||||||
|
<path style="display: inline; fill: rgb(64, 178, 255); fill-opacity: 1; fill-rule: evenodd; stroke: none; stroke-width: 1px; stroke-linecap: butt; stroke-linejoin: miter; stroke-opacity: 1; opacity: 0.4;" id="path-13" d="M 158.036 148.83 C 156.2 148.833 154.36 148.846 152.516 148.872 C 93.759 149.653 37.93 162.267 -12.734 184.411 C 323.022 76.301 535.076 274.352 570.604 571.857 L 585.286 570.208 C 554.483 298.891 391.38 148.683 158.036 148.83 Z" transform="matrix(0.338614, -0.940926, 0.940926, 0.338614, -115.595158, 483.705984)" bx:origin="0.5 0.5"/>
|
||||||
|
<path style="display: inline; fill: rgb(64, 178, 255); fill-opacity: 1; fill-rule: evenodd; stroke: none; stroke-width: 1px; stroke-linecap: butt; stroke-linejoin: miter; stroke-opacity: 1; opacity: 1;" id="path-14" d="M 501.019 288.292 C 499.181 288.293 497.34 288.308 495.496 288.331 C 436.736 289.115 380.908 301.726 330.243 323.874 C 666.004 215.757 878.062 413.812 913.586 711.322 L 928.268 709.673 C 897.468 438.352 734.361 288.141 501.019 288.292 Z" transform="matrix(0.164656, 0.986351, -0.986351, 0.164656, 982.857266, -233.452063)" bx:origin="0.5 0.5"/>
|
||||||
|
<path style="display: inline; fill: rgb(64, 178, 255); fill-opacity: 1; fill-rule: evenodd; stroke: none; stroke-width: 1px; stroke-linecap: butt; stroke-linejoin: miter; stroke-opacity: 1; opacity: 0.4;" id="path-15" d="M 192.954 376.521 C 191.115 376.522 189.277 376.537 187.433 376.561 C 128.674 377.344 72.845 389.958 22.181 412.103 C 357.94 303.989 569.987 502.045 605.505 799.553 L 620.188 797.905 C 589.392 526.584 426.295 376.369 192.954 376.521 Z" transform="matrix(-0.931404, -0.363988, 0.363988, -0.931404, 419.499006, 1182.599809)" bx:origin="0.5 0.5"/>
|
||||||
|
<path style="display: inline; fill: rgb(64, 178, 255); fill-opacity: 1; fill-rule: evenodd; stroke: none; stroke-width: 1px; stroke-linecap: butt; stroke-linejoin: miter; stroke-opacity: 1; opacity: 1;" id="path-16" d="M 221.614 63.973 C 219.777 63.976 217.938 63.99 216.094 64.015 C 157.334 64.795 101.506 77.409 50.841 99.554 C 386.598 -8.559 598.651 189.497 634.173 487.001 L 648.854 485.354 C 618.058 214.037 454.954 63.824 221.614 63.973 Z" transform="matrix(0.750452, -0.660925, 0.660925, 0.750452, -70.803322, 290.920273)" bx:origin="0.5 0.5"/>
|
||||||
|
<path style="display: inline; fill: rgb(64, 178, 255); fill-opacity: 1; fill-rule: evenodd; stroke: none; stroke-width: 1px; stroke-linecap: butt; stroke-linejoin: miter; stroke-opacity: 1; opacity: 0.4;" id="path-17" d="M 441.888 342.098 C 440.047 342.098 438.207 342.114 436.362 342.138 C 377.601 342.922 321.765 355.535 271.103 377.681 C 606.886 269.567 818.944 467.615 854.462 765.133 L 869.142 763.483 C 838.354 492.154 675.242 341.948 441.888 342.098 Z" transform="matrix(-0.356582, 0.934264, -0.934264, -0.356582, 1256.759493, 169.182552)" bx:origin="0.5 0.5"/>
|
||||||
|
<g transform="matrix(0.762493, 0, 0, 0.762493, 19.294647, -716.322815)">
|
||||||
|
<path d="M 566.466 1089.137 L 566.466 1148.222 C 565.867 1148.219 565.267 1148.217 564.667 1148.217 C 561.481 1148.217 558.31 1148.259 555.154 1148.341 L 555.154 1089.137 Z M 908.29 1477.146 L 956.987 1477.146 L 956.987 1488.458 L 908.569 1488.458 C 908.539 1484.693 908.447 1480.922 908.29 1477.146 Z M 566.466 1835.013 L 566.466 1876.467 L 555.154 1876.467 L 555.154 1834.886 C 558.318 1834.973 561.49 1835.017 564.667 1835.017 C 565.267 1835.017 565.867 1835.016 566.466 1835.013 Z M 220.775 1488.458 L 169.657 1488.458 L 169.657 1477.146 L 221.089 1477.146 C 220.921 1480.909 220.816 1484.68 220.775 1488.458 Z" style="fill: rgb(64, 40, 0); stroke: none;" bx:origin="0 0"/>
|
||||||
|
<path d="M 760.121 1143.311 L 717.336 1217.417 C 715.72 1216.518 714.096 1215.632 712.465 1214.761 L 755.318 1140.537 Z M 830.122 1324.203 L 900.424 1283.614 L 903.198 1288.417 L 833.04 1328.923 C 832.08 1327.339 831.107 1325.766 830.122 1324.203 Z M 840.599 1641.137 L 903.197 1677.278 L 900.424 1682.082 L 837.911 1645.99 C 838.821 1644.38 839.717 1642.762 840.599 1641.137 Z M 725.168 1761.843 L 760.122 1822.385 L 755.318 1825.158 L 720.379 1764.641 C 721.985 1763.722 723.582 1762.789 725.168 1761.843 Z M 403.538 1760.932 L 366.456 1825.159 L 361.653 1822.386 L 398.802 1758.042 C 400.372 1759.019 401.951 1759.982 403.538 1760.932 Z M 289.58 1642.689 L 221.35 1682.082 L 218.577 1677.279 L 286.944 1637.807 C 287.807 1639.437 288.685 1641.065 289.58 1642.689 Z M 294.354 1332.168 L 218.576 1288.417 L 221.35 1283.614 L 297.213 1327.414 C 296.246 1328.99 295.293 1330.575 294.354 1332.168 Z M 406.079 1220.259 L 361.653 1143.311 L 366.457 1140.537 L 410.889 1217.495 C 409.276 1218.403 407.673 1219.324 406.079 1220.259 Z" style="fill: rgb(64, 40, 0); stroke: none;" bx:origin="0 0"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<rect x="429.367" y="425.979" width="20.003" height="21.735" style="display: inline; opacity: 1; fill: rgb(80, 150, 200); fill-opacity: 1; stroke: none; stroke-width: 34.9; stroke-miterlimit: 4; stroke-dasharray: none; stroke-dashoffset: 0; stroke-opacity: 0.996078;" id="path-91" transform="matrix(1, 0, 0, 0.999999, -301.377075, -219.498434)"/>
|
||||||
|
<rect x="446.853" y="25.462" width="25.99" height="25.99" style="display: inline; opacity: 1; fill: rgb(80, 150, 200); fill-opacity: 1; stroke: none; stroke-width: 34.9; stroke-miterlimit: 4; stroke-dasharray: none; stroke-dashoffset: 0; stroke-opacity: 0.996078;" id="path-93"/>
|
||||||
|
<rect x="-135.956" y="605.141" width="39.851" height="39.851" style="display: inline; opacity: 1; fill: rgb(80, 150, 200); fill-opacity: 1; stroke: none; stroke-width: 34.9; stroke-miterlimit: 4; stroke-dasharray: none; stroke-dashoffset: 0; stroke-opacity: 0.996078;" id="path-94" transform="matrix(0.999999, 0, 0, 1, 846.176756, -394.956024)"/>
|
||||||
|
<rect x="225.779" y="689.836" width="25.99" height="25.99" style="display: inline; opacity: 1; fill: rgb(80, 150, 200); fill-opacity: 1; stroke: none; stroke-width: 34.9; stroke-miterlimit: 4; stroke-dasharray: none; stroke-dashoffset: 0; stroke-opacity: 0.996078;" id="path-95"/>
|
||||||
|
<rect x="594.013" y="737.142" width="20.792" height="22.525" style="display: inline; opacity: 1; fill: rgb(80, 150, 200); fill-opacity: 1; stroke: none; stroke-width: 34.9; stroke-miterlimit: 4; stroke-dasharray: none; stroke-dashoffset: 0; stroke-opacity: 0.996078;" id="path-96"/>
|
||||||
|
<rect x="387.235" y="479.397" width="25.99" height="25.99" style="display: inline; opacity: 1; fill: rgb(80, 150, 200); fill-opacity: 1; stroke: none; stroke-width: 34.9; stroke-miterlimit: 4; stroke-dasharray: none; stroke-dashoffset: 0; stroke-opacity: 0.996078;" id="path-98" transform="matrix(1.000001, 0, 0, 0.999999, 365.274966, 79.295241)"/>
|
||||||
|
<rect x="421.962" y="775.937" width="32.92" height="34.653" style="display: inline; opacity: 1; fill: rgb(80, 150, 200); fill-opacity: 1; stroke: none; stroke-width: 34.9; stroke-miterlimit: 4; stroke-dasharray: none; stroke-dashoffset: 0; stroke-opacity: 0.996078;" id="path-99"/>
|
||||||
|
<rect x="-66.939" y="-568.978" width="20.867" height="20.792" style="display: inline; opacity: 1; fill: rgb(80, 150, 200); fill-opacity: 1; stroke: none; stroke-width: 34.9; stroke-miterlimit: 4; stroke-dasharray: none; stroke-dashoffset: 0; stroke-opacity: 0.996078;" id="path-101" transform="matrix(-1, 0, 0, 0.999997, 31.356928, 984.736306)"/>
|
||||||
|
</g>
|
||||||
|
<path d="M 154.526 230.66 C 148.801 230.66 144.279 232.568 140.962 236.383 C 137.648 240.195 135.992 245.417 135.992 252.046 C 135.992 258.863 137.591 264.13 140.785 267.849 C 143.981 271.567 148.536 273.426 154.453 273.426 C 158.086 273.426 162.232 272.773 166.892 271.468 L 166.892 276.778 C 163.279 278.133 158.825 278.808 153.528 278.808 C 145.853 278.808 139.929 276.482 135.761 271.827 C 131.59 267.167 129.502 260.55 129.502 251.972 C 129.502 246.604 130.507 241.899 132.519 237.862 C 134.526 233.823 137.424 230.71 141.21 228.524 C 145.002 226.339 149.463 225.247 154.593 225.247 C 160.06 225.247 164.835 226.243 168.924 228.238 L 166.356 233.439 C 162.411 231.586 158.469 230.66 154.526 230.66 Z M 193.468 278.808 C 187.692 278.808 183.136 277.051 179.799 273.535 C 176.462 270.021 174.794 265.137 174.794 258.889 C 174.794 252.592 176.342 247.588 179.44 243.883 C 182.542 240.176 186.707 238.323 191.933 238.323 C 196.829 238.323 200.701 239.934 203.552 243.154 C 206.403 246.374 207.828 250.621 207.828 255.895 L 207.828 259.636 L 180.925 259.636 C 181.043 264.224 182.2 267.704 184.398 270.081 C 186.596 272.458 189.69 273.646 193.679 273.646 C 197.885 273.646 202.044 272.763 206.155 271.006 L 206.155 276.279 C 204.063 277.183 202.084 277.832 200.219 278.225 C 198.357 278.615 196.108 278.808 193.468 278.808 M 191.861 243.275 C 188.726 243.275 186.227 244.296 184.362 246.341 C 182.497 248.383 181.397 251.212 181.065 254.826 L 201.489 254.826 C 201.489 251.096 200.657 248.238 198.991 246.256 C 197.327 244.268 194.952 243.275 191.861 243.275 Z M 242.758 267.44 C 242.758 271.078 241.402 273.882 238.695 275.852 C 235.986 277.824 232.184 278.808 227.289 278.808 C 222.11 278.808 218.072 277.99 215.173 276.352 L 215.173 270.866 C 217.05 271.815 219.063 272.563 221.213 273.11 C 223.362 273.653 225.434 273.924 227.43 273.924 C 230.519 273.924 232.895 273.431 234.558 272.447 C 236.221 271.462 237.052 269.959 237.052 267.939 C 237.052 266.419 236.392 265.118 235.076 264.035 C 233.757 262.956 231.185 261.68 227.362 260.209 C 223.725 258.853 221.141 257.673 219.607 256.662 C 218.074 255.652 216.935 254.506 216.189 253.219 C 215.437 251.938 215.064 250.407 215.064 248.621 C 215.064 245.437 216.36 242.927 218.951 241.085 C 221.537 239.245 225.089 238.323 229.607 238.323 C 233.812 238.323 237.923 239.179 241.937 240.892 L 239.832 245.701 C 235.915 244.084 232.362 243.275 229.175 243.275 C 226.373 243.275 224.258 243.715 222.831 244.594 C 221.407 245.475 220.697 246.688 220.697 248.232 C 220.697 249.277 220.963 250.168 221.499 250.902 C 222.035 251.639 222.895 252.342 224.085 253.006 C 225.267 253.672 227.548 254.636 230.926 255.895 C 235.558 257.583 238.685 259.278 240.313 260.986 C 241.942 262.699 242.758 264.849 242.758 267.44 Z M 257.991 278.097 L 252.074 278.097 L 252.074 239.036 L 257.991 239.036 L 257.991 278.097 M 251.574 228.451 C 251.574 227.097 251.907 226.106 252.572 225.477 C 253.237 224.844 254.067 224.528 255.065 224.528 C 256.019 224.528 256.841 224.851 257.529 225.495 C 258.218 226.135 258.563 227.121 258.563 228.451 C 258.563 229.781 258.218 230.773 257.529 231.426 C 256.841 232.079 256.019 232.405 255.065 232.405 C 254.067 232.405 253.237 232.079 252.572 231.426 C 251.907 230.773 251.574 229.781 251.574 228.451 Z M 275.933 239.036 L 275.933 264.375 C 275.933 267.558 276.658 269.935 278.109 271.504 C 279.558 273.073 281.828 273.858 284.918 273.858 C 289.004 273.858 291.991 272.741 293.881 270.507 C 295.769 268.273 296.712 264.625 296.712 259.564 L 296.712 239.036 L 302.63 239.036 L 302.63 278.097 L 297.745 278.097 L 296.893 272.861 L 296.57 272.861 C 295.359 274.782 293.679 276.254 291.529 277.277 C 289.38 278.298 286.926 278.808 284.169 278.808 C 279.417 278.808 275.858 277.682 273.493 275.428 C 271.13 273.169 269.947 269.556 269.947 264.588 L 269.947 239.036 L 275.933 239.036 Z M 364.573 278.097 L 364.573 252.685 C 364.573 249.573 363.909 247.241 362.578 245.682 C 361.248 244.126 359.18 243.347 356.374 243.347 C 352.692 243.347 349.971 244.406 348.211 246.522 C 346.455 248.636 345.577 251.891 345.577 256.286 L 345.577 278.097 L 339.66 278.097 L 339.66 252.685 C 339.66 249.573 338.993 247.241 337.664 245.682 C 336.335 244.126 334.255 243.347 331.429 243.347 C 327.722 243.347 325.008 244.458 323.284 246.681 C 321.56 248.903 320.7 252.546 320.7 257.606 L 320.7 278.097 L 314.781 278.097 L 314.781 239.036 L 319.593 239.036 L 320.554 244.382 L 320.84 244.382 C 321.958 242.479 323.535 240.997 325.566 239.93 C 327.598 238.86 329.872 238.323 332.391 238.323 C 338.497 238.323 342.49 240.533 344.367 244.954 L 344.647 244.954 C 345.815 242.909 347.501 241.294 349.707 240.106 C 351.918 238.918 354.438 238.323 357.269 238.323 C 361.684 238.323 364.991 239.46 367.189 241.731 C 369.387 243.997 370.485 247.625 370.485 252.618 L 370.485 278.097 L 364.573 278.097 Z" style="text-transform: none; fill: rgb(64, 40, 0); isolation: auto; opacity: 1;" bx:origin="0.5 0.5"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 22 KiB |
|
@ -0,0 +1,279 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="240mm"
|
||||||
|
height="240mm"
|
||||||
|
viewBox="0 0 850.3937 850.3937"
|
||||||
|
id="svg2"
|
||||||
|
version="1.1"
|
||||||
|
inkscape:version="0.92.2 (5c3e80d, 2017-08-06)"
|
||||||
|
sodipodi:docname="Duniter.svg"
|
||||||
|
inkscape:export-filename="C:\Users\Millicent\gitWorkspace\duntier-ecosytem\G1\logos\logiciels\Duniter.png"
|
||||||
|
inkscape:export-xdpi="27.093334"
|
||||||
|
inkscape:export-ydpi="27.093334">
|
||||||
|
<defs
|
||||||
|
id="defs4">
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient6689"
|
||||||
|
osb:paint="solid">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#40b2ff;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop6691" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient4372"
|
||||||
|
osb:paint="solid">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#dca900;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop4374" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient4140"
|
||||||
|
osb:paint="gradient">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop4142" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:0;"
|
||||||
|
offset="1"
|
||||||
|
id="stop4144" />
|
||||||
|
</linearGradient>
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="0.32"
|
||||||
|
inkscape:cx="456.92631"
|
||||||
|
inkscape:cy="504.11539"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="layer4"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:window-width="1080"
|
||||||
|
inkscape:window-height="1857"
|
||||||
|
inkscape:window-x="-8"
|
||||||
|
inkscape:window-y="-8"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
showguides="false">
|
||||||
|
<inkscape:grid
|
||||||
|
type="xygrid"
|
||||||
|
id="grid6210" />
|
||||||
|
</sodipodi:namedview>
|
||||||
|
<metadata
|
||||||
|
id="metadata7">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer2"
|
||||||
|
inkscape:label="Background"
|
||||||
|
style="display:inline"
|
||||||
|
transform="translate(0,-201.9685)" />
|
||||||
|
<g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer4"
|
||||||
|
inkscape:label="Dunes"
|
||||||
|
style="display:inline"
|
||||||
|
transform="translate(0,-201.9685)">
|
||||||
|
<path
|
||||||
|
style="display:inline;fill:#41b2ff;fill-opacity:0.99393939;stroke:none"
|
||||||
|
d="m 428.92383,238.48047 c -1.6407,0.001 -3.28434,0.0133 -4.92969,0.0352 C 213.3893,241.31748 44.923886,414.30104 47.697266,624.90625 50.470837,835.51145 223.43348,1004.0009 434.03906,1001.2559 644.64516,998.51129 813.15822,825.5713 810.44141,614.96484 l -0.004,-0.20703 C 807.62877,405.79922 637.29194,238.34765 428.92383,238.48047 Z"
|
||||||
|
id="rect4247"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
<path
|
||||||
|
style="display:inline;fill:#5096c8;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m 428.92383,238.48047 c -1.6407,0.001 -3.28434,0.0133 -4.92969,0.0352 -52.46973,0.69805 -102.32225,11.9617 -147.56445,31.73633 102.06833,17.60695 269.41958,73.73803 305.92383,252.72852 l 225.29296,143.55664 c 2.05882,-16.8816 3.02037,-34.09624 2.79493,-51.57227 l -0.004,-0.20703 C 807.62877,405.79922 637.29194,238.34765 428.92383,238.48047 Z"
|
||||||
|
id="path6598-1"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
<path
|
||||||
|
style="display:inline;fill:#ffd086;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="M 585.16992,524.91211 C 447.41745,738.84015 285.93093,797.68142 93.347656,801.03711 158.66452,921.84083 287.20038,1003.1698 434.03906,1001.2559 607.56851,998.99446 752.51317,881.18488 796.65234,721.9668 c -2.6864,-6.57764 -6.20106,-13.62037 -10.8164,-21.13477 C 768.68987,677.03878 709.10478,568.47721 585.16992,524.91211 Z"
|
||||||
|
id="path3338"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
<path
|
||||||
|
style="display:inline;fill:#270b0b;fill-opacity:0.99393939;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m 586.25391,524.11523 c -21.57163,126.33825 -108.2801,230.35644 -87.66993,311.48633 26.06387,102.59778 -79.12567,125.91326 -164.61132,153.74024 31.95064,8.20311 65.502,12.3646 100.0664,11.9141 200.01324,-2.60657 362.05355,-158.7197 375.52149,-354.81645 -16.36318,-4.66228 -32.1351,-11.75072 -42.83789,-23.69336 -32.6877,-36.47436 -116.60579,-76.182 -180.46875,-98.63086 z"
|
||||||
|
id="path3338-8"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
<path
|
||||||
|
style="display:inline;fill:#cd8a03;fill-opacity:0.99393939;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m 584.99609,531.33008 c -26.42158,62.17296 -14.83089,66.98582 -37.91601,116.64258 -14.17092,30.48206 -17.33296,46.71697 -38.17188,103.35156 L 768.68555,793.625 c 0.9031,-1.76161 1.79166,-3.53131 2.66797,-5.30859 0.11251,-0.2282 0.22386,-0.4571 0.33593,-0.68555 0.74115,-1.5108 1.47173,-3.02889 2.19336,-4.55078 0.15212,-0.32079 0.30383,-0.64161 0.45508,-0.96289 0.81083,-1.72247 1.61278,-3.44918 2.39844,-5.18555 0.81608,-1.80361 1.61563,-3.61525 2.40429,-5.43359 0.10093,-0.23267 0.20031,-0.46631 0.30079,-0.69922 0.70062,-1.62429 1.38978,-3.25484 2.06836,-4.89063 0.0851,-0.20516 0.17108,-0.40989 0.25585,-0.61523 0.75277,-1.82369 1.49557,-3.65256 2.22071,-5.49024 0.74585,-1.89017 1.47506,-3.78866 2.1914,-5.69335 0.0436,-0.11584 0.0874,-0.23177 0.13086,-0.34766 0.64073,-1.70872 1.26799,-3.42437 1.88477,-5.14453 0.099,-0.27607 0.19849,-0.55177 0.29687,-0.82813 1.34147,-3.76877 2.62647,-7.56487 3.85157,-11.38672 0.008,-0.0255 0.0172,-0.0507 0.0254,-0.0762 0.0156,-0.0486 0.0294,-0.0979 0.0449,-0.14648 0.5996,-1.87449 1.18462,-3.75378 1.75586,-5.64063 0.0327,-0.10803 0.065,-0.21614 0.0977,-0.32422 1.1856,-3.92878 2.31202,-7.88466 3.37305,-11.86523 0.007,-0.0247 0.0129,-0.0495 0.0195,-0.0742 0.0125,-0.0468 0.0247,-0.0938 0.0371,-0.14062 0.52168,-1.96173 1.02656,-3.92847 1.51758,-5.90235 0.004,-0.0176 0.009,-0.0351 0.0137,-0.0527 0.003,-0.0124 0.007,-0.0247 0.01,-0.0371 1.01021,-4.06523 1.95547,-8.15656 2.83398,-12.27149 C 737.8798,634.95587 692.83855,571.9745 584.99609,531.33008 Z"
|
||||||
|
id="path3338-8-0"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
<path
|
||||||
|
style="display:inline;fill:#402801;fill-opacity:0.99393939;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m 555.26038,628.99723 -10.44593,16.98129 c -2.50357,15.42044 -19.92944,49.42676 -41.29492,110.74414 -29.11835,83.56757 66.82865,38.28295 73.67969,41.38281 64.6125,29.23493 132.91974,31.41069 179.60937,16.95117 16.45351,-27.56961 29.52066,-57.37807 38.64063,-88.8457 -281.04013,-47.3816 23.76693,-25.38857 -240.18884,-97.21371 z"
|
||||||
|
id="path3338-8-0-6"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="ccssccc" />
|
||||||
|
<path
|
||||||
|
style="display:inline;fill:#fbbc38;fill-opacity:0.99393939;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m 504.68359,865.61328 c -22.81492,71.32292 -112.93496,103.95373 -173.36328,123.0293 32.7455,8.66079 67.19526,13.07632 102.71875,12.61332 97.62636,-1.27228 186.20324,-39.11993 252.87696,-100.33402 -50.96384,-3.16822 -102.74996,-5.35269 -182.23243,-35.3086 z"
|
||||||
|
id="path3338-8-0-2"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
<path
|
||||||
|
style="display:inline;fill:#fcc24d;fill-opacity:0.99393939;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m 497.01953,776.20508 c -0.24187,19.10857 -15.69269,67.67827 4.86524,95.17578 13.90919,18.6044 105.68907,21.5062 170.4414,42.27734 37.49477,-31.08628 68.92344,-69.20103 92.28125,-112.29297 -88.15778,0.4392 -173.3807,10.34531 -267.58789,-25.16015 z"
|
||||||
|
id="path3338-8-0-2-8"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer8"
|
||||||
|
inkscape:label="Shadow"
|
||||||
|
style="display:inline"
|
||||||
|
sodipodi:insensitive="true"
|
||||||
|
transform="translate(0,-201.9685)" />
|
||||||
|
<g
|
||||||
|
inkscape:label="Vent"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
style="display:inline"
|
||||||
|
transform="translate(0,-201.9685)">
|
||||||
|
<ellipse
|
||||||
|
style="fill:none;fill-opacity:0.99393939"
|
||||||
|
id="path4179"
|
||||||
|
cx="429.84796"
|
||||||
|
cy="645.42908"
|
||||||
|
rx="392.85715"
|
||||||
|
ry="400" />
|
||||||
|
<rect
|
||||||
|
style="display:inline;opacity:1;fill:#fabb37;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843"
|
||||||
|
id="rect6810-6-9-2"
|
||||||
|
width="23.492319"
|
||||||
|
height="25.527225"
|
||||||
|
x="504.26501"
|
||||||
|
y="500.28717" />
|
||||||
|
<rect
|
||||||
|
style="display:inline;opacity:1;fill:#ffd086;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843"
|
||||||
|
id="rect6810-6-9-2-9"
|
||||||
|
width="22.383955"
|
||||||
|
height="24.418852"
|
||||||
|
x="369.1745"
|
||||||
|
y="415.42877" />
|
||||||
|
<rect
|
||||||
|
style="display:inline;opacity:1;fill:#fabb37;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843"
|
||||||
|
id="rect6810-6-9-2-1"
|
||||||
|
width="30.523569"
|
||||||
|
height="30.523565"
|
||||||
|
x="418.995"
|
||||||
|
y="433.01941" />
|
||||||
|
<rect
|
||||||
|
style="display:inline;opacity:1;fill:#fbc14c;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843"
|
||||||
|
id="rect6810-6-1"
|
||||||
|
width="46.802811"
|
||||||
|
height="46.802807"
|
||||||
|
x="417.33978"
|
||||||
|
y="652.55573" />
|
||||||
|
<rect
|
||||||
|
style="display:inline;opacity:1;fill:#fabb37;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843"
|
||||||
|
id="rect6810-6-9-2-1-7"
|
||||||
|
width="30.523569"
|
||||||
|
height="30.523565"
|
||||||
|
x="422.58551"
|
||||||
|
y="475.89081" />
|
||||||
|
<rect
|
||||||
|
style="display:inline;opacity:1;fill:#cc8902;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843"
|
||||||
|
id="rect6810-0-3-5-5"
|
||||||
|
width="24.418858"
|
||||||
|
height="26.453758"
|
||||||
|
x="472.61835"
|
||||||
|
y="605.45685" />
|
||||||
|
<rect
|
||||||
|
style="display:inline;opacity:1;fill:#fabb37;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843"
|
||||||
|
id="rect6810-6-9-2-1-0-7-8"
|
||||||
|
width="18.314144"
|
||||||
|
height="18.314142"
|
||||||
|
x="520.77234"
|
||||||
|
y="557.90222" />
|
||||||
|
<rect
|
||||||
|
style="display:inline;opacity:1;fill:#fabb37;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843"
|
||||||
|
id="rect6810-6-9-2-1-2-9"
|
||||||
|
width="30.523569"
|
||||||
|
height="30.523565"
|
||||||
|
x="454.78387"
|
||||||
|
y="563.02789" />
|
||||||
|
<rect
|
||||||
|
style="display:inline;opacity:1;fill:#fbc14c;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843"
|
||||||
|
id="rect6810-6-1-6-5"
|
||||||
|
width="38.663193"
|
||||||
|
height="40.69809"
|
||||||
|
x="335.34222"
|
||||||
|
y="720.98743" />
|
||||||
|
<rect
|
||||||
|
style="display:inline;opacity:1;fill:#fbc14c;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843"
|
||||||
|
id="rect6810-6-1-6-3-2"
|
||||||
|
width="26.453766"
|
||||||
|
height="30.523569"
|
||||||
|
x="371.97028"
|
||||||
|
y="661.9754" />
|
||||||
|
<rect
|
||||||
|
style="display:inline;opacity:1;fill:#cc8902;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843"
|
||||||
|
id="rect6810-0-3-5-4-3-3"
|
||||||
|
width="24.506996"
|
||||||
|
height="24.418852"
|
||||||
|
x="-427.93024"
|
||||||
|
y="610.08527"
|
||||||
|
transform="scale(-1,1)" />
|
||||||
|
<rect
|
||||||
|
style="display:inline;opacity:1;fill:#ffd086;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843"
|
||||||
|
id="rect6810-6-9-2-9-2-7-8-8-5"
|
||||||
|
width="20.349047"
|
||||||
|
height="22.383947"
|
||||||
|
x="480.41095"
|
||||||
|
y="523.46906" />
|
||||||
|
<rect
|
||||||
|
style="display:inline;opacity:1;fill:#cc8902;fill-opacity:1;stroke:none;stroke-width:34.90000153;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99607843"
|
||||||
|
id="rect6810-0-3-5-4-3-3-9"
|
||||||
|
width="24.506996"
|
||||||
|
height="24.418852"
|
||||||
|
x="-499.49951"
|
||||||
|
y="466.31366"
|
||||||
|
transform="scale(-1,1)" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer5"
|
||||||
|
inkscape:label="Flux"
|
||||||
|
sodipodi:insensitive="true"
|
||||||
|
transform="translate(0,-201.9685)" />
|
||||||
|
<g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer3"
|
||||||
|
inkscape:label="Contour"
|
||||||
|
style="display:inline"
|
||||||
|
transform="translate(0,-201.9685)">
|
||||||
|
<path
|
||||||
|
style="opacity:1;fill:none;fill-opacity:0.99393939;stroke:#ffffff;stroke-width:42.09999847;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||||
|
id="path6212"
|
||||||
|
ry="440"
|
||||||
|
rx="300"
|
||||||
|
cy="492.36221"
|
||||||
|
cx="340"
|
||||||
|
d=""
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 138 KiB |
|
@ -0,0 +1,101 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<defs>
|
||||||
|
<linearGradient id="gradient-3" gradientUnits="userSpaceOnUse" x1="250" y1="0" x2="250" y2="500" spreadMethod="pad">
|
||||||
|
<stop offset="0" style="stop-color: rgb(247, 191, 44);"/>
|
||||||
|
<stop offset="1" style="stop-color: rgb(205, 94, 41);"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="gradient-1" gradientUnits="userSpaceOnUse" x1="250" y1="20" x2="250" y2="480" gradientTransform="matrix(1.0031068618357177, 0, 0, 1.0031068774714225, -0.7766979417722695, -1.4913391080554845)">
|
||||||
|
<stop style="stop-color: rgb(255, 253, 90);" offset="0"/>
|
||||||
|
<stop style="stop-color: rgb(227, 140, 43);" offset="1"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="gradient-4" gradientUnits="userSpaceOnUse" x1="253.44439697265625" y1="238.4842529296875" x2="253.44439697265625" y2="480">
|
||||||
|
<stop style="stop-color: rgb(247, 192, 40);" offset="0"/>
|
||||||
|
<stop style="stop-color: rgb(227, 140, 43);" offset="1"/>
|
||||||
|
</linearGradient>
|
||||||
|
<radialGradient id="gradient-6" gradientUnits="userSpaceOnUse" cx="255.1620635986328" cy="260.2457580566406" r="170" gradientTransform="matrix(1.162644, 0, 0, 1.162643, -41.657313, -42.562499)">
|
||||||
|
<stop style="stop-color: rgb(248, 237, 51);" offset="0"/>
|
||||||
|
<stop offset="0.6244" style="stop-color: rgb(248, 237, 51);"/>
|
||||||
|
<stop offset="0.7638" style="stop-color: rgb(239, 213, 43);"/>
|
||||||
|
<stop offset="0.8931" style="stop-color: rgb(218, 157, 24);"/>
|
||||||
|
<stop style="stop-color: rgb(191, 80, 0);" offset="1"/>
|
||||||
|
</radialGradient>
|
||||||
|
<linearGradient id="gradient-7" gradientUnits="userSpaceOnUse" x1="-277.8105010986328" y1="561.8806762695312" x2="-277.8105010986328" y2="796.8161010742188" gradientTransform="matrix(0.6693761492701567, -0.07372995093502983, 0.07372975608843645, 0.6693762466934533, 391.9234250134925, 247.7612281045386)">
|
||||||
|
<stop style="stop-color: rgb(255, 190, 0);" offset="0"/>
|
||||||
|
<stop style="stop-color: rgb(214, 120, 32);" offset="1"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="gradient-7-2" gradientUnits="userSpaceOnUse" x1="-277.8105010986328" y1="561.8806762695312" x2="-277.8105010986328" y2="796.8161010742188" gradientTransform="matrix(0.3598424288589108, 0.0014199120748252486, -0.0008651188746076439, 0.21927866751948855, -159.19165838772352, 375.4938512765719)">
|
||||||
|
<stop style="stop-color: rgb(255, 190, 0);" offset="0"/>
|
||||||
|
<stop style="stop-color: rgb(214, 120, 32);" offset="1"/>
|
||||||
|
</linearGradient>
|
||||||
|
<radialGradient id="gradient-12" gradientUnits="userSpaceOnUse" cx="-314.4753112792969" cy="611.8270263671875" r="126.30323791503906" gradientTransform="matrix(1.1160329276951277, 0, 0, 1.1160334249562183, 24.30159432705809, -88.79756113141326)">
|
||||||
|
<stop style="stop-color: rgb(255, 237, 49);" offset="0"/>
|
||||||
|
<stop style="stop-color: rgb(255, 237, 49); stop-opacity: 0;" offset="1"/>
|
||||||
|
</radialGradient>
|
||||||
|
<radialGradient id="gradient-16" gradientUnits="userSpaceOnUse" cx="634" cy="196" r="93" gradientTransform="matrix(3.5442367061491935, 3.2814600134408605e-7, -0.0000013125840053763442, 3.6047992501207577, -1109.6003798618112, -416.64352220104587)">
|
||||||
|
<stop style="stop-color: rgb(255, 255, 255);" offset="0"/>
|
||||||
|
<stop style="stop-color: rgb(255, 255, 255); stop-opacity: 0;" offset="1"/>
|
||||||
|
</radialGradient>
|
||||||
|
<radialGradient id="gradient-17" gradientUnits="userSpaceOnUse" cx="634" cy="196" r="93" gradientTransform="matrix(0.7126241704469086, 3.2814600134408605e-7, 0.0000013125840053763442, 0.7248008481917843, 685.6403546076949, 147.83616457703292)">
|
||||||
|
<stop style="stop-color: rgb(255, 255, 255);" offset="0"/>
|
||||||
|
<stop style="stop-color: rgb(255, 255, 255); stop-opacity: 0;" offset="1"/>
|
||||||
|
</radialGradient>
|
||||||
|
<radialGradient id="gradient-20" gradientUnits="userSpaceOnUse" cx="-283.0146484375" cy="510.7113952636719" r="55.76831817626953" gradientTransform="matrix(0.6625576282626338, -0.5531133047923916, 1.2298754256288325, 1.4732364008060554, -723.6123845453899, -398.2264071794646)">
|
||||||
|
<stop style="stop-color: rgb(255, 237, 49);" offset="0"/>
|
||||||
|
<stop style="stop-color: rgb(255, 237, 49); stop-opacity: 0;" offset="1"/>
|
||||||
|
</radialGradient>
|
||||||
|
<linearGradient id="gradient-21" gradientUnits="userSpaceOnUse" x1="-272.5911560058594" y1="544.911376953125" x2="-272.5911560058594" y2="807.1071166992188">
|
||||||
|
<stop style="stop-color: rgb(246, 189, 44);" offset="0"/>
|
||||||
|
<stop style="stop-color: rgb(191, 144, 26);" offset="1"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="gradient-22" gradientUnits="userSpaceOnUse" x1="-254.775146484375" y1="499.4190673828125" x2="-254.775146484375" y2="577.36083984375">
|
||||||
|
<stop style="stop-color: rgb(246, 189, 44);" offset="0"/>
|
||||||
|
<stop style="stop-color: rgb(191, 144, 26);" offset="1"/>
|
||||||
|
</linearGradient>
|
||||||
|
<style id="bx-google-fonts">@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic,700,700italic,800,800italic);</style>
|
||||||
|
</defs>
|
||||||
|
<ellipse cx="250" cy="250" rx="250" ry="250" style="fill: url(#gradient-3);"/>
|
||||||
|
<ellipse cx="250" cy="250" rx="230" ry="230" style="fill: url(#gradient-1);"/>
|
||||||
|
<path style="fill: url(#gradient-4);" d="M50.81416,365c41.08554,71.16226 117.01476,115 199.18584,115c138.41109,0 236.24639,-117.13225 230.06604,-241.51574c-80.0411,33.05709 -176.08731,52.67754 -282.62671,52.67754c-61.19342,0 -120.87589,-6.87343 -176.79694,-19.77869c2.96218,31.51932 12.67787,63.31656 30.17177,93.61688z"/>
|
||||||
|
<ellipse cx="250" cy="250" rx="170" ry="170" style="fill: url(#gradient-6); fill-opacity: 1;"/>
|
||||||
|
<g id="one" style="display:none;">
|
||||||
|
<path d="M 268.376 322.769 L 248.596 322.769 L 240.466 282.888 C 240.466 278.255 248.696 275.726 248.896 271.879 C 247.676 273.352 246.163 274.896 244.356 276.509 L 236.166 283.269 L 226.056 270.839 L 219.38 234.602 L 264.08 215.156 L 268.376 250.669 L 268.376 322.769 Z" transform="matrix(1, 0, 0, 1, 0, 0)" style="fill: rgb(240, 208, 45); white-space: pre;"/>
|
||||||
|
<text x="217.916" y="287.769" style="fill: rgb(191, 80, 0); font-family: "Open Sans"; font-size: 101px; font-weight: 800; white-space: pre;">1</text>
|
||||||
|
<text x="212.916" y="283.769" style="fill: rgb(252, 185, 2); font-family: "Open Sans"; font-size: 101px; font-weight: 800; white-space: pre;">1</text>
|
||||||
|
<path d="M 216.982 231.935 L 219.359 235.048 L 242.606 212.924 L 255.433 211.771 L 241.865 211.824 L 216.982 231.935 Z" style="fill: rgb(255, 255, 255);"/>
|
||||||
|
</g>
|
||||||
|
<g id="glibre">
|
||||||
|
<g id="macron" transform="matrix(0.8414844870567323, 0, 0, 0.8414844870567323, 466.02239990234375, -317.1852722167969)">
|
||||||
|
<path class="shadow" d="M -198.07891845703125 530.1440734863281 L -194.27288818359375 545.8901977539062 C -206.13536071777344 561.0767822265625 -219.18111437391306 568.8372878356159 -241.03024291992188 570.7368774414062 C -263.55621337890625 572.6953125 -290.6890869140625 569.7662963867188 -306.7577819824219 547.8799438476562 C -310.1243896484375 530.2078857421875 -311.372802734375 522.7608032226562 -311.372802734375 522.7608032226562 C -311.372802734375 522.7608032226562 -266.69651794433594 527.0515747070312 -252.45257568359375 525.4826049804688 C -240.829833984375 524.202392578125 -204.33926391601562 538.2872009277344 -198.07891845703125 530.1440734863281 Z " style="fill: url(#gradient-22); fill-opacity: 0.49;" transform="matrix(1.0000000000000002, 0, 0, 1.0000000000000002, 0, -23.76752082315636)"/>
|
||||||
|
<path class="depth" d="M -202.59629821777344 516.2670593261719 L -200.2147674560547 522.2083129882812 C -211.14907836914062 536.2066650390625 -227.52011108398438 546.26318359375 -247.61410522460938 548.4764404296875 C -272.4909973144531 551.216552734375 -296.9399719238281 540.476806640625 -311.75140380859375 520.3029174804688 C -313.5248107910156 515.834716796875 -314.11236572265625 514.4194641113281 -314.11236572265625 514.4194641113281 C -314.11236572265625 514.4194641113281 -264.3653564453125 517.041259765625 -251.2359161376953 515.5950927734375 C -240.5225830078125 514.4150390625 -208.3668212890625 523.7730407714844 -202.59629821777344 516.2670593261719 Z " style="fill: rgb(191, 80, 0);" transform="matrix(1, 0, 0, 1, 2.376751661300659, -15.448883620706795)"/>
|
||||||
|
<path class="main" d="M -226.04393005371094 501.504638671875 L -200.2147674560547 522.2083129882812 C -211.14907836914062 536.2066650390625 -227.52011108398438 546.26318359375 -247.61410522460938 548.4764404296875 C -272.4909973144531 551.216552734375 -296.9399719238281 540.476806640625 -311.75140380859375 520.3029174804688 C -297.8028564453125 509.72064208984375 -300.5026550292969 512.0447998046875 -285.0860595703125 500.7257080078125 C -277.26898193359375 511.3730773925781 -264.3653564453125 517.041259765625 -251.2359161376953 515.5950927734375 C -240.5225830078125 514.4150390625 -231.814453125 509.0106201171875 -226.04393005371094 501.504638671875 Z " style="fill: url(#gradient-7-2);" transform="matrix(1, 0, 0, 1, 8.722895472601522e-8, -21.39076670786494)"/>
|
||||||
|
<path class="gold-layer" d="M -226.04393005371094 501.504638671875 L -200.2147674560547 522.2083129882812 C -211.14907836914062 536.2066650390625 -227.52011108398438 546.26318359375 -247.61410522460938 548.4764404296875 C -272.4909973144531 551.216552734375 -291.1310119628906 536.9268798828125 -305.94244384765625 516.7529907226562 C -291.993896484375 506.17071533203125 -300.5026550292969 512.0447998046875 -285.0860595703125 500.7257080078125 C -277.26898193359375 511.3730773925781 -264.3653564453125 517.041259765625 -251.2359161376953 515.5950927734375 C -240.5225830078125 514.4150390625 -231.814453125 509.0106201171875 -226.04393005371094 501.504638671875 Z " style="fill: url(#gradient-20);" transform="matrix(1, 0, 0, 1, 0, -21.390768667594557)"/>
|
||||||
|
<path class="edge" d="M -284.8472900390625 479.96441650390625 C -264.3670959472656 499.9115295410156 -240.0164031982422 494.5815734863281 -226.055419921875 480.1766357421875 C -225.64569091796875 480.5018005371094 -223.4227752685547 482.1520080566406 -222.86207580566406 482.65350341796875 C -241.43698120117188 497.3275451660156 -267.3111572265625 502.5315856933594 -284.8472900390625 479.96441650390625 Z " style="stroke: none; fill: rgb(255, 255, 255);"/>
|
||||||
|
</g>
|
||||||
|
<g id="G" transform="matrix(0.8414844870567323, 0, 0, 0.8414844870567323, 466.02239990234375, -317.1852722167969)">
|
||||||
|
<path class="G shadow" d="M -231.25119018554688 697.4671630859375 L -145.43577575683594 654.5354614257812 L -139.4804229736328 698.4963989257812 L -139.4804229736328 792.3257446289062 L -163.85057067871094 767.95556640625 C -187.0584716796875 791.7545166015625 -219.57203674316406 807.1071166992188 -257.4039001464844 807.1071166992188 C -304.2406921386719 807.1071166992188 -347.5196533203125 782.119873046875 -370.9380187988281 741.55810546875 C -385.0118408203125 717.1815185546875 -393.85595703125 672.889892578125 -397.2654724121094 646.9841918945312 C -405.70189815867235 582.8837272194789 -330.17547607421875 544.911376953125 -257.4039001464844 544.911376953125 C -236.36082458496094 544.911376953125 -151.81651306152344 565.3455200195312 -151.81651306152344 565.3455200195312 C -151.81651306152344 565.3455200195312 -147.85987854003906 584.044921875 -145.71006774902344 609.4464111328125 L -199.70428466796875 638.954345703125 C -212.39840698242188 619.2657470703125 -233.82334899902344 606.8186645507812 -257.4039001464844 606.8186645507812 C -310.6667785644531 606.8186645507812 -343.9560546875 664.4774169921875 -317.32452392578125 710.6044311523438 C -304.9649353027344 732.0121459960938 -282.123291015625 745.1998291015625 -257.4039001464844 745.1998291015625 C -237.23342895507812 745.1998291015625 -217.86883544921875 735.0439453125 -205.59674072265625 722.263916015625 L -231.25119018554688 697.4671630859375 Z " style="fill: url(#gradient-21); fill-opacity: 0.5;" transform="matrix(1.0000000000000002, 0, 0, 1.0000000000000002, 13.072136489359082, 46.346656799316406)"/>
|
||||||
|
<path class="G depth" d="M -231.25119018554688 697.4671630859375 L -145.3538055419922 691.9776611328125 L -139.4804229736328 698.4963989257812 L -139.4804229736328 792.3257446289062 L -163.85057067871094 767.95556640625 C -187.0584716796875 791.7545166015625 -219.57203674316406 807.1071166992188 -257.4039001464844 807.1071166992188 C -304.2406921386719 807.1071166992188 -347.5196533203125 782.119873046875 -370.9380187988281 741.55810546875 C -421.3976135253906 654.1594848632812 -358.32318115234375 544.911376953125 -257.4039001464844 544.911376953125 C -211.04515075683594 544.911376953125 -169.28904724121094 569.6143188476562 -145.71006774902344 609.4464111328125 L -199.70428466796875 638.954345703125 C -212.39840698242188 619.2657470703125 -233.82334899902344 606.8186645507812 -257.4039001464844 606.8186645507812 C -310.6667785644531 606.8186645507812 -343.9560546875 664.4774169921875 -317.32452392578125 710.6044311523438 C -304.9649353027344 732.0121459960938 -282.123291015625 745.1998291015625 -257.4039001464844 745.1998291015625 C -237.23342895507812 745.1998291015625 -217.86883544921875 735.0439453125 -205.59674072265625 722.263916015625 L -231.25119018554688 697.4671630859375 Z " style="fill: rgb(191, 80, 0);" transform="matrix(1, 0, 0, 1, 7.130256088765918, 2.3767521381377605)"/>
|
||||||
|
<path class="G main" d="M -238.61480712890625 691.8650512695312 L -144.78549194335938 691.8650512695312 L -144.78549194335938 785.6943969726562 L -169.1556396484375 761.32421875 C -192.36354064941406 785.1231689453125 -224.87710571289062 800.4757690429688 -262.7089538574219 800.4757690429688 C -309.5457763671875 800.4757690429688 -352.8247375488281 775.488525390625 -376.24310302734375 734.9267578125 C -426.70269775390625 647.5281372070312 -363.62823486328125 538.2800903320312 -262.7089538574219 538.2800903320312 C -216.3502197265625 538.2800903320312 -173.47718811035156 562.7596435546875 -149.898193359375 602.5917358398438 L -204.5625762939453 631.876220703125 C -217.25669860839844 612.1876220703125 -239.12841796875 600.1873168945312 -262.7089538574219 600.1873168945312 C -315.9718322753906 600.1873168945312 -349.2611083984375 657.8460693359375 -322.6296081542969 703.9730834960938 C -310.2699890136719 725.3807983398438 -287.4283752441406 738.5684814453125 -262.7089538574219 738.5684814453125 C -242.5384979248047 738.5684814453125 -225.2324676513672 730.2996215820312 -212.9603729248047 717.5194702148438 Z " style="fill: url(#gradient-7);" transform="matrix(1, 0, 0, 1, 7.130256088765918, 2.3767521381377605)"/>
|
||||||
|
<path class="G gold-layer" d="M -332.6200256347656 704.9721069335938 C -320.1494445800781 726.3154907226562 -343.8333435058594 770.9927978515625 -367.251708984375 730.4309692382812 C -417.7113342285156 643.0324096679688 -362.6292419433594 545.2733154296875 -261.7099304199219 545.2733154296875 C -215.35118103027344 545.2733154296875 -184.96620178222656 561.2610473632812 -161.38720703125 601.0931396484375 L -201.56544494628906 620.88671875 C -214.25958251953125 601.1981201171875 -237.62985229492188 589.1978149414062 -261.21038818359375 589.1978149414062 C -314.4732666015625 589.1978149414062 -367.7434997558594 644.8583984375 -332.6200256347656 704.9721069335938 Z " style="fill: url(#gradient-12); fill-opacity: 1;" transform="matrix(1, 0, 0, 1, 7.130256088765918, 2.3767521381377605)"/>
|
||||||
|
</g>
|
||||||
|
<path id="top" class="edge" d="M 340.3642578125 189.5413055419922 C 338.8526916503906 190.52828979492188 338.171142578125 190.82472229003906 336.48046875 191.69076538085938 C 297.0732421875 108.70779418945312 149.38165283203125 118.53990173339844 135.58648681640625 233.50904846191406 C 140.25990295410156 118.14505004882812 300.6151123046875 99.62284088134766 340.3642578125 189.5413055419922 Z " style="stroke: none; fill: rgb(255, 255, 255); fill-opacity: 1;" transform="matrix(1, 0, 0, 1, 6, 2)"/>
|
||||||
|
<path id="arrow" class="edge" d="M 270.3914489746094 270.0611267089844 L 264.65032958984375 264.2931823730469 L 343.7581481933594 265.0668640136719 L 270.3914489746094 270.0611267089844 Z " style="stroke: none; fill: rgb(255, 255, 255);" transform="matrix(1, 0, 0, 1, 6, 2)"/>
|
||||||
|
<path id="bottom" class="edge" d="M 189.16268920898438 262.59613037109375 C 206.84222412109375 314.4861145019531 264.1899108886719 311.5865783691406 286.28814697265625 286.1527404785156 C 288.9132080078125 289.1226501464844 288.5735168457031 288.65289306640625 291.1745910644531 291.6870422363281 C 271.1377868652344 310.193603515625 203.0752716064453 328.5178527832031 189.16268920898438 262.59613037109375 Z " style="stroke: none; fill: rgb(255, 255, 255); fill-opacity: 0.75;" transform="matrix(1, 0, 0, 1, 6, 2)"/>
|
||||||
|
</g>
|
||||||
|
<path d="M 184.6630096435547 27.768146514892578 C 382.512451171875 -31.577388763427734 462.816650390625 160.8459930419922 462.816650390625 160.8459930419922 C 462.816650390625 160.8459930419922 375.45941162109375 -23.111543655395508 187.429443359375 33.29086875915527 C -23.948290508906098 96.69679810605152 28.414447784423828 313.230224609375 28.414447784423828 313.230224609375 C 28.414447784423828 313.230224609375 -30.59557907082288 92.33560787253288 184.6630096435547 27.768146514892578 Z " style="stroke: none; fill: rgb(255, 255, 255);"/>
|
||||||
|
<path d="M 285.8101806640625 418.1629333496094 C 127.41355759580858 451.46022910637436 86.582763671875 294.8815612792969 86.582763671875 294.8815612792969 C 86.582763671875 294.8815612792969 134.5081024169922 444.0893859863281 284.4516906738281 413.31134033203125 C 444.57799385425426 380.4431481870013 416.16082763671875 213.57582092285156 416.16082763671875 213.57582092285156 C 416.16082763671875 213.57582092285156 452.7923889160156 383.0608215332031 285.8101806640625 418.1629333496094 Z " style="stroke: none; fill: rgb(255, 255, 255);"/>
|
||||||
|
<path id="gloss" style="fill: rgb(255, 255, 255); fill-opacity: 0.2; display:xnone;" d="M19.85961,240.78898c30.71856,3.27125 62.15094,4.96005 93.98754,4.96005c138.47569,0 259.43025,-30.08808 351.04012,-78.08185c-4.28914,-11.02418 -9.50778,-21.9395 -15.70141,-32.66718c-41.08554,-71.16225 -117.01477,-115 -199.18585,-115c-130.69083,0 -225.20607,104.42992 -230.14039,220.78898z"/>
|
||||||
|
<g id="flare" style="display:xnone" transform="matrix(0.22259251773357394, 0.07340797036886217, -0.07340797036886217, 0.22259251773357394, 1.9083288138294847, -11.57778500603024)">
|
||||||
|
<ellipse cx="1134.45861816" cy="300.57922363" rx="439.82751465" ry="11.9576416" style="fill: rgb(255, 255, 255); fill-opacity: 0.75;"/>
|
||||||
|
<ellipse transform="matrix(0, 1, -1, 0, 2157.96625, -1435.69171)" cx="1736.27111816" cy="1023.50762939" rx="439.82751465" ry="8.55297852" style="fill: rgb(255, 255, 255); fill-opacity: 0.75;"/>
|
||||||
|
<ellipse transform="matrix(0.70312, 0.71107, -0.71106, 0.70313, 1342.25601, -573.00401)" cx="475.06231689" cy="761.9977417" rx="120.34143066" ry="6.36773682" style="fill: rgb(255, 255, 255); stroke-width: 2.09442; fill-opacity: 0.75;"/>
|
||||||
|
<ellipse transform="matrix(-0.71107, 0.70312, -0.7031, -0.71108, 1884.5915, 383.55909)" cx="475.06231689" cy="586.44549561" rx="120.34143066" ry="4.9006958" style="fill: rgb(255, 255, 255); stroke-width: 2.09442; fill-opacity: 0.75;"/>
|
||||||
|
<ellipse cx="1137.44372559" cy="289.89743042" rx="329.61401367" ry="306.40793991" style="fill: url(#gradient-16); fill-opacity: 0.75;"/>
|
||||||
|
<ellipse cx="1137.4440918" cy="289.89743042" rx="66.27416992" ry="61.60816956" style="fill: url(#gradient-17); fill-opacity: 0.75;"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(1, 0, 0, 1, 197.240524, 177.326828)">
|
||||||
|
<ellipse cx="54.938" cy="250.524" rx="16.947" ry="15.396" transform="matrix(1, 0, 0, 0.999999, 0, 24.861622)" style="fill: rgb(255, 255, 255);"/>
|
||||||
|
<ellipse cx="52.808" cy="243.195" rx="16.947" ry="15.396" transform="matrix(1, 0, 0, 1.000001, 0, 24.860675)" style="fill: rgb(191, 80, 0);"/>
|
||||||
|
<ellipse cx="53.952" cy="272.244" rx="16.947" ry="15.396" style="fill: rgb(241, 175, 41);"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 8.1 KiB |
|
@ -0,0 +1,3 @@
|
||||||
|
# Dossier qrcodes
|
||||||
|
Permet de stocker les qrcodes générés
|
||||||
|
Doit être accessible en écriture pour l'utilisateur faisant tourner le serveur web (www-data généralement).
|
|
@ -0,0 +1,45 @@
|
||||||
|
$(document).ready(function(){
|
||||||
|
var selector = $('.count');
|
||||||
|
var replay = 'replay'
|
||||||
|
|
||||||
|
function isScrolledIntoView(el) {
|
||||||
|
var docViewTop = $(window).scrollTop();
|
||||||
|
var docViewBottom = docViewTop + $(window).height();
|
||||||
|
var elTop = el.offset().top;
|
||||||
|
var elBottom = elTop + el.height();
|
||||||
|
return ((elBottom <= docViewBottom) && (elTop >= docViewTop));
|
||||||
|
}
|
||||||
|
|
||||||
|
function animate_numbers(element) {
|
||||||
|
if (isScrolledIntoView(element)) {
|
||||||
|
element.addClass('started').css('visibility','visible')
|
||||||
|
var startnum = element.text();
|
||||||
|
if(element.text() % 1 === 0 && $.isNumeric(element.text())) {
|
||||||
|
var step = function () { element.text(Math.ceil(this.Counter)); }
|
||||||
|
} else if(element.text() % 1 !== 0 && $.isNumeric(element.text())) {
|
||||||
|
var step = function () { element.text(this.Counter.toFixed(2)); }
|
||||||
|
}
|
||||||
|
jQuery({ Counter: 0 }).animate({ Counter: element.text() }, {
|
||||||
|
duration : 2000,
|
||||||
|
complete: function() { element.text($.trim(startnum)).addClass('finished').removeClass('started'); },
|
||||||
|
step: step
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
selector.each(function () {
|
||||||
|
$(this).css('visibility','hidden');
|
||||||
|
animate_numbers($(this));
|
||||||
|
});
|
||||||
|
|
||||||
|
$(document).on("scroll", function () {
|
||||||
|
selector.not('.finished, .started').each(function () {
|
||||||
|
animate_numbers($(this));
|
||||||
|
});
|
||||||
|
selector.each(function () {
|
||||||
|
if(!isScrolledIntoView($(this)) && $(this).hasClass(replay)) {
|
||||||
|
$(this).removeClass('finished');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
|
@ -0,0 +1,217 @@
|
||||||
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
/*[ Smooth Scroll ]
|
||||||
|
===========================================================*/
|
||||||
|
$('#smooth-scroll').on('click', function() {
|
||||||
|
var page = $(this).attr('href');
|
||||||
|
$('html, body').animate( { scrollTop: $(page).offset().top }, 750 );
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
|
/*[ Back to top ]
|
||||||
|
===========================================================*/
|
||||||
|
var windowH = $(window).height()*1.2;
|
||||||
|
|
||||||
|
$(window).on('scroll',function(){
|
||||||
|
if ($(this).scrollTop() > windowH) {
|
||||||
|
$("#back-to-top").css('display','flex');
|
||||||
|
} else {
|
||||||
|
$("#back-to-top").css('display','none');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#back-to-top').on("click", function(){
|
||||||
|
$('html, body').animate({scrollTop: $('#content').offset().top}, 300);
|
||||||
|
});
|
||||||
|
|
||||||
|
/*[ onLoad/onChange : Update IHM & params ]
|
||||||
|
===========================================================*/
|
||||||
|
var type = 'iframe';
|
||||||
|
function resetForm(){
|
||||||
|
type= 'iframe';
|
||||||
|
url = base_url+'iframe.php';
|
||||||
|
$('#type option[value="iframe"]').prop('selected', true);
|
||||||
|
$('#pubkey').val('');
|
||||||
|
$('#target').val('');
|
||||||
|
$('#title').val('');
|
||||||
|
$('#unit option[value="quantitative"]').prop('selected', true);
|
||||||
|
$('#lang option[value="fr"]').prop('selected', true);
|
||||||
|
$('#node').val('');
|
||||||
|
$('#period option[value="current-monh"]').prop('selected', true);
|
||||||
|
$('#start_date').val('');
|
||||||
|
$('#end_date').val('');
|
||||||
|
$('#p-start_date').addClass("w3-hide");
|
||||||
|
$('#p-end_date').addClass("w3-hide");
|
||||||
|
$('#display_pubkey').prop( "checked", false );
|
||||||
|
$('#display_qrcode').prop( "checked", false );
|
||||||
|
$('#display_button').prop( "checked", false );
|
||||||
|
$('#display_graph').prop( "checked", false );
|
||||||
|
$('#logo option[value="no-logo"]').prop('selected', true);
|
||||||
|
$('#p-logo').addClass("w3-hide");
|
||||||
|
$('#p-display_button').removeClass("w3-hide");
|
||||||
|
$('#p-display_graph').removeClass("w3-hide");
|
||||||
|
$('#background_color').val('#ffffff');
|
||||||
|
$('#font_color').val('#212529');
|
||||||
|
$('#progress_color').val('#ffc107');
|
||||||
|
$('#border_color').val('#343a40');
|
||||||
|
$('#preview_label').addClass("w3-hide");
|
||||||
|
$('#result').val('');
|
||||||
|
for (var param in params){params[param] = '';}
|
||||||
|
}
|
||||||
|
$(window).on('load',resetForm);
|
||||||
|
|
||||||
|
$('#type').on('change', function() {
|
||||||
|
type = this.value;
|
||||||
|
|
||||||
|
switch (type) {
|
||||||
|
case 'iframe':
|
||||||
|
$('#p-logo').addClass("w3-hide");
|
||||||
|
params['logo'] = '';
|
||||||
|
$('#p-display_button').removeClass("w3-hide");
|
||||||
|
$('#p-display_graph').removeClass("w3-hide");
|
||||||
|
url = base_url + 'iframe.php';
|
||||||
|
break;
|
||||||
|
case 'png':
|
||||||
|
$('#p-logo').removeClass("w3-hide");
|
||||||
|
$('#p-display_button').addClass("w3-hide");
|
||||||
|
$('#p-display_graph').addClass("w3-hide");
|
||||||
|
params['display_button'] = '';
|
||||||
|
params['display_graph'] = '';
|
||||||
|
url = base_url + 'image.php';
|
||||||
|
break;
|
||||||
|
case 'svg':
|
||||||
|
$('#p-logo').removeClass("w3-hide");
|
||||||
|
$('#p-display_button').addClass("w3-hide");
|
||||||
|
$('#p-display_graph').addClass("w3-hide");
|
||||||
|
params['display_button'] = '';
|
||||||
|
params['display_graph'] = '';
|
||||||
|
url = base_url + 'svg.php';
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#period').on('change', function() {
|
||||||
|
var period = this.value;
|
||||||
|
|
||||||
|
switch (period) {
|
||||||
|
case 'current-monh':
|
||||||
|
$('#p-start_date').addClass("w3-hide");
|
||||||
|
$('#p-end_date').addClass("w3-hide");
|
||||||
|
params['start_date'] = '';
|
||||||
|
params['end_date'] = '';
|
||||||
|
break;
|
||||||
|
case 'one-date':
|
||||||
|
$('#p-start_date').removeClass("w3-hide");
|
||||||
|
$('#p-end_date').addClass("w3-hide");
|
||||||
|
params['end_date'] = '';
|
||||||
|
break;
|
||||||
|
case 'two-dates':
|
||||||
|
$('#p-start_date').removeClass("w3-hide");
|
||||||
|
$('#p-end_date').removeClass("w3-hide");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#title').on('change', function() {params['title'] = encodeURIComponent(this.value);});
|
||||||
|
$('#unit').on('change', function() {params['unit'] = this.value;});
|
||||||
|
$('#lang').on('change', function() {params['lang'] = this.value;});
|
||||||
|
$('#node').on('change', function() {params['node'] = this.value;});
|
||||||
|
$('#start_date').on('change', function() {params['start_date'] = this.value;});
|
||||||
|
$('#end_date').on('change', function() {params['end_date'] = this.value;});
|
||||||
|
$('#display_pubkey').on('change', function() {params['display_pubkey'] = $('#display_pubkey').prop('checked') ? true : '';});
|
||||||
|
$('#display_qrcode').on('change', function() {params['display_qrcode'] = $('#display_qrcode').prop('checked') ? true : '';});
|
||||||
|
$('#display_button').on('change', function() {params['display_button'] = $('#display_button').prop('checked') ? true : '';});
|
||||||
|
$('#display_graph').on('change', function() {params['display_graph'] = $('#display_graph').prop('checked') ? true : '';});
|
||||||
|
$('#logo').on('change', function() {params['logo'] = $('#logo').val();});
|
||||||
|
$('#background_color').on('change', function() {params['background_color'] = this.value.substr(1);});
|
||||||
|
$('#font_color').on('change', function() {params['font_color'] = this.value.substr(1);});
|
||||||
|
$('#progress_color').on('change', function() {params['progress_color'] = this.value.substr(1);});
|
||||||
|
$('#border_color').on('change', function() {params['border_color'] = this.value.substr(1);});
|
||||||
|
|
||||||
|
/*[ Generate URL ]
|
||||||
|
===========================================================*/
|
||||||
|
var base_url = document.location.href;
|
||||||
|
base_url = base_url.substr(0,base_url.lastIndexOf('/')+1);
|
||||||
|
var url = base_url+'iframe.php';
|
||||||
|
var params = {
|
||||||
|
'title' : '',
|
||||||
|
'unit' : '',
|
||||||
|
'lang' : '',
|
||||||
|
'node' : '',
|
||||||
|
'start_date' : '',
|
||||||
|
'end_date' : '',
|
||||||
|
'display_pubkey' : '',
|
||||||
|
'display_qrcode' : '',
|
||||||
|
'display_button' : '',
|
||||||
|
'display_graph' : '',
|
||||||
|
'logo' : '',
|
||||||
|
'background_color' : '',
|
||||||
|
'font_color' : '',
|
||||||
|
'progress_color' : '',
|
||||||
|
'border_color' : ''
|
||||||
|
};
|
||||||
|
function generatUrl(p_type){
|
||||||
|
if (document.getElementById("pubkey").checkValidity() && document.getElementById("target").checkValidity()){
|
||||||
|
var result = url+'?pubkey='+$('#pubkey').val()+'&target='+$('#target').val();
|
||||||
|
for (var param in params) {
|
||||||
|
if (params[param] !== ''){
|
||||||
|
result += '&'+param+'='+params[param];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
switch (p_type) {
|
||||||
|
case 'iframe':
|
||||||
|
result = '<iframe src="'+result+'" width="100%" height="100%" frameborder="0"></iframe>';
|
||||||
|
break;
|
||||||
|
case 'png':
|
||||||
|
result = '<img src="'+result+'" />';
|
||||||
|
break;
|
||||||
|
case 'svg':
|
||||||
|
result = '<object type="image/svg+xml" data="'+result+'" border="0"></object>';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}else{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
$('#submit').on("click", function(){
|
||||||
|
var final_result = generatUrl(type);
|
||||||
|
if (final_result){
|
||||||
|
$('form').on("submit", function(){
|
||||||
|
$('#preview_label').removeClass("w3-hide");
|
||||||
|
$('#preview').css("visibility","hidden");
|
||||||
|
$('#preview').children().remove();
|
||||||
|
$('#result').val(final_result);
|
||||||
|
$('html, body').animate({scrollTop: $('#display_result').offset().top}, 750);
|
||||||
|
$('#preview').append(final_result);
|
||||||
|
if (type == 'iframe'){
|
||||||
|
$('iframe').on('load', function() {
|
||||||
|
var iframe_height = document.getElementsByTagName('iframe')[0].contentWindow.document.body.scrollHeight;
|
||||||
|
$('iframe').height(iframe_height);
|
||||||
|
// Pour relancer l'animation
|
||||||
|
$('#preview').html($('#preview').html());
|
||||||
|
});
|
||||||
|
}
|
||||||
|
$('#result').focus();
|
||||||
|
$('#buttons').removeClass("w3-hide");
|
||||||
|
setTimeout(function(){
|
||||||
|
$('#preview').css("visibility","visible");
|
||||||
|
},1000);
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
/*[ Reset ]
|
||||||
|
===========================================================*/
|
||||||
|
$('#reset').on("click", function(){
|
||||||
|
$('#result').val('');
|
||||||
|
resetForm();
|
||||||
|
$('html, body').animate({scrollTop: $('#content').offset().top}, 300);
|
||||||
|
$('#buttons').addClass("w3-hide");
|
||||||
|
$('#preview').children().remove();
|
||||||
|
});
|
||||||
|
|
||||||
|
})(jQuery);
|
|
@ -0,0 +1,27 @@
|
||||||
|
<?php
|
||||||
|
# Autodetect browser language
|
||||||
|
if(isset($langdetect) and $langdetect) {
|
||||||
|
$langd = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
|
||||||
|
# Client can modify HTTP headers and modify the file path
|
||||||
|
# So we must verify $langd
|
||||||
|
if(preg_match('#[a-zA-Z_]{2}#i', $langd))
|
||||||
|
$lang = $langd;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(isset($lang) and file_exists(getcwd().'/locales/'.$lang.'.tr.php')) {}
|
||||||
|
else $lang = 'fr';
|
||||||
|
require('locales/'.$lang.'.tr.php');
|
||||||
|
|
||||||
|
function bparse($text, $vars) {
|
||||||
|
foreach($vars as $var1 => $var2) {
|
||||||
|
$text = str_replace('{{'.$var1.'}}', $var2, $text);
|
||||||
|
}
|
||||||
|
return $text;
|
||||||
|
}
|
||||||
|
|
||||||
|
function tr($tkey, $vars=array()) {
|
||||||
|
global $ttr;
|
||||||
|
if(isset($ttr[$tkey])) return bparse($ttr[$tkey], $vars);
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
?>
|
|
@ -0,0 +1,38 @@
|
||||||
|
* 1.0.0 build 2010031920
|
||||||
|
|
||||||
|
- first public release
|
||||||
|
- help in readme, install
|
||||||
|
- cleanup ans separation of QRtools and QRspec
|
||||||
|
- now TCPDF binding requires minimal changes in TCPDF, having most of job
|
||||||
|
done in QRtools tcpdfBarcodeArray
|
||||||
|
- nicer QRtools::timeBenchmark output
|
||||||
|
- license and copyright notices in files
|
||||||
|
- indent cleanup - from tab to 4spc, keep it that way please :)
|
||||||
|
- sf project, repository, wiki
|
||||||
|
- simple code generator in index.php
|
||||||
|
|
||||||
|
* 1.1.0 build 2010032113
|
||||||
|
|
||||||
|
- added merge tool wich generate merged version of code
|
||||||
|
located in phpqrcode.php
|
||||||
|
- splited qrconst.php from qrlib.php
|
||||||
|
|
||||||
|
* 1.1.1 build 2010032405
|
||||||
|
|
||||||
|
- patch by Rick Seymour allowing saving PNG and displaying it at the same time
|
||||||
|
- added version info in VERSION file
|
||||||
|
- modified merge tool to include version info into generated file
|
||||||
|
- fixed e-mail in almost all head comments
|
||||||
|
|
||||||
|
* 1.1.2 build 2010032722
|
||||||
|
|
||||||
|
- full integration with TCPDF thanks to Nicola Asuni, it's author
|
||||||
|
- fixed bug with alphanumeric encoding detection
|
||||||
|
|
||||||
|
* 1.1.3 build 2010081807
|
||||||
|
|
||||||
|
- short opening tags replaced with standard ones
|
||||||
|
|
||||||
|
* 1.1.4 build 2010100721
|
||||||
|
|
||||||
|
- added missing static keyword QRinput::check (found by Luke Brookhart, Onjax LLC)
|
|
@ -0,0 +1,67 @@
|
||||||
|
== REQUIREMENTS ==
|
||||||
|
|
||||||
|
* PHP5
|
||||||
|
* PHP GD2 extension with JPEG and PNG support
|
||||||
|
|
||||||
|
== INSTALLATION ==
|
||||||
|
|
||||||
|
If you want to recreate cache by yourself make sure cache directory is
|
||||||
|
writable and you have permisions to write into it. Also make sure you are
|
||||||
|
able to read files in it if you have cache option enabled
|
||||||
|
|
||||||
|
== CONFIGURATION ==
|
||||||
|
|
||||||
|
Feel free to modify config constants in qrconfig.php file. Read about it in
|
||||||
|
provided comments and project wiki page (links in README file)
|
||||||
|
|
||||||
|
== QUICK START ==
|
||||||
|
|
||||||
|
Notice: probably you should'nt use all of this in same script :)
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
//include only that one, rest required files will be included from it
|
||||||
|
include "qrlib.php"
|
||||||
|
|
||||||
|
//write code into file, Error corection lecer is lowest, L (one form: L,M,Q,H)
|
||||||
|
//each code square will be 4x4 pixels (4x zoom)
|
||||||
|
//code will have 2 code squares white boundary around
|
||||||
|
|
||||||
|
QRcode::png('PHP QR Code :)', 'test.png', 'L', 4, 2);
|
||||||
|
|
||||||
|
//same as above but outputs file directly into browser (with appr. header etc.)
|
||||||
|
//all other settings are default
|
||||||
|
//WARNING! it should be FIRST and ONLY output generated by script, otherwise
|
||||||
|
//rest of output will land inside PNG binary, breaking it for sure
|
||||||
|
QRcode::png('PHP QR Code :)');
|
||||||
|
|
||||||
|
//show benchmark
|
||||||
|
QRtools::timeBenchmark();
|
||||||
|
|
||||||
|
//rebuild cache
|
||||||
|
QRtools::buildCache();
|
||||||
|
|
||||||
|
//code generated in text mode - as a binary table
|
||||||
|
//then displayed out as HTML using Unicode block building chars :)
|
||||||
|
$tab = $qr->encode('PHP QR Code :)');
|
||||||
|
QRspec::debug($tab, true);
|
||||||
|
|
||||||
|
== TCPDF INTEGRATION ==
|
||||||
|
|
||||||
|
Inside bindings/tcpdf you will find slightly modified 2dbarcodes.php.
|
||||||
|
Instal phpqrcode liblaty inside tcpdf folder, then overwrite (or merge)
|
||||||
|
2dbarcodes.php
|
||||||
|
|
||||||
|
Then use similar as example #50 from TCPDF examples:
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$style = array(
|
||||||
|
'border' => true,
|
||||||
|
'padding' => 4,
|
||||||
|
'fgcolor' => array(0,0,0),
|
||||||
|
'bgcolor' => false, //array(255,255,255)
|
||||||
|
);
|
||||||
|
|
||||||
|
//code name: QR, specify error correction level after semicolon (L,M,Q,H)
|
||||||
|
$pdf->write2DBarcode('PHP QR Code :)', 'QR,L', '', '', 30, 30, $style, 'N');
|
|
@ -0,0 +1,165 @@
|
||||||
|
GNU LESSER GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
|
||||||
|
This version of the GNU Lesser General Public License incorporates
|
||||||
|
the terms and conditions of version 3 of the GNU General Public
|
||||||
|
License, supplemented by the additional permissions listed below.
|
||||||
|
|
||||||
|
0. Additional Definitions.
|
||||||
|
|
||||||
|
As used herein, "this License" refers to version 3 of the GNU Lesser
|
||||||
|
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
||||||
|
General Public License.
|
||||||
|
|
||||||
|
"The Library" refers to a covered work governed by this License,
|
||||||
|
other than an Application or a Combined Work as defined below.
|
||||||
|
|
||||||
|
An "Application" is any work that makes use of an interface provided
|
||||||
|
by the Library, but which is not otherwise based on the Library.
|
||||||
|
Defining a subclass of a class defined by the Library is deemed a mode
|
||||||
|
of using an interface provided by the Library.
|
||||||
|
|
||||||
|
A "Combined Work" is a work produced by combining or linking an
|
||||||
|
Application with the Library. The particular version of the Library
|
||||||
|
with which the Combined Work was made is also called the "Linked
|
||||||
|
Version".
|
||||||
|
|
||||||
|
The "Minimal Corresponding Source" for a Combined Work means the
|
||||||
|
Corresponding Source for the Combined Work, excluding any source code
|
||||||
|
for portions of the Combined Work that, considered in isolation, are
|
||||||
|
based on the Application, and not on the Linked Version.
|
||||||
|
|
||||||
|
The "Corresponding Application Code" for a Combined Work means the
|
||||||
|
object code and/or source code for the Application, including any data
|
||||||
|
and utility programs needed for reproducing the Combined Work from the
|
||||||
|
Application, but excluding the System Libraries of the Combined Work.
|
||||||
|
|
||||||
|
1. Exception to Section 3 of the GNU GPL.
|
||||||
|
|
||||||
|
You may convey a covered work under sections 3 and 4 of this License
|
||||||
|
without being bound by section 3 of the GNU GPL.
|
||||||
|
|
||||||
|
2. Conveying Modified Versions.
|
||||||
|
|
||||||
|
If you modify a copy of the Library, and, in your modifications, a
|
||||||
|
facility refers to a function or data to be supplied by an Application
|
||||||
|
that uses the facility (other than as an argument passed when the
|
||||||
|
facility is invoked), then you may convey a copy of the modified
|
||||||
|
version:
|
||||||
|
|
||||||
|
a) under this License, provided that you make a good faith effort to
|
||||||
|
ensure that, in the event an Application does not supply the
|
||||||
|
function or data, the facility still operates, and performs
|
||||||
|
whatever part of its purpose remains meaningful, or
|
||||||
|
|
||||||
|
b) under the GNU GPL, with none of the additional permissions of
|
||||||
|
this License applicable to that copy.
|
||||||
|
|
||||||
|
3. Object Code Incorporating Material from Library Header Files.
|
||||||
|
|
||||||
|
The object code form of an Application may incorporate material from
|
||||||
|
a header file that is part of the Library. You may convey such object
|
||||||
|
code under terms of your choice, provided that, if the incorporated
|
||||||
|
material is not limited to numerical parameters, data structure
|
||||||
|
layouts and accessors, or small macros, inline functions and templates
|
||||||
|
(ten or fewer lines in length), you do both of the following:
|
||||||
|
|
||||||
|
a) Give prominent notice with each copy of the object code that the
|
||||||
|
Library is used in it and that the Library and its use are
|
||||||
|
covered by this License.
|
||||||
|
|
||||||
|
b) Accompany the object code with a copy of the GNU GPL and this license
|
||||||
|
document.
|
||||||
|
|
||||||
|
4. Combined Works.
|
||||||
|
|
||||||
|
You may convey a Combined Work under terms of your choice that,
|
||||||
|
taken together, effectively do not restrict modification of the
|
||||||
|
portions of the Library contained in the Combined Work and reverse
|
||||||
|
engineering for debugging such modifications, if you also do each of
|
||||||
|
the following:
|
||||||
|
|
||||||
|
a) Give prominent notice with each copy of the Combined Work that
|
||||||
|
the Library is used in it and that the Library and its use are
|
||||||
|
covered by this License.
|
||||||
|
|
||||||
|
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
||||||
|
document.
|
||||||
|
|
||||||
|
c) For a Combined Work that displays copyright notices during
|
||||||
|
execution, include the copyright notice for the Library among
|
||||||
|
these notices, as well as a reference directing the user to the
|
||||||
|
copies of the GNU GPL and this license document.
|
||||||
|
|
||||||
|
d) Do one of the following:
|
||||||
|
|
||||||
|
0) Convey the Minimal Corresponding Source under the terms of this
|
||||||
|
License, and the Corresponding Application Code in a form
|
||||||
|
suitable for, and under terms that permit, the user to
|
||||||
|
recombine or relink the Application with a modified version of
|
||||||
|
the Linked Version to produce a modified Combined Work, in the
|
||||||
|
manner specified by section 6 of the GNU GPL for conveying
|
||||||
|
Corresponding Source.
|
||||||
|
|
||||||
|
1) Use a suitable shared library mechanism for linking with the
|
||||||
|
Library. A suitable mechanism is one that (a) uses at run time
|
||||||
|
a copy of the Library already present on the user's computer
|
||||||
|
system, and (b) will operate properly with a modified version
|
||||||
|
of the Library that is interface-compatible with the Linked
|
||||||
|
Version.
|
||||||
|
|
||||||
|
e) Provide Installation Information, but only if you would otherwise
|
||||||
|
be required to provide such information under section 6 of the
|
||||||
|
GNU GPL, and only to the extent that such information is
|
||||||
|
necessary to install and execute a modified version of the
|
||||||
|
Combined Work produced by recombining or relinking the
|
||||||
|
Application with a modified version of the Linked Version. (If
|
||||||
|
you use option 4d0, the Installation Information must accompany
|
||||||
|
the Minimal Corresponding Source and Corresponding Application
|
||||||
|
Code. If you use option 4d1, you must provide the Installation
|
||||||
|
Information in the manner specified by section 6 of the GNU GPL
|
||||||
|
for conveying Corresponding Source.)
|
||||||
|
|
||||||
|
5. Combined Libraries.
|
||||||
|
|
||||||
|
You may place library facilities that are a work based on the
|
||||||
|
Library side by side in a single library together with other library
|
||||||
|
facilities that are not Applications and are not covered by this
|
||||||
|
License, and convey such a combined library under terms of your
|
||||||
|
choice, if you do both of the following:
|
||||||
|
|
||||||
|
a) Accompany the combined library with a copy of the same work based
|
||||||
|
on the Library, uncombined with any other library facilities,
|
||||||
|
conveyed under the terms of this License.
|
||||||
|
|
||||||
|
b) Give prominent notice with the combined library that part of it
|
||||||
|
is a work based on the Library, and explaining where to find the
|
||||||
|
accompanying uncombined form of the same work.
|
||||||
|
|
||||||
|
6. Revised Versions of the GNU Lesser General Public License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions
|
||||||
|
of the GNU Lesser 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
|
||||||
|
Library as you received it specifies that a certain numbered version
|
||||||
|
of the GNU Lesser General Public License "or any later version"
|
||||||
|
applies to it, you have the option of following the terms and
|
||||||
|
conditions either of that published version or of any later version
|
||||||
|
published by the Free Software Foundation. If the Library as you
|
||||||
|
received it does not specify a version number of the GNU Lesser
|
||||||
|
General Public License, you may choose any version of the GNU Lesser
|
||||||
|
General Public License ever published by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Library as you received it specifies that a proxy can decide
|
||||||
|
whether future versions of the GNU Lesser General Public License shall
|
||||||
|
apply, that proxy's public statement of acceptance of any version is
|
||||||
|
permanent authorization for you to choose that version for the
|
||||||
|
Library.
|
|
@ -0,0 +1,61 @@
|
||||||
|
This is PHP implementation of QR Code 2-D barcode generator. It is pure-php
|
||||||
|
LGPL-licensed implementation based on C libqrencode by Kentaro Fukuchi.
|
||||||
|
|
||||||
|
== UPDATE ==
|
||||||
|
Added support for eps export
|
||||||
|
Usage : QRcode::eps('arguments');
|
||||||
|
|
||||||
|
Added support for SVG export
|
||||||
|
Usage : QRcode::svg('arguments');
|
||||||
|
|
||||||
|
Added support for color export :
|
||||||
|
example :
|
||||||
|
$back_color = 0xFFFF00;
|
||||||
|
$fore_color = 0xFF00FF;
|
||||||
|
QRcode::png('some othertext 1234', false, 'h', 20, 1, false, $back_color, $fore_color);
|
||||||
|
|
||||||
|
|
||||||
|
Copyright (C) 2012 by Alexandre Assouad
|
||||||
|
|
||||||
|
== LICENSING ==
|
||||||
|
|
||||||
|
Copyright (C) 2010 by Dominik Dzienia
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or modify it under
|
||||||
|
the terms of the GNU Lesser General Public License as published by the Free
|
||||||
|
Software Foundation; either version 3 of the License, or any later version.
|
||||||
|
|
||||||
|
This library 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 Lesser General Public License (LICENSE file)
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public License along
|
||||||
|
with this library; if not, write to the Free Software Foundation, Inc., 51
|
||||||
|
Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
|
== INSTALATION AND USAGE ==
|
||||||
|
|
||||||
|
* INSTALL file
|
||||||
|
* http://sourceforge.net/apps/mediawiki/phpqrcode/index.php?title=Main_Page
|
||||||
|
|
||||||
|
== CONTACT ==
|
||||||
|
|
||||||
|
Fell free to contact me via e-mail (deltalab at poczta dot fm) or using
|
||||||
|
folowing project pages:
|
||||||
|
|
||||||
|
* http://sourceforge.net/projects/phpqrcode/
|
||||||
|
* http://phpqrcode.sourceforge.net/
|
||||||
|
|
||||||
|
== ACKNOWLEDGMENTS ==
|
||||||
|
|
||||||
|
Based on C libqrencode library (ver. 3.1.1)
|
||||||
|
Copyright (C) 2006-2010 by Kentaro Fukuchi
|
||||||
|
http://megaui.net/fukuchi/works/qrencode/index.en.html
|
||||||
|
|
||||||
|
QR Code is registered trademarks of DENSO WAVE INCORPORATED in JAPAN and other
|
||||||
|
countries.
|
||||||
|
|
||||||
|
Reed-Solomon code encoder is written by Phil Karn, KA9Q.
|
||||||
|
Copyright (C) 2002, 2003, 2004, 2006 Phil Karn, KA9Q
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
1.1.4
|
||||||
|
2010100721
|
|
@ -0,0 +1,2 @@
|
||||||
|
xÚ<EFBFBD><EFBFBD>Á
À E9³u<06><>`³"PÅ„CÛ牗T!0$
|
||||||
|
E•É²Q™<EFBFBD>Ém½úhÛ¾9{kI"› 9Ln)Ap¤åÖ¾Ë>ß^‡Õz³mënÅ–;ü´mßn†ú¦Ë
|
After Width: | Height: | Size: 126 B |
After Width: | Height: | Size: 202 B |
After Width: | Height: | Size: 205 B |
After Width: | Height: | Size: 216 B |
After Width: | Height: | Size: 210 B |
After Width: | Height: | Size: 213 B |
After Width: | Height: | Size: 219 B |
|
@ -0,0 +1 @@
|
||||||
|
xÚí™A„ E]sëIX´;¸Ün6€È`‚q”êêW6ñ奚`Œ%A/3!¢°‚¢Š!g–ÈÌ¡’1N)éE¢Ï|;®—>6â¸<C3A2>Þ97$ëÄôëc]kkö<6B>wé1Öü[·mCÍœcÊRºÄê¹>¦èµ¾šE,•hʼnp„#áxF<1C>yWÏÇVWGçòÕ3¼Õ+шþàË“úSŽâ}Äž<C384>#áG8b^c^cÏÀŽp„c&3YQ"ñŽ÷çÌvµù›…ñàÎþþ¼–¹kÞ9ŠÜ‡÷}”¹³ï×ú ¢Ä¿<C384>QäÿL—/ÝÔÀÏ
|
After Width: | Height: | Size: 211 B |
After Width: | Height: | Size: 211 B |
|
@ -0,0 +1,2 @@
|
||||||
|
xÚí™A
|
||||||
|
ƒ0E]çÖ…,2;sƒä&ÉÍšh¥ÛêO¡ôÝÈàã1&09OIv@DDÒÌ&§Ù‰K<E280B0>XÈÕFv•<Ádqò9Ö<%h•¹Yïs!(d¥²ës;~||b(ÏøYůg#µ`œK ±S¼Åô¹Ä¶˜ùsàidß<64>Lg:Ó™Îtþ/gmª<6D>™ƒkÅMâ3³{4rTÈQýÿe¥·s·>ó<Ó™Ît¦3<C2A6>éÌ;ïH¼#Ñ™Ît¦3<C2A6>ÍYœ+og©hù¶óµÙ½¬lnðûF>Øi^»#awm;gè~pÛgìNs{6z’‘»ãºïÞäp¾Ê'
|
After Width: | Height: | Size: 228 B |
|
@ -0,0 +1,3 @@
|
||||||
|
xÚíšA
|
||||||
|
Ä E»öÖ.ĚNo 7Ń›Ť¶iiRÚN2‹áW%đxÁ@ÚÚśę'
|
||||||
|
u<EFBFBD>6×ę<EFBFBD>.ť*S;}<7D>«ŇĂ ĎTúčĚzrŤtąď%ç,ŇĹÚâÎ}ç;“âç)ąź<C485>âÝZÚîLĺčą÷¬Pçç$Ż×÷ĎqËgśLÂôdJ‡;Üáw¸Ăý.]z#źľ«[Íť˝ďOg‚Ćô"ĐË áBíî¦}Ç}‡;Üáw¸Ăî<>#1GbŽ„;Üáw¸Ăý_ÝC+w˘@Dfî÷ďç™uťř2™ĹÚÉNţű9R7|pWßkďű®ż“ßßkşöżşú»ĽÎÓ
|
After Width: | Height: | Size: 225 B |
|
@ -0,0 +1 @@
|
||||||
|
xÚÍ’Í
À F{vë& à&°Y+?Z1öÐSŸ'y!¢ŸÌÁa<C381>815&£•Û´ŽÙHå£Ùžc³•l«ÏFÆè1º#é6fÊÖü©§6Äø•O7ˆ¨†C¦«›ðÖ<C3B0>ž<EFBFBD>Ï8gI®ÏöfB¦ÃÄÿæ\DÔ»(
|
After Width: | Height: | Size: 144 B |
After Width: | Height: | Size: 225 B |
|
@ -0,0 +1 @@
|
||||||
|
xÚíšA„ E]sëIX´;¹Ün6Up‚<13>“в™ÿ]Ù˜þ<i-eWö‹¶˜)×äÅ•¼ÉÂ…H\jvqÙHL\6–šÝÐ…rI›¢LܹÜÕ%ÅÓ@´þ±V—vÆÂúý¤(ÏP4|ÎXnÒgÉ<>ß¼~]D¾ÉÕ×u1Us S\À°€,ÿÅ2Þ¢N§Ã?D›KºüF-:“eJ]p_À°€,˜a0Ã`†ÁÝXÀ°`†Áƒw,`X´]˜ˆ™‚¹‹˜°5‰®Y4{å±æñ2íûåvçJs†±Ûí9±˜í)õu±Û¹êÏØ,«]¸“‹Ù^_§7$ƒ_Í
|
After Width: | Height: | Size: 235 B |
|
@ -0,0 +1,3 @@
|
||||||
|
xÚíšA
|
||||||
|
„0E]{ë<>.’]{{{³©Z¥BepÆÞwe@<1F>V›ERZ3»Á"*2o€4¦y‰)i#dÒbdFÒ…´ŒI"ú‘—4ž½WIíuŠÓ45ßx«.ZSÙ{ÁŸ¯8åËÿk={o.±qÊÙ£[œÍ:帒q»õƒy
|
||||||
|
)t#á„N8ádCj<43>-O<>OG}¼:/Ÿ:s<>z!Å)^<ùe½·S·uâ{ 'œp 'ú=ú=ú=¾'œp 'œp¢ß£ß£ßã<1F>N8á„Óÿ9©ªˆôpQQõ]HÔpz¾<7A>ØGœ^æ½Qº˜I|¾ß³<C39F>u;9™ÎïÕëd;“X~$ËÙÑÉt¶ÊÛédy
|
After Width: | Height: | Size: 226 B |
|
@ -0,0 +1,3 @@
|
||||||
|
xÚíšA
|
||||||
|
à E³öÖfo 7Ñ›U<E280BA>) %M!ΔÂûYu(<šð“sK²“Tœ›Ó
|
||||||
|
É&§IÚ\i+¥Ðª™(m®´FQ¡¹¯h±æöüèv~n1„oÏ]sëçÖï¤_ÞŸÊ3`î_w2õȹ•lc[¼•;·Ûc֟ˤ’Nóª4ÜpÃ
7ÜpÃímTÿ¸œ›‘ÝêrÞiñä_ƒç¿pS=7Þ7ÜpÃ
7ÜpÃ<70>>IŸ¤Oò-Á
7ÜpÃ
7ú$}’>É·7ÜpÃ
·tss‰Órs
§åVÍÎÜÆ÷’mýï¡Ò¹ò‡<C3B2>Þñ}R~7ôà&¾÷º?7ù<37>Þý<C39E>Ô¦Iïbhâ{æ»<ÀMi-
|
After Width: | Height: | Size: 220 B |
|
@ -0,0 +1 @@
|
||||||
|
xΪν›Aƒ E»φΦMX0;Έ<>άnVP4ΪHSS»xίU3±/O΄ύLiJ4<4A><34>±VβJC<4A>%ύ‰6VR&ΓήD‘B<E28098>HjDω‚JΟ??™―κBlcΗ±ρ½§'σUλXοUοή<CEBF>0ζΓywΝΔ―χj¬ιλ<CEB9>³€3Ε›Ύλ<CE8E>cj†ω£{¨¥½:GqΔG<1C>έρψ<CF81>ϋΪ°N†v;Ή¶η¬“J‡ΔΠ<ϋ‡Ι]<5D>κλΘσ<CE98>#<23>8β<38>#<23>8βH'§“ΣΙωΝΑGqΔGιδtr:9Ο#<23>8β<38>#<23>8βΨ“h<68>―NΤt”<74>΄Φ_έΨ>tΉeλμS―¦ζ<C2A6>ω^<5E>\g―υΞQe?ωvuφΜoοΥ;<3B>ο>μ<>*οwlςΧmΡ
|
After Width: | Height: | Size: 242 B |
|
@ -0,0 +1,3 @@
|
||||||
|
xÚíÛA
|
||||||
|
à …á¬së‚‹™]rƒx½Y51mMÈBG
|
||||||
|
ÿ¸*Sx|Ua5Ƶ‚Z—Š„-,Ž1ä²HÑPÒRj–šX5§®i†©’áG©>W¥ŽžRïöÕ/Ëâ+uT廯åÏӯ嗴ªuæÏ¥Ú[Sía£[kví÷5•+5n§Á´JêÜ%+V¬X±bÅŠõ߬u'Á<07>±þÔû SRýå÷štzZ»ì+÷+V¬X±bÅŠ•ÙŸÙŸÙŸûŠ+V¬X±bÅÊìÏìÏìÏ}ÅŠ+V¬X±ö±ª¤¥ÖVI©¢ÖÖ‘+k«qÿ[úËtŽ·oVZÍþvoNV³wÇ}µ{³r<ýRÞ"<22>RÍÞ]ê
W«r}
|
After Width: | Height: | Size: 242 B |
|
@ -0,0 +1,2 @@
|
||||||
|
xÚí›A
|
||||||
|
à E³öÖ…,t§7ˆ7Ñ›U<E280BA> E)i7ï»*~cÃüÅÄXÖEBÆè°FC–˜³6¡:&çL,å¬Mv.ŽÂÎæKgŸÕ¸ãYMç>ŸÎí>ûmÛš·?ª•vô¹¾mg?<3F>ßÒ±Îþ³æηªd˜“Cµ¹U¦ÏIk•ÚÚE\ÕÙMs†f˜a†f˜a>œ[sÓˆ9쬩ެ8bö<kÕÙ7œ}ç†k³™§õ™ÿ3Ì0Ã3Ì0Ã3Ìä*r¹Š\Å7f˜a†f˜a†fr¹Š\Å7f˜a†f˜a†YÆÙ<18>Îæd›4ƒ9kíÆÌÔÝyûX y‰gŒØÙ)›«dw<64>nÌ¢ûU×>Ëî”]ßöLgÉÝÁ›³è¾äEo‚ w1
|
After Width: | Height: | Size: 244 B |
After Width: | Height: | Size: 237 B |
After Width: | Height: | Size: 234 B |
|
@ -0,0 +1,2 @@
|
||||||
|
xÚíÜA<0E> …a×Ţş ‹™ťÜ@n7+*¶šÖÚ4‘!Í?®Jšđň ł<>”抮«]Ş—ÉSźâTf)–ŮsŠIÂ"…Č”bžÝ0…Š|•"Luٸî,Ž×EÇ1\6®*ĎuQŢ?Ľ>aĚĎ…ăţńŽÄRő-r“÷n.ďꯋ\®Tżü:Ó*)|)°Ŕ,°Ŕ,ţŃâęóĺéx_ă¬}:^R„<52>Uoɢ‰uÁ~ÁމX`<60>XĐŹĐŹĐŹĐŹ°_`<60>X`<60>XĐŹĐŹĐŹ°_`<60>X`<60>XĐŹĐŹĐŹĐŹ°wb<77>X`<60>żĄPUőö)DÔŢ"cČ{‹zçÎő3ę›é<}¸óˇ^?b÷m˙ÎÂěž<C49B>íş°»óaűŽ´’Âę.<2E>]
|
||||||
|
ł{Q6uáT,9
|
After Width: | Height: | Size: 232 B |
|
@ -0,0 +1 @@
|
||||||
|
xÚí“Á
À E{vë& à&°Y+¢b¤öÐkŸ'yù‘¤¿ÌÁa :äÀTXl<58>Þ¶$W+Ó<>vû®îœ¢9}gRæ¬@H0YPB½ÆÃEmÚÚ?ûœÍ±ísœÖ"bµìt2cnÖé†É:½ïºë;¿Y§“ÃzÿQã«7¿Ô
|
After Width: | Height: | Size: 147 B |
After Width: | Height: | Size: 255 B |
|
@ -0,0 +1 @@
|
||||||
|
xÚíÜAƒ …a×Þº ØÉ
à&r³‚ Á´¸ªÎ4ù§«†´yù‚Ä·!¥mV3I<33>µv!ÒœÖ2¢i\NSSä4EF2<46>+65Å¥‰e¾þÃ/Wœs]šñ¾‰!„Á?ÿpÅõû¦=S~ùüÄ<C3BC>?Ëý+þx¦Ö6r6yö³Ùƹ}“Ç´™ë×eR1-<2D>W•l°Ál°Á›ûÒŒÞXŸz/>Væ«·ù§:ñÒÒÄAš8üý-+mTíÎÎbl°Ál°ÁlèštMº&]“³l°Ál°Áº&]“®I×ä¼Ál°Ál°Áº&]“®Éyƒ
6Ø`ƒ
6Ø`ƒÍÝi¬uy´ØXWòè±Éi¬²\t†ýz•—Š>•.î”z¾kÊß
t²¿7©ß7òwJõÏ”¶4Òw‘<77>ÒˆßÓÖÍ85‰
|
After Width: | Height: | Size: 260 B |
|
@ -0,0 +1,2 @@
|
||||||
|
xЪнЬБ
|
||||||
|
„ …бЦѕхЂ‹л.Я ЯDЯl¬,¦љMz‰я6›†Г‡ gcJЛD;ф'.®A’IqћЮ‰ДI,IrўYЁ»‘ЛFk%‰DюOжy|EDЄDЧы(LУ_YЌК>*Яљ?aКOѓїk±L_Ј<[c—с¶п>КcЛ<63>хuФLIдХ%В#Њ0В#Њ0В#ЊЮotСўљхµ}ЕЬ4Нfќv_)‰ВEўpъЏ¬h5R·Џ8Џ8і1В#Њ0В#Њ0ўУТiйґtZО#Њ0В#Њ0В#Њ0ўУТiйґtZО#Њ0В#Њ0В#Њ0ўУТiйґtZОlЊ0В#Њ0ВЈч9q"ўЙHЬњH™Qюќµп"ЫХL5}-ЭЬYЧѕУкёkм`¤в>¶zйёі®юЦ4&Тpчб!‘Љы!«щ`ї:5
|
After Width: | Height: | Size: 262 B |
|
@ -0,0 +1,14 @@
|
||||||
|
xЪнЬAѓ …aЧЮє‰‹™ќЬ@n7+*L++Ужџ®ут‰МbbЬ*LCп‘°‡‰ck™HҐrљ”j•ІђJ5Yнi~0•_«тЊыЧTКTх}е—e©>эц5‘b_еwРНџ?ї¤Ямж§ЦЬщ†\эRaЖi+7хЯW©¦\гюwLUNеL¦В
|
||||||
|
+¬°В
|
||||||
|
+¬°ВкяjЯТO·џkcлЮсфз\Л©|%•o<б‹k–Lо+О+Оv¬°В
|
||||||
|
+¬°В
|
||||||
|
+¬°ВЉ>}ъф8Ї°В
|
||||||
|
+¬°В
|
||||||
|
+¬°В
|
||||||
|
+ъфи3РgајВ
|
||||||
|
+¬°В
|
||||||
|
+¬°В
|
||||||
|
+¬и3Рg П@џЃу
|
||||||
|
+¬°В
|
||||||
|
+¬°В
|
||||||
|
+¬°:R‰ЁЄXіЪB‰9«”IФ=зkЮЏ±o/SwзШ<D0B7>™ЩЇП`g¶бЕКМИr_Щ™™YѕѓVSY™ЕzIefnmQoz
>б
|
After Width: | Height: | Size: 253 B |
After Width: | Height: | Size: 256 B |
After Width: | Height: | Size: 243 B |
After Width: | Height: | Size: 272 B |
After Width: | Height: | Size: 279 B |
|
@ -0,0 +1 @@
|
||||||
|
xÚíÝAªƒ0ÐŽÝuÁA2«;Ð<>èÎkü(üg¾Ày•tp9Äï$Ëò™¹Dœ”ò¼\ºe^'tÒ-aIºŠFMšSškÂðIóŤÓ:7®¤|LúkŸNã8N7®œöi}ö‡×Ÿi,Ÿ[W†¿g®Ó´Ì°ë?3ô1÷i™¾N·}}=ÂOM:4“”)S¦L™2eÊ”)S¦L#$½ÿ
ôÂJãþÂJM:}ý]˜•ÖL›Ù§ÎSÿQL™2eÊ”)S¦L™2Õ¡èPt(:Šó”)S¦L™2eÊ”)S¦:ŠE‡¢Cqž2eÊ”)S¦L™2eÊ”©E‡¢CÑ¡8O™2eÊ”)S¦L™2eÊT‡¢CÑ¡èPœ§L™2eÊ”)S¦L™2Ý“¦”sJCIKÖÔ‚iÍ93<7F>ônº_Ñòÿ¾¿ü¼“+R‡û®£“ièû£Žû4ö<34>\Çg¿¥¤‘ïŽ;%
}ßaÞnŽ£
|
After Width: | Height: | Size: 279 B |
After Width: | Height: | Size: 264 B |
|
@ -0,0 +1 @@
|
||||||
|
xÚí”Á
À E=»uÐ
pجQ•ØCOMŸ'ÃË<C383>$ ³@à¨Ø3e–F©\FNXRyÉؾC{‰a8RæŃa2@ñ圉qküßÉH1ê(£<>ˆÅ`cç¦j³~Ë0ö¥¿ÃܨÖËÃعnXÿGåÿ<>Ä€
|
After Width: | Height: | Size: 149 B |