mirror of
https://github.com/pierre42100/comunic
synced 2025-06-20 00:55:20 +00:00
First commit
This commit is contained in:
5
3rdparty/phpmailer/.gitignore
vendored
Executable file
5
3rdparty/phpmailer/.gitignore
vendored
Executable file
@ -0,0 +1,5 @@
|
||||
docs/phpdoc/
|
||||
test/message.txt
|
||||
test/testbootstrap.php
|
||||
.idea
|
||||
build/
|
126
3rdparty/phpmailer/.scrutinizer.yml
vendored
Executable file
126
3rdparty/phpmailer/.scrutinizer.yml
vendored
Executable file
@ -0,0 +1,126 @@
|
||||
before_commands:
|
||||
- "composer install --prefer-source"
|
||||
|
||||
tools:
|
||||
# Code Coverage
|
||||
external_code_coverage:
|
||||
enabled: true
|
||||
timeout: 300
|
||||
filter:
|
||||
excluded_paths:
|
||||
- 'docs/*'
|
||||
- 'examples/*'
|
||||
- 'extras/*'
|
||||
- 'test/*'
|
||||
- 'vendor/*'
|
||||
|
||||
|
||||
php_code_coverage:
|
||||
enabled: false
|
||||
test_command: phpunit
|
||||
filter:
|
||||
excluded_paths:
|
||||
- 'docs/*'
|
||||
- 'examples/*'
|
||||
- 'extras/*'
|
||||
- 'test/*'
|
||||
- 'vendor/*'
|
||||
|
||||
|
||||
# Code Sniffer
|
||||
php_code_sniffer:
|
||||
enabled: true
|
||||
command: phpcs
|
||||
config:
|
||||
standard: PSR2
|
||||
filter:
|
||||
excluded_paths:
|
||||
- 'docs/*'
|
||||
- 'examples/*'
|
||||
- 'extras/*'
|
||||
- 'test/*'
|
||||
- 'vendor/*'
|
||||
|
||||
|
||||
# Copy/Paste Detector
|
||||
php_cpd:
|
||||
enabled: true
|
||||
command: phpcpd
|
||||
excluded_dirs:
|
||||
- docs
|
||||
- examples
|
||||
- extras
|
||||
- test
|
||||
- vendor
|
||||
|
||||
|
||||
# PHP CS Fixer (http://http://cs.sensiolabs.org/).
|
||||
php_cs_fixer:
|
||||
enabled: true
|
||||
command: php-cs-fixer
|
||||
config:
|
||||
level: psr2
|
||||
filter:
|
||||
excluded_paths:
|
||||
- 'docs/*'
|
||||
- 'examples/*'
|
||||
- 'extras/*'
|
||||
- 'test/*'
|
||||
- 'vendor/*'
|
||||
|
||||
|
||||
# Analyzes the size and structure of a PHP project.
|
||||
php_loc:
|
||||
enabled: true
|
||||
command: phploc
|
||||
excluded_dirs:
|
||||
- docs
|
||||
- examples
|
||||
- extras
|
||||
- test
|
||||
- vendor
|
||||
|
||||
|
||||
# PHP Mess Detector (http://phpmd.org).
|
||||
php_mess_detector:
|
||||
enabled: true
|
||||
command: phpmd
|
||||
config:
|
||||
rulesets:
|
||||
- codesize
|
||||
- unusedcode
|
||||
- naming
|
||||
- design
|
||||
filter:
|
||||
excluded_paths:
|
||||
- 'docs/*'
|
||||
- 'examples/*'
|
||||
- 'extras/*'
|
||||
- 'test/*'
|
||||
- 'vendor/*'
|
||||
|
||||
|
||||
# Analyzes the size and structure of a PHP project.
|
||||
php_pdepend:
|
||||
enabled: true
|
||||
command: pdepend
|
||||
excluded_dirs:
|
||||
- docs
|
||||
- examples
|
||||
- extras
|
||||
- test
|
||||
- vendor
|
||||
|
||||
# Runs Scrutinizer's PHP Analyzer Tool
|
||||
php_analyzer:
|
||||
enabled: true
|
||||
filter:
|
||||
excluded_paths:
|
||||
- 'docs/*'
|
||||
- 'examples/*'
|
||||
- 'extras/*'
|
||||
- 'test/*'
|
||||
- 'vendor/*'
|
||||
|
||||
# Security Advisory Checker
|
||||
sensiolabs_security_checker: true
|
33
3rdparty/phpmailer/.travis.yml
vendored
Executable file
33
3rdparty/phpmailer/.travis.yml
vendored
Executable file
@ -0,0 +1,33 @@
|
||||
language: php
|
||||
php:
|
||||
- 5.6
|
||||
- 5.5
|
||||
- 5.4
|
||||
- 5.3
|
||||
- hhvm
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- php: hhvm
|
||||
|
||||
before_install:
|
||||
- sudo apt-get update -qq
|
||||
- sudo apt-get install -y -qq postfix
|
||||
before_script:
|
||||
- sudo service postfix stop
|
||||
- smtp-sink -d "%d.%H.%M.%S" localhost:2500 1000 &
|
||||
- mkdir -p build/logs
|
||||
- cd test
|
||||
- cp testbootstrap-dist.php testbootstrap.php
|
||||
- chmod +x fakesendmail.sh
|
||||
- sudo mkdir -p /var/qmail/bin
|
||||
- sudo cp fakesendmail.sh /var/qmail/bin/sendmail
|
||||
- sudo cp fakesendmail.sh /usr/sbin/sendmail
|
||||
- echo 'sendmail_path = "/usr/sbin/sendmail -t -i "' | sudo tee "/home/travis/.phpenv/versions/`php -r 'echo PHP_VERSION;'`/etc/conf.d/sendmail.ini"
|
||||
- pwd
|
||||
- ls -al
|
||||
script:
|
||||
- phpunit --configuration ../travis.phpunit.xml.dist
|
||||
after_script:
|
||||
- wget https://scrutinizer-ci.com/ocular.phar
|
||||
- php ocular.phar code-coverage:upload --format=php-clover ../build/logs/clover.xml
|
504
3rdparty/phpmailer/LICENSE
vendored
Executable file
504
3rdparty/phpmailer/LICENSE
vendored
Executable file
@ -0,0 +1,504 @@
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the Lesser GPL. It also counts
|
||||
as the successor of the GNU Library Public License, version 2, hence
|
||||
the version number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some
|
||||
specially designated software packages--typically libraries--of the
|
||||
Free Software Foundation and other authors who decide to use it. You
|
||||
can use it too, but we suggest you first think carefully about whether
|
||||
this license or the ordinary General Public License is the better
|
||||
strategy to use in any particular case, based on the explanations below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use,
|
||||
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 this service if you wish); that you receive source code or can get
|
||||
it if you want it; that you can change the software and use pieces of
|
||||
it in new free programs; and that you are informed that you can do
|
||||
these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
distributors to deny you these rights or to ask you to surrender these
|
||||
rights. These restrictions translate to certain responsibilities for
|
||||
you if you distribute copies of the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link other code with the library, you must provide
|
||||
complete object files to the recipients, so that they can relink them
|
||||
with the library after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with a two-step method: (1) we copyright the
|
||||
library, and (2) we offer you this license, which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
To protect each distributor, we want to make it very clear that
|
||||
there is no warranty for the free library. Also, if the library is
|
||||
modified by someone else and passed on, the recipients should know
|
||||
that what they have is not the original version, so that the original
|
||||
author's reputation will not be affected by problems that might be
|
||||
introduced by others.
|
||||
|
||||
Finally, software patents pose a constant threat to the existence of
|
||||
any free program. We wish to make sure that a company cannot
|
||||
effectively restrict the users of a free program by obtaining a
|
||||
restrictive license from a patent holder. Therefore, we insist that
|
||||
any patent license obtained for a version of the library must be
|
||||
consistent with the full freedom of use specified in this license.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the
|
||||
ordinary GNU General Public License. This license, the GNU Lesser
|
||||
General Public License, applies to certain designated libraries, and
|
||||
is quite different from the ordinary General Public License. We use
|
||||
this license for certain libraries in order to permit linking those
|
||||
libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using
|
||||
a shared library, the combination of the two is legally speaking a
|
||||
combined work, a derivative of the original library. The ordinary
|
||||
General Public License therefore permits such linking only if the
|
||||
entire combination fits its criteria of freedom. The Lesser General
|
||||
Public License permits more lax criteria for linking other code with
|
||||
the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it
|
||||
does Less to protect the user's freedom than the ordinary General
|
||||
Public License. It also provides other free software developers Less
|
||||
of an advantage over competing non-free programs. These disadvantages
|
||||
are the reason we use the ordinary General Public License for many
|
||||
libraries. However, the Lesser license provides advantages in certain
|
||||
special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to
|
||||
encourage the widest possible use of a certain library, so that it becomes
|
||||
a de-facto standard. To achieve this, non-free programs must be
|
||||
allowed to use the library. A more frequent case is that a free
|
||||
library does the same job as widely used non-free libraries. In this
|
||||
case, there is little to gain by limiting the free library to free
|
||||
software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free
|
||||
programs enables a greater number of people to use a large body of
|
||||
free software. For example, permission to use the GNU C Library in
|
||||
non-free programs enables many more people to use the whole GNU
|
||||
operating system, as well as its variant, the GNU/Linux operating
|
||||
system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the
|
||||
users' freedom, it does ensure that the user of a program that is
|
||||
linked with the Library has the freedom and the wherewithal to run
|
||||
that program using a modified version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, whereas the latter must
|
||||
be combined with the library in order to run.
|
||||
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library or other
|
||||
program which contains a notice placed by the copyright holder or
|
||||
other authorized party saying it may be distributed under the terms of
|
||||
this Lesser General Public License (also called "this License").
|
||||
Each licensee is addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also combine or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (1) uses at run time a
|
||||
copy of the library already present on the user's computer system,
|
||||
rather than copying library functions into the executable, and (2)
|
||||
will operate properly with a modified version of the library, if
|
||||
the user installs one, as long as the modified version is
|
||||
interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
e) verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the materials to be distributed need not include anything that is
|
||||
normally distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. 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 not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties with
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
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
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the 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
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "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
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY 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
|
||||
LIBRARY (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 LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the library's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
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 2.1 of the License, or (at your option) 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 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
||||
|
||||
|
49
3rdparty/phpmailer/PHPMailerAutoload.php
vendored
Executable file
49
3rdparty/phpmailer/PHPMailerAutoload.php
vendored
Executable file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/**
|
||||
* PHPMailer SPL autoloader.
|
||||
* PHP Version 5
|
||||
* @package PHPMailer
|
||||
* @link https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
|
||||
* @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
|
||||
* @author Jim Jagielski (jimjag) <jimjag@gmail.com>
|
||||
* @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
|
||||
* @author Brent R. Matzelle (original founder)
|
||||
* @copyright 2012 - 2014 Marcus Bointon
|
||||
* @copyright 2010 - 2012 Jim Jagielski
|
||||
* @copyright 2004 - 2009 Andy Prevost
|
||||
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
|
||||
* @note This program is distributed in the hope that it will be useful - WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* PHPMailer SPL autoloader.
|
||||
* @param string $classname The name of the class to load
|
||||
*/
|
||||
function PHPMailerAutoload($classname)
|
||||
{
|
||||
//Can't use __DIR__ as it's only in PHP 5.3+
|
||||
$filename = dirname(__FILE__).DIRECTORY_SEPARATOR.'class.'.strtolower($classname).'.php';
|
||||
if (is_readable($filename)) {
|
||||
require $filename;
|
||||
}
|
||||
}
|
||||
|
||||
if (version_compare(PHP_VERSION, '5.1.2', '>=')) {
|
||||
//SPL autoloading was introduced in PHP 5.1.2
|
||||
if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
|
||||
spl_autoload_register('PHPMailerAutoload', true, true);
|
||||
} else {
|
||||
spl_autoload_register('PHPMailerAutoload');
|
||||
}
|
||||
} else {
|
||||
/**
|
||||
* Fall back to traditional autoload for old PHP versions
|
||||
* @param string $classname The name of the class to load
|
||||
*/
|
||||
function __autoload($classname)
|
||||
{
|
||||
PHPMailerAutoload($classname);
|
||||
}
|
||||
}
|
148
3rdparty/phpmailer/README.md
vendored
Executable file
148
3rdparty/phpmailer/README.md
vendored
Executable file
@ -0,0 +1,148 @@
|
||||

|
||||
|
||||
# PHPMailer - A full-featured email creation and transfer class for PHP
|
||||
|
||||
Build status: [](https://travis-ci.org/PHPMailer/PHPMailer)
|
||||
[](https://scrutinizer-ci.com/g/PHPMailer/PHPMailer/)
|
||||
[](https://scrutinizer-ci.com/g/PHPMailer/PHPMailer/)
|
||||
|
||||
## Class Features
|
||||
|
||||
- Probably the world's most popular code for sending email from PHP!
|
||||
- Used by many open-source projects: Drupal, SugarCRM, Yii, Joomla! and many more
|
||||
- Integrated SMTP support - send without a local mail server
|
||||
- Send emails with multiple TOs, CCs, BCCs and REPLY-TOs
|
||||
- Multipart/alternative emails for mail clients that do not read HTML email
|
||||
- Support for UTF-8 content and 8bit, base64, binary, and quoted-printable encodings
|
||||
- SMTP authentication with LOGIN, PLAIN, NTLM and CRAM-MD5 mechanisms over SSL and TLS transports
|
||||
- Native language support
|
||||
- DKIM and S/MIME signing support
|
||||
- Compatible with PHP 5.0 and later
|
||||
- Much more!
|
||||
|
||||
## Why you might need it
|
||||
|
||||
Many PHP developers utilize email in their code. The only PHP function that supports this is the mail() function. However, it does not provide any assistance for making use of popular features such as HTML-based emails and attachments.
|
||||
|
||||
Formatting email correctly is surprisingly difficult. There are myriad overlapping RFCs, requiring tight adherence to horribly complicated formatting and encoding rules - the vast majority of code that you'll find online that uses the mail() function directly is just plain wrong!
|
||||
*Please* don't be tempted to do it yourself - if you don't use PHPMailer, there are many other excellent libraries that you should look at before rolling your own - try SwiftMailer, Zend_Mail, eZcomponents etc.
|
||||
|
||||
The PHP mail() function usually sends via a local mail server, typically fronted by a `sendmail` binary on Linux, BSD and OS X platforms, however, Windows usually doesn't include a local mail server; PHPMailer's integrated SMTP implementation allows email sending on Windows platforms without a local mail server.
|
||||
|
||||
## License
|
||||
|
||||
This software is licenced under the [LGPL 2.1](http://www.gnu.org/licenses/lgpl-2.1.html). Please read LICENSE for information on the
|
||||
software availability and distribution.
|
||||
|
||||
## Installation & loading
|
||||
|
||||
PHPMailer is available via [Composer/Packagist](https://packagist.org/packages/phpmailer/phpmailer). Alternatively, just copy the contents of the PHPMailer folder into somewhere that's in your PHP `include_path` setting. If you don't speak git or just want a tarball, click the 'zip' button at the top of the page in GitHub.
|
||||
|
||||
PHPMailer provides an SPL-compatible autoloader, and that is the preferred way of loading the library - just `require '/path/to/PHPMailerAutoload.php';` and everything should work. The autoloader does not throw errors if it can't find classes so it prepends itself to the SPL list, allowing your own (or your framework's) autoloader to catch errors. SPL autoloading was introduced in PHP 5.1.0, so if you are using a version older than that you will need to require/include each class manually.
|
||||
PHPMailer does *not* declare a namespace because namespaces were only introduced in PHP 5.3.
|
||||
|
||||
### Minimal installation
|
||||
|
||||
While installing the entire package manually or with composer is simple, convenient and reliable, you may want to include only vital files in your project. At the very least you will need [class.phpmailer.php](class.phpmailer.php). If you're using SMTP, you'll need [class.smtp.php](class.smtp.php), and if you're using POP-before SMTP, you'll need [class.pop3.php](class.pop3.php). For all of these, we recommend you use [the autoloader](PHPMailerAutoload.php) too. You can skip the [language](language/) folder if you're not showing errors to users and can make do with English-only errors. You may need the additional classes in the [extras](extras/) folder if you are using those features, including NTLM authentication, advanced HTML-to-text conversion and ics generation.
|
||||
|
||||
## A Simple Example
|
||||
|
||||
```php
|
||||
<?php
|
||||
require 'PHPMailerAutoload.php';
|
||||
|
||||
$mail = new PHPMailer;
|
||||
|
||||
$mail->isSMTP(); // Set mailer to use SMTP
|
||||
$mail->Host = 'smtp1.example.com;smtp2.example.com'; // Specify main and backup SMTP servers
|
||||
$mail->SMTPAuth = true; // Enable SMTP authentication
|
||||
$mail->Username = 'user@example.com'; // SMTP username
|
||||
$mail->Password = 'secret'; // SMTP password
|
||||
$mail->SMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted
|
||||
|
||||
$mail->From = 'from@example.com';
|
||||
$mail->FromName = 'Mailer';
|
||||
$mail->addAddress('joe@example.net', 'Joe User'); // Add a recipient
|
||||
$mail->addAddress('ellen@example.com'); // Name is optional
|
||||
$mail->addReplyTo('info@example.com', 'Information');
|
||||
$mail->addCC('cc@example.com');
|
||||
$mail->addBCC('bcc@example.com');
|
||||
|
||||
$mail->WordWrap = 50; // Set word wrap to 50 characters
|
||||
$mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments
|
||||
$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name
|
||||
$mail->isHTML(true); // Set email format to HTML
|
||||
|
||||
$mail->Subject = 'Here is the subject';
|
||||
$mail->Body = 'This is the HTML message body <b>in bold!</b>';
|
||||
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
|
||||
|
||||
if(!$mail->send()) {
|
||||
echo 'Message could not be sent.';
|
||||
echo 'Mailer Error: ' . $mail->ErrorInfo;
|
||||
} else {
|
||||
echo 'Message has been sent';
|
||||
}
|
||||
```
|
||||
|
||||
You'll find plenty more to play with in the [examples](examples/) folder.
|
||||
|
||||
That's it. You should now be ready to use PHPMailer!
|
||||
|
||||
## Localization
|
||||
PHPMailer defaults to English, but in the [language](language/) folder you'll find numerous (39 at the time of writing) translations for PHPMailer error messages that you may encounter. Their filenames contain [ISO 639-1](http://en.wikipedia.org/wiki/ISO_639-1) language code for the translations, for example `fr` for French. To specify a language, you need to tell PHPMailer which one to use, like this:
|
||||
|
||||
```php
|
||||
// To load the French version
|
||||
$mail->setLanguage('fr', '/optional/path/to/language/directory/');
|
||||
```
|
||||
|
||||
We welcome corrections and new languages - if you're looking for corrections to do, run the [phpmailerLangTest.php](test/phpmailerLangTest.php) script in the tests folder and it will show any missing translations.
|
||||
|
||||
## Documentation
|
||||
|
||||
Generated documentation is [available online](http://phpmailer.github.io/PHPMailer/).
|
||||
|
||||
You'll find some basic user-level docs in the [docs](docs/) folder, and you can generate complete API-level documentation using the [generatedocs.sh](docs/generatedocs.sh) shell script in the docs folder, though you'll need to install [PHPDocumentor](http://www.phpdoc.org) first. You may find [the unit tests](test/phpmailerTest.php) a good source of how to do various operations such as encryption.
|
||||
|
||||
## Tests
|
||||
|
||||
There is a PHPUnit test script in the [test](test/) folder.
|
||||
|
||||
Build status: [](https://travis-ci.org/PHPMailer/PHPMailer)
|
||||
|
||||
If this isn't passing, is there something you can do to help?
|
||||
|
||||
## Contributing
|
||||
|
||||
Please submit bug reports, suggestions and pull requests to the [GitHub issue tracker](https://github.com/PHPMailer/PHPMailer/issues).
|
||||
|
||||
We're particularly interested in fixing edge-cases, expanding test coverage and updating translations.
|
||||
|
||||
With the move to the PHPMailer GitHub organisation, you'll need to update any remote URLs referencing the old GitHub location with a command like this from within your clone:
|
||||
|
||||
`git remote set-url upstream https://github.com/PHPMailer/PHPMailer.git`
|
||||
|
||||
Please *don't* use the SourceForge or Google Code projects any more.
|
||||
|
||||
## Changelog
|
||||
|
||||
See [changelog](changelog.md).
|
||||
|
||||
## History
|
||||
- PHPMailer was originally written in 2001 by Brent R. Matzelle as a [SourceForge project](http://sourceforge.net/projects/phpmailer/).
|
||||
- Marcus Bointon (coolbru on SF) and Andy Prevost (codeworxtech) took over the project in 2004.
|
||||
- Became an Apache incubator project on Google Code in 2010, managed by Jim Jagielski.
|
||||
- Marcus created his fork on [GitHub](https://github.com/Synchro/PHPMailer).
|
||||
- Jim and Marcus decide to join forces and use GitHub as the canonical and official repo for PHPMailer.
|
||||
- PHPMailer moves to the [PHPMailer organisation](https://github.com/PHPMailer) on GitHub.
|
||||
|
||||
### What's changed since moving from SourceForge?
|
||||
- Official successor to the SourceForge and Google Code projects.
|
||||
- Test suite.
|
||||
- Continuous integration with Travis-CI.
|
||||
- Composer support.
|
||||
- Public development.
|
||||
- Additional languages and language strings.
|
||||
- CRAM-MD5 authentication support.
|
||||
- Preserves full repo history of authors, commits and branches from the original SourceForge project.
|
552
3rdparty/phpmailer/changelog.md
vendored
Executable file
552
3rdparty/phpmailer/changelog.md
vendored
Executable file
@ -0,0 +1,552 @@
|
||||
# ChangeLog
|
||||
|
||||
* Update html2text from https://github.com/mtibben/html2text
|
||||
* Improve Arabic translations (Thanks to @tarekdj)
|
||||
* Consistent handling of connection variables in SMTP and POP3
|
||||
* PHPDoc cleanup
|
||||
* Update composer to use PHPUnit 4.1
|
||||
* Pass consistent params to callbacks
|
||||
* More consistent handling of error states and debug output
|
||||
* Use property defaults, remove constructors
|
||||
* Remove unreachable code
|
||||
* Use older regex validation pattern for troublesome PCRE library versions
|
||||
* Improve PCRE detection in older PHP versions
|
||||
* Handle debug output consistently, and always in UTF-8
|
||||
* Allow user-defined debug output method via a callable
|
||||
* msgHTML now converts data URIs to embedded images
|
||||
|
||||
## Version 5.2.8 (May 14th 2014)
|
||||
* Increase timeout to match RFC2821 section 4.5.3.2 and thus not fail greetdelays, fixes #104
|
||||
* Add timestamps to default debug output
|
||||
* Add connection events and new level 3 to debug output options
|
||||
* Chinese language update (Thanks to @binaryoung)
|
||||
* Allow custom Mailer types (Thanks to @michield)
|
||||
* Cope with spaces around SMTP host specs
|
||||
* Fix processing of multiple hosts in connect string
|
||||
* Added Galician translation (Thanks to @donatorouco)
|
||||
* Autoloader now prepends
|
||||
* Docs updates
|
||||
* Add Latvian translation (Thanks to @eddsstudio)
|
||||
* Add Belarusian translation (Thanks to @amaksymiuk)
|
||||
* Make autoloader work better on older PHP versions
|
||||
* Avoid double-encoding if mbstring is overloading mail()
|
||||
* Add Portuguese translation (Thanks to @Jonadabe)
|
||||
* Make quoted-printable encoder respect line ending setting
|
||||
* Improve Chinese translation (Thanks to @PeterDaveHello)
|
||||
* Add Georgian translation (Thanks to @akalongman)
|
||||
* Add Greek translation (Thanks to @lenasterg)
|
||||
* Fix serverHostname on PHP < 5.3
|
||||
* Improve performance of SMTP class
|
||||
* Implement automatic 7bit downgrade
|
||||
* Add Vietnamese translation (Thanks to @vinades)
|
||||
* Improve example images, switch to PNG
|
||||
* Add Croatian translation (Thanks to @hrvoj3e)
|
||||
* Remove setting the Return-Path and deprecate the Return-path property - it's just wrong!
|
||||
* Fix language file loading if CWD has changed (@stephandesouza)
|
||||
* Add HTML5 email validation pattern
|
||||
* Improve Turkish translations (Thanks to @yasinaydin)
|
||||
* Improve Romanian translations (Thanks to @aflorea)
|
||||
* Check php.ini for path to sendmail/qmail before using default
|
||||
* Improve Farsi translation (Thanks to @MHM5000)
|
||||
* Don't use quoted-printable encoding for multipart types
|
||||
* Add Serbian translation (Thanks to ajevremovic at gmail.com)
|
||||
* Remove useless PHP5 check
|
||||
* Use SVG for build status badges
|
||||
* Store MessageDate on creation
|
||||
* Better default behaviour for validateAddress
|
||||
|
||||
## Version 5.2.7 (September 12th 2013)
|
||||
* Add Ukranian translation from @Krezalis
|
||||
* Support for do_verp
|
||||
* Fix bug in CRAM-MD5 AUTH
|
||||
* Propagate Debugoutput option to SMTP class (@Reblutus)
|
||||
* Determine MIME type of attachments automatically
|
||||
* Add cross-platform, multibyte-safe pathinfo replacement (with tests) and use it
|
||||
* Add a new 'html' Debugoutput type
|
||||
* Clean up SMTP debug output, remove embedded HTML
|
||||
* Some small changes in header formatting to improve IETF msglint test results
|
||||
* Update test_script to use some recently changed features, rename to code_generator
|
||||
* Generated code actually works!
|
||||
* Update SyntaxHighlighter
|
||||
* Major overhaul and cleanup of example code
|
||||
* New PHPMailer graphic
|
||||
* msgHTML now uses RFC2392-compliant content ids
|
||||
* Add line break normalization function and use it in msgHTML
|
||||
* Don't set unnecessary reply-to addresses
|
||||
* Make fakesendmail.sh a bit cleaner and safer
|
||||
* Set a content-transfer-encoding on multiparts (fixes msglint error)
|
||||
* Fix cid generation in msgHTML (Thanks to @digitalthought)
|
||||
* Fix handling of multiple SMTP servers (Thanks to @NanoCaiordo)
|
||||
* SMTP->connect() now supports stream context options (Thanks to @stanislavdavid)
|
||||
* Add support for iCal event alternatives (Thanks to @reblutus)
|
||||
* Update to Polish language file (Thanks to Krzysztof Kowalewski)
|
||||
* Update to Norwegian language file (Thanks to @datagutten)
|
||||
* Update to Hungarian language file (Thanks to @dominicus-75)
|
||||
* Add Persian/Farsi translation from @jaii
|
||||
* Make SMTPDebug property type match type in SMTP class
|
||||
* Add unit tests for DKIM
|
||||
* Major refactor of SMTP class
|
||||
* Reformat to PSR-2 coding standard
|
||||
* Introduce autoloader
|
||||
* Allow overriding of SMTP class
|
||||
* Overhaul of PHPDocs
|
||||
* Fix broken Q-encoding
|
||||
* Czech language update (Thanks to @nemelu)
|
||||
* Removal of excess blank lines in messages
|
||||
* Added fake POP server and unit tests for POP-before-SMTP
|
||||
|
||||
## Version 5.2.6 (April 11th 2013)
|
||||
* Reflect move to PHPMailer GitHub organisation at https://github.com/PHPMailer/PHPMailer
|
||||
* Fix unbumped version numbers
|
||||
* Update packagist.org with new location
|
||||
* Clean up Changelog
|
||||
|
||||
## Version 5.2.5 (April 6th 2013)
|
||||
* First official release after move from Google Code
|
||||
* Fixes for qmail when sending via mail()
|
||||
* Merge in changes from Google code 5.2.4 release
|
||||
* Minor coding standards cleanup in SMTP class
|
||||
* Improved unit tests, now tests S/MIME signing
|
||||
* Travis-CI support on GitHub, runs tests with fake SMTP server
|
||||
|
||||
## Version 5.2.4 (February 19, 2013)
|
||||
* Fix tag and version bug.
|
||||
* un-deprecate isSMTP(), isMail(), IsSendmail() and isQmail().
|
||||
* Numerous translation updates
|
||||
|
||||
## Version 5.2.3 (February 8, 2013)
|
||||
* Fix issue with older PCREs and ValidateAddress() (Bugz: 124)
|
||||
* Add CRAM-MD5 authentication, thanks to Elijah madden, https://github.com/okonomiyaki3000
|
||||
* Replacement of obsolete Quoted-Printable encoder with a much better implementation
|
||||
* Composer package definition
|
||||
* New language added: Hebrew
|
||||
|
||||
## Version 5.2.2 (December 3, 2012)
|
||||
* Some fixes and syncs from https://github.com/Synchro/PHPMailer
|
||||
* Add Slovak translation, thanks to Michal Tinka
|
||||
|
||||
## Version 5.2.2-rc2 (November 6, 2012)
|
||||
* Fix SMTP server rotation (Bugz: 118)
|
||||
* Allow override of autogen'ed 'Date' header (for Drupal's
|
||||
og_mailinglist module)
|
||||
* No whitespace after '-f' option (Bugz: 116)
|
||||
* Work around potential warning (Bugz: 114)
|
||||
|
||||
## Version 5.2.2-rc1 (September 28, 2012)
|
||||
* Header encoding works with long lines (Bugz: 93)
|
||||
* Turkish language update (Bugz: 94)
|
||||
* undefined $pattern in EncodeQ bug squashed (Bugz: 98)
|
||||
* use of mail() in safe_mode now works (Bugz: 96)
|
||||
* ValidateAddress() now 'public static' so people can override the
|
||||
default and use their own validation scheme.
|
||||
* ValidateAddress() no longer uses broken FILTER_VALIDATE_EMAIL
|
||||
* Added in AUTH PLAIN SMTP authentication
|
||||
|
||||
## Version 5.2.2-beta2 (August 17, 2012)
|
||||
* Fixed Postfix VERP support (Bugz: 92)
|
||||
* Allow action_function callbacks to pass/use
|
||||
the From address (passed as final param)
|
||||
* Prevent inf look for get_lines() (Bugz: 77)
|
||||
* New public var ($UseSendmailOptions). Only pass sendmail()
|
||||
options iff we really are using sendmail or something sendmail
|
||||
compatible. (Bugz: 75)
|
||||
* default setting for LE returned to "\n" due to popular demand.
|
||||
|
||||
## Version 5.2.2-beta1 (July 13, 2012)
|
||||
* Expose PreSend() and PostSend() as public methods to allow
|
||||
for more control if serializing message sending.
|
||||
* GetSentMIMEMessage() only constructs the message copy when
|
||||
needed. Save memory.
|
||||
* Only pass params to mail() if the underlying MTA is
|
||||
"sendmail" (as defined as "having the string sendmail
|
||||
in its pathname") [#69]
|
||||
* Attachments now work with Amazon SES and others [Bugz#70]
|
||||
* Debug output now sent to stdout (via echo) or error_log [Bugz#5]
|
||||
* New var: Debugoutput (for above) [Bugz#5]
|
||||
* SMTP reads now Timeout aware (new var: Timeout=15) [Bugz#71]
|
||||
* SMTP reads now can have a Timelimit associated with them
|
||||
(new var: Timelimit=30)[Bugz#71]
|
||||
* Fix quoting issue associated with charsets
|
||||
* default setting for LE is now RFC compliant: "\r\n"
|
||||
* Return-Path can now be user defined (new var: ReturnPath)
|
||||
(the default is "" which implies no change from previous
|
||||
behavior, which was to use either From or Sender) [Bugz#46]
|
||||
* X-Mailer header can now be disabled (by setting to a
|
||||
whitespace string, eg " ") [Bugz#66]
|
||||
* Bugz closed: #68, #60, #42, #43, #59, #55, #66, #48, #49,
|
||||
#52, #31, #41, #5. #70, #69
|
||||
|
||||
## Version 5.2.1 (January 16, 2012)
|
||||
* Closed several bugs #5
|
||||
* Performance improvements
|
||||
* MsgHTML() now returns the message as required.
|
||||
* New method: GetSentMIMEMessage() (returns full copy of sent message)
|
||||
|
||||
## Version 5.2 (July 19, 2011)
|
||||
* protected MIME body and header
|
||||
* better DKIM DNS Resource Record support
|
||||
* better aly handling
|
||||
* htmlfilter class added to extras
|
||||
* moved to Apache Extras
|
||||
|
||||
## Version 5.1 (October 20, 2009)
|
||||
* fixed filename issue with AddStringAttachment (thanks to Tony)
|
||||
* fixed "SingleTo" property, now works with Senmail, Qmail, and SMTP in
|
||||
addition to PHP mail()
|
||||
* added DKIM digital signing functionality, new properties:
|
||||
- DKIM_domain (sets the domain name)
|
||||
- DKIM_private (holds DKIM private key)
|
||||
- DKIM_passphrase (holds your DKIM passphrase)
|
||||
- DKIM_selector (holds the DKIM "selector")
|
||||
- DKIM_identity (holds the identifying email address)
|
||||
* added callback function support
|
||||
- callback function parameters include:
|
||||
result, to, cc, bcc, subject and body
|
||||
- see the test/test_callback.php file for usage.
|
||||
* added "auto" identity functionality
|
||||
- can automatically add:
|
||||
- Return-path (if Sender not set)
|
||||
- Reply-To (if ReplyTo not set)
|
||||
- can be disabled:
|
||||
- $mail->SetFrom('yourname@yourdomain.com','First Last',false);
|
||||
- or by adding the $mail->Sender and/or $mail->ReplyTo properties
|
||||
|
||||
Note: "auto" identity added to help with emails ending up in spam or junk boxes because of missing headers
|
||||
|
||||
## Version 5.0.2 (May 24, 2009)
|
||||
* Fix for missing attachments when inline graphics are present
|
||||
* Fix for missing Cc in header when using SMTP (mail was sent,
|
||||
but not displayed in header -- Cc receiver only saw email To:
|
||||
line and no Cc line, but did get the email (To receiver
|
||||
saw same)
|
||||
|
||||
## Version 5.0.1 (April 05, 2009)
|
||||
* Temporary fix for missing attachments
|
||||
|
||||
## Version 5.0.0 (April 02, 2009)
|
||||
With the release of this version, we are initiating a new version numbering
|
||||
system to differentiate from the PHP4 version of PHPMailer.
|
||||
Most notable in this release is fully object oriented code.
|
||||
|
||||
### class.smtp.php:
|
||||
* Refactored class.smtp.php to support new exception handling
|
||||
* code size reduced from 29.2 Kb to 25.6 Kb
|
||||
* Removed unnecessary functions from class.smtp.php:
|
||||
- public function Expand($name) {
|
||||
- public function Help($keyword="") {
|
||||
- public function Noop() {
|
||||
- public function Send($from) {
|
||||
- public function SendOrMail($from) {
|
||||
- public function Verify($name) {
|
||||
|
||||
### class.phpmailer.php:
|
||||
* Refactored class.phpmailer.php with new exception handling
|
||||
* Changed processing functionality of Sendmail and Qmail so they cannot be
|
||||
inadvertently used
|
||||
* removed getFile() function, just became a simple wrapper for
|
||||
file_get_contents()
|
||||
* added check for PHP version (will gracefully exit if not at least PHP 5.0)
|
||||
* enhanced code to check if an attachment source is the same as an embedded or
|
||||
inline graphic source to eliminate duplicate attachments
|
||||
|
||||
### New /test_script
|
||||
We have written a test script you can use to test the script as part of your
|
||||
installation. Once you press submit, the test script will send a multi-mime
|
||||
email with either the message you type in or an HTML email with an inline
|
||||
graphic. Two attachments are included in the email (one of the attachments
|
||||
is also the inline graphic so you can see that only one copy of the graphic
|
||||
is sent in the email). The test script will also display the functional
|
||||
script that you can copy/paste to your editor to duplicate the functionality.
|
||||
|
||||
### New examples
|
||||
All new examples in both basic and advanced modes. Advanced examples show
|
||||
Exception handling.
|
||||
|
||||
### PHPDocumentator (phpdocs) documentation for PHPMailer version 5.0.0
|
||||
All new documentation
|
||||
|
||||
## Version 2.3 (November 06, 2008)
|
||||
* added Arabic language (many thanks to Bahjat Al Mostafa)
|
||||
* removed English language from language files and made it a default within
|
||||
class.phpmailer.php - if no language is found, it will default to use
|
||||
the english language translation
|
||||
* fixed public/private declarations
|
||||
* corrected line 1728, $basedir to $directory
|
||||
* added $sign_cert_file to avoid improper duplicate use of $sign_key_file
|
||||
* corrected $this->Hello on line 612 to $this->Helo
|
||||
* changed default of $LE to "\r\n" to comply with RFC 2822. Can be set by the user
|
||||
if default is not acceptable
|
||||
* removed trim() from return results in EncodeQP
|
||||
* /test and three files it contained are removed from version 2.3
|
||||
* fixed phpunit.php for compliance with PHP5
|
||||
* changed $this->AltBody = $textMsg; to $this->AltBody = html_entity_decode($textMsg);
|
||||
* We have removed the /phpdoc from the downloads. All documentation is now on
|
||||
the http://phpmailer.codeworxtech.com website.
|
||||
|
||||
## Version 2.2.1 () July 19 2008
|
||||
* fixed line 1092 in class.smtp.php (my apologies, error on my part)
|
||||
|
||||
## Version 2.2 () July 15 2008
|
||||
* Fixed redirect issue (display of UTF-8 in thank you redirect)
|
||||
* fixed error in getResponse function declaration (class.pop3.php)
|
||||
* PHPMailer now PHP6 compliant
|
||||
* fixed line 1092 in class.smtp.php (endless loop from missing = sign)
|
||||
|
||||
## Version 2.1 (Wed, June 04 2008)
|
||||
NOTE: WE HAVE A NEW LANGUAGE VARIABLE FOR DIGITALLY SIGNED S/MIME EMAILS. IF YOU CAN HELP WITH LANGUAGES OTHER THAN ENGLISH AND SPANISH, IT WOULD BE APPRECIATED.
|
||||
|
||||
* added S/MIME functionality (ability to digitally sign emails)
|
||||
BIG THANKS TO "sergiocambra" for posting this patch back in November 2007.
|
||||
The "Signed Emails" functionality adds the Sign method to pass the private key
|
||||
filename and the password to read it, and then email will be sent with
|
||||
content-type multipart/signed and with the digital signature attached.
|
||||
* fully compatible with E_STRICT error level
|
||||
- Please note:
|
||||
In about half the test environments this development version was subjected
|
||||
to, an error was thrown for the date() functions used (line 1565 and 1569).
|
||||
This is NOT a PHPMailer error, it is the result of an incorrectly configured
|
||||
PHP5 installation. The fix is to modify your 'php.ini' file and include the
|
||||
date.timezone = Etc/UTC (or your own zone)
|
||||
directive, to your own server timezone
|
||||
- If you do get this error, and are unable to access your php.ini file:
|
||||
In your PHP script, add
|
||||
`date_default_timezone_set('Etc/UTC');`
|
||||
- do not try to use
|
||||
`$myVar = date_default_timezone_get();`
|
||||
as a test, it will throw an error.
|
||||
* added ability to define path (mainly for embedded images)
|
||||
function `MsgHTML($message,$basedir='')` ... where:
|
||||
`$basedir` is the fully qualified path
|
||||
* fixed `MsgHTML()` function:
|
||||
- Embedded Images where images are specified by `<protocol>://` will not be altered or embedded
|
||||
* fixed the return value of SMTP exit code ( pclose )
|
||||
* addressed issue of multibyte characters in subject line and truncating
|
||||
* added ability to have user specified Message ID
|
||||
(default is still that PHPMailer create a unique Message ID)
|
||||
* corrected unidentified message type to 'application/octet-stream'
|
||||
* fixed chunk_split() multibyte issue (thanks to Colin Brown, et al).
|
||||
* added check for added attachments
|
||||
* enhanced conversion of HTML to text in MsgHTML (thanks to "brunny")
|
||||
|
||||
## Version 2.1.0beta2 (Sun, Dec 02 2007)
|
||||
* implemented updated EncodeQP (thanks to coolbru, aka Marcus Bointon)
|
||||
* finished all testing, all known bugs corrected, enhancements tested
|
||||
|
||||
Note: will NOT work with PHP4.
|
||||
|
||||
Please note, this is BETA software **DO NOT USE THIS IN PRODUCTION OR LIVE PROJECTS; INTENDED STRICTLY FOR TESTING**
|
||||
|
||||
## Version 2.1.0beta1
|
||||
Please note, this is BETA software
|
||||
** DO NOT USE THIS IN PRODUCTION OR LIVE PROJECTS
|
||||
INTENDED STRICTLY FOR TESTING
|
||||
|
||||
## Version 2.0.0 rc2 (Fri, Nov 16 2007), interim release
|
||||
* implements new property to control VERP in class.smtp.php
|
||||
example (requires instantiating class.smtp.php):
|
||||
$mail->do_verp = true;
|
||||
* POP-before-SMTP functionality included, thanks to Richard Davey
|
||||
(see class.pop3.php & pop3_before_smtp_test.php for examples)
|
||||
* included example showing how to use PHPMailer with GMAIL
|
||||
* fixed the missing Cc in SendMail() and Mail()
|
||||
|
||||
## Version 2.0.0 rc1 (Thu, Nov 08 2007), interim release
|
||||
* dramatically simplified using inline graphics ... it's fully automated and requires no user input
|
||||
* added automatic document type detection for attachments and pictures
|
||||
* added MsgHTML() function to replace Body tag for HTML emails
|
||||
* fixed the SendMail security issues (input validation vulnerability)
|
||||
* enhanced the AddAddresses functionality so that the "Name" portion is used in the email address
|
||||
* removed the need to use the AltBody method (set from the HTML, or default text used)
|
||||
* set the PHP Mail() function as the default (still support SendMail, SMTP Mail)
|
||||
* removed the need to set the IsHTML property (set automatically)
|
||||
* added Estonian language file by Indrek Päri
|
||||
* added header injection patch
|
||||
* added "set" method to permit users to create their own pseudo-properties like 'X-Headers', etc.
|
||||
* fixed warning message in SMTP get_lines method
|
||||
* added TLS/SSL SMTP support.
|
||||
* PHPMailer has been tested with PHP4 (4.4.7) and PHP5 (5.2.7)
|
||||
* Works with PHP installed as a module or as CGI-PHP
|
||||
NOTE: will NOT work with PHP5 in E_STRICT error mode
|
||||
|
||||
## Version 1.73 (Sun, Jun 10 2005)
|
||||
* Fixed denial of service bug: http://www.cybsec.com/vuln/PHPMailer-DOS.pdf
|
||||
* Now has a total of 20 translations
|
||||
* Fixed alt attachments bug: http://tinyurl.com/98u9k
|
||||
|
||||
## Version 1.72 (Wed, May 25 2004)
|
||||
* Added Dutch, Swedish, Czech, Norwegian, and Turkish translations.
|
||||
* Received: Removed this method because spam filter programs like
|
||||
SpamAssassin reject this header.
|
||||
* Fixed error count bug.
|
||||
* SetLanguage default is now "language/".
|
||||
* Fixed magic_quotes_runtime bug.
|
||||
|
||||
## Version 1.71 (Tue, Jul 28 2003)
|
||||
* Made several speed enhancements
|
||||
* Added German and Italian translation files
|
||||
* Fixed HELO/AUTH bugs on keep-alive connects
|
||||
* Now provides an error message if language file does not load
|
||||
* Fixed attachment EOL bug
|
||||
* Updated some unclear documentation
|
||||
* Added additional tests and improved others
|
||||
|
||||
## Version 1.70 (Mon, Jun 20 2003)
|
||||
* Added SMTP keep-alive support
|
||||
* Added IsError method for error detection
|
||||
* Added error message translation support (SetLanguage)
|
||||
* Refactored many methods to increase library performance
|
||||
* Hello now sends the newer EHLO message before HELO as per RFC 2821
|
||||
* Removed the boundary class and replaced it with GetBoundary
|
||||
* Removed queue support methods
|
||||
* New $Hostname variable
|
||||
* New Message-ID header
|
||||
* Received header reformat
|
||||
* Helo variable default changed to $Hostname
|
||||
* Removed extra spaces in Content-Type definition (#667182)
|
||||
* Return-Path should be set to Sender when set
|
||||
* Adds Q or B encoding to headers when necessary
|
||||
* quoted-encoding should now encode NULs \000
|
||||
* Fixed encoding of body/AltBody (#553370)
|
||||
* Adds "To: undisclosed-recipients:;" when all recipients are hidden (BCC)
|
||||
* Multiple bug fixes
|
||||
|
||||
## Version 1.65 (Fri, Aug 09 2002)
|
||||
* Fixed non-visible attachment bug (#585097) for Outlook
|
||||
* SMTP connections are now closed after each transaction
|
||||
* Fixed SMTP::Expand return value
|
||||
* Converted SMTP class documentation to phpDocumentor format
|
||||
|
||||
## Version 1.62 (Wed, Jun 26 2002)
|
||||
* Fixed multi-attach bug
|
||||
* Set proper word wrapping
|
||||
* Reduced memory use with attachments
|
||||
* Added more debugging
|
||||
* Changed documentation to phpDocumentor format
|
||||
|
||||
## Version 1.60 (Sat, Mar 30 2002)
|
||||
* Sendmail pipe and address patch (Christian Holtje)
|
||||
* Added embedded image and read confirmation support (A. Ognio)
|
||||
* Added unit tests
|
||||
* Added SMTP timeout support (*nix only)
|
||||
* Added possibly temporary PluginDir variable for SMTP class
|
||||
* Added LE message line ending variable
|
||||
* Refactored boundary and attachment code
|
||||
* Eliminated SMTP class warnings
|
||||
* Added SendToQueue method for future queuing support
|
||||
|
||||
## Version 1.54 (Wed, Dec 19 2001)
|
||||
* Add some queuing support code
|
||||
* Fixed a pesky multi/alt bug
|
||||
* Messages are no longer forced to have "To" addresses
|
||||
|
||||
## Version 1.50 (Thu, Nov 08 2001)
|
||||
* Fix extra lines when not using SMTP mailer
|
||||
* Set WordWrap variable to int with a zero default
|
||||
|
||||
## Version 1.47 (Tue, Oct 16 2001)
|
||||
* Fixed Received header code format
|
||||
* Fixed AltBody order error
|
||||
* Fixed alternate port warning
|
||||
|
||||
## Version 1.45 (Tue, Sep 25 2001)
|
||||
* Added enhanced SMTP debug support
|
||||
* Added support for multiple ports on SMTP
|
||||
* Added Received header for tracing
|
||||
* Fixed AddStringAttachment encoding
|
||||
* Fixed possible header name quote bug
|
||||
* Fixed wordwrap() trim bug
|
||||
* Couple other small bug fixes
|
||||
|
||||
## Version 1.41 (Wed, Aug 22 2001)
|
||||
* Fixed AltBody bug w/o attachments
|
||||
* Fixed rfc_date() for certain mail servers
|
||||
|
||||
## Version 1.40 (Sun, Aug 12 2001)
|
||||
* Added multipart/alternative support (AltBody)
|
||||
* Documentation update
|
||||
* Fixed bug in Mercury MTA
|
||||
|
||||
## Version 1.29 (Fri, Aug 03 2001)
|
||||
* Added AddStringAttachment() method
|
||||
* Added SMTP authentication support
|
||||
|
||||
## Version 1.28 (Mon, Jul 30 2001)
|
||||
* Fixed a typo in SMTP class
|
||||
* Fixed header issue with Imail (win32) SMTP server
|
||||
* Made fopen() calls for attachments use "rb" to fix win32 error
|
||||
|
||||
## Version 1.25 (Mon, Jul 02 2001)
|
||||
* Added RFC 822 date fix (Patrice)
|
||||
* Added improved error handling by adding a $ErrorInfo variable
|
||||
* Removed MailerDebug variable (obsolete with new error handler)
|
||||
|
||||
## Version 1.20 (Mon, Jun 25 2001)
|
||||
* Added quoted-printable encoding (Patrice)
|
||||
* Set Version as public and removed PrintVersion()
|
||||
* Changed phpdoc to only display public variables and methods
|
||||
|
||||
## Version 1.19 (Thu, Jun 21 2001)
|
||||
* Fixed MS Mail header bug
|
||||
* Added fix for Bcc problem with mail(). *Does not work on Win32*
|
||||
(See PHP bug report: http://www.php.net/bugs.php?id=11616)
|
||||
* mail() no longer passes a fifth parameter when not needed
|
||||
|
||||
## Version 1.15 (Fri, Jun 15 2001)
|
||||
Note: these changes contributed by Patrice Fournier
|
||||
* Changed all remaining \n to \r\n
|
||||
* Bcc: header no longer writen to message except
|
||||
when sent directly to sendmail
|
||||
* Added a small message to non-MIME compliant mail reader
|
||||
* Added Sender variable to change the Sender email
|
||||
used in -f for sendmail/mail and in 'MAIL FROM' for smtp mode
|
||||
* Changed boundary setting to a place it will be set only once
|
||||
* Removed transfer encoding for whole message when using multipart
|
||||
* Message body now uses Encoding in multipart messages
|
||||
* Can set encoding and type to attachments 7bit, 8bit
|
||||
and binary attachment are sent as is, base64 are encoded
|
||||
* Can set Encoding to base64 to send 8 bits body
|
||||
through 7 bits servers
|
||||
|
||||
## Version 1.10 (Tue, Jun 12 2001)
|
||||
* Fixed win32 mail header bug (printed out headers in message body)
|
||||
|
||||
## Version 1.09 (Fri, Jun 08 2001)
|
||||
* Changed date header to work with Netscape mail programs
|
||||
* Altered phpdoc documentation
|
||||
|
||||
## Version 1.08 (Tue, Jun 05 2001)
|
||||
* Added enhanced error-checking
|
||||
* Added phpdoc documentation to source
|
||||
|
||||
## Version 1.06 (Fri, Jun 01 2001)
|
||||
* Added optional name for file attachments
|
||||
|
||||
## Version 1.05 (Tue, May 29 2001)
|
||||
* Code cleanup
|
||||
* Eliminated sendmail header warning message
|
||||
* Fixed possible SMTP error
|
||||
|
||||
## Version 1.03 (Thu, May 24 2001)
|
||||
* Fixed problem where qmail sends out duplicate messages
|
||||
|
||||
## Version 1.02 (Wed, May 23 2001)
|
||||
* Added multiple recipient and attachment Clear* methods
|
||||
* Added Sendmail public variable
|
||||
* Fixed problem with loading SMTP library multiple times
|
||||
|
||||
## Version 0.98 (Tue, May 22 2001)
|
||||
* Fixed problem with redundant mail hosts sending out multiple messages
|
||||
* Added additional error handler code
|
||||
* Added AddCustomHeader() function
|
||||
* Added support for Microsoft mail client headers (affects priority)
|
||||
* Fixed small bug with Mailer variable
|
||||
* Added PrintVersion() function
|
||||
|
||||
## Version 0.92 (Tue, May 15 2001)
|
||||
* Changed file names to class.phpmailer.php and class.smtp.php to match
|
||||
current PHP class trend.
|
||||
* Fixed problem where body not being printed when a message is attached
|
||||
* Several small bug fixes
|
||||
|
||||
## Version 0.90 (Tue, April 17 2001)
|
||||
* Initial public release
|
3471
3rdparty/phpmailer/class.phpmailer.php
vendored
Executable file
3471
3rdparty/phpmailer/class.phpmailer.php
vendored
Executable file
File diff suppressed because it is too large
Load Diff
397
3rdparty/phpmailer/class.pop3.php
vendored
Executable file
397
3rdparty/phpmailer/class.pop3.php
vendored
Executable file
@ -0,0 +1,397 @@
|
||||
<?php
|
||||
/**
|
||||
* PHPMailer POP-Before-SMTP Authentication Class.
|
||||
* PHP Version 5
|
||||
* @package PHPMailer
|
||||
* @link https://github.com/PHPMailer/PHPMailer/
|
||||
* @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
|
||||
* @author Jim Jagielski (jimjag) <jimjag@gmail.com>
|
||||
* @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
|
||||
* @author Brent R. Matzelle (original founder)
|
||||
* @copyright 2012 - 2014 Marcus Bointon
|
||||
* @copyright 2010 - 2012 Jim Jagielski
|
||||
* @copyright 2004 - 2009 Andy Prevost
|
||||
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
|
||||
* @note This program is distributed in the hope that it will be useful - WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* PHPMailer POP-Before-SMTP Authentication Class.
|
||||
* Specifically for PHPMailer to use for RFC1939 POP-before-SMTP authentication.
|
||||
* Does not support APOP.
|
||||
* @package PHPMailer
|
||||
* @author Richard Davey (original author) <rich@corephp.co.uk>
|
||||
* @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
|
||||
* @author Jim Jagielski (jimjag) <jimjag@gmail.com>
|
||||
* @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
|
||||
*/
|
||||
class POP3
|
||||
{
|
||||
/**
|
||||
* The POP3 PHPMailer Version number.
|
||||
* @type string
|
||||
* @access public
|
||||
*/
|
||||
public $Version = '5.2.8';
|
||||
|
||||
/**
|
||||
* Default POP3 port number.
|
||||
* @type integer
|
||||
* @access public
|
||||
*/
|
||||
public $POP3_PORT = 110;
|
||||
|
||||
/**
|
||||
* Default timeout in seconds.
|
||||
* @type integer
|
||||
* @access public
|
||||
*/
|
||||
public $POP3_TIMEOUT = 30;
|
||||
|
||||
/**
|
||||
* POP3 Carriage Return + Line Feed.
|
||||
* @type string
|
||||
* @access public
|
||||
* @deprecated Use the constant instead
|
||||
*/
|
||||
public $CRLF = "\r\n";
|
||||
|
||||
/**
|
||||
* Debug display level.
|
||||
* Options: 0 = no, 1+ = yes
|
||||
* @type integer
|
||||
* @access public
|
||||
*/
|
||||
public $do_debug = 0;
|
||||
|
||||
/**
|
||||
* POP3 mail server hostname.
|
||||
* @type string
|
||||
* @access public
|
||||
*/
|
||||
public $host;
|
||||
|
||||
/**
|
||||
* POP3 port number.
|
||||
* @type integer
|
||||
* @access public
|
||||
*/
|
||||
public $port;
|
||||
|
||||
/**
|
||||
* POP3 Timeout Value in seconds.
|
||||
* @type integer
|
||||
* @access public
|
||||
*/
|
||||
public $tval;
|
||||
|
||||
/**
|
||||
* POP3 username
|
||||
* @type string
|
||||
* @access public
|
||||
*/
|
||||
public $username;
|
||||
|
||||
/**
|
||||
* POP3 password.
|
||||
* @type string
|
||||
* @access public
|
||||
*/
|
||||
public $password;
|
||||
|
||||
/**
|
||||
* Resource handle for the POP3 connection socket.
|
||||
* @type resource
|
||||
* @access private
|
||||
*/
|
||||
private $pop_conn;
|
||||
|
||||
/**
|
||||
* Are we connected?
|
||||
* @type boolean
|
||||
* @access private
|
||||
*/
|
||||
private $connected = false;
|
||||
|
||||
/**
|
||||
* Error container.
|
||||
* @type array
|
||||
* @access private
|
||||
*/
|
||||
private $errors = array();
|
||||
|
||||
/**
|
||||
* Line break constant
|
||||
*/
|
||||
const CRLF = "\r\n";
|
||||
|
||||
/**
|
||||
* Simple static wrapper for all-in-one POP before SMTP
|
||||
* @param $host
|
||||
* @param boolean $port
|
||||
* @param boolean $tval
|
||||
* @param string $username
|
||||
* @param string $password
|
||||
* @param integer $debug_level
|
||||
* @return boolean
|
||||
*/
|
||||
public static function popBeforeSmtp(
|
||||
$host,
|
||||
$port = false,
|
||||
$tval = false,
|
||||
$username = '',
|
||||
$password = '',
|
||||
$debug_level = 0
|
||||
) {
|
||||
$pop = new POP3;
|
||||
return $pop->authorise($host, $port, $tval, $username, $password, $debug_level);
|
||||
}
|
||||
|
||||
/**
|
||||
* Authenticate with a POP3 server.
|
||||
* A connect, login, disconnect sequence
|
||||
* appropriate for POP-before SMTP authorisation.
|
||||
* @access public
|
||||
* @param string $host The hostname to connect to
|
||||
* @param integer|boolean $port The port number to connect to
|
||||
* @param integer|boolean $timeout The timeout value
|
||||
* @param string $username
|
||||
* @param string $password
|
||||
* @param integer $debug_level
|
||||
* @return boolean
|
||||
*/
|
||||
public function authorise($host, $port = false, $timeout = false, $username = '', $password = '', $debug_level = 0)
|
||||
{
|
||||
$this->host = $host;
|
||||
// If no port value provided, use default
|
||||
if ($port === false) {
|
||||
$this->port = $this->POP3_PORT;
|
||||
} else {
|
||||
$this->port = (integer)$port;
|
||||
}
|
||||
// If no timeout value provided, use default
|
||||
if ($timeout === false) {
|
||||
$this->tval = $this->POP3_TIMEOUT;
|
||||
} else {
|
||||
$this->tval = (integer)$timeout;
|
||||
}
|
||||
$this->do_debug = $debug_level;
|
||||
$this->username = $username;
|
||||
$this->password = $password;
|
||||
// Reset the error log
|
||||
$this->errors = array();
|
||||
// connect
|
||||
$result = $this->connect($this->host, $this->port, $this->tval);
|
||||
if ($result) {
|
||||
$login_result = $this->login($this->username, $this->password);
|
||||
if ($login_result) {
|
||||
$this->disconnect();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// We need to disconnect regardless of whether the login succeeded
|
||||
$this->disconnect();
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Connect to a POP3 server.
|
||||
* @access public
|
||||
* @param string $host
|
||||
* @param integer|boolean $port
|
||||
* @param integer $tval
|
||||
* @return boolean
|
||||
*/
|
||||
public function connect($host, $port = false, $tval = 30)
|
||||
{
|
||||
// Are we already connected?
|
||||
if ($this->connected) {
|
||||
return true;
|
||||
}
|
||||
|
||||
//On Windows this will raise a PHP Warning error if the hostname doesn't exist.
|
||||
//Rather than suppress it with @fsockopen, capture it cleanly instead
|
||||
set_error_handler(array($this, 'catchWarning'));
|
||||
|
||||
if ($port === false) {
|
||||
$port = $this->POP3_PORT;
|
||||
}
|
||||
|
||||
// connect to the POP3 server
|
||||
$this->pop_conn = fsockopen(
|
||||
$host, // POP3 Host
|
||||
$port, // Port #
|
||||
$errno, // Error Number
|
||||
$errstr, // Error Message
|
||||
$tval
|
||||
); // Timeout (seconds)
|
||||
// Restore the error handler
|
||||
restore_error_handler();
|
||||
|
||||
// Did we connect?
|
||||
if ($this->pop_conn === false) {
|
||||
// It would appear not...
|
||||
$this->setError(array(
|
||||
'error' => "Failed to connect to server $host on port $port",
|
||||
'errno' => $errno,
|
||||
'errstr' => $errstr
|
||||
));
|
||||
return false;
|
||||
}
|
||||
|
||||
// Increase the stream time-out
|
||||
stream_set_timeout($this->pop_conn, $tval, 0);
|
||||
|
||||
// Get the POP3 server response
|
||||
$pop3_response = $this->getResponse();
|
||||
// Check for the +OK
|
||||
if ($this->checkResponse($pop3_response)) {
|
||||
// The connection is established and the POP3 server is talking
|
||||
$this->connected = true;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Log in to the POP3 server.
|
||||
* Does not support APOP (RFC 2828, 4949).
|
||||
* @access public
|
||||
* @param string $username
|
||||
* @param string $password
|
||||
* @return boolean
|
||||
*/
|
||||
public function login($username = '', $password = '')
|
||||
{
|
||||
if (!$this->connected) {
|
||||
$this->setError('Not connected to POP3 server');
|
||||
}
|
||||
if (empty($username)) {
|
||||
$username = $this->username;
|
||||
}
|
||||
if (empty($password)) {
|
||||
$password = $this->password;
|
||||
}
|
||||
|
||||
// Send the Username
|
||||
$this->sendString("USER $username" . self::CRLF);
|
||||
$pop3_response = $this->getResponse();
|
||||
if ($this->checkResponse($pop3_response)) {
|
||||
// Send the Password
|
||||
$this->sendString("PASS $password" . self::CRLF);
|
||||
$pop3_response = $this->getResponse();
|
||||
if ($this->checkResponse($pop3_response)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Disconnect from the POP3 server.
|
||||
* @access public
|
||||
*/
|
||||
public function disconnect()
|
||||
{
|
||||
$this->sendString('QUIT');
|
||||
//The QUIT command may cause the daemon to exit, which will kill our connection
|
||||
//So ignore errors here
|
||||
try {
|
||||
@fclose($this->pop_conn);
|
||||
} catch (Exception $e) {
|
||||
//Do nothing
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a response from the POP3 server.
|
||||
* $size is the maximum number of bytes to retrieve
|
||||
* @param integer $size
|
||||
* @return string
|
||||
* @access private
|
||||
*/
|
||||
private function getResponse($size = 128)
|
||||
{
|
||||
$response = fgets($this->pop_conn, $size);
|
||||
if ($this->do_debug >= 1) {
|
||||
echo "Server -> Client: $response";
|
||||
}
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Send raw data to the POP3 server.
|
||||
* @param string $string
|
||||
* @return integer
|
||||
* @access private
|
||||
*/
|
||||
private function sendString($string)
|
||||
{
|
||||
if ($this->pop_conn) {
|
||||
if ($this->do_debug >= 2) { //Show client messages when debug >= 2
|
||||
echo "Client -> Server: $string";
|
||||
}
|
||||
return fwrite($this->pop_conn, $string, strlen($string));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks the POP3 server response.
|
||||
* Looks for for +OK or -ERR.
|
||||
* @param string $string
|
||||
* @return boolean
|
||||
* @access private
|
||||
*/
|
||||
private function checkResponse($string)
|
||||
{
|
||||
if (substr($string, 0, 3) !== '+OK') {
|
||||
$this->setError(array(
|
||||
'error' => "Server reported an error: $string",
|
||||
'errno' => 0,
|
||||
'errstr' => ''
|
||||
));
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add an error to the internal error store.
|
||||
* Also display debug output if it's enabled.
|
||||
* @param $error
|
||||
*/
|
||||
private function setError($error)
|
||||
{
|
||||
$this->errors[] = $error;
|
||||
if ($this->do_debug >= 1) {
|
||||
echo '<pre>';
|
||||
foreach ($this->errors as $error) {
|
||||
print_r($error);
|
||||
}
|
||||
echo '</pre>';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* POP3 connection error handler.
|
||||
* @param integer $errno
|
||||
* @param string $errstr
|
||||
* @param string $errfile
|
||||
* @param integer $errline
|
||||
* @access private
|
||||
*/
|
||||
private function catchWarning($errno, $errstr, $errfile, $errline)
|
||||
{
|
||||
$this->setError(array(
|
||||
'error' => "Connecting to the POP3 server raised a PHP warning: ",
|
||||
'errno' => $errno,
|
||||
'errstr' => $errstr,
|
||||
'errfile' => $errfile,
|
||||
'errline' => $errline
|
||||
));
|
||||
}
|
||||
}
|
958
3rdparty/phpmailer/class.smtp.php
vendored
Executable file
958
3rdparty/phpmailer/class.smtp.php
vendored
Executable file
@ -0,0 +1,958 @@
|
||||
<?php
|
||||
/**
|
||||
* PHPMailer RFC821 SMTP email transport class.
|
||||
* PHP Version 5
|
||||
* @package PHPMailer
|
||||
* @link https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
|
||||
* @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
|
||||
* @author Jim Jagielski (jimjag) <jimjag@gmail.com>
|
||||
* @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
|
||||
* @author Brent R. Matzelle (original founder)
|
||||
* @copyright 2014 Marcus Bointon
|
||||
* @copyright 2010 - 2012 Jim Jagielski
|
||||
* @copyright 2004 - 2009 Andy Prevost
|
||||
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
|
||||
* @note This program is distributed in the hope that it will be useful - WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* PHPMailer RFC821 SMTP email transport class.
|
||||
* Implements RFC 821 SMTP commands and provides some utility methods for sending mail to an SMTP server.
|
||||
* @package PHPMailer
|
||||
* @author Chris Ryan <unknown@example.com>
|
||||
* @author Marcus Bointon <phpmailer@synchromedia.co.uk>
|
||||
*/
|
||||
class SMTP
|
||||
{
|
||||
/**
|
||||
* The PHPMailer SMTP version number.
|
||||
* @type string
|
||||
*/
|
||||
const VERSION = '5.2.8';
|
||||
|
||||
/**
|
||||
* SMTP line break constant.
|
||||
* @type string
|
||||
*/
|
||||
const CRLF = "\r\n";
|
||||
|
||||
/**
|
||||
* The SMTP port to use if one is not specified.
|
||||
* @type integer
|
||||
*/
|
||||
const DEFAULT_SMTP_PORT = 25;
|
||||
|
||||
/**
|
||||
* The maximum line length allowed by RFC 2822 section 2.1.1
|
||||
* @type integer
|
||||
*/
|
||||
const MAX_LINE_LENGTH = 998;
|
||||
|
||||
/**
|
||||
* The PHPMailer SMTP Version number.
|
||||
* @type string
|
||||
* @deprecated Use the `VERSION` constant instead
|
||||
* @see SMTP::VERSION
|
||||
*/
|
||||
public $Version = '5.2.8';
|
||||
|
||||
/**
|
||||
* SMTP server port number.
|
||||
* @type integer
|
||||
* @deprecated This is only ever used as a default value, so use the `DEFAULT_SMTP_PORT` constant instead
|
||||
* @see SMTP::DEFAULT_SMTP_PORT
|
||||
*/
|
||||
public $SMTP_PORT = 25;
|
||||
|
||||
/**
|
||||
* SMTP reply line ending.
|
||||
* @type string
|
||||
* @deprecated Use the `CRLF` constant instead
|
||||
* @see SMTP::CRLF
|
||||
*/
|
||||
public $CRLF = "\r\n";
|
||||
|
||||
/**
|
||||
* Debug output level.
|
||||
* Options:
|
||||
* * `0` No output
|
||||
* * `1` Commands
|
||||
* * `2` Data and commands
|
||||
* * `3` As 2 plus connection status
|
||||
* * `4` Low-level data output
|
||||
* @type integer
|
||||
*/
|
||||
public $do_debug = 0;
|
||||
|
||||
/**
|
||||
* How to handle debug output.
|
||||
* Options:
|
||||
* * `echo` Output plain-text as-is, appropriate for CLI
|
||||
* * `html` Output escaped, line breaks converted to `<br>`, appropriate for browser output
|
||||
* * `error_log` Output to error log as configured in php.ini
|
||||
*
|
||||
* Alternatively, you can provide a callable expecting two params: a message string and the debug level:
|
||||
* <code>
|
||||
* $smtp->Debugoutput = function($str, $level) {echo "debug level $level; message: $str";};
|
||||
* </code>
|
||||
* @type string|callable
|
||||
*/
|
||||
public $Debugoutput = 'echo';
|
||||
|
||||
/**
|
||||
* Whether to use VERP.
|
||||
* @link http://en.wikipedia.org/wiki/Variable_envelope_return_path
|
||||
* @link http://www.postfix.org/VERP_README.html Info on VERP
|
||||
* @type boolean
|
||||
*/
|
||||
public $do_verp = false;
|
||||
|
||||
/**
|
||||
* The timeout value for connection, in seconds.
|
||||
* Default of 5 minutes (300sec) is from RFC2821 section 4.5.3.2
|
||||
* This needs to be quite high to function correctly with hosts using greetdelay as an anti-spam measure.
|
||||
* @link http://tools.ietf.org/html/rfc2821#section-4.5.3.2
|
||||
* @type integer
|
||||
*/
|
||||
public $Timeout = 300;
|
||||
|
||||
/**
|
||||
* The SMTP timelimit value for reads, in seconds.
|
||||
* @type integer
|
||||
*/
|
||||
public $Timelimit = 30;
|
||||
|
||||
/**
|
||||
* The socket for the server connection.
|
||||
* @type resource
|
||||
*/
|
||||
protected $smtp_conn;
|
||||
|
||||
/**
|
||||
* Error message, if any, for the last call.
|
||||
* @type array
|
||||
*/
|
||||
protected $error = array();
|
||||
|
||||
/**
|
||||
* The reply the server sent to us for HELO.
|
||||
* If null, no HELO string has yet been received.
|
||||
* @type string|null
|
||||
*/
|
||||
protected $helo_rply = null;
|
||||
|
||||
/**
|
||||
* The most recent reply received from the server.
|
||||
* @type string
|
||||
*/
|
||||
protected $last_reply = '';
|
||||
|
||||
/**
|
||||
* Output debugging info via a user-selected method.
|
||||
* @see SMTP::$Debugoutput
|
||||
* @see SMTP::$do_debug
|
||||
* @param string $str Debug string to output
|
||||
* @return void
|
||||
*/
|
||||
protected function edebug($str)
|
||||
{
|
||||
if (is_callable($this->Debugoutput)) {
|
||||
call_user_func($this->Debugoutput, $str, $this->do_debug);
|
||||
return;
|
||||
}
|
||||
switch ($this->Debugoutput) {
|
||||
case 'error_log':
|
||||
//Don't output, just log
|
||||
error_log($str);
|
||||
break;
|
||||
case 'html':
|
||||
//Cleans up output a bit for a better looking, HTML-safe output
|
||||
echo htmlentities(
|
||||
preg_replace('/[\r\n]+/', '', $str),
|
||||
ENT_QUOTES,
|
||||
'UTF-8'
|
||||
)
|
||||
. "<br>\n";
|
||||
break;
|
||||
case 'echo':
|
||||
default:
|
||||
//Normalize line breaks
|
||||
$str = preg_replace('/(\r\n|\r|\n)/ms', "\n", $str);
|
||||
echo gmdate('Y-m-d H:i:s') . "\t" . str_replace(
|
||||
"\n",
|
||||
"\n \t ",
|
||||
trim($str)
|
||||
)."\n";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Connect to an SMTP server.
|
||||
* @param string $host SMTP server IP or host name
|
||||
* @param integer $port The port number to connect to
|
||||
* @param integer $timeout How long to wait for the connection to open
|
||||
* @param array $options An array of options for stream_context_create()
|
||||
* @access public
|
||||
* @return boolean
|
||||
*/
|
||||
public function connect($host, $port = null, $timeout = 30, $options = array())
|
||||
{
|
||||
static $streamok;
|
||||
//This is enabled by default since 5.0.0 but some providers disable it
|
||||
//Check this once and cache the result
|
||||
if (is_null($streamok)) {
|
||||
$streamok = function_exists('stream_socket_client');
|
||||
}
|
||||
// Clear errors to avoid confusion
|
||||
$this->error = array();
|
||||
// Make sure we are __not__ connected
|
||||
if ($this->connected()) {
|
||||
// Already connected, generate error
|
||||
$this->error = array('error' => 'Already connected to a server');
|
||||
return false;
|
||||
}
|
||||
if (empty($port)) {
|
||||
$port = self::DEFAULT_SMTP_PORT;
|
||||
}
|
||||
// Connect to the SMTP server
|
||||
if ($this->do_debug >= 3) {
|
||||
$this->edebug("Connection: opening to $host:$port, t=$timeout, opt=".var_export($options, true));
|
||||
}
|
||||
$errno = 0;
|
||||
$errstr = '';
|
||||
if ($streamok) {
|
||||
$socket_context = stream_context_create($options);
|
||||
//Suppress errors; connection failures are handled at a higher level
|
||||
$this->smtp_conn = @stream_socket_client(
|
||||
$host . ":" . $port,
|
||||
$errno,
|
||||
$errstr,
|
||||
$timeout,
|
||||
STREAM_CLIENT_CONNECT,
|
||||
$socket_context
|
||||
);
|
||||
} else {
|
||||
//Fall back to fsockopen which should work in more places, but is missing some features
|
||||
if ($this->do_debug >= 3) {
|
||||
$this->edebug("Connection: stream_socket_client not available, falling back to fsockopen");
|
||||
}
|
||||
$this->smtp_conn = fsockopen(
|
||||
$host,
|
||||
$port,
|
||||
$errno,
|
||||
$errstr,
|
||||
$timeout
|
||||
);
|
||||
}
|
||||
// Verify we connected properly
|
||||
if (!is_resource($this->smtp_conn)) {
|
||||
$this->error = array(
|
||||
'error' => 'Failed to connect to server',
|
||||
'errno' => $errno,
|
||||
'errstr' => $errstr
|
||||
);
|
||||
if ($this->do_debug >= 1) {
|
||||
$this->edebug(
|
||||
'SMTP ERROR: ' . $this->error['error']
|
||||
. ": $errstr ($errno)"
|
||||
);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if ($this->do_debug >= 3) {
|
||||
$this->edebug('Connection: opened');
|
||||
}
|
||||
// SMTP server can take longer to respond, give longer timeout for first read
|
||||
// Windows does not have support for this timeout function
|
||||
if (substr(PHP_OS, 0, 3) != 'WIN') {
|
||||
$max = ini_get('max_execution_time');
|
||||
if ($max != 0 && $timeout > $max) { // Don't bother if unlimited
|
||||
@set_time_limit($timeout);
|
||||
}
|
||||
stream_set_timeout($this->smtp_conn, $timeout, 0);
|
||||
}
|
||||
// Get any announcement
|
||||
$announce = $this->get_lines();
|
||||
if ($this->do_debug >= 2) {
|
||||
$this->edebug('SERVER -> CLIENT: ' . $announce);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initiate a TLS (encrypted) session.
|
||||
* @access public
|
||||
* @return boolean
|
||||
*/
|
||||
public function startTLS()
|
||||
{
|
||||
if (!$this->sendCommand('STARTTLS', 'STARTTLS', 220)) {
|
||||
return false;
|
||||
}
|
||||
// Begin encrypted connection
|
||||
if (!stream_socket_enable_crypto(
|
||||
$this->smtp_conn,
|
||||
true,
|
||||
STREAM_CRYPTO_METHOD_TLS_CLIENT
|
||||
)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform SMTP authentication.
|
||||
* Must be run after hello().
|
||||
* @see hello()
|
||||
* @param string $username The user name
|
||||
* @param string $password The password
|
||||
* @param string $authtype The auth type (PLAIN, LOGIN, NTLM, CRAM-MD5)
|
||||
* @param string $realm The auth realm for NTLM
|
||||
* @param string $workstation The auth workstation for NTLM
|
||||
* @access public
|
||||
* @return boolean True if successfully authenticated.
|
||||
*/
|
||||
public function authenticate(
|
||||
$username,
|
||||
$password,
|
||||
$authtype = 'LOGIN',
|
||||
$realm = '',
|
||||
$workstation = ''
|
||||
) {
|
||||
if (empty($authtype)) {
|
||||
$authtype = 'LOGIN';
|
||||
}
|
||||
switch ($authtype) {
|
||||
case 'PLAIN':
|
||||
// Start authentication
|
||||
if (!$this->sendCommand('AUTH', 'AUTH PLAIN', 334)) {
|
||||
return false;
|
||||
}
|
||||
// Send encoded username and password
|
||||
if (!$this->sendCommand(
|
||||
'User & Password',
|
||||
base64_encode("\0" . $username . "\0" . $password),
|
||||
235
|
||||
)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case 'LOGIN':
|
||||
// Start authentication
|
||||
if (!$this->sendCommand('AUTH', 'AUTH LOGIN', 334)) {
|
||||
return false;
|
||||
}
|
||||
if (!$this->sendCommand("Username", base64_encode($username), 334)) {
|
||||
return false;
|
||||
}
|
||||
if (!$this->sendCommand("Password", base64_encode($password), 235)) {
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case 'NTLM':
|
||||
/*
|
||||
* ntlm_sasl_client.php
|
||||
* Bundled with Permission
|
||||
*
|
||||
* How to telnet in windows:
|
||||
* http://technet.microsoft.com/en-us/library/aa995718%28EXCHG.65%29.aspx
|
||||
* PROTOCOL Docs http://curl.haxx.se/rfc/ntlm.html#ntlmSmtpAuthentication
|
||||
*/
|
||||
require_once 'extras/ntlm_sasl_client.php';
|
||||
$temp = new stdClass();
|
||||
$ntlm_client = new ntlm_sasl_client_class;
|
||||
//Check that functions are available
|
||||
if (!$ntlm_client->Initialize($temp)) {
|
||||
$this->error = array('error' => $temp->error);
|
||||
if ($this->do_debug >= 1) {
|
||||
$this->edebug(
|
||||
'You need to enable some modules in your php.ini file: '
|
||||
. $this->error['error']
|
||||
);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
//msg1
|
||||
$msg1 = $ntlm_client->TypeMsg1($realm, $workstation); //msg1
|
||||
|
||||
if (!$this->sendCommand(
|
||||
'AUTH NTLM',
|
||||
'AUTH NTLM ' . base64_encode($msg1),
|
||||
334
|
||||
)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
//Though 0 based, there is a white space after the 3 digit number
|
||||
//msg2
|
||||
$challenge = substr($this->last_reply, 3);
|
||||
$challenge = base64_decode($challenge);
|
||||
$ntlm_res = $ntlm_client->NTLMResponse(
|
||||
substr($challenge, 24, 8),
|
||||
$password
|
||||
);
|
||||
//msg3
|
||||
$msg3 = $ntlm_client->TypeMsg3(
|
||||
$ntlm_res,
|
||||
$username,
|
||||
$realm,
|
||||
$workstation
|
||||
);
|
||||
// send encoded username
|
||||
return $this->sendCommand('Username', base64_encode($msg3), 235);
|
||||
case 'CRAM-MD5':
|
||||
// Start authentication
|
||||
if (!$this->sendCommand('AUTH CRAM-MD5', 'AUTH CRAM-MD5', 334)) {
|
||||
return false;
|
||||
}
|
||||
// Get the challenge
|
||||
$challenge = base64_decode(substr($this->last_reply, 4));
|
||||
|
||||
// Build the response
|
||||
$response = $username . ' ' . $this->hmac($challenge, $password);
|
||||
|
||||
// send encoded credentials
|
||||
return $this->sendCommand('Username', base64_encode($response), 235);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculate an MD5 HMAC hash.
|
||||
* Works like hash_hmac('md5', $data, $key)
|
||||
* in case that function is not available
|
||||
* @param string $data The data to hash
|
||||
* @param string $key The key to hash with
|
||||
* @access protected
|
||||
* @return string
|
||||
*/
|
||||
protected function hmac($data, $key)
|
||||
{
|
||||
if (function_exists('hash_hmac')) {
|
||||
return hash_hmac('md5', $data, $key);
|
||||
}
|
||||
|
||||
// The following borrowed from
|
||||
// http://php.net/manual/en/function.mhash.php#27225
|
||||
|
||||
// RFC 2104 HMAC implementation for php.
|
||||
// Creates an md5 HMAC.
|
||||
// Eliminates the need to install mhash to compute a HMAC
|
||||
// Hacked by Lance Rushing
|
||||
|
||||
$bytelen = 64; // byte length for md5
|
||||
if (strlen($key) > $bytelen) {
|
||||
$key = pack('H*', md5($key));
|
||||
}
|
||||
$key = str_pad($key, $bytelen, chr(0x00));
|
||||
$ipad = str_pad('', $bytelen, chr(0x36));
|
||||
$opad = str_pad('', $bytelen, chr(0x5c));
|
||||
$k_ipad = $key ^ $ipad;
|
||||
$k_opad = $key ^ $opad;
|
||||
|
||||
return md5($k_opad . pack('H*', md5($k_ipad . $data)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Check connection state.
|
||||
* @access public
|
||||
* @return boolean True if connected.
|
||||
*/
|
||||
public function connected()
|
||||
{
|
||||
if (is_resource($this->smtp_conn)) {
|
||||
$sock_status = stream_get_meta_data($this->smtp_conn);
|
||||
if ($sock_status['eof']) {
|
||||
// the socket is valid but we are not connected
|
||||
if ($this->do_debug >= 1) {
|
||||
$this->edebug(
|
||||
'SMTP NOTICE: EOF caught while checking if connected'
|
||||
);
|
||||
}
|
||||
$this->close();
|
||||
return false;
|
||||
}
|
||||
return true; // everything looks good
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Close the socket and clean up the state of the class.
|
||||
* Don't use this function without first trying to use QUIT.
|
||||
* @see quit()
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function close()
|
||||
{
|
||||
$this->error = array();
|
||||
$this->helo_rply = null;
|
||||
if (is_resource($this->smtp_conn)) {
|
||||
// close the connection and cleanup
|
||||
fclose($this->smtp_conn);
|
||||
if ($this->do_debug >= 3) {
|
||||
$this->edebug('Connection: closed');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Send an SMTP DATA command.
|
||||
* Issues a data command and sends the msg_data to the server,
|
||||
* finializing the mail transaction. $msg_data is the message
|
||||
* that is to be send with the headers. Each header needs to be
|
||||
* on a single line followed by a <CRLF> with the message headers
|
||||
* and the message body being separated by and additional <CRLF>.
|
||||
* Implements rfc 821: DATA <CRLF>
|
||||
* @param string $msg_data Message data to send
|
||||
* @access public
|
||||
* @return boolean
|
||||
*/
|
||||
public function data($msg_data)
|
||||
{
|
||||
if (!$this->sendCommand('DATA', 'DATA', 354)) {
|
||||
return false;
|
||||
}
|
||||
/* The server is ready to accept data!
|
||||
* According to rfc821 we should not send more than 1000 characters on a single line (including the CRLF)
|
||||
* so we will break the data up into lines by \r and/or \n then if needed we will break each of those into
|
||||
* smaller lines to fit within the limit.
|
||||
* We will also look for lines that start with a '.' and prepend an additional '.'.
|
||||
* NOTE: this does not count towards line-length limit.
|
||||
*/
|
||||
|
||||
// Normalize line breaks before exploding
|
||||
$lines = explode("\n", str_replace(array("\r\n", "\r"), "\n", $msg_data));
|
||||
|
||||
/* To distinguish between a complete RFC822 message and a plain message body, we check if the first field
|
||||
* of the first line (':' separated) does not contain a space then it _should_ be a header and we will
|
||||
* process all lines before a blank line as headers.
|
||||
*/
|
||||
|
||||
$field = substr($lines[0], 0, strpos($lines[0], ':'));
|
||||
$in_headers = false;
|
||||
if (!empty($field) && strpos($field, ' ') === false) {
|
||||
$in_headers = true;
|
||||
}
|
||||
|
||||
foreach ($lines as $line) {
|
||||
$lines_out = array();
|
||||
if ($in_headers and $line == '') {
|
||||
$in_headers = false;
|
||||
}
|
||||
// ok we need to break this line up into several smaller lines
|
||||
//This is a small micro-optimisation: isset($str[$len]) is equivalent to (strlen($str) > $len)
|
||||
while (isset($line[self::MAX_LINE_LENGTH])) {
|
||||
//Working backwards, try to find a space within the last MAX_LINE_LENGTH chars of the line to break on
|
||||
//so as to avoid breaking in the middle of a word
|
||||
$pos = strrpos(substr($line, 0, self::MAX_LINE_LENGTH), ' ');
|
||||
if (!$pos) { //Deliberately matches both false and 0
|
||||
//No nice break found, add a hard break
|
||||
$pos = self::MAX_LINE_LENGTH - 1;
|
||||
$lines_out[] = substr($line, 0, $pos);
|
||||
$line = substr($line, $pos);
|
||||
} else {
|
||||
//Break at the found point
|
||||
$lines_out[] = substr($line, 0, $pos);
|
||||
//Move along by the amount we dealt with
|
||||
$line = substr($line, $pos + 1);
|
||||
}
|
||||
/* If processing headers add a LWSP-char to the front of new line
|
||||
* RFC822 section 3.1.1
|
||||
*/
|
||||
if ($in_headers) {
|
||||
$line = "\t" . $line;
|
||||
}
|
||||
}
|
||||
$lines_out[] = $line;
|
||||
|
||||
// Send the lines to the server
|
||||
foreach ($lines_out as $line_out) {
|
||||
//RFC2821 section 4.5.2
|
||||
if (!empty($line_out) and $line_out[0] == '.') {
|
||||
$line_out = '.' . $line_out;
|
||||
}
|
||||
$this->client_send($line_out . self::CRLF);
|
||||
}
|
||||
}
|
||||
|
||||
// Message data has been sent, complete the command
|
||||
return $this->sendCommand('DATA END', '.', 250);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send an SMTP HELO or EHLO command.
|
||||
* Used to identify the sending server to the receiving server.
|
||||
* This makes sure that client and server are in a known state.
|
||||
* Implements RFC 821: HELO <SP> <domain> <CRLF>
|
||||
* and RFC 2821 EHLO.
|
||||
* @param string $host The host name or IP to connect to
|
||||
* @access public
|
||||
* @return boolean
|
||||
*/
|
||||
public function hello($host = '')
|
||||
{
|
||||
// Try extended hello first (RFC 2821)
|
||||
return (boolean)($this->sendHello('EHLO', $host) or $this->sendHello('HELO', $host));
|
||||
}
|
||||
|
||||
/**
|
||||
* Send an SMTP HELO or EHLO command.
|
||||
* Low-level implementation used by hello()
|
||||
* @see hello()
|
||||
* @param string $hello The HELO string
|
||||
* @param string $host The hostname to say we are
|
||||
* @access protected
|
||||
* @return boolean
|
||||
*/
|
||||
protected function sendHello($hello, $host)
|
||||
{
|
||||
$noerror = $this->sendCommand($hello, $hello . ' ' . $host, 250);
|
||||
$this->helo_rply = $this->last_reply;
|
||||
return $noerror;
|
||||
}
|
||||
|
||||
/**
|
||||
* Send an SMTP MAIL command.
|
||||
* Starts a mail transaction from the email address specified in
|
||||
* $from. Returns true if successful or false otherwise. If True
|
||||
* the mail transaction is started and then one or more recipient
|
||||
* commands may be called followed by a data command.
|
||||
* Implements rfc 821: MAIL <SP> FROM:<reverse-path> <CRLF>
|
||||
* @param string $from Source address of this message
|
||||
* @access public
|
||||
* @return boolean
|
||||
*/
|
||||
public function mail($from)
|
||||
{
|
||||
$useVerp = ($this->do_verp ? ' XVERP' : '');
|
||||
return $this->sendCommand(
|
||||
'MAIL FROM',
|
||||
'MAIL FROM:<' . $from . '>' . $useVerp,
|
||||
250
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send an SMTP QUIT command.
|
||||
* Closes the socket if there is no error or the $close_on_error argument is true.
|
||||
* Implements from rfc 821: QUIT <CRLF>
|
||||
* @param boolean $close_on_error Should the connection close if an error occurs?
|
||||
* @access public
|
||||
* @return boolean
|
||||
*/
|
||||
public function quit($close_on_error = true)
|
||||
{
|
||||
$noerror = $this->sendCommand('QUIT', 'QUIT', 221);
|
||||
$err = $this->error; //Save any error
|
||||
if ($noerror or $close_on_error) {
|
||||
$this->close();
|
||||
$this->error = $err; //Restore any error from the quit command
|
||||
}
|
||||
return $noerror;
|
||||
}
|
||||
|
||||
/**
|
||||
* Send an SMTP RCPT command.
|
||||
* Sets the TO argument to $toaddr.
|
||||
* Returns true if the recipient was accepted false if it was rejected.
|
||||
* Implements from rfc 821: RCPT <SP> TO:<forward-path> <CRLF>
|
||||
* @param string $toaddr The address the message is being sent to
|
||||
* @access public
|
||||
* @return boolean
|
||||
*/
|
||||
public function recipient($toaddr)
|
||||
{
|
||||
return $this->sendCommand(
|
||||
'RCPT TO',
|
||||
'RCPT TO:<' . $toaddr . '>',
|
||||
array(250, 251)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send an SMTP RSET command.
|
||||
* Abort any transaction that is currently in progress.
|
||||
* Implements rfc 821: RSET <CRLF>
|
||||
* @access public
|
||||
* @return boolean True on success.
|
||||
*/
|
||||
public function reset()
|
||||
{
|
||||
return $this->sendCommand('RSET', 'RSET', 250);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send a command to an SMTP server and check its return code.
|
||||
* @param string $command The command name - not sent to the server
|
||||
* @param string $commandstring The actual command to send
|
||||
* @param integer|array $expect One or more expected integer success codes
|
||||
* @access protected
|
||||
* @return boolean True on success.
|
||||
*/
|
||||
protected function sendCommand($command, $commandstring, $expect)
|
||||
{
|
||||
if (!$this->connected()) {
|
||||
$this->error = array(
|
||||
'error' => "Called $command without being connected"
|
||||
);
|
||||
return false;
|
||||
}
|
||||
$this->client_send($commandstring . self::CRLF);
|
||||
|
||||
$reply = $this->get_lines();
|
||||
$code = substr($reply, 0, 3);
|
||||
|
||||
if ($this->do_debug >= 2) {
|
||||
$this->edebug('SERVER -> CLIENT: ' . $reply);
|
||||
}
|
||||
|
||||
if (!in_array($code, (array)$expect)) {
|
||||
$this->last_reply = null;
|
||||
$this->error = array(
|
||||
'error' => "$command command failed",
|
||||
'smtp_code' => $code,
|
||||
'detail' => substr($reply, 4)
|
||||
);
|
||||
if ($this->do_debug >= 1) {
|
||||
$this->edebug(
|
||||
'SMTP ERROR: ' . $this->error['error'] . ': ' . $reply
|
||||
);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->last_reply = $reply;
|
||||
$this->error = array();
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Send an SMTP SAML command.
|
||||
* Starts a mail transaction from the email address specified in $from.
|
||||
* Returns true if successful or false otherwise. If True
|
||||
* the mail transaction is started and then one or more recipient
|
||||
* commands may be called followed by a data command. This command
|
||||
* will send the message to the users terminal if they are logged
|
||||
* in and send them an email.
|
||||
* Implements rfc 821: SAML <SP> FROM:<reverse-path> <CRLF>
|
||||
* @param string $from The address the message is from
|
||||
* @access public
|
||||
* @return boolean
|
||||
*/
|
||||
public function sendAndMail($from)
|
||||
{
|
||||
return $this->sendCommand('SAML', "SAML FROM:$from", 250);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send an SMTP VRFY command.
|
||||
* @param string $name The name to verify
|
||||
* @access public
|
||||
* @return boolean
|
||||
*/
|
||||
public function verify($name)
|
||||
{
|
||||
return $this->sendCommand('VRFY', "VRFY $name", array(250, 251));
|
||||
}
|
||||
|
||||
/**
|
||||
* Send an SMTP NOOP command.
|
||||
* Used to keep keep-alives alive, doesn't actually do anything
|
||||
* @access public
|
||||
* @return boolean
|
||||
*/
|
||||
public function noop()
|
||||
{
|
||||
return $this->sendCommand('NOOP', 'NOOP', 250);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send an SMTP TURN command.
|
||||
* This is an optional command for SMTP that this class does not support.
|
||||
* This method is here to make the RFC821 Definition complete for this class
|
||||
* and _may_ be implemented in future
|
||||
* Implements from rfc 821: TURN <CRLF>
|
||||
* @access public
|
||||
* @return boolean
|
||||
*/
|
||||
public function turn()
|
||||
{
|
||||
$this->error = array(
|
||||
'error' => 'The SMTP TURN command is not implemented'
|
||||
);
|
||||
if ($this->do_debug >= 1) {
|
||||
$this->edebug('SMTP NOTICE: ' . $this->error['error']);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Send raw data to the server.
|
||||
* @param string $data The data to send
|
||||
* @access public
|
||||
* @return integer|boolean The number of bytes sent to the server or false on error
|
||||
*/
|
||||
public function client_send($data)
|
||||
{
|
||||
if ($this->do_debug >= 1) {
|
||||
$this->edebug("CLIENT -> SERVER: $data");
|
||||
}
|
||||
return fwrite($this->smtp_conn, $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the latest error.
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getError()
|
||||
{
|
||||
return $this->error;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the last reply from the server.
|
||||
* @access public
|
||||
* @return string
|
||||
*/
|
||||
public function getLastReply()
|
||||
{
|
||||
return $this->last_reply;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read the SMTP server's response.
|
||||
* Either before eof or socket timeout occurs on the operation.
|
||||
* With SMTP we can tell if we have more lines to read if the
|
||||
* 4th character is '-' symbol. If it is a space then we don't
|
||||
* need to read anything else.
|
||||
* @access protected
|
||||
* @return string
|
||||
*/
|
||||
protected function get_lines()
|
||||
{
|
||||
// If the connection is bad, give up straight away
|
||||
if (!is_resource($this->smtp_conn)) {
|
||||
return '';
|
||||
}
|
||||
$data = '';
|
||||
$endtime = 0;
|
||||
stream_set_timeout($this->smtp_conn, $this->Timeout);
|
||||
if ($this->Timelimit > 0) {
|
||||
$endtime = time() + $this->Timelimit;
|
||||
}
|
||||
while (is_resource($this->smtp_conn) && !feof($this->smtp_conn)) {
|
||||
$str = @fgets($this->smtp_conn, 515);
|
||||
if ($this->do_debug >= 4) {
|
||||
$this->edebug("SMTP -> get_lines(): \$data was \"$data\"");
|
||||
$this->edebug("SMTP -> get_lines(): \$str is \"$str\"");
|
||||
}
|
||||
$data .= $str;
|
||||
if ($this->do_debug >= 4) {
|
||||
$this->edebug("SMTP -> get_lines(): \$data is \"$data\"");
|
||||
}
|
||||
// If 4th character is a space, we are done reading, break the loop, micro-optimisation over strlen
|
||||
if ((isset($str[3]) and $str[3] == ' ')) {
|
||||
break;
|
||||
}
|
||||
// Timed-out? Log and break
|
||||
$info = stream_get_meta_data($this->smtp_conn);
|
||||
if ($info['timed_out']) {
|
||||
if ($this->do_debug >= 4) {
|
||||
$this->edebug(
|
||||
'SMTP -> get_lines(): timed-out (' . $this->Timeout . ' sec)'
|
||||
);
|
||||
}
|
||||
break;
|
||||
}
|
||||
// Now check if reads took too long
|
||||
if ($endtime and time() > $endtime) {
|
||||
if ($this->do_debug >= 4) {
|
||||
$this->edebug(
|
||||
'SMTP -> get_lines(): timelimit reached ('.
|
||||
$this->Timelimit . ' sec)'
|
||||
);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable or disable VERP address generation.
|
||||
* @param boolean $enabled
|
||||
*/
|
||||
public function setVerp($enabled = false)
|
||||
{
|
||||
$this->do_verp = $enabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get VERP address generation mode.
|
||||
* @return boolean
|
||||
*/
|
||||
public function getVerp()
|
||||
{
|
||||
return $this->do_verp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set debug output method.
|
||||
* @param string $method The function/method to use for debugging output.
|
||||
*/
|
||||
public function setDebugOutput($method = 'echo')
|
||||
{
|
||||
$this->Debugoutput = $method;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get debug output method.
|
||||
* @return string
|
||||
*/
|
||||
public function getDebugOutput()
|
||||
{
|
||||
return $this->Debugoutput;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set debug output level.
|
||||
* @param integer $level
|
||||
*/
|
||||
public function setDebugLevel($level = 0)
|
||||
{
|
||||
$this->do_debug = $level;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get debug output level.
|
||||
* @return integer
|
||||
*/
|
||||
public function getDebugLevel()
|
||||
{
|
||||
return $this->do_debug;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set SMTP timeout.
|
||||
* @param integer $timeout
|
||||
*/
|
||||
public function setTimeout($timeout = 0)
|
||||
{
|
||||
$this->Timeout = $timeout;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get SMTP timeout.
|
||||
* @return integer
|
||||
*/
|
||||
public function getTimeout()
|
||||
{
|
||||
return $this->Timeout;
|
||||
}
|
||||
}
|
33
3rdparty/phpmailer/composer.json
vendored
Executable file
33
3rdparty/phpmailer/composer.json
vendored
Executable file
@ -0,0 +1,33 @@
|
||||
{
|
||||
"name": "phpmailer/phpmailer",
|
||||
"type": "library",
|
||||
"description": "PHPMailer is a full-featured email creation and transfer class for PHP",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Marcus Bointon",
|
||||
"email": "phpmailer@synchromedia.co.uk"
|
||||
},
|
||||
{
|
||||
"name": "Jim Jagielski",
|
||||
"email": "jimjag@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Andy Prevost",
|
||||
"email": "codeworxtech@users.sourceforge.net"
|
||||
},
|
||||
{
|
||||
"name": "Brent R. Matzelle"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.0.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpdocumentor/phpdocumentor": "*",
|
||||
"phpunit/phpunit": "4.1.*"
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": ["class.phpmailer.php", "class.pop3.php", "class.smtp.php"]
|
||||
},
|
||||
"license": "LGPL-2.1"
|
||||
}
|
17
3rdparty/phpmailer/docs/Callback_function_notes.txt
vendored
Executable file
17
3rdparty/phpmailer/docs/Callback_function_notes.txt
vendored
Executable file
@ -0,0 +1,17 @@
|
||||
NEW CALLBACK FUNCTION:
|
||||
======================
|
||||
|
||||
We have had requests for a method to process the results of sending emails
|
||||
through PHPMailer. In this new release, we have implemented a callback
|
||||
function that passes the results of each email sent (to, cc, and/or bcc).
|
||||
We have provided an example that echos the results back to the screen. The
|
||||
callback function can be used for any purpose. With minor modifications, the
|
||||
callback function can be used to create CSV logs, post results to databases,
|
||||
etc.
|
||||
|
||||
Please review the test.php script for the example.
|
||||
|
||||
It's pretty straight forward.
|
||||
|
||||
Enjoy!
|
||||
Andy
|
55
3rdparty/phpmailer/docs/DomainKeys_notes.txt
vendored
Executable file
55
3rdparty/phpmailer/docs/DomainKeys_notes.txt
vendored
Executable file
@ -0,0 +1,55 @@
|
||||
CREATE DKIM KEYS and DNS Resource Record:
|
||||
=========================================
|
||||
|
||||
To create DomainKeys Identified Mail keys, visit:
|
||||
http://dkim.worxware.com/
|
||||
... read the information, fill in the form, and download the ZIP file
|
||||
containing the public key, private key, DNS Resource Record and instructions
|
||||
to add to your DNS Zone Record, and the PHPMailer code to enable DKIM
|
||||
digital signing.
|
||||
|
||||
/*** PROTECT YOUR PRIVATE & PUBLIC KEYS ***/
|
||||
|
||||
You need to protect your DKIM private and public keys from being viewed or
|
||||
accessed. Add protection to your .htaccess file as in this example:
|
||||
|
||||
# secure htkeyprivate file
|
||||
<Files .htkeyprivate>
|
||||
order allow,deny
|
||||
deny from all
|
||||
</Files>
|
||||
|
||||
# secure htkeypublic file
|
||||
<Files .htkeypublic>
|
||||
order allow,deny
|
||||
deny from all
|
||||
</Files>
|
||||
|
||||
(the actual .htaccess additions are in the ZIP file sent back to you from
|
||||
http://dkim.worxware.com/
|
||||
|
||||
A few notes on using DomainKey Identified Mail (DKIM):
|
||||
|
||||
You do not need to use PHPMailer to DKIM sign emails IF:
|
||||
- you enable DomainKey support and add the DNS resource record
|
||||
- you use your outbound mail server
|
||||
|
||||
If you are a third-party emailer that works on behalf of domain owners to
|
||||
send their emails from your own server:
|
||||
- you absolutely have to DKIM sign outbound emails
|
||||
- the domain owner has to add the DNS resource record to match the
|
||||
private key, public key, selector, identity, and domain that you create
|
||||
- use caution with the "selector" ... at least one "selector" will already
|
||||
exist in the DNS Zone Record of the domain at the domain owner's server
|
||||
you need to ensure that the "selector" you use is unique
|
||||
Note: since the IP address will not match the domain owner's DNS Zone record
|
||||
you can be certain that email providers that validate based on DomainKey will
|
||||
check the domain owner's DNS Zone record for your DNS resource record. Before
|
||||
sending out emails on behalf of domain owners, ensure they have entered the
|
||||
DNS resource record you provided them.
|
||||
|
||||
Enjoy!
|
||||
Andy
|
||||
|
||||
PS. if you need additional information about DKIM, please see:
|
||||
http://www.dkim.org/info/dkim-faq.html
|
17
3rdparty/phpmailer/docs/Note_for_SMTP_debugging.txt
vendored
Executable file
17
3rdparty/phpmailer/docs/Note_for_SMTP_debugging.txt
vendored
Executable file
@ -0,0 +1,17 @@
|
||||
If you are having problems connecting or sending emails through your SMTP server, the SMTP class can provide more information about the processing/errors taking place.
|
||||
Use the debug functionality of the class to see what's going on in your connections. To do that, set the debug level in your script. For example:
|
||||
|
||||
$mail->SMTPDebug = 1;
|
||||
$mail->isSMTP(); // telling the class to use SMTP
|
||||
$mail->SMTPAuth = true; // enable SMTP authentication
|
||||
$mail->Port = 26; // set the SMTP port
|
||||
$mail->Host = "mail.yourhost.com"; // SMTP server
|
||||
$mail->Username = "name@yourhost.com"; // SMTP account username
|
||||
$mail->Password = "your password"; // SMTP account password
|
||||
|
||||
Notes on this:
|
||||
$mail->SMTPDebug = 0; ... will disable debugging (you can also leave this out completely, 0 is the default)
|
||||
$mail->SMTPDebug = 1; ... will echo errors and server responses
|
||||
$mail->SMTPDebug = 2; ... will echo errors, server responses and client messages
|
||||
|
||||
And finally, don't forget to disable debugging before going into production.
|
129
3rdparty/phpmailer/docs/extending.html
vendored
Executable file
129
3rdparty/phpmailer/docs/extending.html
vendored
Executable file
@ -0,0 +1,129 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Examples using phpmailer</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h2>Examples using PHPMailer</h2>
|
||||
|
||||
<h3>1. Advanced Example</h3>
|
||||
<p>
|
||||
|
||||
This demonstrates sending multiple email messages with binary attachments
|
||||
from a MySQL database using multipart/alternative messages.<p>
|
||||
|
||||
<pre>
|
||||
require 'PHPMailerAutoload.php';
|
||||
|
||||
$mail = new PHPMailer();
|
||||
|
||||
$mail->From = 'list@example.com';
|
||||
$mail->FromName = 'List manager';
|
||||
$mail->Host = 'smtp1.example.com;smtp2.example.com';
|
||||
$mail->Mailer = 'smtp';
|
||||
|
||||
@mysqli_connect('localhost','root','password');
|
||||
@mysqli_select_db("my_company");
|
||||
$query = "SELECT full_name, email, photo FROM employee";
|
||||
$result = @mysqli_query($query);
|
||||
|
||||
while ($row = mysqli_fetch_assoc($result))
|
||||
{
|
||||
// HTML body
|
||||
$body = "Hello <font size=\"4\">" . $row['full_name'] . "</font>, <p>";
|
||||
$body .= "<i>Your</i> personal photograph to this message.<p>";
|
||||
$body .= "Sincerely, <br>";
|
||||
$body .= "phpmailer List manager";
|
||||
|
||||
// Plain text body (for mail clients that cannot read HTML)
|
||||
$text_body = 'Hello ' . $row['full_name'] . ", \n\n";
|
||||
$text_body .= "Your personal photograph to this message.\n\n";
|
||||
$text_body .= "Sincerely, \n";
|
||||
$text_body .= 'phpmailer List manager';
|
||||
|
||||
$mail->Body = $body;
|
||||
$mail->AltBody = $text_body;
|
||||
$mail->addAddress($row['email'], $row['full_name']);
|
||||
$mail->addStringAttachment($row['photo'], 'YourPhoto.jpg');
|
||||
|
||||
if(!$mail->send())
|
||||
echo "There has been a mail error sending to " . $row['email'] . "<br>";
|
||||
|
||||
// Clear all addresses and attachments for next loop
|
||||
$mail->clearAddresses();
|
||||
$mail->clearAttachments();
|
||||
}
|
||||
</pre>
|
||||
<p>
|
||||
|
||||
<h3>2. Extending PHPMailer</h3>
|
||||
<p>
|
||||
|
||||
Extending classes with inheritance is one of the most
|
||||
powerful features of object-oriented programming. It allows you to make changes to the
|
||||
original class for your own personal use without hacking the original
|
||||
classes, and it's very easy to do:
|
||||
|
||||
<p>
|
||||
Here's a class that extends the phpmailer class and sets the defaults
|
||||
for the particular site:<br>
|
||||
PHP include file: my_phpmailer.php
|
||||
<p>
|
||||
|
||||
<pre>
|
||||
require 'PHPMailerAutoload.php';
|
||||
|
||||
class my_phpmailer extends PHPMailer {
|
||||
// Set default variables for all new objects
|
||||
public $From = 'from@example.com';
|
||||
public $FromName = 'Mailer';
|
||||
public $Host = 'smtp1.example.com;smtp2.example.com';
|
||||
public $Mailer = 'smtp'; // Alternative to isSMTP()
|
||||
public $WordWrap = 75;
|
||||
|
||||
// Replace the default debug output function
|
||||
protected function edebug($msg) {
|
||||
print('My Site Error');
|
||||
print('Description:');
|
||||
printf('%s', $msg);
|
||||
exit;
|
||||
}
|
||||
|
||||
//Extend the send function
|
||||
public function send() {
|
||||
$this->Subject = '[Yay for me!] '.$this->Subject;
|
||||
return parent::send()
|
||||
}
|
||||
|
||||
// Create an additional function
|
||||
public function do_something($something) {
|
||||
// Place your new code here
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
<br>
|
||||
Now here's a normal PHP page in the site, which will have all the defaults set above:<br>
|
||||
|
||||
<pre>
|
||||
require 'my_phpmailer.php';
|
||||
|
||||
// Instantiate your new class
|
||||
$mail = new my_phpmailer;
|
||||
|
||||
// Now you only need to add the necessary stuff
|
||||
$mail->addAddress('josh@example.com', 'Josh Adams');
|
||||
$mail->Subject = 'Here is the subject';
|
||||
$mail->Body = 'This is the message body';
|
||||
$mail->addAttachment('c:/temp/11-10-00.zip', 'new_name.zip'); // optional name
|
||||
|
||||
if(!$mail->send())
|
||||
{
|
||||
echo 'There was an error sending the message';
|
||||
exit;
|
||||
}
|
||||
|
||||
echo 'Message was sent successfully';
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
28
3rdparty/phpmailer/docs/faq.html
vendored
Executable file
28
3rdparty/phpmailer/docs/faq.html
vendored
Executable file
@ -0,0 +1,28 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>PHPMailer FAQ</title>
|
||||
</head>
|
||||
<body>
|
||||
<h2>PHPMailer FAQ</h2>
|
||||
<ul>
|
||||
<li><strong>Q: I am concerned that using include files will take up too much
|
||||
processing time on my computer. How can I make it run faster?</strong><br>
|
||||
<strong>A:</strong> PHP by itself is fairly fast, but it recompiles scripts every time they are run, which takes up valuable
|
||||
computer resources. You can bypass this by using an opcode cache which compiles
|
||||
PHP code and store it in memory to reduce overhead immensely. <a href="http://www.php.net/apc/">APC
|
||||
(Alternative PHP Cache)</a> is a free opcode cache extension in the PECL library.</li>
|
||||
<li><strong>Q: Which mailer gives me the best performance?</strong><br>
|
||||
<strong>A:</strong> On a single machine the <strong>sendmail (or Qmail)</strong> is fastest overall.
|
||||
Next fastest is mail() to give you the best performance. Both do not have the overhead of SMTP.
|
||||
If you do not have a local mail server (as is typical on Windows), SMTP is your only option.</li>
|
||||
<li><strong>Q: When I try to attach a file with on my server I get a
|
||||
"Could not find {file} on filesystem error". Why is this?</strong><br>
|
||||
<strong>A:</strong> If you are using a Unix machine this is probably because the user
|
||||
running your web server does not have read access to the directory in question. If you are using Windows,
|
||||
then the problem is probably that you have used single backslashes to denote directories (\).
|
||||
A single backslash has a special meaning to PHP so these are not
|
||||
valid. Instead use double backslashes ("\\") or a single forward
|
||||
slash ("/").</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
8
3rdparty/phpmailer/docs/generatedocs.sh
vendored
Executable file
8
3rdparty/phpmailer/docs/generatedocs.sh
vendored
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
# Regenerate PHPMailer documentation
|
||||
# Run from within the docs folder
|
||||
rm -rf phpdoc/*
|
||||
phpdoc --directory .. --target ./phpdoc --ignore test/,examples/,extras/,test_script/,vendor/,language/ --sourcecode --force --title PHPMailer --template="clean"
|
||||
# You can merge regenerated docs into a separate docs working copy without messing up the git status like so:
|
||||
# rsync -a --delete --exclude ".git" --exclude "phpdoc-cache-*/" --exclude "README.md" phpdoc/ ../../phpmailer-docs
|
||||
# After updating docs, push/PR them to the phpmailer gh-pages branch: https://github.com/PHPMailer/PHPMailer/tree/gh-pages
|
50
3rdparty/phpmailer/docs/pop3_article.txt
vendored
Executable file
50
3rdparty/phpmailer/docs/pop3_article.txt
vendored
Executable file
@ -0,0 +1,50 @@
|
||||
This is built for PHP Mailer 1.72 and was not tested with any previous version. It was developed under PHP 4.3.11 (E_ALL). It works under PHP 5 and 5.1 with E_ALL, but not in Strict mode due to var deprecation (but then neither does PHP Mailer either!). It follows the RFC 1939 standard explicitly and is fully commented.
|
||||
|
||||
With that noted, here is how to implement it:
|
||||
|
||||
I didn't want to modify the PHP Mailer classes at all, so you will have to include/require this class along with the base one. It can sit quite happily in the phpmailer directory.
|
||||
|
||||
When you need it, create your POP3 object
|
||||
|
||||
Right before I invoke PHP Mailer I activate the POP3 authorisation. POP3 before SMTP is a process whereby you login to your web hosts POP3 mail server BEFORE sending out any emails via SMTP. The POP3 logon 'verifies' your ability to send email by SMTP, which typically otherwise blocks you. On my web host (Pair Networks) a single POP3 logon is enough to 'verify' you for 90 minutes. Here is some sample PHP code that activates the POP3 logon and then sends an email via PHP Mailer:
|
||||
|
||||
<?php
|
||||
$pop->authorise('pop3.example.com', 110, 30, 'mailer', 'password', 1);
|
||||
$mail = new PHPMailer(); $mail->SMTPDebug = 2; $mail->isSMTP();
|
||||
$mail->isHTML(false); $mail->Host = 'relay.example.com';
|
||||
$mail->From = 'mailer@example.com';
|
||||
$mail->FromName = 'Example Mailer';
|
||||
$mail->Subject = 'My subject';
|
||||
$mail->Body = 'Hello world';
|
||||
$mail->addAddress('rich@corephp.co.uk', 'Richard Davey');
|
||||
if (!$mail->send()) {
|
||||
echo $mail->ErrorInfo;
|
||||
}
|
||||
?>
|
||||
|
||||
The PHP Mailer parts of this code should be obvious to anyone who has used PHP Mailer before. One thing to note - you almost certainly will not need to use SMTP Authentication *and* POP3 before SMTP together. The Authorisation method is a proxy method to all of the others within that class. There are connect, Logon and disconnect methods available, but I wrapped them in the single Authorisation one to make things easier.
|
||||
The Parameters
|
||||
|
||||
The authorise parameters are as follows:
|
||||
|
||||
$pop->authorise('pop3.example.com', 110, 30, 'mailer', 'password', 1);
|
||||
|
||||
1. pop3.example.com - The POP3 Mail Server Name (hostname or IP address)
|
||||
2. 110 - The POP3 Port on which to connect (default is usually 110, but check with your host)
|
||||
3. 30 - A connection time-out value (in seconds)
|
||||
4. mailer - The POP3 Username required to logon
|
||||
5. password - The POP3 Password required to logon
|
||||
6. 1 - The class debug level (0 = off, 1+ = debug output is echoed to the browser)
|
||||
|
||||
Final Comments + the Download
|
||||
|
||||
1) This class does not support APOP connections. This is only because I did not have an APOP server to test with, but if you'd like to see that added just contact me.
|
||||
|
||||
2) Opening and closing lots of POP3 connections can be quite a resource/network drain. If you need to send a whole batch of emails then just perform the authentication once at the start, and then loop through your mail sending script. Providing this process doesn't take longer than the verification period lasts on your POP3 server, you should be fine. With my host that period is 90 minutes, i.e. plenty of time.
|
||||
|
||||
3) If you have heavy requirements for this script (i.e. send a LOT of email on a frequent basis) then I would advise seeking out an alternative sending method (direct SMTP ideally). If this isn't possible then you could modify this class so the 'last authorised' date is recorded somewhere (MySQL, Flat file, etc) meaning you only open a new connection if the old one has expired, saving you precious overhead.
|
||||
|
||||
4) There are lots of other POP3 classes for PHP available. However most of them implement the full POP3 command set, where-as this one is purely for authentication, and much lighter as a result. However using any of the other POP3 classes to just logon to your server would have the same net result. At the end of the day, use whatever method you feel most comfortable with.
|
||||
Download
|
||||
|
||||
My thanks to Chris Ryan for the inspiration (even if indirectly, via his SMTP class)
|
165
3rdparty/phpmailer/examples/LGPLv3.txt
vendored
Executable file
165
3rdparty/phpmailer/examples/LGPLv3.txt
vendored
Executable file
@ -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.
|
596
3rdparty/phpmailer/examples/code_generator.phps
vendored
Executable file
596
3rdparty/phpmailer/examples/code_generator.phps
vendored
Executable file
@ -0,0 +1,596 @@
|
||||
<?php
|
||||
/*
|
||||
* revised, updated and corrected 27/02/2013
|
||||
* by matt.sturdy@gmail.com
|
||||
*/
|
||||
require '../PHPMailerAutoload.php';
|
||||
|
||||
$CFG['smtp_debug'] = 2; //0 == off, 1 for client output, 2 for client and server
|
||||
$CFG['smtp_debugoutput'] = 'html';
|
||||
$CFG['smtp_server'] = 'localhost';
|
||||
$CFG['smtp_port'] = '25';
|
||||
$CFG['smtp_authenticate'] = false;
|
||||
$CFG['smtp_username'] = 'name@example.com';
|
||||
$CFG['smtp_password'] = 'yourpassword';
|
||||
$CFG['smtp_secure'] = 'None';
|
||||
|
||||
$from_name = (isset($_POST['From_Name'])) ? $_POST['From_Name'] : '';
|
||||
$from_email = (isset($_POST['From_Email'])) ? $_POST['From_Email'] : '';
|
||||
$to_name = (isset($_POST['To_Name'])) ? $_POST['To_Name'] : '';
|
||||
$to_email = (isset($_POST['To_Email'])) ? $_POST['To_Email'] : '';
|
||||
$cc_email = (isset($_POST['cc_Email'])) ? $_POST['cc_Email'] : '';
|
||||
$bcc_email = (isset($_POST['bcc_Email'])) ? $_POST['bcc_Email'] : '';
|
||||
$subject = (isset($_POST['Subject'])) ? $_POST['Subject'] : '';
|
||||
$message = (isset($_POST['Message'])) ? $_POST['Message'] : '';
|
||||
$test_type = (isset($_POST['test_type'])) ? $_POST['test_type'] : 'smtp';
|
||||
$smtp_debug = (isset($_POST['smtp_debug'])) ? $_POST['smtp_debug'] : $CFG['smtp_debug'];
|
||||
$smtp_server = (isset($_POST['smtp_server'])) ? $_POST['smtp_server'] : $CFG['smtp_server'];
|
||||
$smtp_port = (isset($_POST['smtp_port'])) ? $_POST['smtp_port'] : $CFG['smtp_port'];
|
||||
$smtp_secure = strtolower((isset($_POST['smtp_secure'])) ? $_POST['smtp_secure'] : $CFG['smtp_secure']);
|
||||
$smtp_authenticate = (isset($_POST['smtp_authenticate'])) ?
|
||||
$_POST['smtp_authenticate'] : $CFG['smtp_authenticate'];
|
||||
$authenticate_password = (isset($_POST['authenticate_password'])) ?
|
||||
$_POST['authenticate_password'] : $CFG['smtp_password'];
|
||||
$authenticate_username = (isset($_POST['authenticate_username'])) ?
|
||||
$_POST['authenticate_username'] : $CFG['smtp_username'];
|
||||
|
||||
// storing all status output from the script to be shown to the user later
|
||||
$results_messages = array();
|
||||
|
||||
// $example_code represents the "final code" that we're using, and will
|
||||
// be shown to the user at the end.
|
||||
$example_code = "\nrequire_once '../PHPMailerAutoload.php';";
|
||||
$example_code .= "\n\n\$results_messages = array();";
|
||||
|
||||
$mail = new PHPMailer(true); //PHPMailer instance with exceptions enabled
|
||||
$mail->CharSet = 'utf-8';
|
||||
$mail->Debugoutput = $CFG['smtp_debugoutput'];
|
||||
$example_code .= "\n\n\$mail = new PHPMailer(true);";
|
||||
$example_code .= "\n\$mail->CharSet = 'utf-8';";
|
||||
|
||||
class phpmailerAppException extends phpmailerException
|
||||
{
|
||||
}
|
||||
|
||||
$example_code .= "\n\nclass phpmailerAppException extends phpmailerException {}";
|
||||
$example_code .= "\n\ntry {";
|
||||
|
||||
try {
|
||||
if (isset($_POST["submit"]) && $_POST['submit'] == "Submit") {
|
||||
$to = $_POST['To_Email'];
|
||||
if (!PHPMailer::validateAddress($to)) {
|
||||
throw new phpmailerAppException("Email address " . $to . " is invalid -- aborting!");
|
||||
}
|
||||
|
||||
$example_code .= "\n\$to = '{$_POST['To_Email']}';";
|
||||
$example_code .= "\nif(!PHPMailer::validateAddress(\$to)) {";
|
||||
$example_code .= "\n throw new phpmailerAppException(\"Email address \" . " .
|
||||
"\$to . \" is invalid -- aborting!\");";
|
||||
$example_code .= "\n}";
|
||||
|
||||
switch ($_POST['test_type']) {
|
||||
case 'smtp':
|
||||
$mail->isSMTP(); // telling the class to use SMTP
|
||||
$mail->SMTPDebug = (integer)$_POST['smtp_debug'];
|
||||
$mail->Host = $_POST['smtp_server']; // SMTP server
|
||||
$mail->Port = (integer)$_POST['smtp_port']; // set the SMTP port
|
||||
if ($_POST['smtp_secure']) {
|
||||
$mail->SMTPSecure = strtolower($_POST['smtp_secure']);
|
||||
}
|
||||
$mail->SMTPAuth = array_key_exists('smtp_authenticate', $_POST); // enable SMTP authentication?
|
||||
if (array_key_exists('smtp_authenticate', $_POST)) {
|
||||
$mail->Username = $_POST['authenticate_username']; // SMTP account username
|
||||
$mail->Password = $_POST['authenticate_password']; // SMTP account password
|
||||
}
|
||||
|
||||
$example_code .= "\n\$mail->isSMTP();";
|
||||
$example_code .= "\n\$mail->SMTPDebug = " . $_POST['smtp_debug'] . ";";
|
||||
$example_code .= "\n\$mail->Host = \"" . $_POST['smtp_server'] . "\";";
|
||||
$example_code .= "\n\$mail->Port = \"" . $_POST['smtp_port'] . "\";";
|
||||
$example_code .= "\n\$mail->SMTPSecure = \"" . strtolower($_POST['smtp_secure']) . "\";";
|
||||
$example_code .= "\n\$mail->SMTPAuth = " . (array_key_exists(
|
||||
'smtp_authenticate',
|
||||
$_POST
|
||||
) ? 'true' : 'false') . ";";
|
||||
if (array_key_exists('smtp_authenticate', $_POST)) {
|
||||
$example_code .= "\n\$mail->Username = \"" . $_POST['authenticate_username'] . "\";";
|
||||
$example_code .= "\n\$mail->Password = \"" . $_POST['authenticate_password'] . "\";";
|
||||
}
|
||||
break;
|
||||
case 'mail':
|
||||
$mail->isMail(); // telling the class to use PHP's mail()
|
||||
$example_code .= "\n\$mail->isMail();";
|
||||
break;
|
||||
case 'sendmail':
|
||||
$mail->isSendmail(); // telling the class to use Sendmail
|
||||
$example_code .= "\n\$mail->isSendmail();";
|
||||
break;
|
||||
case 'qmail':
|
||||
$mail->isQmail(); // telling the class to use Qmail
|
||||
$example_code .= "\n\$mail->isQmail();";
|
||||
break;
|
||||
default:
|
||||
throw new phpmailerAppException('Invalid test_type provided');
|
||||
}
|
||||
|
||||
try {
|
||||
if ($_POST['From_Name'] != '') {
|
||||
$mail->addReplyTo($_POST['From_Email'], $_POST['From_Name']);
|
||||
$mail->From = $_POST['From_Email'];
|
||||
$mail->FromName = $_POST['From_Name'];
|
||||
|
||||
$example_code .= "\n\$mail->addReplyTo(\"" .
|
||||
$_POST['From_Email'] . "\", \"" . $_POST['From_Name'] . "\");";
|
||||
$example_code .= "\n\$mail->From = \"" . $_POST['From_Email'] . "\";";
|
||||
$example_code .= "\n\$mail->FromName = \"" . $_POST['From_Name'] . "\";";
|
||||
} else {
|
||||
$mail->addReplyTo($_POST['From_Email']);
|
||||
$mail->From = $_POST['From_Email'];
|
||||
$mail->FromName = $_POST['From_Email'];
|
||||
|
||||
$example_code .= "\n\$mail->addReplyTo(\"" . $_POST['From_Email'] . "\");";
|
||||
$example_code .= "\n\$mail->From = \"" . $_POST['From_Email'] . "\";";
|
||||
$example_code .= "\n\$mail->FromName = \"" . $_POST['From_Email'] . "\";";
|
||||
}
|
||||
|
||||
if ($_POST['To_Name'] != '') {
|
||||
$mail->addAddress($to, $_POST['To_Name']);
|
||||
$example_code .= "\n\$mail->addAddress(\"$to\", \"" . $_POST['To_Name'] . "\");";
|
||||
} else {
|
||||
$mail->addAddress($to);
|
||||
$example_code .= "\n\$mail->addAddress(\"$to\");";
|
||||
}
|
||||
|
||||
if ($_POST['bcc_Email'] != '') {
|
||||
$indiBCC = explode(" ", $_POST['bcc_Email']);
|
||||
foreach ($indiBCC as $key => $value) {
|
||||
$mail->addBCC($value);
|
||||
$example_code .= "\n\$mail->addBCC(\"$value\");";
|
||||
}
|
||||
}
|
||||
|
||||
if ($_POST['cc_Email'] != '') {
|
||||
$indiCC = explode(" ", $_POST['cc_Email']);
|
||||
foreach ($indiCC as $key => $value) {
|
||||
$mail->addCC($value);
|
||||
$example_code .= "\n\$mail->addCC(\"$value\");";
|
||||
}
|
||||
}
|
||||
} catch (phpmailerException $e) { //Catch all kinds of bad addressing
|
||||
throw new phpmailerAppException($e->getMessage());
|
||||
}
|
||||
$mail->Subject = $_POST['Subject'] . ' (PHPMailer test using ' . strtoupper($_POST['test_type']) . ')';
|
||||
$example_code .= "\n\$mail->Subject = \"" . $_POST['Subject'] .
|
||||
'(PHPMailer test using ' . strtoupper($_POST['test_type']) . ')";';
|
||||
|
||||
if ($_POST['Message'] == '') {
|
||||
$body = file_get_contents('contents.html');
|
||||
} else {
|
||||
$body = $_POST['Message'];
|
||||
}
|
||||
|
||||
$example_code .= "\n\$body = <<<'EOT'\n" . htmlentities($body) . "\nEOT;";
|
||||
|
||||
$mail->WordWrap = 80; // set word wrap
|
||||
$mail->msgHTML($body, dirname(__FILE__), true); //Create message bodies and embed images
|
||||
|
||||
$example_code .= "\n\$mail->WordWrap = 80;";
|
||||
$example_code .= "\n\$mail->msgHTML(\$body, dirname(__FILE__), true); //Create message bodies and embed images";
|
||||
|
||||
$mail->addAttachment('images/phpmailer_mini.png', 'phpmailer_mini.png'); // optional name
|
||||
$mail->addAttachment('images/phpmailer.png', 'phpmailer.png'); // optional name
|
||||
$example_code .= "\n\$mail->addAttachment('images/phpmailer_mini.png'," .
|
||||
"'phpmailer_mini.png'); // optional name";
|
||||
$example_code .= "\n\$mail->addAttachment('images/phpmailer.png', 'phpmailer.png'); // optional name";
|
||||
|
||||
try {
|
||||
$mail->send();
|
||||
$results_messages[] = "Message has been sent using " . strtoupper($_POST["test_type"]);
|
||||
} catch (phpmailerException $e) {
|
||||
throw new phpmailerAppException("Unable to send to: " . $to . ': ' . $e->getMessage());
|
||||
}
|
||||
|
||||
$example_code .= "\n\ntry {";
|
||||
$example_code .= "\n \$mail->send();";
|
||||
$example_code .= "\n \$results_messages[] = \"Message has been sent using " .
|
||||
strtoupper($_POST['test_type']) . "\";";
|
||||
$example_code .= "\n}";
|
||||
$example_code .= "\ncatch (phpmailerException \$e) {";
|
||||
$example_code .= "\n throw new phpmailerAppException('Unable to send to: ' . \$to. ': '.\$e->getMessage());";
|
||||
$example_code .= "\n}";
|
||||
}
|
||||
} catch (phpmailerAppException $e) {
|
||||
$results_messages[] = $e->errorMessage();
|
||||
}
|
||||
$example_code .= "\n}";
|
||||
$example_code .= "\ncatch (phpmailerAppException \$e) {";
|
||||
$example_code .= "\n \$results_messages[] = \$e->errorMessage();";
|
||||
$example_code .= "\n}";
|
||||
$example_code .= "\n\nif (count(\$results_messages) > 0) {";
|
||||
$example_code .= "\n echo \"<h2>Run results</h2>\\n\";";
|
||||
$example_code .= "\n echo \"<ul>\\n\";";
|
||||
$example_code .= "\nforeach (\$results_messages as \$result) {";
|
||||
$example_code .= "\n echo \"<li>\$result</li>\\n\";";
|
||||
$example_code .= "\n}";
|
||||
$example_code .= "\necho \"</ul>\\n\";";
|
||||
$example_code .= "\n}";
|
||||
?><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>PHPMailer Test Page</title>
|
||||
<script type="text/javascript" src="scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="scripts/shBrushPhp.js"></script>
|
||||
<link type="text/css" rel="stylesheet" href="styles/shCore.css">
|
||||
<link type="text/css" rel="stylesheet" href="styles/shThemeDefault.css">
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 1em;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
table {
|
||||
margin: 0 auto;
|
||||
border-spacing: 0;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table.column {
|
||||
border-collapse: collapse;
|
||||
background-color: #FFFFFF;
|
||||
padding: 0.5em;
|
||||
width: 35em;
|
||||
}
|
||||
|
||||
td {
|
||||
font-size: 1em;
|
||||
padding: 0.1em 0.25em;
|
||||
-moz-border-radius: 1em;
|
||||
-webkit-border-radius: 1em;
|
||||
border-radius: 1em;
|
||||
}
|
||||
|
||||
td.colleft {
|
||||
text-align: right;
|
||||
width: 35%;
|
||||
}
|
||||
|
||||
td.colrite {
|
||||
text-align: left;
|
||||
width: 65%;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
padding: 1em 1em 1em 1em;
|
||||
margin: 0 2em;
|
||||
border-radius: 1.5em;
|
||||
-webkit-border-radius: 1em;
|
||||
-moz-border-radius: 1em;
|
||||
}
|
||||
|
||||
fieldset.inner {
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
fieldset:hover, tr:hover {
|
||||
background-color: #fafafa;
|
||||
}
|
||||
|
||||
legend {
|
||||
font-weight: bold;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
div.column-left {
|
||||
float: left;
|
||||
width: 45em;
|
||||
height: 31em;
|
||||
}
|
||||
|
||||
div.column-right {
|
||||
display: inline;
|
||||
width: 45em;
|
||||
max-height: 31em;
|
||||
}
|
||||
|
||||
input.radio {
|
||||
float: left;
|
||||
}
|
||||
|
||||
div.radio {
|
||||
padding: 0.2em;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
SyntaxHighlighter.config.clipboardSwf = 'scripts/clipboard.swf';
|
||||
SyntaxHighlighter.all();
|
||||
|
||||
function startAgain() {
|
||||
var post_params = {
|
||||
"From_Name": "<?php echo $from_name; ?>",
|
||||
"From_Email": "<?php echo $from_email; ?>",
|
||||
"To_Name": "<?php echo $to_name; ?>",
|
||||
"To_Email": "<?php echo $to_email; ?>",
|
||||
"cc_Email": "<?php echo $cc_email; ?>",
|
||||
"bcc_Email": "<?php echo $bcc_email; ?>",
|
||||
"Subject": "<?php echo $subject; ?>",
|
||||
"Message": "<?php echo $message; ?>",
|
||||
"test_type": "<?php echo $test_type; ?>",
|
||||
"smtp_debug": "<?php echo $smtp_debug; ?>",
|
||||
"smtp_server": "<?php echo $smtp_server; ?>",
|
||||
"smtp_port": "<?php echo $smtp_port; ?>",
|
||||
"smtp_secure": "<?php echo $smtp_secure; ?>",
|
||||
"smtp_authenticate": "<?php echo $smtp_authenticate; ?>",
|
||||
"authenticate_username": "<?php echo $authenticate_username; ?>",
|
||||
"authenticate_password": "<?php echo $authenticate_password; ?>"
|
||||
};
|
||||
|
||||
var resetForm = document.createElement("form");
|
||||
resetForm.setAttribute("method", "POST");
|
||||
resetForm.setAttribute("path", "index.php");
|
||||
|
||||
for (var k in post_params) {
|
||||
var h = document.createElement("input");
|
||||
h.setAttribute("type", "hidden");
|
||||
h.setAttribute("name", k);
|
||||
h.setAttribute("value", post_params[k]);
|
||||
resetForm.appendChild(h);
|
||||
}
|
||||
|
||||
document.body.appendChild(resetForm);
|
||||
resetForm.submit();
|
||||
}
|
||||
|
||||
function showHideDiv(test, element_id) {
|
||||
var ops = {"smtp-options-table": "smtp"};
|
||||
|
||||
if (test == ops[element_id]) {
|
||||
document.getElementById(element_id).style.display = "block";
|
||||
} else {
|
||||
document.getElementById(element_id).style.display = "none";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
if (version_compare(PHP_VERSION, '5.0.0', '<')) {
|
||||
echo 'Current PHP version: ' . phpversion() . "<br>";
|
||||
echo exit("ERROR: Wrong PHP version. Must be PHP 5 or above.");
|
||||
}
|
||||
|
||||
if (count($results_messages) > 0) {
|
||||
echo '<h2>Run results</h2>';
|
||||
echo '<ul>';
|
||||
foreach ($results_messages as $result) {
|
||||
echo "<li>$result</li>";
|
||||
}
|
||||
echo '</ul>';
|
||||
}
|
||||
|
||||
if (isset($_POST["submit"]) && $_POST["submit"] == "Submit") {
|
||||
echo "<button type=\"submit\" onclick=\"startAgain();\">Start Over</button><br>\n";
|
||||
echo "<br><span>Script:</span>\n";
|
||||
echo "<pre class=\"brush: php;\">\n";
|
||||
echo $example_code;
|
||||
echo "\n</pre>\n";
|
||||
echo "\n<hr style=\"margin: 3em;\">\n";
|
||||
}
|
||||
?>
|
||||
<form method="POST" enctype="multipart/form-data">
|
||||
<div>
|
||||
<div class="column-left">
|
||||
<fieldset>
|
||||
<legend>Mail Details</legend>
|
||||
<table border="1" class="column">
|
||||
<tr>
|
||||
<td class="colleft">
|
||||
<label for="From_Name"><strong>From</strong> Name</label>
|
||||
</td>
|
||||
<td class="colrite">
|
||||
<input type="text" id="From_Name" name="From_Name" value="<?php echo $from_name; ?>"
|
||||
style="width:95%;" autofocus placeholder="Your Name">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="colleft">
|
||||
<label for="From_Email"><strong>From</strong> Email Address</label>
|
||||
</td>
|
||||
<td class="colrite">
|
||||
<input type="text" id="From_Email" name="From_Email" value="<?php echo $from_email; ?>"
|
||||
style="width:95%;" required placeholder="Your.Email@example.com">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="colleft">
|
||||
<label for="To_Name"><strong>To</strong> Name</label>
|
||||
</td>
|
||||
<td class="colrite">
|
||||
<input type="text" id="To_Name" name="To_Name" value="<?php echo $to_name; ?>"
|
||||
style="width:95%;" placeholder="Recipient's Name">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="colleft">
|
||||
<label for="To_Email"><strong>To</strong> Email Address</label>
|
||||
</td>
|
||||
<td class="colrite">
|
||||
<input type="text" id="To_Email" name="To_Email" value="<?php echo $to_email; ?>"
|
||||
style="width:95%;" required placeholder="Recipients.Email@example.com">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="colleft">
|
||||
<label for="cc_Email"><strong>CC Recipients</strong><br>
|
||||
<small>(separate with commas)</small>
|
||||
</label>
|
||||
</td>
|
||||
<td class="colrite">
|
||||
<input type="text" id="cc_Email" name="cc_Email" value="<?php echo $cc_email; ?>"
|
||||
style="width:95%;" placeholder="cc1@example.com, cc2@example.com">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="colleft">
|
||||
<label for="bcc_Email"><strong>BCC Recipients</strong><br>
|
||||
<small>(separate with commas)</small>
|
||||
</label>
|
||||
</td>
|
||||
<td class="colrite">
|
||||
<input type="text" id="bcc_Email" name="bcc_Email" value="<?php echo $bcc_email; ?>"
|
||||
style="width:95%;" placeholder="bcc1@example.com, bcc2@example.com">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="colleft">
|
||||
<label for="Subject"><strong>Subject</strong></label>
|
||||
</td>
|
||||
<td class="colrite">
|
||||
<input type="text" name="Subject" id="Subject" value="<?php echo $subject; ?>"
|
||||
style="width:95%;" placeholder="Email Subject">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="colleft">
|
||||
<label for="Message"><strong>Message</strong><br>
|
||||
<small>If blank, will use content.html</small>
|
||||
</label>
|
||||
</td>
|
||||
<td class="colrite">
|
||||
<textarea name="Message" id="Message" style="width:95%;height:5em;"
|
||||
placeholder="Body of your email"><?php echo $message; ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div style="margin:1em 0;">Test will include two attachments.</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="column-right">
|
||||
<fieldset class="inner"> <!-- SELECT TYPE OF MAIL -->
|
||||
<legend>Mail Test Specs</legend>
|
||||
<table border="1" class="column">
|
||||
<tr>
|
||||
<td class="colleft">Test Type</td>
|
||||
<td class="colrite">
|
||||
<div class="radio">
|
||||
<label for="radio-mail">Mail()</label>
|
||||
<input class="radio" type="radio" name="test_type" value="mail" id="radio-mail"
|
||||
onclick="showHideDiv(this.value, 'smtp-options-table');"
|
||||
<?php echo ($test_type == 'mail') ? 'checked' : ''; ?>
|
||||
required>
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label for="radio-sendmail">Sendmail</label>
|
||||
<input class="radio" type="radio" name="test_type" value="sendmail" id="radio-sendmail"
|
||||
onclick="showHideDiv(this.value, 'smtp-options-table');"
|
||||
<?php echo ($test_type == 'sendmail') ? 'checked' : ''; ?>
|
||||
required>
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label for="radio-qmail">Qmail</label>
|
||||
<input class="radio" type="radio" name="test_type" value="qmail" id="radio-qmail"
|
||||
onclick="showHideDiv(this.value, 'smtp-options-table');"
|
||||
<?php echo ($test_type == 'qmail') ? 'checked' : ''; ?>
|
||||
required>
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label for="radio-smtp">SMTP</label>
|
||||
<input class="radio" type="radio" name="test_type" value="smtp" id="radio-smtp"
|
||||
onclick="showHideDiv(this.value, 'smtp-options-table');"
|
||||
<?php echo ($test_type == 'smtp') ? 'checked' : ''; ?>
|
||||
required>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="smtp-options-table" style="margin:1em 0 0 0;
|
||||
<?php if ($test_type != 'smtp') {
|
||||
echo "display: none;";
|
||||
} ?>">
|
||||
<span style="margin:1.25em 0; display:block;"><strong>SMTP Specific Options:</strong></span>
|
||||
<table border="1" class="column">
|
||||
<tr>
|
||||
<td class="colleft"><label for="smtp_debug">SMTP Debug ?</label></td>
|
||||
<td class="colrite">
|
||||
<select size="1" id="smtp_debug" name="smtp_debug">
|
||||
<option <?php echo ($smtp_debug == '0') ? 'selected' : ''; ?> value="0">
|
||||
0 - Disabled
|
||||
</option>
|
||||
<option <?php echo ($smtp_debug == '1') ? 'selected' : ''; ?> value="1">
|
||||
1 - Client messages
|
||||
</option>
|
||||
<option <?php echo ($smtp_debug == '2') ? 'selected' : ''; ?> value="2">
|
||||
2 - Client and server messages
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="colleft"><label for="smtp_server">SMTP Server</label></td>
|
||||
<td class="colrite">
|
||||
<input type="text" id="smtp_server" name="smtp_server"
|
||||
value="<?php echo $smtp_server; ?>" style="width:95%;"
|
||||
placeholder="smtp.server.com">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="colleft" style="width: 5em;"><label for="smtp_port">SMTP Port</label></td>
|
||||
<td class="colrite">
|
||||
<input type="text" name="smtp_port" id="smtp_port" size="3"
|
||||
value="<?php echo $smtp_port; ?>" placeholder="Port">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="colleft"><label for="smtp_secure">SMTP Security</label></td>
|
||||
<td>
|
||||
<select size="1" name="smtp_secure" id="smtp_secure">
|
||||
<option <?php echo ($smtp_secure == 'none') ? 'selected' : '' ?>>None</option>
|
||||
<option <?php echo ($smtp_secure == 'tls') ? 'selected' : '' ?>>TLS</option>
|
||||
<option <?php echo ($smtp_secure == 'ssl') ? 'selected' : '' ?>>SSL</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="colleft"><label for="smtp-authenticate">SMTP Authenticate?</label></td>
|
||||
<td class="colrite">
|
||||
<input type="checkbox" id="smtp-authenticate"
|
||||
name="smtp_authenticate"
|
||||
<?php if ($smtp_authenticate != '') {
|
||||
echo "checked";
|
||||
} ?>
|
||||
value="<?php echo $smtp_authenticate; ?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="colleft"><label for="authenticate_username">Authenticate Username</label></td>
|
||||
<td class="colrite">
|
||||
<input type="text" id="authenticate_username" name="authenticate_username"
|
||||
value="<?php echo $authenticate_username; ?>" style="width:95%;"
|
||||
placeholder="SMTP Server Username">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="colleft"><label for="authenticate_password">Authenticate Password</label></td>
|
||||
<td class="colrite">
|
||||
<input type="password" name="authenticate_password" id="authenticate_password"
|
||||
value="<?php echo $authenticate_password; ?>" style="width:95%;"
|
||||
placeholder="SMTP Server Password">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<br style="clear:both;">
|
||||
|
||||
<div style="margin-left:2em; margin-bottom:5em; float:left;">
|
||||
<div style="margin-bottom: 1em; ">
|
||||
<input type="submit" value="Submit" name="submit">
|
||||
</div>
|
||||
<?php echo 'Current PHP version: ' . phpversion(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
17
3rdparty/phpmailer/examples/contents.html
vendored
Executable file
17
3rdparty/phpmailer/examples/contents.html
vendored
Executable file
@ -0,0 +1,17 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>PHPMailer Test</title>
|
||||
</head>
|
||||
<body>
|
||||
<div style="width: 640px; font-family: Arial, Helvetica, sans-serif; font-size: 11px;">
|
||||
<h1>This is a test of PHPMailer.</h1>
|
||||
<div align="center">
|
||||
<a href="https://github.com/PHPMailer/PHPMailer/"><img src="images/phpmailer.png" height="90" width="340" alt="PHPMailer rocks"></a>
|
||||
</div>
|
||||
<p>This example uses <strong>HTML</strong>.</p>
|
||||
<p>The PHPMailer image at the top has been embedded automatically.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
41
3rdparty/phpmailer/examples/exceptions.phps
vendored
Executable file
41
3rdparty/phpmailer/examples/exceptions.phps
vendored
Executable file
@ -0,0 +1,41 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>PHPMailer - Exceptions test</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
require '../PHPMailerAutoload.php';
|
||||
|
||||
//Create a new PHPMailer instance
|
||||
//Passing true to the constructor enables the use of exceptions for error handling
|
||||
$mail = new PHPMailer(true);
|
||||
try {
|
||||
//Set who the message is to be sent from
|
||||
$mail->setFrom('from@example.com', 'First Last');
|
||||
//Set an alternative reply-to address
|
||||
$mail->addReplyTo('replyto@example.com', 'First Last');
|
||||
//Set who the message is to be sent to
|
||||
$mail->addAddress('whoto@example.com', 'John Doe');
|
||||
//Set the subject line
|
||||
$mail->Subject = 'PHPMailer Exceptions test';
|
||||
//Read an HTML message body from an external file, convert referenced images to embedded,
|
||||
//and convert the HTML into a basic plain-text alternative body
|
||||
$mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
|
||||
//Replace the plain text body with one created manually
|
||||
$mail->AltBody = 'This is a plain-text message body';
|
||||
//Attach an image file
|
||||
$mail->addAttachment('images/phpmailer_mini.png');
|
||||
//send the message
|
||||
//Note that we don't need check the response from this because it will throw an exception if it has trouble
|
||||
$mail->send();
|
||||
echo "Message sent!";
|
||||
} catch (phpmailerException $e) {
|
||||
echo $e->errorMessage(); //Pretty error messages from PHPMailer
|
||||
} catch (Exception $e) {
|
||||
echo $e->getMessage(); //Boring error messages from anything else!
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
79
3rdparty/phpmailer/examples/gmail.phps
vendored
Executable file
79
3rdparty/phpmailer/examples/gmail.phps
vendored
Executable file
@ -0,0 +1,79 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>PHPMailer - GMail SMTP test</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
|
||||
//SMTP needs accurate times, and the PHP time zone MUST be set
|
||||
//This should be done in your php.ini, but this is how to do it if you don't have access to that
|
||||
date_default_timezone_set('Etc/UTC');
|
||||
|
||||
require '../PHPMailerAutoload.php';
|
||||
|
||||
//Create a new PHPMailer instance
|
||||
$mail = new PHPMailer();
|
||||
|
||||
//Tell PHPMailer to use SMTP
|
||||
$mail->isSMTP();
|
||||
|
||||
//Enable SMTP debugging
|
||||
// 0 = off (for production use)
|
||||
// 1 = client messages
|
||||
// 2 = client and server messages
|
||||
$mail->SMTPDebug = 2;
|
||||
|
||||
//Ask for HTML-friendly debug output
|
||||
$mail->Debugoutput = 'html';
|
||||
|
||||
//Set the hostname of the mail server
|
||||
$mail->Host = 'smtp.gmail.com';
|
||||
|
||||
//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission
|
||||
$mail->Port = 587;
|
||||
|
||||
//Set the encryption system to use - ssl (deprecated) or tls
|
||||
$mail->SMTPSecure = 'tls';
|
||||
|
||||
//Whether to use SMTP authentication
|
||||
$mail->SMTPAuth = true;
|
||||
|
||||
//Username to use for SMTP authentication - use full email address for gmail
|
||||
$mail->Username = "username@gmail.com";
|
||||
|
||||
//Password to use for SMTP authentication
|
||||
$mail->Password = "yourpassword";
|
||||
|
||||
//Set who the message is to be sent from
|
||||
$mail->setFrom('from@example.com', 'First Last');
|
||||
|
||||
//Set an alternative reply-to address
|
||||
$mail->addReplyTo('replyto@example.com', 'First Last');
|
||||
|
||||
//Set who the message is to be sent to
|
||||
$mail->addAddress('whoto@example.com', 'John Doe');
|
||||
|
||||
//Set the subject line
|
||||
$mail->Subject = 'PHPMailer GMail SMTP test';
|
||||
|
||||
//Read an HTML message body from an external file, convert referenced images to embedded,
|
||||
//convert HTML into a basic plain-text alternative body
|
||||
$mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
|
||||
|
||||
//Replace the plain text body with one created manually
|
||||
$mail->AltBody = 'This is a plain-text message body';
|
||||
|
||||
//Attach an image file
|
||||
$mail->addAttachment('images/phpmailer_mini.png');
|
||||
|
||||
//send the message, check for errors
|
||||
if (!$mail->send()) {
|
||||
echo "Mailer Error: " . $mail->ErrorInfo;
|
||||
} else {
|
||||
echo "Message sent!";
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
BIN
3rdparty/phpmailer/examples/images/phpmailer.png
vendored
Executable file
BIN
3rdparty/phpmailer/examples/images/phpmailer.png
vendored
Executable file
Binary file not shown.
After Width: | Height: | Size: 5.7 KiB |
BIN
3rdparty/phpmailer/examples/images/phpmailer_mini.png
vendored
Executable file
BIN
3rdparty/phpmailer/examples/images/phpmailer_mini.png
vendored
Executable file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
45
3rdparty/phpmailer/examples/index.html
vendored
Executable file
45
3rdparty/phpmailer/examples/index.html
vendored
Executable file
@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>PHPMailer Examples</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>PHPMailer code examples<a href="https://github.com/PHPMailer/PHPMailer"><img src="images/phpmailer.png" style="float:right; border:0;" alt="PHPMailer logo"></a></h1>
|
||||
<p>This folder contains a collection of examples of using <a href="https://github.com/PHPMailer/PHPMailer">PHPMailer</a>.</p>
|
||||
<h2>About testing email sending</h2>
|
||||
<p>When working on email sending code you'll find yourself worrying about what might happen if all these test emails got sent to your mailing list. The solution is to use a fake mail server, one that acts just like the real thing, but just doesn't actually send anything out. Some offer web interfaces, feedback, logging, the ability to return specific error codes, all things that are useful for testing error handling, authentication etc. Here's a selection of mail testing tools you might like to try:</p>
|
||||
<ul>
|
||||
<li><a href="https://github.com/isotoma/FakeEmail">FakeEmail</a>, a Python-based fake mail server with a web interface.</li>
|
||||
<li><a href="http://www.postfix.org/smtp-sink.1.html">smtp-sink</a>, part of the Postfix mail server, so you probably already have this installed. This is used in the Travis-CI configuration to run PHPMailer's unit tests.</li>
|
||||
<li><a href="https://github.com/Nilhcem/FakeSMTP">FakeSMTP</a>, a Java desktop app with the ability to show an SMTP log and save messages to a folder.</li>
|
||||
<li><a href="http://smtp4dev.codeplex.com">smtp4dev</a>, a dummy SMTP server for Windows.</li>
|
||||
<li><a href="https://github.com/PHPMailer/PHPMailer/blob/master/test/fakesendmail.sh">fakesendmail.sh</a>, part of PHPMailer's test setup, this is a shell script that emulates sendmail for testing 'mail' or 'sendmail' methods in PHPMailer.</li>
|
||||
<li><a href="http://tools.ietf.org/tools/msglint/">msglint</a>, not a mail server, the IETF's MIME structure analyser checks the formatting of your messages.</li>
|
||||
</ul>
|
||||
<div style="padding: 8px; color: #333333; background-color: #dc8b92">
|
||||
<h2>Security note</h2>
|
||||
<p>Before running these examples you'll need to rename them with '.php' extensions. They are supplied as '.phps' files which will usually be displayed with syntax highlighting by PHP instead of running them. This prevents potential security issues with running potential spam-gateway code if you happen to deploy these code examples on a live site - <em>please don't do that!</em> Similarly, don't leave your passwords in these files as they will be visible to the world!</p>
|
||||
</div>
|
||||
<h2><a href="code_generator.phps">code_generator.phps</a></h2>
|
||||
<p>This script is a simple code generator - fill in the form and hit submit, and it will use when you entered to email you a message, and will also generate PHP code using your settings that you can copy and paste to use in your own apps. If you need to get going quickly, this is probably the best place to start.</p>
|
||||
<h2><a href="mail.phps">mail.phps</a></h2>
|
||||
<p>This script is a basic example which creates an email message from an external HTML file, creates a plain text body, sets various addresses, adds an attachment and sends the message. It uses PHP's built-in mail() function which is the simplest to use, but relies on the presence of a local mail server, something which is not usually available on Windows. If you find yourself in that sitution, either install a local mail server, or use a remote one and send using SMTP instead.</p>
|
||||
<h2><a href="exceptions.phps">exceptions.phps</a></h2>
|
||||
<p>The same as the mail example, but shows how to use PHPMailer's optional exceptions for error handling.</p>
|
||||
<h2><a href="smtp.phps">smtp.phps</a></h2>
|
||||
<p>A simple example sending using SMTP with authentication.</p>
|
||||
<h2><a href="smtp_no_auth.phps">smtp_no_auth.phps</a></h2>
|
||||
<p>A simple example sending using SMTP without authentication.</p>
|
||||
<h2><a href="sendmail.phps">sendmail.phps</a></h2>
|
||||
<p>A simple example using sendmail. Sendmail is a program (usually found on Linux/BSD, OS X and other UNIX-alikes) that can be used to submit messages to a local mail server without a lengthy SMTP conversation. It's probably the fastest sending mechanism, but lacks some error reporting features. There are sendmail emulators for most popular mail servers including postfix, qmail, exim etc.</p>
|
||||
<h2><a href="gmail.phps">gmail.phps</a></h2>
|
||||
<p>Submitting email via Google's Gmail service is a popular use of PHPMailer. It's much the same as normal SMTP sending, just with some specific settings, namely using TLS encryption, authentication is enabled, and it connects to the SMTP submission port 587 on the smtp.gmail.com host. This example does all that.</p>
|
||||
<h2><a href="pop_before_smtp.phps">pop_before_smtp.phps</a></h2>
|
||||
<p>Before effective SMTP authentication mechanisms were available, it was common for ISPs to use POP-before-SMTP authentication. As it implies, you authenticate using the POP3 protocol (an older protocol now mostly replaced by the far superior IMAP), and then the SMTP server will allow send access from your IP address for a short while, usually 5-15 minutes. PHPMailer includes a POP3 protocol client, so it can carry out this sequence - it's just like a normal SMTP conversation (without authentication), but connects via POP first.</p>
|
||||
<h2><a href="mailing_list.phps">mailing_list.phps</a></h2>
|
||||
<p>This is a somewhat naïve example of sending similar emails to a list of different addresses. It sets up a PHPMailer instance using SMTP, then connects to a MySQL database to retrieve a list of recipients. The code loops over this list, sending email to each person using their info and marks them as sent in the database. It makes use of SMTP keepalive which saves reconnecting and re-authenticating between each message.</p>
|
||||
<hr>
|
||||
<p>Most of these examples use the 'example.com' domain. This domain is reserved by IANA for illustrative purposes, as documented in <a href="http://tools.ietf.org/html/rfc2606">RFC 2606</a>. Don't use made-up domains like 'mydomain.com' or 'somedomain.com' in examples as someone, somewhere, probably owns them!</p>
|
||||
</body>
|
||||
</html>
|
37
3rdparty/phpmailer/examples/mail.phps
vendored
Executable file
37
3rdparty/phpmailer/examples/mail.phps
vendored
Executable file
@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>PHPMailer - mail() test</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
require '../PHPMailerAutoload.php';
|
||||
|
||||
//Create a new PHPMailer instance
|
||||
$mail = new PHPMailer();
|
||||
//Set who the message is to be sent from
|
||||
$mail->setFrom('from@example.com', 'First Last');
|
||||
//Set an alternative reply-to address
|
||||
$mail->addReplyTo('replyto@example.com', 'First Last');
|
||||
//Set who the message is to be sent to
|
||||
$mail->addAddress('whoto@example.com', 'John Doe');
|
||||
//Set the subject line
|
||||
$mail->Subject = 'PHPMailer mail() test';
|
||||
//Read an HTML message body from an external file, convert referenced images to embedded,
|
||||
//convert HTML into a basic plain-text alternative body
|
||||
$mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
|
||||
//Replace the plain text body with one created manually
|
||||
$mail->AltBody = 'This is a plain-text message body';
|
||||
//Attach an image file
|
||||
$mail->addAttachment('images/phpmailer_mini.png');
|
||||
|
||||
//send the message, check for errors
|
||||
if (!$mail->send()) {
|
||||
echo "Mailer Error: " . $mail->ErrorInfo;
|
||||
} else {
|
||||
echo "Message sent!";
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
55
3rdparty/phpmailer/examples/mailing_list.phps
vendored
Executable file
55
3rdparty/phpmailer/examples/mailing_list.phps
vendored
Executable file
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
error_reporting(E_STRICT | E_ALL);
|
||||
|
||||
date_default_timezone_set('Etc/UTC');
|
||||
|
||||
require '../PHPMailerAutoload.php';
|
||||
|
||||
$mail = new PHPMailer();
|
||||
|
||||
$body = file_get_contents('contents.html');
|
||||
|
||||
$mail->isSMTP();
|
||||
$mail->Host = 'smtp.example.com';
|
||||
$mail->SMTPAuth = true;
|
||||
$mail->SMTPKeepAlive = true; // SMTP connection will not close after each email sent, reduces SMTP overhead
|
||||
$mail->Port = 25;
|
||||
$mail->Username = 'yourname@example.com';
|
||||
$mail->Password = 'yourpassword';
|
||||
$mail->setFrom('list@example.com', 'List manager');
|
||||
$mail->addReplyTo('list@example.com', 'List manager');
|
||||
|
||||
$mail->Subject = "PHPMailer Simple database mailing list test";
|
||||
|
||||
//Same body for all messages, so set this before the sending loop
|
||||
//If you generate a different body for each recipient (e.g. you're using a templating system),
|
||||
//set it inside the loop
|
||||
$mail->msgHTML($body);
|
||||
//msgHTML also sets AltBody, so if you want a custom one, set it afterwards
|
||||
$mail->AltBody = 'To view the message, please use an HTML compatible email viewer!';
|
||||
|
||||
//Connect to the database and select the recipients from your mailing list that have not yet been sent to
|
||||
//You'll need to alter this to match your database
|
||||
$mysql = mysql_connect('localhost', 'username', 'password');
|
||||
mysql_select_db('mydb', $mysql);
|
||||
$result = mysql_query("SELECT full_name, email, photo FROM mailinglist WHERE sent = false", $mysql);
|
||||
|
||||
while ($row = mysql_fetch_array($result)) {
|
||||
$mail->addAddress($row['email'], $row['full_name']);
|
||||
$mail->addStringAttachment($row['photo'], 'YourPhoto.jpg'); //Assumes the image data is stored in the DB
|
||||
|
||||
if (!$mail->send()) {
|
||||
echo "Mailer Error (" . str_replace("@", "@", $row["email"]) . ') ' . $mail->ErrorInfo . '<br />';
|
||||
break; //Abandon sending
|
||||
} else {
|
||||
echo "Message sent to :" . $row['full_name'] . ' (' . str_replace("@", "@", $row['email']) . ')<br />';
|
||||
//Mark it as sent in the DB
|
||||
mysql_query(
|
||||
"UPDATE mailinglist SET sent = true WHERE email = '" . mysql_real_escape_string($row['email'], $mysql) . "'"
|
||||
);
|
||||
}
|
||||
// Clear all addresses and attachments for next loop
|
||||
$mail->clearAddresses();
|
||||
$mail->clearAttachments();
|
||||
}
|
60
3rdparty/phpmailer/examples/pop_before_smtp.phps
vendored
Executable file
60
3rdparty/phpmailer/examples/pop_before_smtp.phps
vendored
Executable file
@ -0,0 +1,60 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>PHPMailer - POP-before-SMTP test</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
require '../PHPMailerAutoload.php';
|
||||
|
||||
//Authenticate via POP3.
|
||||
//After this you should be allowed to submit messages over SMTP for a while.
|
||||
//Only applies if your host supports POP-before-SMTP.
|
||||
$pop = POP3::popBeforeSmtp('pop3.example.com', 110, 30, 'username', 'password', 1);
|
||||
|
||||
//Create a new PHPMailer instance
|
||||
//Passing true to the constructor enables the use of exceptions for error handling
|
||||
$mail = new PHPMailer(true);
|
||||
try {
|
||||
$mail->isSMTP();
|
||||
//Enable SMTP debugging
|
||||
// 0 = off (for production use)
|
||||
// 1 = client messages
|
||||
// 2 = client and server messages
|
||||
$mail->SMTPDebug = 2;
|
||||
//Ask for HTML-friendly debug output
|
||||
$mail->Debugoutput = 'html';
|
||||
//Set the hostname of the mail server
|
||||
$mail->Host = "mail.example.com";
|
||||
//Set the SMTP port number - likely to be 25, 465 or 587
|
||||
$mail->Port = 25;
|
||||
//Whether to use SMTP authentication
|
||||
$mail->SMTPAuth = false;
|
||||
//Set who the message is to be sent from
|
||||
$mail->setFrom('from@example.com', 'First Last');
|
||||
//Set an alternative reply-to address
|
||||
$mail->addReplyTo('replyto@example.com', 'First Last');
|
||||
//Set who the message is to be sent to
|
||||
$mail->addAddress('whoto@example.com', 'John Doe');
|
||||
//Set the subject line
|
||||
$mail->Subject = 'PHPMailer POP-before-SMTP test';
|
||||
//Read an HTML message body from an external file, convert referenced images to embedded,
|
||||
//and convert the HTML into a basic plain-text alternative body
|
||||
$mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
|
||||
//Replace the plain text body with one created manually
|
||||
$mail->AltBody = 'This is a plain-text message body';
|
||||
//Attach an image file
|
||||
$mail->addAttachment('images/phpmailer_mini.png');
|
||||
//send the message
|
||||
//Note that we don't need check the response from this because it will throw an exception if it has trouble
|
||||
$mail->send();
|
||||
echo "Message sent!";
|
||||
} catch (phpmailerException $e) {
|
||||
echo $e->errorMessage(); //Pretty error messages from PHPMailer
|
||||
} catch (Exception $e) {
|
||||
echo $e->getMessage(); //Boring error messages from anything else!
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
664
3rdparty/phpmailer/examples/scripts/XRegExp.js
vendored
Executable file
664
3rdparty/phpmailer/examples/scripts/XRegExp.js
vendored
Executable file
@ -0,0 +1,664 @@
|
||||
// XRegExp 1.5.1
|
||||
// (c) 2007-2012 Steven Levithan
|
||||
// MIT License
|
||||
// <http://xregexp.com>
|
||||
// Provides an augmented, extensible, cross-browser implementation of regular expressions,
|
||||
// including support for additional syntax, flags, and methods
|
||||
|
||||
var XRegExp;
|
||||
|
||||
if (XRegExp) {
|
||||
// Avoid running twice, since that would break references to native globals
|
||||
throw Error("can't load XRegExp twice in the same frame");
|
||||
}
|
||||
|
||||
// Run within an anonymous function to protect variables and avoid new globals
|
||||
(function (undefined) {
|
||||
|
||||
//---------------------------------
|
||||
// Constructor
|
||||
//---------------------------------
|
||||
|
||||
// Accepts a pattern and flags; returns a new, extended `RegExp` object. Differs from a native
|
||||
// regular expression in that additional syntax and flags are supported and cross-browser
|
||||
// syntax inconsistencies are ameliorated. `XRegExp(/regex/)` clones an existing regex and
|
||||
// converts to type XRegExp
|
||||
XRegExp = function (pattern, flags) {
|
||||
var output = [],
|
||||
currScope = XRegExp.OUTSIDE_CLASS,
|
||||
pos = 0,
|
||||
context, tokenResult, match, chr, regex;
|
||||
|
||||
if (XRegExp.isRegExp(pattern)) {
|
||||
if (flags !== undefined)
|
||||
throw TypeError("can't supply flags when constructing one RegExp from another");
|
||||
return clone(pattern);
|
||||
}
|
||||
// Tokens become part of the regex construction process, so protect against infinite
|
||||
// recursion when an XRegExp is constructed within a token handler or trigger
|
||||
if (isInsideConstructor)
|
||||
throw Error("can't call the XRegExp constructor within token definition functions");
|
||||
|
||||
flags = flags || "";
|
||||
context = { // `this` object for custom tokens
|
||||
hasNamedCapture: false,
|
||||
captureNames: [],
|
||||
hasFlag: function (flag) {return flags.indexOf(flag) > -1;},
|
||||
setFlag: function (flag) {flags += flag;}
|
||||
};
|
||||
|
||||
while (pos < pattern.length) {
|
||||
// Check for custom tokens at the current position
|
||||
tokenResult = runTokens(pattern, pos, currScope, context);
|
||||
|
||||
if (tokenResult) {
|
||||
output.push(tokenResult.output);
|
||||
pos += (tokenResult.match[0].length || 1);
|
||||
} else {
|
||||
// Check for native multicharacter metasequences (excluding character classes) at
|
||||
// the current position
|
||||
if (match = nativ.exec.call(nativeTokens[currScope], pattern.slice(pos))) {
|
||||
output.push(match[0]);
|
||||
pos += match[0].length;
|
||||
} else {
|
||||
chr = pattern.charAt(pos);
|
||||
if (chr === "[")
|
||||
currScope = XRegExp.INSIDE_CLASS;
|
||||
else if (chr === "]")
|
||||
currScope = XRegExp.OUTSIDE_CLASS;
|
||||
// Advance position one character
|
||||
output.push(chr);
|
||||
pos++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
regex = RegExp(output.join(""), nativ.replace.call(flags, flagClip, ""));
|
||||
regex._xregexp = {
|
||||
source: pattern,
|
||||
captureNames: context.hasNamedCapture ? context.captureNames : null
|
||||
};
|
||||
return regex;
|
||||
};
|
||||
|
||||
|
||||
//---------------------------------
|
||||
// Public properties
|
||||
//---------------------------------
|
||||
|
||||
XRegExp.version = "1.5.1";
|
||||
|
||||
// Token scope bitflags
|
||||
XRegExp.INSIDE_CLASS = 1;
|
||||
XRegExp.OUTSIDE_CLASS = 2;
|
||||
|
||||
|
||||
//---------------------------------
|
||||
// Private variables
|
||||
//---------------------------------
|
||||
|
||||
var replacementToken = /\$(?:(\d\d?|[$&`'])|{([$\w]+)})/g,
|
||||
flagClip = /[^gimy]+|([\s\S])(?=[\s\S]*\1)/g, // Nonnative and duplicate flags
|
||||
quantifier = /^(?:[?*+]|{\d+(?:,\d*)?})\??/,
|
||||
isInsideConstructor = false,
|
||||
tokens = [],
|
||||
// Copy native globals for reference ("native" is an ES3 reserved keyword)
|
||||
nativ = {
|
||||
exec: RegExp.prototype.exec,
|
||||
test: RegExp.prototype.test,
|
||||
match: String.prototype.match,
|
||||
replace: String.prototype.replace,
|
||||
split: String.prototype.split
|
||||
},
|
||||
compliantExecNpcg = nativ.exec.call(/()??/, "")[1] === undefined, // check `exec` handling of nonparticipating capturing groups
|
||||
compliantLastIndexIncrement = function () {
|
||||
var x = /^/g;
|
||||
nativ.test.call(x, "");
|
||||
return !x.lastIndex;
|
||||
}(),
|
||||
hasNativeY = RegExp.prototype.sticky !== undefined,
|
||||
nativeTokens = {};
|
||||
|
||||
// `nativeTokens` match native multicharacter metasequences only (including deprecated octals,
|
||||
// excluding character classes)
|
||||
nativeTokens[XRegExp.INSIDE_CLASS] = /^(?:\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|c[A-Za-z]|[\s\S]))/;
|
||||
nativeTokens[XRegExp.OUTSIDE_CLASS] = /^(?:\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|c[A-Za-z]|[\s\S])|\(\?[:=!]|[?*+]\?|{\d+(?:,\d*)?}\??)/;
|
||||
|
||||
|
||||
//---------------------------------
|
||||
// Public methods
|
||||
//---------------------------------
|
||||
|
||||
// Lets you extend or change XRegExp syntax and create custom flags. This is used internally by
|
||||
// the XRegExp library and can be used to create XRegExp plugins. This function is intended for
|
||||
// users with advanced knowledge of JavaScript's regular expression syntax and behavior. It can
|
||||
// be disabled by `XRegExp.freezeTokens`
|
||||
XRegExp.addToken = function (regex, handler, scope, trigger) {
|
||||
tokens.push({
|
||||
pattern: clone(regex, "g" + (hasNativeY ? "y" : "")),
|
||||
handler: handler,
|
||||
scope: scope || XRegExp.OUTSIDE_CLASS,
|
||||
trigger: trigger || null
|
||||
});
|
||||
};
|
||||
|
||||
// Accepts a pattern and flags; returns an extended `RegExp` object. If the pattern and flag
|
||||
// combination has previously been cached, the cached copy is returned; otherwise the newly
|
||||
// created regex is cached
|
||||
XRegExp.cache = function (pattern, flags) {
|
||||
var key = pattern + "/" + (flags || "");
|
||||
return XRegExp.cache[key] || (XRegExp.cache[key] = XRegExp(pattern, flags));
|
||||
};
|
||||
|
||||
// Accepts a `RegExp` instance; returns a copy with the `/g` flag set. The copy has a fresh
|
||||
// `lastIndex` (set to zero). If you want to copy a regex without forcing the `global`
|
||||
// property, use `XRegExp(regex)`. Do not use `RegExp(regex)` because it will not preserve
|
||||
// special properties required for named capture
|
||||
XRegExp.copyAsGlobal = function (regex) {
|
||||
return clone(regex, "g");
|
||||
};
|
||||
|
||||
// Accepts a string; returns the string with regex metacharacters escaped. The returned string
|
||||
// can safely be used at any point within a regex to match the provided literal string. Escaped
|
||||
// characters are [ ] { } ( ) * + ? - . , \ ^ $ | # and whitespace
|
||||
XRegExp.escape = function (str) {
|
||||
return str.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
||||
};
|
||||
|
||||
// Accepts a string to search, regex to search with, position to start the search within the
|
||||
// string (default: 0), and an optional Boolean indicating whether matches must start at-or-
|
||||
// after the position or at the specified position only. This function ignores the `lastIndex`
|
||||
// of the provided regex in its own handling, but updates the property for compatibility
|
||||
XRegExp.execAt = function (str, regex, pos, anchored) {
|
||||
var r2 = clone(regex, "g" + ((anchored && hasNativeY) ? "y" : "")),
|
||||
match;
|
||||
r2.lastIndex = pos = pos || 0;
|
||||
match = r2.exec(str); // Run the altered `exec` (required for `lastIndex` fix, etc.)
|
||||
if (anchored && match && match.index !== pos)
|
||||
match = null;
|
||||
if (regex.global)
|
||||
regex.lastIndex = match ? r2.lastIndex : 0;
|
||||
return match;
|
||||
};
|
||||
|
||||
// Breaks the unrestorable link to XRegExp's private list of tokens, thereby preventing
|
||||
// syntax and flag changes. Should be run after XRegExp and any plugins are loaded
|
||||
XRegExp.freezeTokens = function () {
|
||||
XRegExp.addToken = function () {
|
||||
throw Error("can't run addToken after freezeTokens");
|
||||
};
|
||||
};
|
||||
|
||||
// Accepts any value; returns a Boolean indicating whether the argument is a `RegExp` object.
|
||||
// Note that this is also `true` for regex literals and regexes created by the `XRegExp`
|
||||
// constructor. This works correctly for variables created in another frame, when `instanceof`
|
||||
// and `constructor` checks would fail to work as intended
|
||||
XRegExp.isRegExp = function (o) {
|
||||
return Object.prototype.toString.call(o) === "[object RegExp]";
|
||||
};
|
||||
|
||||
// Executes `callback` once per match within `str`. Provides a simpler and cleaner way to
|
||||
// iterate over regex matches compared to the traditional approaches of subverting
|
||||
// `String.prototype.replace` or repeatedly calling `exec` within a `while` loop
|
||||
XRegExp.iterate = function (str, regex, callback, context) {
|
||||
var r2 = clone(regex, "g"),
|
||||
i = -1, match;
|
||||
while (match = r2.exec(str)) { // Run the altered `exec` (required for `lastIndex` fix, etc.)
|
||||
if (regex.global)
|
||||
regex.lastIndex = r2.lastIndex; // Doing this to follow expectations if `lastIndex` is checked within `callback`
|
||||
callback.call(context, match, ++i, str, regex);
|
||||
if (r2.lastIndex === match.index)
|
||||
r2.lastIndex++;
|
||||
}
|
||||
if (regex.global)
|
||||
regex.lastIndex = 0;
|
||||
};
|
||||
|
||||
// Accepts a string and an array of regexes; returns the result of using each successive regex
|
||||
// to search within the matches of the previous regex. The array of regexes can also contain
|
||||
// objects with `regex` and `backref` properties, in which case the named or numbered back-
|
||||
// references specified are passed forward to the next regex or returned. E.g.:
|
||||
// var xregexpImgFileNames = XRegExp.matchChain(html, [
|
||||
// {regex: /<img\b([^>]+)>/i, backref: 1}, // <img> tag attributes
|
||||
// {regex: XRegExp('(?ix) \\s src=" (?<src> [^"]+ )'), backref: "src"}, // src attribute values
|
||||
// {regex: XRegExp("^http://xregexp\\.com(/[^#?]+)", "i"), backref: 1}, // xregexp.com paths
|
||||
// /[^\/]+$/ // filenames (strip directory paths)
|
||||
// ]);
|
||||
XRegExp.matchChain = function (str, chain) {
|
||||
return function recurseChain (values, level) {
|
||||
var item = chain[level].regex ? chain[level] : {regex: chain[level]},
|
||||
regex = clone(item.regex, "g"),
|
||||
matches = [], i;
|
||||
for (i = 0; i < values.length; i++) {
|
||||
XRegExp.iterate(values[i], regex, function (match) {
|
||||
matches.push(item.backref ? (match[item.backref] || "") : match[0]);
|
||||
});
|
||||
}
|
||||
return ((level === chain.length - 1) || !matches.length) ?
|
||||
matches : recurseChain(matches, level + 1);
|
||||
}([str], 0);
|
||||
};
|
||||
|
||||
|
||||
//---------------------------------
|
||||
// New RegExp prototype methods
|
||||
//---------------------------------
|
||||
|
||||
// Accepts a context object and arguments array; returns the result of calling `exec` with the
|
||||
// first value in the arguments array. the context is ignored but is accepted for congruity
|
||||
// with `Function.prototype.apply`
|
||||
RegExp.prototype.apply = function (context, args) {
|
||||
return this.exec(args[0]);
|
||||
};
|
||||
|
||||
// Accepts a context object and string; returns the result of calling `exec` with the provided
|
||||
// string. the context is ignored but is accepted for congruity with `Function.prototype.call`
|
||||
RegExp.prototype.call = function (context, str) {
|
||||
return this.exec(str);
|
||||
};
|
||||
|
||||
|
||||
//---------------------------------
|
||||
// Overriden native methods
|
||||
//---------------------------------
|
||||
|
||||
// Adds named capture support (with backreferences returned as `result.name`), and fixes two
|
||||
// cross-browser issues per ES3:
|
||||
// - Captured values for nonparticipating capturing groups should be returned as `undefined`,
|
||||
// rather than the empty string.
|
||||
// - `lastIndex` should not be incremented after zero-length matches.
|
||||
RegExp.prototype.exec = function (str) {
|
||||
var match, name, r2, origLastIndex;
|
||||
if (!this.global)
|
||||
origLastIndex = this.lastIndex;
|
||||
match = nativ.exec.apply(this, arguments);
|
||||
if (match) {
|
||||
// Fix browsers whose `exec` methods don't consistently return `undefined` for
|
||||
// nonparticipating capturing groups
|
||||
if (!compliantExecNpcg && match.length > 1 && indexOf(match, "") > -1) {
|
||||
r2 = RegExp(this.source, nativ.replace.call(getNativeFlags(this), "g", ""));
|
||||
// Using `str.slice(match.index)` rather than `match[0]` in case lookahead allowed
|
||||
// matching due to characters outside the match
|
||||
nativ.replace.call((str + "").slice(match.index), r2, function () {
|
||||
for (var i = 1; i < arguments.length - 2; i++) {
|
||||
if (arguments[i] === undefined)
|
||||
match[i] = undefined;
|
||||
}
|
||||
});
|
||||
}
|
||||
// Attach named capture properties
|
||||
if (this._xregexp && this._xregexp.captureNames) {
|
||||
for (var i = 1; i < match.length; i++) {
|
||||
name = this._xregexp.captureNames[i - 1];
|
||||
if (name)
|
||||
match[name] = match[i];
|
||||
}
|
||||
}
|
||||
// Fix browsers that increment `lastIndex` after zero-length matches
|
||||
if (!compliantLastIndexIncrement && this.global && !match[0].length && (this.lastIndex > match.index))
|
||||
this.lastIndex--;
|
||||
}
|
||||
if (!this.global)
|
||||
this.lastIndex = origLastIndex; // Fix IE, Opera bug (last tested IE 9.0.5, Opera 11.61 on Windows)
|
||||
return match;
|
||||
};
|
||||
|
||||
// Fix browser bugs in native method
|
||||
RegExp.prototype.test = function (str) {
|
||||
// Use the native `exec` to skip some processing overhead, even though the altered
|
||||
// `exec` would take care of the `lastIndex` fixes
|
||||
var match, origLastIndex;
|
||||
if (!this.global)
|
||||
origLastIndex = this.lastIndex;
|
||||
match = nativ.exec.call(this, str);
|
||||
// Fix browsers that increment `lastIndex` after zero-length matches
|
||||
if (match && !compliantLastIndexIncrement && this.global && !match[0].length && (this.lastIndex > match.index))
|
||||
this.lastIndex--;
|
||||
if (!this.global)
|
||||
this.lastIndex = origLastIndex; // Fix IE, Opera bug (last tested IE 9.0.5, Opera 11.61 on Windows)
|
||||
return !!match;
|
||||
};
|
||||
|
||||
// Adds named capture support and fixes browser bugs in native method
|
||||
String.prototype.match = function (regex) {
|
||||
if (!XRegExp.isRegExp(regex))
|
||||
regex = RegExp(regex); // Native `RegExp`
|
||||
if (regex.global) {
|
||||
var result = nativ.match.apply(this, arguments);
|
||||
regex.lastIndex = 0; // Fix IE bug
|
||||
return result;
|
||||
}
|
||||
return regex.exec(this); // Run the altered `exec`
|
||||
};
|
||||
|
||||
// Adds support for `${n}` tokens for named and numbered backreferences in replacement text,
|
||||
// and provides named backreferences to replacement functions as `arguments[0].name`. Also
|
||||
// fixes cross-browser differences in replacement text syntax when performing a replacement
|
||||
// using a nonregex search value, and the value of replacement regexes' `lastIndex` property
|
||||
// during replacement iterations. Note that this doesn't support SpiderMonkey's proprietary
|
||||
// third (`flags`) parameter
|
||||
String.prototype.replace = function (search, replacement) {
|
||||
var isRegex = XRegExp.isRegExp(search),
|
||||
captureNames, result, str, origLastIndex;
|
||||
|
||||
// There are too many combinations of search/replacement types/values and browser bugs that
|
||||
// preclude passing to native `replace`, so don't try
|
||||
//if (...)
|
||||
// return nativ.replace.apply(this, arguments);
|
||||
|
||||
if (isRegex) {
|
||||
if (search._xregexp)
|
||||
captureNames = search._xregexp.captureNames; // Array or `null`
|
||||
if (!search.global)
|
||||
origLastIndex = search.lastIndex;
|
||||
} else {
|
||||
search = search + ""; // Type conversion
|
||||
}
|
||||
|
||||
if (Object.prototype.toString.call(replacement) === "[object Function]") {
|
||||
result = nativ.replace.call(this + "", search, function () {
|
||||
if (captureNames) {
|
||||
// Change the `arguments[0]` string primitive to a String object which can store properties
|
||||
arguments[0] = new String(arguments[0]);
|
||||
// Store named backreferences on `arguments[0]`
|
||||
for (var i = 0; i < captureNames.length; i++) {
|
||||
if (captureNames[i])
|
||||
arguments[0][captureNames[i]] = arguments[i + 1];
|
||||
}
|
||||
}
|
||||
// Update `lastIndex` before calling `replacement` (fix browsers)
|
||||
if (isRegex && search.global)
|
||||
search.lastIndex = arguments[arguments.length - 2] + arguments[0].length;
|
||||
return replacement.apply(null, arguments);
|
||||
});
|
||||
} else {
|
||||
str = this + ""; // Type conversion, so `args[args.length - 1]` will be a string (given nonstring `this`)
|
||||
result = nativ.replace.call(str, search, function () {
|
||||
var args = arguments; // Keep this function's `arguments` available through closure
|
||||
return nativ.replace.call(replacement + "", replacementToken, function ($0, $1, $2) {
|
||||
// Numbered backreference (without delimiters) or special variable
|
||||
if ($1) {
|
||||
switch ($1) {
|
||||
case "$": return "$";
|
||||
case "&": return args[0];
|
||||
case "`": return args[args.length - 1].slice(0, args[args.length - 2]);
|
||||
case "'": return args[args.length - 1].slice(args[args.length - 2] + args[0].length);
|
||||
// Numbered backreference
|
||||
default:
|
||||
// What does "$10" mean?
|
||||
// - Backreference 10, if 10 or more capturing groups exist
|
||||
// - Backreference 1 followed by "0", if 1-9 capturing groups exist
|
||||
// - Otherwise, it's the string "$10"
|
||||
// Also note:
|
||||
// - Backreferences cannot be more than two digits (enforced by `replacementToken`)
|
||||
// - "$01" is equivalent to "$1" if a capturing group exists, otherwise it's the string "$01"
|
||||
// - There is no "$0" token ("$&" is the entire match)
|
||||
var literalNumbers = "";
|
||||
$1 = +$1; // Type conversion; drop leading zero
|
||||
if (!$1) // `$1` was "0" or "00"
|
||||
return $0;
|
||||
while ($1 > args.length - 3) {
|
||||
literalNumbers = String.prototype.slice.call($1, -1) + literalNumbers;
|
||||
$1 = Math.floor($1 / 10); // Drop the last digit
|
||||
}
|
||||
return ($1 ? args[$1] || "" : "$") + literalNumbers;
|
||||
}
|
||||
// Named backreference or delimited numbered backreference
|
||||
} else {
|
||||
// What does "${n}" mean?
|
||||
// - Backreference to numbered capture n. Two differences from "$n":
|
||||
// - n can be more than two digits
|
||||
// - Backreference 0 is allowed, and is the entire match
|
||||
// - Backreference to named capture n, if it exists and is not a number overridden by numbered capture
|
||||
// - Otherwise, it's the string "${n}"
|
||||
var n = +$2; // Type conversion; drop leading zeros
|
||||
if (n <= args.length - 3)
|
||||
return args[n];
|
||||
n = captureNames ? indexOf(captureNames, $2) : -1;
|
||||
return n > -1 ? args[n + 1] : $0;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
if (isRegex) {
|
||||
if (search.global)
|
||||
search.lastIndex = 0; // Fix IE, Safari bug (last tested IE 9.0.5, Safari 5.1.2 on Windows)
|
||||
else
|
||||
search.lastIndex = origLastIndex; // Fix IE, Opera bug (last tested IE 9.0.5, Opera 11.61 on Windows)
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
// A consistent cross-browser, ES3 compliant `split`
|
||||
String.prototype.split = function (s /* separator */, limit) {
|
||||
// If separator `s` is not a regex, use the native `split`
|
||||
if (!XRegExp.isRegExp(s))
|
||||
return nativ.split.apply(this, arguments);
|
||||
|
||||
var str = this + "", // Type conversion
|
||||
output = [],
|
||||
lastLastIndex = 0,
|
||||
match, lastLength;
|
||||
|
||||
// Behavior for `limit`: if it's...
|
||||
// - `undefined`: No limit
|
||||
// - `NaN` or zero: Return an empty array
|
||||
// - A positive number: Use `Math.floor(limit)`
|
||||
// - A negative number: No limit
|
||||
// - Other: Type-convert, then use the above rules
|
||||
if (limit === undefined || +limit < 0) {
|
||||
limit = Infinity;
|
||||
} else {
|
||||
limit = Math.floor(+limit);
|
||||
if (!limit)
|
||||
return [];
|
||||
}
|
||||
|
||||
// This is required if not `s.global`, and it avoids needing to set `s.lastIndex` to zero
|
||||
// and restore it to its original value when we're done using the regex
|
||||
s = XRegExp.copyAsGlobal(s);
|
||||
|
||||
while (match = s.exec(str)) { // Run the altered `exec` (required for `lastIndex` fix, etc.)
|
||||
if (s.lastIndex > lastLastIndex) {
|
||||
output.push(str.slice(lastLastIndex, match.index));
|
||||
|
||||
if (match.length > 1 && match.index < str.length)
|
||||
Array.prototype.push.apply(output, match.slice(1));
|
||||
|
||||
lastLength = match[0].length;
|
||||
lastLastIndex = s.lastIndex;
|
||||
|
||||
if (output.length >= limit)
|
||||
break;
|
||||
}
|
||||
|
||||
if (s.lastIndex === match.index)
|
||||
s.lastIndex++;
|
||||
}
|
||||
|
||||
if (lastLastIndex === str.length) {
|
||||
if (!nativ.test.call(s, "") || lastLength)
|
||||
output.push("");
|
||||
} else {
|
||||
output.push(str.slice(lastLastIndex));
|
||||
}
|
||||
|
||||
return output.length > limit ? output.slice(0, limit) : output;
|
||||
};
|
||||
|
||||
|
||||
//---------------------------------
|
||||
// Private helper functions
|
||||
//---------------------------------
|
||||
|
||||
// Supporting function for `XRegExp`, `XRegExp.copyAsGlobal`, etc. Returns a copy of a `RegExp`
|
||||
// instance with a fresh `lastIndex` (set to zero), preserving properties required for named
|
||||
// capture. Also allows adding new flags in the process of copying the regex
|
||||
function clone (regex, additionalFlags) {
|
||||
if (!XRegExp.isRegExp(regex))
|
||||
throw TypeError("type RegExp expected");
|
||||
var x = regex._xregexp;
|
||||
regex = XRegExp(regex.source, getNativeFlags(regex) + (additionalFlags || ""));
|
||||
if (x) {
|
||||
regex._xregexp = {
|
||||
source: x.source,
|
||||
captureNames: x.captureNames ? x.captureNames.slice(0) : null
|
||||
};
|
||||
}
|
||||
return regex;
|
||||
}
|
||||
|
||||
function getNativeFlags (regex) {
|
||||
return (regex.global ? "g" : "") +
|
||||
(regex.ignoreCase ? "i" : "") +
|
||||
(regex.multiline ? "m" : "") +
|
||||
(regex.extended ? "x" : "") + // Proposed for ES4; included in AS3
|
||||
(regex.sticky ? "y" : "");
|
||||
}
|
||||
|
||||
function runTokens (pattern, index, scope, context) {
|
||||
var i = tokens.length,
|
||||
result, match, t;
|
||||
// Protect against constructing XRegExps within token handler and trigger functions
|
||||
isInsideConstructor = true;
|
||||
// Must reset `isInsideConstructor`, even if a `trigger` or `handler` throws
|
||||
try {
|
||||
while (i--) { // Run in reverse order
|
||||
t = tokens[i];
|
||||
if ((scope & t.scope) && (!t.trigger || t.trigger.call(context))) {
|
||||
t.pattern.lastIndex = index;
|
||||
match = t.pattern.exec(pattern); // Running the altered `exec` here allows use of named backreferences, etc.
|
||||
if (match && match.index === index) {
|
||||
result = {
|
||||
output: t.handler.call(context, match, scope),
|
||||
match: match
|
||||
};
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
throw err;
|
||||
} finally {
|
||||
isInsideConstructor = false;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
function indexOf (array, item, from) {
|
||||
if (Array.prototype.indexOf) // Use the native array method if available
|
||||
return array.indexOf(item, from);
|
||||
for (var i = from || 0; i < array.length; i++) {
|
||||
if (array[i] === item)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
//---------------------------------
|
||||
// Built-in tokens
|
||||
//---------------------------------
|
||||
|
||||
// Augment XRegExp's regular expression syntax and flags. Note that when adding tokens, the
|
||||
// third (`scope`) argument defaults to `XRegExp.OUTSIDE_CLASS`
|
||||
|
||||
// Comment pattern: (?# )
|
||||
XRegExp.addToken(
|
||||
/\(\?#[^)]*\)/,
|
||||
function (match) {
|
||||
// Keep tokens separated unless the following token is a quantifier
|
||||
return nativ.test.call(quantifier, match.input.slice(match.index + match[0].length)) ? "" : "(?:)";
|
||||
}
|
||||
);
|
||||
|
||||
// Capturing group (match the opening parenthesis only).
|
||||
// Required for support of named capturing groups
|
||||
XRegExp.addToken(
|
||||
/\((?!\?)/,
|
||||
function () {
|
||||
this.captureNames.push(null);
|
||||
return "(";
|
||||
}
|
||||
);
|
||||
|
||||
// Named capturing group (match the opening delimiter only): (?<name>
|
||||
XRegExp.addToken(
|
||||
/\(\?<([$\w]+)>/,
|
||||
function (match) {
|
||||
this.captureNames.push(match[1]);
|
||||
this.hasNamedCapture = true;
|
||||
return "(";
|
||||
}
|
||||
);
|
||||
|
||||
// Named backreference: \k<name>
|
||||
XRegExp.addToken(
|
||||
/\\k<([\w$]+)>/,
|
||||
function (match) {
|
||||
var index = indexOf(this.captureNames, match[1]);
|
||||
// Keep backreferences separate from subsequent literal numbers. Preserve back-
|
||||
// references to named groups that are undefined at this point as literal strings
|
||||
return index > -1 ?
|
||||
"\\" + (index + 1) + (isNaN(match.input.charAt(match.index + match[0].length)) ? "" : "(?:)") :
|
||||
match[0];
|
||||
}
|
||||
);
|
||||
|
||||
// Empty character class: [] or [^]
|
||||
XRegExp.addToken(
|
||||
/\[\^?]/,
|
||||
function (match) {
|
||||
// For cross-browser compatibility with ES3, convert [] to \b\B and [^] to [\s\S].
|
||||
// (?!) should work like \b\B, but is unreliable in Firefox
|
||||
return match[0] === "[]" ? "\\b\\B" : "[\\s\\S]";
|
||||
}
|
||||
);
|
||||
|
||||
// Mode modifier at the start of the pattern only, with any combination of flags imsx: (?imsx)
|
||||
// Does not support x(?i), (?-i), (?i-m), (?i: ), (?i)(?m), etc.
|
||||
XRegExp.addToken(
|
||||
/^\(\?([imsx]+)\)/,
|
||||
function (match) {
|
||||
this.setFlag(match[1]);
|
||||
return "";
|
||||
}
|
||||
);
|
||||
|
||||
// Whitespace and comments, in free-spacing (aka extended) mode only
|
||||
XRegExp.addToken(
|
||||
/(?:\s+|#.*)+/,
|
||||
function (match) {
|
||||
// Keep tokens separated unless the following token is a quantifier
|
||||
return nativ.test.call(quantifier, match.input.slice(match.index + match[0].length)) ? "" : "(?:)";
|
||||
},
|
||||
XRegExp.OUTSIDE_CLASS,
|
||||
function () {return this.hasFlag("x");}
|
||||
);
|
||||
|
||||
// Dot, in dotall (aka singleline) mode only
|
||||
XRegExp.addToken(
|
||||
/\./,
|
||||
function () {return "[\\s\\S]";},
|
||||
XRegExp.OUTSIDE_CLASS,
|
||||
function () {return this.hasFlag("s");}
|
||||
);
|
||||
|
||||
|
||||
//---------------------------------
|
||||
// Backward compatibility
|
||||
//---------------------------------
|
||||
|
||||
// Uncomment the following block for compatibility with XRegExp 1.0-1.2:
|
||||
/*
|
||||
XRegExp.matchWithinChain = XRegExp.matchChain;
|
||||
RegExp.prototype.addFlags = function (s) {return clone(this, s);};
|
||||
RegExp.prototype.execAll = function (s) {var r = []; XRegExp.iterate(s, this, function (m) {r.push(m);}); return r;};
|
||||
RegExp.prototype.forEachExec = function (s, f, c) {return XRegExp.iterate(s, this, f, c);};
|
||||
RegExp.prototype.validate = function (s) {var r = RegExp("^(?:" + this.source + ")$(?!\\s)", getNativeFlags(this)); if (this.global) this.lastIndex = 0; return s.search(r) === 0;};
|
||||
*/
|
||||
|
||||
})();
|
||||
|
122
3rdparty/phpmailer/examples/scripts/shAutoloader.js
vendored
Executable file
122
3rdparty/phpmailer/examples/scripts/shAutoloader.js
vendored
Executable file
@ -0,0 +1,122 @@
|
||||
(function() {
|
||||
|
||||
var sh = SyntaxHighlighter;
|
||||
|
||||
/**
|
||||
* Provides functionality to dynamically load only the brushes that a needed to render the current page.
|
||||
*
|
||||
* There are two syntaxes that autoload understands. For example:
|
||||
*
|
||||
* SyntaxHighlighter.autoloader(
|
||||
* [ 'applescript', 'Scripts/shBrushAppleScript.js' ],
|
||||
* [ 'actionscript3', 'as3', 'Scripts/shBrushAS3.js' ]
|
||||
* );
|
||||
*
|
||||
* or a more easily comprehendable one:
|
||||
*
|
||||
* SyntaxHighlighter.autoloader(
|
||||
* 'applescript Scripts/shBrushAppleScript.js',
|
||||
* 'actionscript3 as3 Scripts/shBrushAS3.js'
|
||||
* );
|
||||
*/
|
||||
sh.autoloader = function()
|
||||
{
|
||||
var list = arguments,
|
||||
elements = sh.findElements(),
|
||||
brushes = {},
|
||||
scripts = {},
|
||||
all = SyntaxHighlighter.all,
|
||||
allCalled = false,
|
||||
allParams = null,
|
||||
i
|
||||
;
|
||||
|
||||
SyntaxHighlighter.all = function(params)
|
||||
{
|
||||
allParams = params;
|
||||
allCalled = true;
|
||||
};
|
||||
|
||||
function addBrush(aliases, url)
|
||||
{
|
||||
for (var i = 0; i < aliases.length; i++)
|
||||
brushes[aliases[i]] = url;
|
||||
};
|
||||
|
||||
function getAliases(item)
|
||||
{
|
||||
return item.pop
|
||||
? item
|
||||
: item.split(/\s+/)
|
||||
;
|
||||
}
|
||||
|
||||
// create table of aliases and script urls
|
||||
for (i = 0; i < list.length; i++)
|
||||
{
|
||||
var aliases = getAliases(list[i]),
|
||||
url = aliases.pop()
|
||||
;
|
||||
|
||||
addBrush(aliases, url);
|
||||
}
|
||||
|
||||
// dynamically add <script /> tags to the document body
|
||||
for (i = 0; i < elements.length; i++)
|
||||
{
|
||||
var url = brushes[elements[i].params.brush];
|
||||
|
||||
if(url && scripts[url] === undefined)
|
||||
{
|
||||
if(elements[i].params['html-script'] === 'true')
|
||||
{
|
||||
if(scripts[brushes['xml']] === undefined) {
|
||||
loadScript(brushes['xml']);
|
||||
scripts[url] = false;
|
||||
}
|
||||
}
|
||||
|
||||
scripts[url] = false;
|
||||
loadScript(url);
|
||||
}
|
||||
}
|
||||
|
||||
function loadScript(url)
|
||||
{
|
||||
var script = document.createElement('script'),
|
||||
done = false
|
||||
;
|
||||
|
||||
script.src = url;
|
||||
script.type = 'text/javascript';
|
||||
script.language = 'javascript';
|
||||
script.onload = script.onreadystatechange = function()
|
||||
{
|
||||
if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete'))
|
||||
{
|
||||
done = true;
|
||||
scripts[url] = true;
|
||||
checkAll();
|
||||
|
||||
// Handle memory leak in IE
|
||||
script.onload = script.onreadystatechange = null;
|
||||
script.parentNode.removeChild(script);
|
||||
}
|
||||
};
|
||||
|
||||
// sync way of adding script tags to the page
|
||||
document.body.appendChild(script);
|
||||
};
|
||||
|
||||
function checkAll()
|
||||
{
|
||||
for(var url in scripts)
|
||||
if (scripts[url] == false)
|
||||
return;
|
||||
|
||||
if (allCalled)
|
||||
SyntaxHighlighter.highlight(allParams);
|
||||
};
|
||||
};
|
||||
|
||||
})();
|
72
3rdparty/phpmailer/examples/scripts/shBrushPhp.js
vendored
Executable file
72
3rdparty/phpmailer/examples/scripts/shBrushPhp.js
vendored
Executable file
@ -0,0 +1,72 @@
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
|
||||
|
||||
function Brush()
|
||||
{
|
||||
var funcs = 'abs acos acosh addcslashes addslashes ' +
|
||||
'array_change_key_case array_chunk array_combine array_count_values array_diff '+
|
||||
'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+
|
||||
'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+
|
||||
'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+
|
||||
'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+
|
||||
'array_push array_rand array_reduce array_reverse array_search array_shift '+
|
||||
'array_slice array_splice array_sum array_udiff array_udiff_assoc '+
|
||||
'array_udiff_uassoc array_uintersect array_uintersect_assoc '+
|
||||
'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+
|
||||
'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+
|
||||
'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+
|
||||
'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+
|
||||
'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+
|
||||
'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+
|
||||
'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+
|
||||
'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+
|
||||
'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+
|
||||
'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+
|
||||
'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+
|
||||
'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+
|
||||
'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+
|
||||
'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+
|
||||
'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+
|
||||
'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+
|
||||
'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+
|
||||
'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+
|
||||
'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+
|
||||
'parse_ini_file parse_str parse_url passthru pathinfo print readlink realpath rewind rewinddir rmdir '+
|
||||
'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+
|
||||
'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+
|
||||
'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+
|
||||
'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+
|
||||
'strtoupper strtr strval substr substr_compare';
|
||||
|
||||
var keywords = 'abstract and array as break case catch cfunction class clone const continue declare default die do ' +
|
||||
'else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach ' +
|
||||
'function global goto if implements include include_once interface instanceof insteadof namespace new ' +
|
||||
'old_function or private protected public return require require_once static switch ' +
|
||||
'trait throw try use var while xor ';
|
||||
|
||||
var constants = '__FILE__ __LINE__ __METHOD__ __FUNCTION__ __CLASS__';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
||||
{ regex: /\$\w+/g, css: 'variable' }, // variables
|
||||
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions
|
||||
{ regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword
|
||||
];
|
||||
|
||||
this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['php'];
|
||||
|
||||
SyntaxHighlighter.brushes.Php = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
1
3rdparty/phpmailer/examples/scripts/shCore.js
vendored
Executable file
1
3rdparty/phpmailer/examples/scripts/shCore.js
vendored
Executable file
File diff suppressed because one or more lines are too long
141
3rdparty/phpmailer/examples/scripts/shLegacy.js
vendored
Executable file
141
3rdparty/phpmailer/examples/scripts/shLegacy.js
vendored
Executable file
@ -0,0 +1,141 @@
|
||||
var dp = {
|
||||
SyntaxHighlighter : {}
|
||||
};
|
||||
|
||||
dp.SyntaxHighlighter = {
|
||||
parseParams: function(
|
||||
input,
|
||||
showGutter,
|
||||
showControls,
|
||||
collapseAll,
|
||||
firstLine,
|
||||
showColumns
|
||||
)
|
||||
{
|
||||
function getValue(list, name)
|
||||
{
|
||||
var regex = new XRegExp('^' + name + '\\[(?<value>\\w+)\\]$', 'gi'),
|
||||
match = null
|
||||
;
|
||||
|
||||
for (var i = 0; i < list.length; i++)
|
||||
if ((match = regex.exec(list[i])) != null)
|
||||
return match.value;
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
function defaultValue(value, def)
|
||||
{
|
||||
return value != null ? value : def;
|
||||
};
|
||||
|
||||
function asString(value)
|
||||
{
|
||||
return value != null ? value.toString() : null;
|
||||
};
|
||||
|
||||
var parts = input.split(':'),
|
||||
brushName = parts[0],
|
||||
options = {},
|
||||
straight = { 'true' : true }
|
||||
reverse = { 'true' : false },
|
||||
result = null,
|
||||
defaults = SyntaxHighlighter.defaults
|
||||
;
|
||||
|
||||
for (var i in parts)
|
||||
options[parts[i]] = 'true';
|
||||
|
||||
showGutter = asString(defaultValue(showGutter, defaults.gutter));
|
||||
showControls = asString(defaultValue(showControls, defaults.toolbar));
|
||||
collapseAll = asString(defaultValue(collapseAll, defaults.collapse));
|
||||
showColumns = asString(defaultValue(showColumns, defaults.ruler));
|
||||
firstLine = asString(defaultValue(firstLine, defaults['first-line']));
|
||||
|
||||
return {
|
||||
brush : brushName,
|
||||
gutter : defaultValue(reverse[options.nogutter], showGutter),
|
||||
toolbar : defaultValue(reverse[options.nocontrols], showControls),
|
||||
collapse : defaultValue(straight[options.collapse], collapseAll),
|
||||
// ruler : defaultValue(straight[options.showcolumns], showColumns),
|
||||
'first-line' : defaultValue(getValue(parts, 'firstline'), firstLine)
|
||||
};
|
||||
},
|
||||
|
||||
HighlightAll: function(
|
||||
name,
|
||||
showGutter /* optional */,
|
||||
showControls /* optional */,
|
||||
collapseAll /* optional */,
|
||||
firstLine /* optional */,
|
||||
showColumns /* optional */
|
||||
)
|
||||
{
|
||||
function findValue()
|
||||
{
|
||||
var a = arguments;
|
||||
|
||||
for (var i = 0; i < a.length; i++)
|
||||
{
|
||||
if (a[i] === null)
|
||||
continue;
|
||||
|
||||
if (typeof(a[i]) == 'string' && a[i] != '')
|
||||
return a[i] + '';
|
||||
|
||||
if (typeof(a[i]) == 'object' && a[i].value != '')
|
||||
return a[i].value + '';
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
function findTagsByName(list, name, tagName)
|
||||
{
|
||||
var tags = document.getElementsByTagName(tagName);
|
||||
|
||||
for (var i = 0; i < tags.length; i++)
|
||||
if (tags[i].getAttribute('name') == name)
|
||||
list.push(tags[i]);
|
||||
}
|
||||
|
||||
var elements = [],
|
||||
highlighter = null,
|
||||
registered = {},
|
||||
propertyName = 'innerHTML'
|
||||
;
|
||||
|
||||
// for some reason IE doesn't find <pre/> by name, however it does see them just fine by tag name...
|
||||
findTagsByName(elements, name, 'pre');
|
||||
findTagsByName(elements, name, 'textarea');
|
||||
|
||||
if (elements.length === 0)
|
||||
return;
|
||||
|
||||
for (var i = 0; i < elements.length; i++)
|
||||
{
|
||||
var element = elements[i],
|
||||
params = findValue(
|
||||
element.attributes['class'], element.className,
|
||||
element.attributes['language'], element.language
|
||||
),
|
||||
language = ''
|
||||
;
|
||||
|
||||
if (params === null)
|
||||
continue;
|
||||
|
||||
params = dp.SyntaxHighlighter.parseParams(
|
||||
params,
|
||||
showGutter,
|
||||
showControls,
|
||||
collapseAll,
|
||||
firstLine,
|
||||
showColumns
|
||||
);
|
||||
|
||||
SyntaxHighlighter.highlight(params, element);
|
||||
}
|
||||
}
|
||||
};
|
39
3rdparty/phpmailer/examples/sendmail.phps
vendored
Executable file
39
3rdparty/phpmailer/examples/sendmail.phps
vendored
Executable file
@ -0,0 +1,39 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>PHPMailer - sendmail test</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
require '../PHPMailerAutoload.php';
|
||||
|
||||
//Create a new PHPMailer instance
|
||||
$mail = new PHPMailer();
|
||||
// Set PHPMailer to use the sendmail transport
|
||||
$mail->isSendmail();
|
||||
//Set who the message is to be sent from
|
||||
$mail->setFrom('from@example.com', 'First Last');
|
||||
//Set an alternative reply-to address
|
||||
$mail->addReplyTo('replyto@example.com', 'First Last');
|
||||
//Set who the message is to be sent to
|
||||
$mail->addAddress('whoto@example.com', 'John Doe');
|
||||
//Set the subject line
|
||||
$mail->Subject = 'PHPMailer sendmail test';
|
||||
//Read an HTML message body from an external file, convert referenced images to embedded,
|
||||
//convert HTML into a basic plain-text alternative body
|
||||
$mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
|
||||
//Replace the plain text body with one created manually
|
||||
$mail->AltBody = 'This is a plain-text message body';
|
||||
//Attach an image file
|
||||
$mail->addAttachment('images/phpmailer_mini.png');
|
||||
|
||||
//send the message, check for errors
|
||||
if (!$mail->send()) {
|
||||
echo "Mailer Error: " . $mail->ErrorInfo;
|
||||
} else {
|
||||
echo "Message sent!";
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
61
3rdparty/phpmailer/examples/smtp.phps
vendored
Executable file
61
3rdparty/phpmailer/examples/smtp.phps
vendored
Executable file
@ -0,0 +1,61 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>PHPMailer - SMTP test</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
|
||||
//SMTP needs accurate times, and the PHP time zone MUST be set
|
||||
//This should be done in your php.ini, but this is how to do it if you don't have access to that
|
||||
date_default_timezone_set('Etc/UTC');
|
||||
|
||||
require '../PHPMailerAutoload.php';
|
||||
|
||||
//Create a new PHPMailer instance
|
||||
$mail = new PHPMailer();
|
||||
//Tell PHPMailer to use SMTP
|
||||
$mail->isSMTP();
|
||||
//Enable SMTP debugging
|
||||
// 0 = off (for production use)
|
||||
// 1 = client messages
|
||||
// 2 = client and server messages
|
||||
$mail->SMTPDebug = 2;
|
||||
//Ask for HTML-friendly debug output
|
||||
$mail->Debugoutput = 'html';
|
||||
//Set the hostname of the mail server
|
||||
$mail->Host = "mail.example.com";
|
||||
//Set the SMTP port number - likely to be 25, 465 or 587
|
||||
$mail->Port = 25;
|
||||
//Whether to use SMTP authentication
|
||||
$mail->SMTPAuth = true;
|
||||
//Username to use for SMTP authentication
|
||||
$mail->Username = "yourname@example.com";
|
||||
//Password to use for SMTP authentication
|
||||
$mail->Password = "yourpassword";
|
||||
//Set who the message is to be sent from
|
||||
$mail->setFrom('from@example.com', 'First Last');
|
||||
//Set an alternative reply-to address
|
||||
$mail->addReplyTo('replyto@example.com', 'First Last');
|
||||
//Set who the message is to be sent to
|
||||
$mail->addAddress('whoto@example.com', 'John Doe');
|
||||
//Set the subject line
|
||||
$mail->Subject = 'PHPMailer SMTP test';
|
||||
//Read an HTML message body from an external file, convert referenced images to embedded,
|
||||
//convert HTML into a basic plain-text alternative body
|
||||
$mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
|
||||
//Replace the plain text body with one created manually
|
||||
$mail->AltBody = 'This is a plain-text message body';
|
||||
//Attach an image file
|
||||
$mail->addAttachment('images/phpmailer_mini.png');
|
||||
|
||||
//send the message, check for errors
|
||||
if (!$mail->send()) {
|
||||
echo "Mailer Error: " . $mail->ErrorInfo;
|
||||
} else {
|
||||
echo "Message sent!";
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
57
3rdparty/phpmailer/examples/smtp_no_auth.phps
vendored
Executable file
57
3rdparty/phpmailer/examples/smtp_no_auth.phps
vendored
Executable file
@ -0,0 +1,57 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>PHPMailer - SMTP without auth test</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
|
||||
//SMTP needs accurate times, and the PHP time zone MUST be set
|
||||
//This should be done in your php.ini, but this is how to do it if you don't have access to that
|
||||
date_default_timezone_set('Etc/UTC');
|
||||
|
||||
require_once '../PHPMailerAutoload.php';
|
||||
|
||||
//Create a new PHPMailer instance
|
||||
$mail = new PHPMailer();
|
||||
//Tell PHPMailer to use SMTP
|
||||
$mail->isSMTP();
|
||||
//Enable SMTP debugging
|
||||
// 0 = off (for production use)
|
||||
// 1 = client messages
|
||||
// 2 = client and server messages
|
||||
$mail->SMTPDebug = 2;
|
||||
//Ask for HTML-friendly debug output
|
||||
$mail->Debugoutput = 'html';
|
||||
//Set the hostname of the mail server
|
||||
$mail->Host = "mail.example.com";
|
||||
//Set the SMTP port number - likely to be 25, 465 or 587
|
||||
$mail->Port = 25;
|
||||
//Whether to use SMTP authentication
|
||||
$mail->SMTPAuth = false;
|
||||
//Set who the message is to be sent from
|
||||
$mail->setFrom('from@example.com', 'First Last');
|
||||
//Set an alternative reply-to address
|
||||
$mail->addReplyTo('replyto@example.com', 'First Last');
|
||||
//Set who the message is to be sent to
|
||||
$mail->addAddress('whoto@example.com', 'John Doe');
|
||||
//Set the subject line
|
||||
$mail->Subject = 'PHPMailer SMTP without auth test';
|
||||
//Read an HTML message body from an external file, convert referenced images to embedded,
|
||||
//convert HTML into a basic plain-text alternative body
|
||||
$mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
|
||||
//Replace the plain text body with one created manually
|
||||
$mail->AltBody = 'This is a plain-text message body';
|
||||
//Attach an image file
|
||||
$mail->addAttachment('images/phpmailer_mini.png');
|
||||
|
||||
//send the message, check for errors
|
||||
if (!$mail->send()) {
|
||||
echo "Mailer Error: " . $mail->ErrorInfo;
|
||||
} else {
|
||||
echo "Message sent!";
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
46
3rdparty/phpmailer/examples/styles/shCore.css
vendored
Executable file
46
3rdparty/phpmailer/examples/styles/shCore.css
vendored
Executable file
@ -0,0 +1,46 @@
|
||||
.syntaxhighlighter a,.syntaxhighlighter div,.syntaxhighlighter code,.syntaxhighlighter table,.syntaxhighlighter table td,.syntaxhighlighter table tr,.syntaxhighlighter table tbody,.syntaxhighlighter table thead,.syntaxhighlighter table caption,.syntaxhighlighter textarea{-moz-border-radius:0 0 0 0 !important;-webkit-border-radius:0 0 0 0 !important;background:none !important;border:0 !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0 !important;outline:0 !important;overflow:visible !important;padding:0 !important;position:static !important;right:auto !important;text-align:left !important;top:auto !important;vertical-align:baseline !important;width:auto !important;box-sizing:content-box !important;font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace !important;font-weight:normal !important;font-style:normal !important;font-size:1em !important;min-height:inherit !important;min-height:auto !important;}
|
||||
.syntaxhighlighter{width:100% !important;margin:1em 0 1em 0 !important;position:relative !important;overflow:auto !important;font-size:1em !important;}
|
||||
.syntaxhighlighter.source{overflow:hidden !important;}
|
||||
.syntaxhighlighter .bold{font-weight:bold !important;}
|
||||
.syntaxhighlighter .italic{font-style:italic !important;}
|
||||
.syntaxhighlighter .line{white-space:pre !important;}
|
||||
.syntaxhighlighter table{width:100% !important;}
|
||||
.syntaxhighlighter table caption{text-align:left !important;padding:.5em 0 0.5em 1em !important;}
|
||||
.syntaxhighlighter table td.code{width:100% !important;}
|
||||
.syntaxhighlighter table td.code .container{position:relative !important;}
|
||||
.syntaxhighlighter table td.code .container textarea{box-sizing:border-box !important;position:absolute !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;border:none !important;background:white !important;padding-left:1em !important;overflow:hidden !important;white-space:pre !important;}
|
||||
.syntaxhighlighter table td.gutter .line{text-align:right !important;padding:0 0.5em 0 1em !important;}
|
||||
.syntaxhighlighter table td.code .line{padding:0 1em !important;}
|
||||
.syntaxhighlighter.nogutter td.code .container textarea,.syntaxhighlighter.nogutter td.code .line{padding-left:0em !important;}
|
||||
.syntaxhighlighter.show{display:block !important;}
|
||||
.syntaxhighlighter.collapsed table{display:none !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{padding:0.1em 0.8em 0em 0.8em !important;font-size:1em !important;position:static !important;width:auto !important;height:auto !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span{display:inline !important;margin-right:1em !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span a{padding:0 !important;display:none !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span a.expandSource{display:inline !important;}
|
||||
.syntaxhighlighter .toolbar{position:absolute !important;right:1px !important;top:1px !important;width:11px !important;height:11px !important;font-size:10px !important;z-index:10 !important;}
|
||||
.syntaxhighlighter .toolbar span.title{display:inline !important;}
|
||||
.syntaxhighlighter .toolbar a{display:block !important;text-align:center !important;text-decoration:none !important;padding-top:1px !important;}
|
||||
.syntaxhighlighter .toolbar a.expandSource{display:none !important;}
|
||||
.syntaxhighlighter.ie{font-size:.9em !important;padding:1px 0 1px 0 !important;}
|
||||
.syntaxhighlighter.ie .toolbar{line-height:8px !important;}
|
||||
.syntaxhighlighter.ie .toolbar a{padding-top:0px !important;}
|
||||
.syntaxhighlighter.printing .line.alt1 .content,.syntaxhighlighter.printing .line.alt2 .content,.syntaxhighlighter.printing .line.highlighted .number,.syntaxhighlighter.printing .line.highlighted.alt1 .content,.syntaxhighlighter.printing .line.highlighted.alt2 .content{background:none !important;}
|
||||
.syntaxhighlighter.printing .line .number{color:#bbbbbb !important;}
|
||||
.syntaxhighlighter.printing .line .content{color:black !important;}
|
||||
.syntaxhighlighter.printing .toolbar{display:none !important;}
|
||||
.syntaxhighlighter.printing a{text-decoration:none !important;}
|
||||
.syntaxhighlighter.printing .plain,.syntaxhighlighter.printing .plain a{color:black !important;}
|
||||
.syntaxhighlighter.printing .comments,.syntaxhighlighter.printing .comments a{color:#008200 !important;}
|
||||
.syntaxhighlighter.printing .string,.syntaxhighlighter.printing .string a{color:blue !important;}
|
||||
.syntaxhighlighter.printing .keyword{color:#006699 !important;font-weight:bold !important;}
|
||||
.syntaxhighlighter.printing .preprocessor{color:gray !important;}
|
||||
.syntaxhighlighter.printing .variable{color:#aa7700 !important;}
|
||||
.syntaxhighlighter.printing .value{color:#009900 !important;}
|
||||
.syntaxhighlighter.printing .functions{color:#ff1493 !important;}
|
||||
.syntaxhighlighter.printing .constants{color:#0066cc !important;}
|
||||
.syntaxhighlighter.printing .script{font-weight:bold !important;}
|
||||
.syntaxhighlighter.printing .color1,.syntaxhighlighter.printing .color1 a{color:gray !important;}
|
||||
.syntaxhighlighter.printing .color2,.syntaxhighlighter.printing .color2 a{color:#ff1493 !important;}
|
||||
.syntaxhighlighter.printing .color3,.syntaxhighlighter.printing .color3 a{color:red !important;}
|
||||
.syntaxhighlighter.printing .break,.syntaxhighlighter.printing .break a{color:black !important;}
|
77
3rdparty/phpmailer/examples/styles/shCoreDefault.css
vendored
Executable file
77
3rdparty/phpmailer/examples/styles/shCoreDefault.css
vendored
Executable file
@ -0,0 +1,77 @@
|
||||
.syntaxhighlighter a,.syntaxhighlighter div,.syntaxhighlighter code,.syntaxhighlighter table,.syntaxhighlighter table td,.syntaxhighlighter table tr,.syntaxhighlighter table tbody,.syntaxhighlighter table thead,.syntaxhighlighter table caption,.syntaxhighlighter textarea{-moz-border-radius:0 0 0 0 !important;-webkit-border-radius:0 0 0 0 !important;background:none !important;border:0 !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0 !important;outline:0 !important;overflow:visible !important;padding:0 !important;position:static !important;right:auto !important;text-align:left !important;top:auto !important;vertical-align:baseline !important;width:auto !important;box-sizing:content-box !important;font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace !important;font-weight:normal !important;font-style:normal !important;font-size:1em !important;min-height:inherit !important;min-height:auto !important;}
|
||||
.syntaxhighlighter{width:100% !important;margin:1em 0 1em 0 !important;position:relative !important;overflow:auto !important;font-size:1em !important;}
|
||||
.syntaxhighlighter.source{overflow:hidden !important;}
|
||||
.syntaxhighlighter .bold{font-weight:bold !important;}
|
||||
.syntaxhighlighter .italic{font-style:italic !important;}
|
||||
.syntaxhighlighter .line{white-space:pre !important;}
|
||||
.syntaxhighlighter table{width:100% !important;}
|
||||
.syntaxhighlighter table caption{text-align:left !important;padding:.5em 0 0.5em 1em !important;}
|
||||
.syntaxhighlighter table td.code{width:100% !important;}
|
||||
.syntaxhighlighter table td.code .container{position:relative !important;}
|
||||
.syntaxhighlighter table td.code .container textarea{box-sizing:border-box !important;position:absolute !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;border:none !important;background:white !important;padding-left:1em !important;overflow:hidden !important;white-space:pre !important;}
|
||||
.syntaxhighlighter table td.gutter .line{text-align:right !important;padding:0 0.5em 0 1em !important;}
|
||||
.syntaxhighlighter table td.code .line{padding:0 1em !important;}
|
||||
.syntaxhighlighter.nogutter td.code .container textarea,.syntaxhighlighter.nogutter td.code .line{padding-left:0em !important;}
|
||||
.syntaxhighlighter.show{display:block !important;}
|
||||
.syntaxhighlighter.collapsed table{display:none !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{padding:0.1em 0.8em 0em 0.8em !important;font-size:1em !important;position:static !important;width:auto !important;height:auto !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span{display:inline !important;margin-right:1em !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span a{padding:0 !important;display:none !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span a.expandSource{display:inline !important;}
|
||||
.syntaxhighlighter .toolbar{position:absolute !important;right:1px !important;top:1px !important;width:11px !important;height:11px !important;font-size:10px !important;z-index:10 !important;}
|
||||
.syntaxhighlighter .toolbar span.title{display:inline !important;}
|
||||
.syntaxhighlighter .toolbar a{display:block !important;text-align:center !important;text-decoration:none !important;padding-top:1px !important;}
|
||||
.syntaxhighlighter .toolbar a.expandSource{display:none !important;}
|
||||
.syntaxhighlighter.ie{font-size:.9em !important;padding:1px 0 1px 0 !important;}
|
||||
.syntaxhighlighter.ie .toolbar{line-height:8px !important;}
|
||||
.syntaxhighlighter.ie .toolbar a{padding-top:0px !important;}
|
||||
.syntaxhighlighter.printing .line.alt1 .content,.syntaxhighlighter.printing .line.alt2 .content,.syntaxhighlighter.printing .line.highlighted .number,.syntaxhighlighter.printing .line.highlighted.alt1 .content,.syntaxhighlighter.printing .line.highlighted.alt2 .content{background:none !important;}
|
||||
.syntaxhighlighter.printing .line .number{color:#bbbbbb !important;}
|
||||
.syntaxhighlighter.printing .line .content{color:black !important;}
|
||||
.syntaxhighlighter.printing .toolbar{display:none !important;}
|
||||
.syntaxhighlighter.printing a{text-decoration:none !important;}
|
||||
.syntaxhighlighter.printing .plain,.syntaxhighlighter.printing .plain a{color:black !important;}
|
||||
.syntaxhighlighter.printing .comments,.syntaxhighlighter.printing .comments a{color:#008200 !important;}
|
||||
.syntaxhighlighter.printing .string,.syntaxhighlighter.printing .string a{color:blue !important;}
|
||||
.syntaxhighlighter.printing .keyword{color:#006699 !important;font-weight:bold !important;}
|
||||
.syntaxhighlighter.printing .preprocessor{color:gray !important;}
|
||||
.syntaxhighlighter.printing .variable{color:#aa7700 !important;}
|
||||
.syntaxhighlighter.printing .value{color:#009900 !important;}
|
||||
.syntaxhighlighter.printing .functions{color:#ff1493 !important;}
|
||||
.syntaxhighlighter.printing .constants{color:#0066cc !important;}
|
||||
.syntaxhighlighter.printing .script{font-weight:bold !important;}
|
||||
.syntaxhighlighter.printing .color1,.syntaxhighlighter.printing .color1 a{color:gray !important;}
|
||||
.syntaxhighlighter.printing .color2,.syntaxhighlighter.printing .color2 a{color:#ff1493 !important;}
|
||||
.syntaxhighlighter.printing .color3,.syntaxhighlighter.printing .color3 a{color:red !important;}
|
||||
.syntaxhighlighter.printing .break,.syntaxhighlighter.printing .break a{color:black !important;}
|
||||
.syntaxhighlighter{background-color:white !important;}
|
||||
.syntaxhighlighter .line.alt1{background-color:white !important;}
|
||||
.syntaxhighlighter .line.alt2{background-color:white !important;}
|
||||
.syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#e0e0e0 !important;}
|
||||
.syntaxhighlighter .line.highlighted.number{color:black !important;}
|
||||
.syntaxhighlighter table caption{color:black !important;}
|
||||
.syntaxhighlighter .gutter{color:#afafaf !important;}
|
||||
.syntaxhighlighter .gutter .line{border-right:3px solid #6ce26c !important;}
|
||||
.syntaxhighlighter .gutter .line.highlighted{background-color:#6ce26c !important;color:white !important;}
|
||||
.syntaxhighlighter.printing .line .content{border:none !important;}
|
||||
.syntaxhighlighter.collapsed{overflow:visible !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{color:blue !important;background:white !important;border:1px solid #6ce26c !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a{color:blue !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a:hover{color:red !important;}
|
||||
.syntaxhighlighter .toolbar{color:white !important;background:#6ce26c !important;border:none !important;}
|
||||
.syntaxhighlighter .toolbar a{color:white !important;}
|
||||
.syntaxhighlighter .toolbar a:hover{color:black !important;}
|
||||
.syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:black !important;}
|
||||
.syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#008200 !important;}
|
||||
.syntaxhighlighter .string,.syntaxhighlighter .string a{color:blue !important;}
|
||||
.syntaxhighlighter .keyword{color:#006699 !important;}
|
||||
.syntaxhighlighter .preprocessor{color:gray !important;}
|
||||
.syntaxhighlighter .variable{color:#aa7700 !important;}
|
||||
.syntaxhighlighter .value{color:#009900 !important;}
|
||||
.syntaxhighlighter .functions{color:#ff1493 !important;}
|
||||
.syntaxhighlighter .constants{color:#0066cc !important;}
|
||||
.syntaxhighlighter .script{font-weight:bold !important;color:#006699 !important;background-color:none !important;}
|
||||
.syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:gray !important;}
|
||||
.syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:#ff1493 !important;}
|
||||
.syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:red !important;}
|
||||
.syntaxhighlighter .keyword{font-weight:bold !important;}
|
78
3rdparty/phpmailer/examples/styles/shCoreDjango.css
vendored
Executable file
78
3rdparty/phpmailer/examples/styles/shCoreDjango.css
vendored
Executable file
@ -0,0 +1,78 @@
|
||||
.syntaxhighlighter a,.syntaxhighlighter div,.syntaxhighlighter code,.syntaxhighlighter table,.syntaxhighlighter table td,.syntaxhighlighter table tr,.syntaxhighlighter table tbody,.syntaxhighlighter table thead,.syntaxhighlighter table caption,.syntaxhighlighter textarea{-moz-border-radius:0 0 0 0 !important;-webkit-border-radius:0 0 0 0 !important;background:none !important;border:0 !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0 !important;outline:0 !important;overflow:visible !important;padding:0 !important;position:static !important;right:auto !important;text-align:left !important;top:auto !important;vertical-align:baseline !important;width:auto !important;box-sizing:content-box !important;font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace !important;font-weight:normal !important;font-style:normal !important;font-size:1em !important;min-height:inherit !important;min-height:auto !important;}
|
||||
.syntaxhighlighter{width:100% !important;margin:1em 0 1em 0 !important;position:relative !important;overflow:auto !important;font-size:1em !important;}
|
||||
.syntaxhighlighter.source{overflow:hidden !important;}
|
||||
.syntaxhighlighter .bold{font-weight:bold !important;}
|
||||
.syntaxhighlighter .italic{font-style:italic !important;}
|
||||
.syntaxhighlighter .line{white-space:pre !important;}
|
||||
.syntaxhighlighter table{width:100% !important;}
|
||||
.syntaxhighlighter table caption{text-align:left !important;padding:.5em 0 0.5em 1em !important;}
|
||||
.syntaxhighlighter table td.code{width:100% !important;}
|
||||
.syntaxhighlighter table td.code .container{position:relative !important;}
|
||||
.syntaxhighlighter table td.code .container textarea{box-sizing:border-box !important;position:absolute !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;border:none !important;background:white !important;padding-left:1em !important;overflow:hidden !important;white-space:pre !important;}
|
||||
.syntaxhighlighter table td.gutter .line{text-align:right !important;padding:0 0.5em 0 1em !important;}
|
||||
.syntaxhighlighter table td.code .line{padding:0 1em !important;}
|
||||
.syntaxhighlighter.nogutter td.code .container textarea,.syntaxhighlighter.nogutter td.code .line{padding-left:0em !important;}
|
||||
.syntaxhighlighter.show{display:block !important;}
|
||||
.syntaxhighlighter.collapsed table{display:none !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{padding:0.1em 0.8em 0em 0.8em !important;font-size:1em !important;position:static !important;width:auto !important;height:auto !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span{display:inline !important;margin-right:1em !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span a{padding:0 !important;display:none !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span a.expandSource{display:inline !important;}
|
||||
.syntaxhighlighter .toolbar{position:absolute !important;right:1px !important;top:1px !important;width:11px !important;height:11px !important;font-size:10px !important;z-index:10 !important;}
|
||||
.syntaxhighlighter .toolbar span.title{display:inline !important;}
|
||||
.syntaxhighlighter .toolbar a{display:block !important;text-align:center !important;text-decoration:none !important;padding-top:1px !important;}
|
||||
.syntaxhighlighter .toolbar a.expandSource{display:none !important;}
|
||||
.syntaxhighlighter.ie{font-size:.9em !important;padding:1px 0 1px 0 !important;}
|
||||
.syntaxhighlighter.ie .toolbar{line-height:8px !important;}
|
||||
.syntaxhighlighter.ie .toolbar a{padding-top:0px !important;}
|
||||
.syntaxhighlighter.printing .line.alt1 .content,.syntaxhighlighter.printing .line.alt2 .content,.syntaxhighlighter.printing .line.highlighted .number,.syntaxhighlighter.printing .line.highlighted.alt1 .content,.syntaxhighlighter.printing .line.highlighted.alt2 .content{background:none !important;}
|
||||
.syntaxhighlighter.printing .line .number{color:#bbbbbb !important;}
|
||||
.syntaxhighlighter.printing .line .content{color:black !important;}
|
||||
.syntaxhighlighter.printing .toolbar{display:none !important;}
|
||||
.syntaxhighlighter.printing a{text-decoration:none !important;}
|
||||
.syntaxhighlighter.printing .plain,.syntaxhighlighter.printing .plain a{color:black !important;}
|
||||
.syntaxhighlighter.printing .comments,.syntaxhighlighter.printing .comments a{color:#008200 !important;}
|
||||
.syntaxhighlighter.printing .string,.syntaxhighlighter.printing .string a{color:blue !important;}
|
||||
.syntaxhighlighter.printing .keyword{color:#006699 !important;font-weight:bold !important;}
|
||||
.syntaxhighlighter.printing .preprocessor{color:gray !important;}
|
||||
.syntaxhighlighter.printing .variable{color:#aa7700 !important;}
|
||||
.syntaxhighlighter.printing .value{color:#009900 !important;}
|
||||
.syntaxhighlighter.printing .functions{color:#ff1493 !important;}
|
||||
.syntaxhighlighter.printing .constants{color:#0066cc !important;}
|
||||
.syntaxhighlighter.printing .script{font-weight:bold !important;}
|
||||
.syntaxhighlighter.printing .color1,.syntaxhighlighter.printing .color1 a{color:gray !important;}
|
||||
.syntaxhighlighter.printing .color2,.syntaxhighlighter.printing .color2 a{color:#ff1493 !important;}
|
||||
.syntaxhighlighter.printing .color3,.syntaxhighlighter.printing .color3 a{color:red !important;}
|
||||
.syntaxhighlighter.printing .break,.syntaxhighlighter.printing .break a{color:black !important;}
|
||||
.syntaxhighlighter{background-color:#0a2b1d !important;}
|
||||
.syntaxhighlighter .line.alt1{background-color:#0a2b1d !important;}
|
||||
.syntaxhighlighter .line.alt2{background-color:#0a2b1d !important;}
|
||||
.syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#233729 !important;}
|
||||
.syntaxhighlighter .line.highlighted.number{color:white !important;}
|
||||
.syntaxhighlighter table caption{color:#f8f8f8 !important;}
|
||||
.syntaxhighlighter .gutter{color:#497958 !important;}
|
||||
.syntaxhighlighter .gutter .line{border-right:3px solid #41a83e !important;}
|
||||
.syntaxhighlighter .gutter .line.highlighted{background-color:#41a83e !important;color:#0a2b1d !important;}
|
||||
.syntaxhighlighter.printing .line .content{border:none !important;}
|
||||
.syntaxhighlighter.collapsed{overflow:visible !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{color:#96dd3b !important;background:black !important;border:1px solid #41a83e !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a{color:#96dd3b !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a:hover{color:white !important;}
|
||||
.syntaxhighlighter .toolbar{color:white !important;background:#41a83e !important;border:none !important;}
|
||||
.syntaxhighlighter .toolbar a{color:white !important;}
|
||||
.syntaxhighlighter .toolbar a:hover{color:#ffe862 !important;}
|
||||
.syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:#f8f8f8 !important;}
|
||||
.syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#336442 !important;}
|
||||
.syntaxhighlighter .string,.syntaxhighlighter .string a{color:#9df39f !important;}
|
||||
.syntaxhighlighter .keyword{color:#96dd3b !important;}
|
||||
.syntaxhighlighter .preprocessor{color:#91bb9e !important;}
|
||||
.syntaxhighlighter .variable{color:#ffaa3e !important;}
|
||||
.syntaxhighlighter .value{color:#f7e741 !important;}
|
||||
.syntaxhighlighter .functions{color:#ffaa3e !important;}
|
||||
.syntaxhighlighter .constants{color:#e0e8ff !important;}
|
||||
.syntaxhighlighter .script{font-weight:bold !important;color:#96dd3b !important;background-color:none !important;}
|
||||
.syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:#eb939a !important;}
|
||||
.syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:#91bb9e !important;}
|
||||
.syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:#edef7d !important;}
|
||||
.syntaxhighlighter .comments{font-style:italic !important;}
|
||||
.syntaxhighlighter .keyword{font-weight:bold !important;}
|
80
3rdparty/phpmailer/examples/styles/shCoreEclipse.css
vendored
Executable file
80
3rdparty/phpmailer/examples/styles/shCoreEclipse.css
vendored
Executable file
@ -0,0 +1,80 @@
|
||||
.syntaxhighlighter a,.syntaxhighlighter div,.syntaxhighlighter code,.syntaxhighlighter table,.syntaxhighlighter table td,.syntaxhighlighter table tr,.syntaxhighlighter table tbody,.syntaxhighlighter table thead,.syntaxhighlighter table caption,.syntaxhighlighter textarea{-moz-border-radius:0 0 0 0 !important;-webkit-border-radius:0 0 0 0 !important;background:none !important;border:0 !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0 !important;outline:0 !important;overflow:visible !important;padding:0 !important;position:static !important;right:auto !important;text-align:left !important;top:auto !important;vertical-align:baseline !important;width:auto !important;box-sizing:content-box !important;font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace !important;font-weight:normal !important;font-style:normal !important;font-size:1em !important;min-height:inherit !important;min-height:auto !important;}
|
||||
.syntaxhighlighter{width:100% !important;margin:1em 0 1em 0 !important;position:relative !important;overflow:auto !important;font-size:1em !important;}
|
||||
.syntaxhighlighter.source{overflow:hidden !important;}
|
||||
.syntaxhighlighter .bold{font-weight:bold !important;}
|
||||
.syntaxhighlighter .italic{font-style:italic !important;}
|
||||
.syntaxhighlighter .line{white-space:pre !important;}
|
||||
.syntaxhighlighter table{width:100% !important;}
|
||||
.syntaxhighlighter table caption{text-align:left !important;padding:.5em 0 0.5em 1em !important;}
|
||||
.syntaxhighlighter table td.code{width:100% !important;}
|
||||
.syntaxhighlighter table td.code .container{position:relative !important;}
|
||||
.syntaxhighlighter table td.code .container textarea{box-sizing:border-box !important;position:absolute !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;border:none !important;background:white !important;padding-left:1em !important;overflow:hidden !important;white-space:pre !important;}
|
||||
.syntaxhighlighter table td.gutter .line{text-align:right !important;padding:0 0.5em 0 1em !important;}
|
||||
.syntaxhighlighter table td.code .line{padding:0 1em !important;}
|
||||
.syntaxhighlighter.nogutter td.code .container textarea,.syntaxhighlighter.nogutter td.code .line{padding-left:0em !important;}
|
||||
.syntaxhighlighter.show{display:block !important;}
|
||||
.syntaxhighlighter.collapsed table{display:none !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{padding:0.1em 0.8em 0em 0.8em !important;font-size:1em !important;position:static !important;width:auto !important;height:auto !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span{display:inline !important;margin-right:1em !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span a{padding:0 !important;display:none !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span a.expandSource{display:inline !important;}
|
||||
.syntaxhighlighter .toolbar{position:absolute !important;right:1px !important;top:1px !important;width:11px !important;height:11px !important;font-size:10px !important;z-index:10 !important;}
|
||||
.syntaxhighlighter .toolbar span.title{display:inline !important;}
|
||||
.syntaxhighlighter .toolbar a{display:block !important;text-align:center !important;text-decoration:none !important;padding-top:1px !important;}
|
||||
.syntaxhighlighter .toolbar a.expandSource{display:none !important;}
|
||||
.syntaxhighlighter.ie{font-size:.9em !important;padding:1px 0 1px 0 !important;}
|
||||
.syntaxhighlighter.ie .toolbar{line-height:8px !important;}
|
||||
.syntaxhighlighter.ie .toolbar a{padding-top:0px !important;}
|
||||
.syntaxhighlighter.printing .line.alt1 .content,.syntaxhighlighter.printing .line.alt2 .content,.syntaxhighlighter.printing .line.highlighted .number,.syntaxhighlighter.printing .line.highlighted.alt1 .content,.syntaxhighlighter.printing .line.highlighted.alt2 .content{background:none !important;}
|
||||
.syntaxhighlighter.printing .line .number{color:#bbbbbb !important;}
|
||||
.syntaxhighlighter.printing .line .content{color:black !important;}
|
||||
.syntaxhighlighter.printing .toolbar{display:none !important;}
|
||||
.syntaxhighlighter.printing a{text-decoration:none !important;}
|
||||
.syntaxhighlighter.printing .plain,.syntaxhighlighter.printing .plain a{color:black !important;}
|
||||
.syntaxhighlighter.printing .comments,.syntaxhighlighter.printing .comments a{color:#008200 !important;}
|
||||
.syntaxhighlighter.printing .string,.syntaxhighlighter.printing .string a{color:blue !important;}
|
||||
.syntaxhighlighter.printing .keyword{color:#006699 !important;font-weight:bold !important;}
|
||||
.syntaxhighlighter.printing .preprocessor{color:gray !important;}
|
||||
.syntaxhighlighter.printing .variable{color:#aa7700 !important;}
|
||||
.syntaxhighlighter.printing .value{color:#009900 !important;}
|
||||
.syntaxhighlighter.printing .functions{color:#ff1493 !important;}
|
||||
.syntaxhighlighter.printing .constants{color:#0066cc !important;}
|
||||
.syntaxhighlighter.printing .script{font-weight:bold !important;}
|
||||
.syntaxhighlighter.printing .color1,.syntaxhighlighter.printing .color1 a{color:gray !important;}
|
||||
.syntaxhighlighter.printing .color2,.syntaxhighlighter.printing .color2 a{color:#ff1493 !important;}
|
||||
.syntaxhighlighter.printing .color3,.syntaxhighlighter.printing .color3 a{color:red !important;}
|
||||
.syntaxhighlighter.printing .break,.syntaxhighlighter.printing .break a{color:black !important;}
|
||||
.syntaxhighlighter{background-color:white !important;}
|
||||
.syntaxhighlighter .line.alt1{background-color:white !important;}
|
||||
.syntaxhighlighter .line.alt2{background-color:white !important;}
|
||||
.syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#c3defe !important;}
|
||||
.syntaxhighlighter .line.highlighted.number{color:white !important;}
|
||||
.syntaxhighlighter table caption{color:black !important;}
|
||||
.syntaxhighlighter .gutter{color:#787878 !important;}
|
||||
.syntaxhighlighter .gutter .line{border-right:3px solid #d4d0c8 !important;}
|
||||
.syntaxhighlighter .gutter .line.highlighted{background-color:#d4d0c8 !important;color:white !important;}
|
||||
.syntaxhighlighter.printing .line .content{border:none !important;}
|
||||
.syntaxhighlighter.collapsed{overflow:visible !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{color:#3f5fbf !important;background:white !important;border:1px solid #d4d0c8 !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a{color:#3f5fbf !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a:hover{color:#aa7700 !important;}
|
||||
.syntaxhighlighter .toolbar{color:#a0a0a0 !important;background:#d4d0c8 !important;border:none !important;}
|
||||
.syntaxhighlighter .toolbar a{color:#a0a0a0 !important;}
|
||||
.syntaxhighlighter .toolbar a:hover{color:red !important;}
|
||||
.syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:black !important;}
|
||||
.syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#3f5fbf !important;}
|
||||
.syntaxhighlighter .string,.syntaxhighlighter .string a{color:#2a00ff !important;}
|
||||
.syntaxhighlighter .keyword{color:#7f0055 !important;}
|
||||
.syntaxhighlighter .preprocessor{color:#646464 !important;}
|
||||
.syntaxhighlighter .variable{color:#aa7700 !important;}
|
||||
.syntaxhighlighter .value{color:#009900 !important;}
|
||||
.syntaxhighlighter .functions{color:#ff1493 !important;}
|
||||
.syntaxhighlighter .constants{color:#0066cc !important;}
|
||||
.syntaxhighlighter .script{font-weight:bold !important;color:#7f0055 !important;background-color:none !important;}
|
||||
.syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:gray !important;}
|
||||
.syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:#ff1493 !important;}
|
||||
.syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:red !important;}
|
||||
.syntaxhighlighter .keyword{font-weight:bold !important;}
|
||||
.syntaxhighlighter .xml .keyword{color:#3f7f7f !important;font-weight:normal !important;}
|
||||
.syntaxhighlighter .xml .color1,.syntaxhighlighter .xml .color1 a{color:#7f007f !important;}
|
||||
.syntaxhighlighter .xml .string{font-style:italic !important;color:#2a00ff !important;}
|
76
3rdparty/phpmailer/examples/styles/shCoreEmacs.css
vendored
Executable file
76
3rdparty/phpmailer/examples/styles/shCoreEmacs.css
vendored
Executable file
@ -0,0 +1,76 @@
|
||||
.syntaxhighlighter a,.syntaxhighlighter div,.syntaxhighlighter code,.syntaxhighlighter table,.syntaxhighlighter table td,.syntaxhighlighter table tr,.syntaxhighlighter table tbody,.syntaxhighlighter table thead,.syntaxhighlighter table caption,.syntaxhighlighter textarea{-moz-border-radius:0 0 0 0 !important;-webkit-border-radius:0 0 0 0 !important;background:none !important;border:0 !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0 !important;outline:0 !important;overflow:visible !important;padding:0 !important;position:static !important;right:auto !important;text-align:left !important;top:auto !important;vertical-align:baseline !important;width:auto !important;box-sizing:content-box !important;font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace !important;font-weight:normal !important;font-style:normal !important;font-size:1em !important;min-height:inherit !important;min-height:auto !important;}
|
||||
.syntaxhighlighter{width:100% !important;margin:1em 0 1em 0 !important;position:relative !important;overflow:auto !important;font-size:1em !important;}
|
||||
.syntaxhighlighter.source{overflow:hidden !important;}
|
||||
.syntaxhighlighter .bold{font-weight:bold !important;}
|
||||
.syntaxhighlighter .italic{font-style:italic !important;}
|
||||
.syntaxhighlighter .line{white-space:pre !important;}
|
||||
.syntaxhighlighter table{width:100% !important;}
|
||||
.syntaxhighlighter table caption{text-align:left !important;padding:.5em 0 0.5em 1em !important;}
|
||||
.syntaxhighlighter table td.code{width:100% !important;}
|
||||
.syntaxhighlighter table td.code .container{position:relative !important;}
|
||||
.syntaxhighlighter table td.code .container textarea{box-sizing:border-box !important;position:absolute !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;border:none !important;background:white !important;padding-left:1em !important;overflow:hidden !important;white-space:pre !important;}
|
||||
.syntaxhighlighter table td.gutter .line{text-align:right !important;padding:0 0.5em 0 1em !important;}
|
||||
.syntaxhighlighter table td.code .line{padding:0 1em !important;}
|
||||
.syntaxhighlighter.nogutter td.code .container textarea,.syntaxhighlighter.nogutter td.code .line{padding-left:0em !important;}
|
||||
.syntaxhighlighter.show{display:block !important;}
|
||||
.syntaxhighlighter.collapsed table{display:none !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{padding:0.1em 0.8em 0em 0.8em !important;font-size:1em !important;position:static !important;width:auto !important;height:auto !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span{display:inline !important;margin-right:1em !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span a{padding:0 !important;display:none !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span a.expandSource{display:inline !important;}
|
||||
.syntaxhighlighter .toolbar{position:absolute !important;right:1px !important;top:1px !important;width:11px !important;height:11px !important;font-size:10px !important;z-index:10 !important;}
|
||||
.syntaxhighlighter .toolbar span.title{display:inline !important;}
|
||||
.syntaxhighlighter .toolbar a{display:block !important;text-align:center !important;text-decoration:none !important;padding-top:1px !important;}
|
||||
.syntaxhighlighter .toolbar a.expandSource{display:none !important;}
|
||||
.syntaxhighlighter.ie{font-size:.9em !important;padding:1px 0 1px 0 !important;}
|
||||
.syntaxhighlighter.ie .toolbar{line-height:8px !important;}
|
||||
.syntaxhighlighter.ie .toolbar a{padding-top:0px !important;}
|
||||
.syntaxhighlighter.printing .line.alt1 .content,.syntaxhighlighter.printing .line.alt2 .content,.syntaxhighlighter.printing .line.highlighted .number,.syntaxhighlighter.printing .line.highlighted.alt1 .content,.syntaxhighlighter.printing .line.highlighted.alt2 .content{background:none !important;}
|
||||
.syntaxhighlighter.printing .line .number{color:#bbbbbb !important;}
|
||||
.syntaxhighlighter.printing .line .content{color:black !important;}
|
||||
.syntaxhighlighter.printing .toolbar{display:none !important;}
|
||||
.syntaxhighlighter.printing a{text-decoration:none !important;}
|
||||
.syntaxhighlighter.printing .plain,.syntaxhighlighter.printing .plain a{color:black !important;}
|
||||
.syntaxhighlighter.printing .comments,.syntaxhighlighter.printing .comments a{color:#008200 !important;}
|
||||
.syntaxhighlighter.printing .string,.syntaxhighlighter.printing .string a{color:blue !important;}
|
||||
.syntaxhighlighter.printing .keyword{color:#006699 !important;font-weight:bold !important;}
|
||||
.syntaxhighlighter.printing .preprocessor{color:gray !important;}
|
||||
.syntaxhighlighter.printing .variable{color:#aa7700 !important;}
|
||||
.syntaxhighlighter.printing .value{color:#009900 !important;}
|
||||
.syntaxhighlighter.printing .functions{color:#ff1493 !important;}
|
||||
.syntaxhighlighter.printing .constants{color:#0066cc !important;}
|
||||
.syntaxhighlighter.printing .script{font-weight:bold !important;}
|
||||
.syntaxhighlighter.printing .color1,.syntaxhighlighter.printing .color1 a{color:gray !important;}
|
||||
.syntaxhighlighter.printing .color2,.syntaxhighlighter.printing .color2 a{color:#ff1493 !important;}
|
||||
.syntaxhighlighter.printing .color3,.syntaxhighlighter.printing .color3 a{color:red !important;}
|
||||
.syntaxhighlighter.printing .break,.syntaxhighlighter.printing .break a{color:black !important;}
|
||||
.syntaxhighlighter{background-color:black !important;}
|
||||
.syntaxhighlighter .line.alt1{background-color:black !important;}
|
||||
.syntaxhighlighter .line.alt2{background-color:black !important;}
|
||||
.syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#2a3133 !important;}
|
||||
.syntaxhighlighter .line.highlighted.number{color:white !important;}
|
||||
.syntaxhighlighter table caption{color:#d3d3d3 !important;}
|
||||
.syntaxhighlighter .gutter{color:#d3d3d3 !important;}
|
||||
.syntaxhighlighter .gutter .line{border-right:3px solid #990000 !important;}
|
||||
.syntaxhighlighter .gutter .line.highlighted{background-color:#990000 !important;color:black !important;}
|
||||
.syntaxhighlighter.printing .line .content{border:none !important;}
|
||||
.syntaxhighlighter.collapsed{overflow:visible !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{color:#ebdb8d !important;background:black !important;border:1px solid #990000 !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a{color:#ebdb8d !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a:hover{color:#ff7d27 !important;}
|
||||
.syntaxhighlighter .toolbar{color:white !important;background:#990000 !important;border:none !important;}
|
||||
.syntaxhighlighter .toolbar a{color:white !important;}
|
||||
.syntaxhighlighter .toolbar a:hover{color:#9ccff4 !important;}
|
||||
.syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:#d3d3d3 !important;}
|
||||
.syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#ff7d27 !important;}
|
||||
.syntaxhighlighter .string,.syntaxhighlighter .string a{color:#ff9e7b !important;}
|
||||
.syntaxhighlighter .keyword{color:aqua !important;}
|
||||
.syntaxhighlighter .preprocessor{color:#aec4de !important;}
|
||||
.syntaxhighlighter .variable{color:#ffaa3e !important;}
|
||||
.syntaxhighlighter .value{color:#009900 !important;}
|
||||
.syntaxhighlighter .functions{color:#81cef9 !important;}
|
||||
.syntaxhighlighter .constants{color:#ff9e7b !important;}
|
||||
.syntaxhighlighter .script{font-weight:bold !important;color:aqua !important;background-color:none !important;}
|
||||
.syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:#ebdb8d !important;}
|
||||
.syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:#ff7d27 !important;}
|
||||
.syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:#aec4de !important;}
|
77
3rdparty/phpmailer/examples/styles/shCoreFadeToGrey.css
vendored
Executable file
77
3rdparty/phpmailer/examples/styles/shCoreFadeToGrey.css
vendored
Executable file
@ -0,0 +1,77 @@
|
||||
.syntaxhighlighter a,.syntaxhighlighter div,.syntaxhighlighter code,.syntaxhighlighter table,.syntaxhighlighter table td,.syntaxhighlighter table tr,.syntaxhighlighter table tbody,.syntaxhighlighter table thead,.syntaxhighlighter table caption,.syntaxhighlighter textarea{-moz-border-radius:0 0 0 0 !important;-webkit-border-radius:0 0 0 0 !important;background:none !important;border:0 !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0 !important;outline:0 !important;overflow:visible !important;padding:0 !important;position:static !important;right:auto !important;text-align:left !important;top:auto !important;vertical-align:baseline !important;width:auto !important;box-sizing:content-box !important;font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace !important;font-weight:normal !important;font-style:normal !important;font-size:1em !important;min-height:inherit !important;min-height:auto !important;}
|
||||
.syntaxhighlighter{width:100% !important;margin:1em 0 1em 0 !important;position:relative !important;overflow:auto !important;font-size:1em !important;}
|
||||
.syntaxhighlighter.source{overflow:hidden !important;}
|
||||
.syntaxhighlighter .bold{font-weight:bold !important;}
|
||||
.syntaxhighlighter .italic{font-style:italic !important;}
|
||||
.syntaxhighlighter .line{white-space:pre !important;}
|
||||
.syntaxhighlighter table{width:100% !important;}
|
||||
.syntaxhighlighter table caption{text-align:left !important;padding:.5em 0 0.5em 1em !important;}
|
||||
.syntaxhighlighter table td.code{width:100% !important;}
|
||||
.syntaxhighlighter table td.code .container{position:relative !important;}
|
||||
.syntaxhighlighter table td.code .container textarea{box-sizing:border-box !important;position:absolute !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;border:none !important;background:white !important;padding-left:1em !important;overflow:hidden !important;white-space:pre !important;}
|
||||
.syntaxhighlighter table td.gutter .line{text-align:right !important;padding:0 0.5em 0 1em !important;}
|
||||
.syntaxhighlighter table td.code .line{padding:0 1em !important;}
|
||||
.syntaxhighlighter.nogutter td.code .container textarea,.syntaxhighlighter.nogutter td.code .line{padding-left:0em !important;}
|
||||
.syntaxhighlighter.show{display:block !important;}
|
||||
.syntaxhighlighter.collapsed table{display:none !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{padding:0.1em 0.8em 0em 0.8em !important;font-size:1em !important;position:static !important;width:auto !important;height:auto !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span{display:inline !important;margin-right:1em !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span a{padding:0 !important;display:none !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span a.expandSource{display:inline !important;}
|
||||
.syntaxhighlighter .toolbar{position:absolute !important;right:1px !important;top:1px !important;width:11px !important;height:11px !important;font-size:10px !important;z-index:10 !important;}
|
||||
.syntaxhighlighter .toolbar span.title{display:inline !important;}
|
||||
.syntaxhighlighter .toolbar a{display:block !important;text-align:center !important;text-decoration:none !important;padding-top:1px !important;}
|
||||
.syntaxhighlighter .toolbar a.expandSource{display:none !important;}
|
||||
.syntaxhighlighter.ie{font-size:.9em !important;padding:1px 0 1px 0 !important;}
|
||||
.syntaxhighlighter.ie .toolbar{line-height:8px !important;}
|
||||
.syntaxhighlighter.ie .toolbar a{padding-top:0px !important;}
|
||||
.syntaxhighlighter.printing .line.alt1 .content,.syntaxhighlighter.printing .line.alt2 .content,.syntaxhighlighter.printing .line.highlighted .number,.syntaxhighlighter.printing .line.highlighted.alt1 .content,.syntaxhighlighter.printing .line.highlighted.alt2 .content{background:none !important;}
|
||||
.syntaxhighlighter.printing .line .number{color:#bbbbbb !important;}
|
||||
.syntaxhighlighter.printing .line .content{color:black !important;}
|
||||
.syntaxhighlighter.printing .toolbar{display:none !important;}
|
||||
.syntaxhighlighter.printing a{text-decoration:none !important;}
|
||||
.syntaxhighlighter.printing .plain,.syntaxhighlighter.printing .plain a{color:black !important;}
|
||||
.syntaxhighlighter.printing .comments,.syntaxhighlighter.printing .comments a{color:#008200 !important;}
|
||||
.syntaxhighlighter.printing .string,.syntaxhighlighter.printing .string a{color:blue !important;}
|
||||
.syntaxhighlighter.printing .keyword{color:#006699 !important;font-weight:bold !important;}
|
||||
.syntaxhighlighter.printing .preprocessor{color:gray !important;}
|
||||
.syntaxhighlighter.printing .variable{color:#aa7700 !important;}
|
||||
.syntaxhighlighter.printing .value{color:#009900 !important;}
|
||||
.syntaxhighlighter.printing .functions{color:#ff1493 !important;}
|
||||
.syntaxhighlighter.printing .constants{color:#0066cc !important;}
|
||||
.syntaxhighlighter.printing .script{font-weight:bold !important;}
|
||||
.syntaxhighlighter.printing .color1,.syntaxhighlighter.printing .color1 a{color:gray !important;}
|
||||
.syntaxhighlighter.printing .color2,.syntaxhighlighter.printing .color2 a{color:#ff1493 !important;}
|
||||
.syntaxhighlighter.printing .color3,.syntaxhighlighter.printing .color3 a{color:red !important;}
|
||||
.syntaxhighlighter.printing .break,.syntaxhighlighter.printing .break a{color:black !important;}
|
||||
.syntaxhighlighter{background-color:#121212 !important;}
|
||||
.syntaxhighlighter .line.alt1{background-color:#121212 !important;}
|
||||
.syntaxhighlighter .line.alt2{background-color:#121212 !important;}
|
||||
.syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#2c2c29 !important;}
|
||||
.syntaxhighlighter .line.highlighted.number{color:white !important;}
|
||||
.syntaxhighlighter table caption{color:white !important;}
|
||||
.syntaxhighlighter .gutter{color:#afafaf !important;}
|
||||
.syntaxhighlighter .gutter .line{border-right:3px solid #3185b9 !important;}
|
||||
.syntaxhighlighter .gutter .line.highlighted{background-color:#3185b9 !important;color:#121212 !important;}
|
||||
.syntaxhighlighter.printing .line .content{border:none !important;}
|
||||
.syntaxhighlighter.collapsed{overflow:visible !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{color:#3185b9 !important;background:black !important;border:1px solid #3185b9 !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a{color:#3185b9 !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a:hover{color:#d01d33 !important;}
|
||||
.syntaxhighlighter .toolbar{color:white !important;background:#3185b9 !important;border:none !important;}
|
||||
.syntaxhighlighter .toolbar a{color:white !important;}
|
||||
.syntaxhighlighter .toolbar a:hover{color:#96daff !important;}
|
||||
.syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:white !important;}
|
||||
.syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#696854 !important;}
|
||||
.syntaxhighlighter .string,.syntaxhighlighter .string a{color:#e3e658 !important;}
|
||||
.syntaxhighlighter .keyword{color:#d01d33 !important;}
|
||||
.syntaxhighlighter .preprocessor{color:#435a5f !important;}
|
||||
.syntaxhighlighter .variable{color:#898989 !important;}
|
||||
.syntaxhighlighter .value{color:#009900 !important;}
|
||||
.syntaxhighlighter .functions{color:#aaaaaa !important;}
|
||||
.syntaxhighlighter .constants{color:#96daff !important;}
|
||||
.syntaxhighlighter .script{font-weight:bold !important;color:#d01d33 !important;background-color:none !important;}
|
||||
.syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:#ffc074 !important;}
|
||||
.syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:#4a8cdb !important;}
|
||||
.syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:#96daff !important;}
|
||||
.syntaxhighlighter .functions{font-weight:bold !important;}
|
76
3rdparty/phpmailer/examples/styles/shCoreMDUltra.css
vendored
Executable file
76
3rdparty/phpmailer/examples/styles/shCoreMDUltra.css
vendored
Executable file
@ -0,0 +1,76 @@
|
||||
.syntaxhighlighter a,.syntaxhighlighter div,.syntaxhighlighter code,.syntaxhighlighter table,.syntaxhighlighter table td,.syntaxhighlighter table tr,.syntaxhighlighter table tbody,.syntaxhighlighter table thead,.syntaxhighlighter table caption,.syntaxhighlighter textarea{-moz-border-radius:0 0 0 0 !important;-webkit-border-radius:0 0 0 0 !important;background:none !important;border:0 !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0 !important;outline:0 !important;overflow:visible !important;padding:0 !important;position:static !important;right:auto !important;text-align:left !important;top:auto !important;vertical-align:baseline !important;width:auto !important;box-sizing:content-box !important;font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace !important;font-weight:normal !important;font-style:normal !important;font-size:1em !important;min-height:inherit !important;min-height:auto !important;}
|
||||
.syntaxhighlighter{width:100% !important;margin:1em 0 1em 0 !important;position:relative !important;overflow:auto !important;font-size:1em !important;}
|
||||
.syntaxhighlighter.source{overflow:hidden !important;}
|
||||
.syntaxhighlighter .bold{font-weight:bold !important;}
|
||||
.syntaxhighlighter .italic{font-style:italic !important;}
|
||||
.syntaxhighlighter .line{white-space:pre !important;}
|
||||
.syntaxhighlighter table{width:100% !important;}
|
||||
.syntaxhighlighter table caption{text-align:left !important;padding:.5em 0 0.5em 1em !important;}
|
||||
.syntaxhighlighter table td.code{width:100% !important;}
|
||||
.syntaxhighlighter table td.code .container{position:relative !important;}
|
||||
.syntaxhighlighter table td.code .container textarea{box-sizing:border-box !important;position:absolute !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;border:none !important;background:white !important;padding-left:1em !important;overflow:hidden !important;white-space:pre !important;}
|
||||
.syntaxhighlighter table td.gutter .line{text-align:right !important;padding:0 0.5em 0 1em !important;}
|
||||
.syntaxhighlighter table td.code .line{padding:0 1em !important;}
|
||||
.syntaxhighlighter.nogutter td.code .container textarea,.syntaxhighlighter.nogutter td.code .line{padding-left:0em !important;}
|
||||
.syntaxhighlighter.show{display:block !important;}
|
||||
.syntaxhighlighter.collapsed table{display:none !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{padding:0.1em 0.8em 0em 0.8em !important;font-size:1em !important;position:static !important;width:auto !important;height:auto !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span{display:inline !important;margin-right:1em !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span a{padding:0 !important;display:none !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span a.expandSource{display:inline !important;}
|
||||
.syntaxhighlighter .toolbar{position:absolute !important;right:1px !important;top:1px !important;width:11px !important;height:11px !important;font-size:10px !important;z-index:10 !important;}
|
||||
.syntaxhighlighter .toolbar span.title{display:inline !important;}
|
||||
.syntaxhighlighter .toolbar a{display:block !important;text-align:center !important;text-decoration:none !important;padding-top:1px !important;}
|
||||
.syntaxhighlighter .toolbar a.expandSource{display:none !important;}
|
||||
.syntaxhighlighter.ie{font-size:.9em !important;padding:1px 0 1px 0 !important;}
|
||||
.syntaxhighlighter.ie .toolbar{line-height:8px !important;}
|
||||
.syntaxhighlighter.ie .toolbar a{padding-top:0px !important;}
|
||||
.syntaxhighlighter.printing .line.alt1 .content,.syntaxhighlighter.printing .line.alt2 .content,.syntaxhighlighter.printing .line.highlighted .number,.syntaxhighlighter.printing .line.highlighted.alt1 .content,.syntaxhighlighter.printing .line.highlighted.alt2 .content{background:none !important;}
|
||||
.syntaxhighlighter.printing .line .number{color:#bbbbbb !important;}
|
||||
.syntaxhighlighter.printing .line .content{color:black !important;}
|
||||
.syntaxhighlighter.printing .toolbar{display:none !important;}
|
||||
.syntaxhighlighter.printing a{text-decoration:none !important;}
|
||||
.syntaxhighlighter.printing .plain,.syntaxhighlighter.printing .plain a{color:black !important;}
|
||||
.syntaxhighlighter.printing .comments,.syntaxhighlighter.printing .comments a{color:#008200 !important;}
|
||||
.syntaxhighlighter.printing .string,.syntaxhighlighter.printing .string a{color:blue !important;}
|
||||
.syntaxhighlighter.printing .keyword{color:#006699 !important;font-weight:bold !important;}
|
||||
.syntaxhighlighter.printing .preprocessor{color:gray !important;}
|
||||
.syntaxhighlighter.printing .variable{color:#aa7700 !important;}
|
||||
.syntaxhighlighter.printing .value{color:#009900 !important;}
|
||||
.syntaxhighlighter.printing .functions{color:#ff1493 !important;}
|
||||
.syntaxhighlighter.printing .constants{color:#0066cc !important;}
|
||||
.syntaxhighlighter.printing .script{font-weight:bold !important;}
|
||||
.syntaxhighlighter.printing .color1,.syntaxhighlighter.printing .color1 a{color:gray !important;}
|
||||
.syntaxhighlighter.printing .color2,.syntaxhighlighter.printing .color2 a{color:#ff1493 !important;}
|
||||
.syntaxhighlighter.printing .color3,.syntaxhighlighter.printing .color3 a{color:red !important;}
|
||||
.syntaxhighlighter.printing .break,.syntaxhighlighter.printing .break a{color:black !important;}
|
||||
.syntaxhighlighter{background-color:#222222 !important;}
|
||||
.syntaxhighlighter .line.alt1{background-color:#222222 !important;}
|
||||
.syntaxhighlighter .line.alt2{background-color:#222222 !important;}
|
||||
.syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#253e5a !important;}
|
||||
.syntaxhighlighter .line.highlighted.number{color:white !important;}
|
||||
.syntaxhighlighter table caption{color:lime !important;}
|
||||
.syntaxhighlighter .gutter{color:#38566f !important;}
|
||||
.syntaxhighlighter .gutter .line{border-right:3px solid #435a5f !important;}
|
||||
.syntaxhighlighter .gutter .line.highlighted{background-color:#435a5f !important;color:#222222 !important;}
|
||||
.syntaxhighlighter.printing .line .content{border:none !important;}
|
||||
.syntaxhighlighter.collapsed{overflow:visible !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{color:#428bdd !important;background:black !important;border:1px solid #435a5f !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a{color:#428bdd !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a:hover{color:lime !important;}
|
||||
.syntaxhighlighter .toolbar{color:#aaaaff !important;background:#435a5f !important;border:none !important;}
|
||||
.syntaxhighlighter .toolbar a{color:#aaaaff !important;}
|
||||
.syntaxhighlighter .toolbar a:hover{color:#9ccff4 !important;}
|
||||
.syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:lime !important;}
|
||||
.syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#428bdd !important;}
|
||||
.syntaxhighlighter .string,.syntaxhighlighter .string a{color:lime !important;}
|
||||
.syntaxhighlighter .keyword{color:#aaaaff !important;}
|
||||
.syntaxhighlighter .preprocessor{color:#8aa6c1 !important;}
|
||||
.syntaxhighlighter .variable{color:aqua !important;}
|
||||
.syntaxhighlighter .value{color:#f7e741 !important;}
|
||||
.syntaxhighlighter .functions{color:#ff8000 !important;}
|
||||
.syntaxhighlighter .constants{color:yellow !important;}
|
||||
.syntaxhighlighter .script{font-weight:bold !important;color:#aaaaff !important;background-color:none !important;}
|
||||
.syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:red !important;}
|
||||
.syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:yellow !important;}
|
||||
.syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:#ffaa3e !important;}
|
76
3rdparty/phpmailer/examples/styles/shCoreMidnight.css
vendored
Executable file
76
3rdparty/phpmailer/examples/styles/shCoreMidnight.css
vendored
Executable file
@ -0,0 +1,76 @@
|
||||
.syntaxhighlighter a,.syntaxhighlighter div,.syntaxhighlighter code,.syntaxhighlighter table,.syntaxhighlighter table td,.syntaxhighlighter table tr,.syntaxhighlighter table tbody,.syntaxhighlighter table thead,.syntaxhighlighter table caption,.syntaxhighlighter textarea{-moz-border-radius:0 0 0 0 !important;-webkit-border-radius:0 0 0 0 !important;background:none !important;border:0 !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0 !important;outline:0 !important;overflow:visible !important;padding:0 !important;position:static !important;right:auto !important;text-align:left !important;top:auto !important;vertical-align:baseline !important;width:auto !important;box-sizing:content-box !important;font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace !important;font-weight:normal !important;font-style:normal !important;font-size:1em !important;min-height:inherit !important;min-height:auto !important;}
|
||||
.syntaxhighlighter{width:100% !important;margin:1em 0 1em 0 !important;position:relative !important;overflow:auto !important;font-size:1em !important;}
|
||||
.syntaxhighlighter.source{overflow:hidden !important;}
|
||||
.syntaxhighlighter .bold{font-weight:bold !important;}
|
||||
.syntaxhighlighter .italic{font-style:italic !important;}
|
||||
.syntaxhighlighter .line{white-space:pre !important;}
|
||||
.syntaxhighlighter table{width:100% !important;}
|
||||
.syntaxhighlighter table caption{text-align:left !important;padding:.5em 0 0.5em 1em !important;}
|
||||
.syntaxhighlighter table td.code{width:100% !important;}
|
||||
.syntaxhighlighter table td.code .container{position:relative !important;}
|
||||
.syntaxhighlighter table td.code .container textarea{box-sizing:border-box !important;position:absolute !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;border:none !important;background:white !important;padding-left:1em !important;overflow:hidden !important;white-space:pre !important;}
|
||||
.syntaxhighlighter table td.gutter .line{text-align:right !important;padding:0 0.5em 0 1em !important;}
|
||||
.syntaxhighlighter table td.code .line{padding:0 1em !important;}
|
||||
.syntaxhighlighter.nogutter td.code .container textarea,.syntaxhighlighter.nogutter td.code .line{padding-left:0em !important;}
|
||||
.syntaxhighlighter.show{display:block !important;}
|
||||
.syntaxhighlighter.collapsed table{display:none !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{padding:0.1em 0.8em 0em 0.8em !important;font-size:1em !important;position:static !important;width:auto !important;height:auto !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span{display:inline !important;margin-right:1em !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span a{padding:0 !important;display:none !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span a.expandSource{display:inline !important;}
|
||||
.syntaxhighlighter .toolbar{position:absolute !important;right:1px !important;top:1px !important;width:11px !important;height:11px !important;font-size:10px !important;z-index:10 !important;}
|
||||
.syntaxhighlighter .toolbar span.title{display:inline !important;}
|
||||
.syntaxhighlighter .toolbar a{display:block !important;text-align:center !important;text-decoration:none !important;padding-top:1px !important;}
|
||||
.syntaxhighlighter .toolbar a.expandSource{display:none !important;}
|
||||
.syntaxhighlighter.ie{font-size:.9em !important;padding:1px 0 1px 0 !important;}
|
||||
.syntaxhighlighter.ie .toolbar{line-height:8px !important;}
|
||||
.syntaxhighlighter.ie .toolbar a{padding-top:0px !important;}
|
||||
.syntaxhighlighter.printing .line.alt1 .content,.syntaxhighlighter.printing .line.alt2 .content,.syntaxhighlighter.printing .line.highlighted .number,.syntaxhighlighter.printing .line.highlighted.alt1 .content,.syntaxhighlighter.printing .line.highlighted.alt2 .content{background:none !important;}
|
||||
.syntaxhighlighter.printing .line .number{color:#bbbbbb !important;}
|
||||
.syntaxhighlighter.printing .line .content{color:black !important;}
|
||||
.syntaxhighlighter.printing .toolbar{display:none !important;}
|
||||
.syntaxhighlighter.printing a{text-decoration:none !important;}
|
||||
.syntaxhighlighter.printing .plain,.syntaxhighlighter.printing .plain a{color:black !important;}
|
||||
.syntaxhighlighter.printing .comments,.syntaxhighlighter.printing .comments a{color:#008200 !important;}
|
||||
.syntaxhighlighter.printing .string,.syntaxhighlighter.printing .string a{color:blue !important;}
|
||||
.syntaxhighlighter.printing .keyword{color:#006699 !important;font-weight:bold !important;}
|
||||
.syntaxhighlighter.printing .preprocessor{color:gray !important;}
|
||||
.syntaxhighlighter.printing .variable{color:#aa7700 !important;}
|
||||
.syntaxhighlighter.printing .value{color:#009900 !important;}
|
||||
.syntaxhighlighter.printing .functions{color:#ff1493 !important;}
|
||||
.syntaxhighlighter.printing .constants{color:#0066cc !important;}
|
||||
.syntaxhighlighter.printing .script{font-weight:bold !important;}
|
||||
.syntaxhighlighter.printing .color1,.syntaxhighlighter.printing .color1 a{color:gray !important;}
|
||||
.syntaxhighlighter.printing .color2,.syntaxhighlighter.printing .color2 a{color:#ff1493 !important;}
|
||||
.syntaxhighlighter.printing .color3,.syntaxhighlighter.printing .color3 a{color:red !important;}
|
||||
.syntaxhighlighter.printing .break,.syntaxhighlighter.printing .break a{color:black !important;}
|
||||
.syntaxhighlighter{background-color:#0f192a !important;}
|
||||
.syntaxhighlighter .line.alt1{background-color:#0f192a !important;}
|
||||
.syntaxhighlighter .line.alt2{background-color:#0f192a !important;}
|
||||
.syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#253e5a !important;}
|
||||
.syntaxhighlighter .line.highlighted.number{color:#38566f !important;}
|
||||
.syntaxhighlighter table caption{color:#d1edff !important;}
|
||||
.syntaxhighlighter .gutter{color:#afafaf !important;}
|
||||
.syntaxhighlighter .gutter .line{border-right:3px solid #435a5f !important;}
|
||||
.syntaxhighlighter .gutter .line.highlighted{background-color:#435a5f !important;color:#0f192a !important;}
|
||||
.syntaxhighlighter.printing .line .content{border:none !important;}
|
||||
.syntaxhighlighter.collapsed{overflow:visible !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{color:#428bdd !important;background:black !important;border:1px solid #435a5f !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a{color:#428bdd !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a:hover{color:#1dc116 !important;}
|
||||
.syntaxhighlighter .toolbar{color:#d1edff !important;background:#435a5f !important;border:none !important;}
|
||||
.syntaxhighlighter .toolbar a{color:#d1edff !important;}
|
||||
.syntaxhighlighter .toolbar a:hover{color:#8aa6c1 !important;}
|
||||
.syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:#d1edff !important;}
|
||||
.syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#428bdd !important;}
|
||||
.syntaxhighlighter .string,.syntaxhighlighter .string a{color:#1dc116 !important;}
|
||||
.syntaxhighlighter .keyword{color:#b43d3d !important;}
|
||||
.syntaxhighlighter .preprocessor{color:#8aa6c1 !important;}
|
||||
.syntaxhighlighter .variable{color:#ffaa3e !important;}
|
||||
.syntaxhighlighter .value{color:#f7e741 !important;}
|
||||
.syntaxhighlighter .functions{color:#ffaa3e !important;}
|
||||
.syntaxhighlighter .constants{color:#e0e8ff !important;}
|
||||
.syntaxhighlighter .script{font-weight:bold !important;color:#b43d3d !important;background-color:none !important;}
|
||||
.syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:#f8bb00 !important;}
|
||||
.syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:white !important;}
|
||||
.syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:#ffaa3e !important;}
|
76
3rdparty/phpmailer/examples/styles/shCoreRDark.css
vendored
Executable file
76
3rdparty/phpmailer/examples/styles/shCoreRDark.css
vendored
Executable file
@ -0,0 +1,76 @@
|
||||
.syntaxhighlighter a,.syntaxhighlighter div,.syntaxhighlighter code,.syntaxhighlighter table,.syntaxhighlighter table td,.syntaxhighlighter table tr,.syntaxhighlighter table tbody,.syntaxhighlighter table thead,.syntaxhighlighter table caption,.syntaxhighlighter textarea{-moz-border-radius:0 0 0 0 !important;-webkit-border-radius:0 0 0 0 !important;background:none !important;border:0 !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0 !important;outline:0 !important;overflow:visible !important;padding:0 !important;position:static !important;right:auto !important;text-align:left !important;top:auto !important;vertical-align:baseline !important;width:auto !important;box-sizing:content-box !important;font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace !important;font-weight:normal !important;font-style:normal !important;font-size:1em !important;min-height:inherit !important;min-height:auto !important;}
|
||||
.syntaxhighlighter{width:100% !important;margin:1em 0 1em 0 !important;position:relative !important;overflow:auto !important;font-size:1em !important;}
|
||||
.syntaxhighlighter.source{overflow:hidden !important;}
|
||||
.syntaxhighlighter .bold{font-weight:bold !important;}
|
||||
.syntaxhighlighter .italic{font-style:italic !important;}
|
||||
.syntaxhighlighter .line{white-space:pre !important;}
|
||||
.syntaxhighlighter table{width:100% !important;}
|
||||
.syntaxhighlighter table caption{text-align:left !important;padding:.5em 0 0.5em 1em !important;}
|
||||
.syntaxhighlighter table td.code{width:100% !important;}
|
||||
.syntaxhighlighter table td.code .container{position:relative !important;}
|
||||
.syntaxhighlighter table td.code .container textarea{box-sizing:border-box !important;position:absolute !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;border:none !important;background:white !important;padding-left:1em !important;overflow:hidden !important;white-space:pre !important;}
|
||||
.syntaxhighlighter table td.gutter .line{text-align:right !important;padding:0 0.5em 0 1em !important;}
|
||||
.syntaxhighlighter table td.code .line{padding:0 1em !important;}
|
||||
.syntaxhighlighter.nogutter td.code .container textarea,.syntaxhighlighter.nogutter td.code .line{padding-left:0em !important;}
|
||||
.syntaxhighlighter.show{display:block !important;}
|
||||
.syntaxhighlighter.collapsed table{display:none !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{padding:0.1em 0.8em 0em 0.8em !important;font-size:1em !important;position:static !important;width:auto !important;height:auto !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span{display:inline !important;margin-right:1em !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span a{padding:0 !important;display:none !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar span a.expandSource{display:inline !important;}
|
||||
.syntaxhighlighter .toolbar{position:absolute !important;right:1px !important;top:1px !important;width:11px !important;height:11px !important;font-size:10px !important;z-index:10 !important;}
|
||||
.syntaxhighlighter .toolbar span.title{display:inline !important;}
|
||||
.syntaxhighlighter .toolbar a{display:block !important;text-align:center !important;text-decoration:none !important;padding-top:1px !important;}
|
||||
.syntaxhighlighter .toolbar a.expandSource{display:none !important;}
|
||||
.syntaxhighlighter.ie{font-size:.9em !important;padding:1px 0 1px 0 !important;}
|
||||
.syntaxhighlighter.ie .toolbar{line-height:8px !important;}
|
||||
.syntaxhighlighter.ie .toolbar a{padding-top:0px !important;}
|
||||
.syntaxhighlighter.printing .line.alt1 .content,.syntaxhighlighter.printing .line.alt2 .content,.syntaxhighlighter.printing .line.highlighted .number,.syntaxhighlighter.printing .line.highlighted.alt1 .content,.syntaxhighlighter.printing .line.highlighted.alt2 .content{background:none !important;}
|
||||
.syntaxhighlighter.printing .line .number{color:#bbbbbb !important;}
|
||||
.syntaxhighlighter.printing .line .content{color:black !important;}
|
||||
.syntaxhighlighter.printing .toolbar{display:none !important;}
|
||||
.syntaxhighlighter.printing a{text-decoration:none !important;}
|
||||
.syntaxhighlighter.printing .plain,.syntaxhighlighter.printing .plain a{color:black !important;}
|
||||
.syntaxhighlighter.printing .comments,.syntaxhighlighter.printing .comments a{color:#008200 !important;}
|
||||
.syntaxhighlighter.printing .string,.syntaxhighlighter.printing .string a{color:blue !important;}
|
||||
.syntaxhighlighter.printing .keyword{color:#006699 !important;font-weight:bold !important;}
|
||||
.syntaxhighlighter.printing .preprocessor{color:gray !important;}
|
||||
.syntaxhighlighter.printing .variable{color:#aa7700 !important;}
|
||||
.syntaxhighlighter.printing .value{color:#009900 !important;}
|
||||
.syntaxhighlighter.printing .functions{color:#ff1493 !important;}
|
||||
.syntaxhighlighter.printing .constants{color:#0066cc !important;}
|
||||
.syntaxhighlighter.printing .script{font-weight:bold !important;}
|
||||
.syntaxhighlighter.printing .color1,.syntaxhighlighter.printing .color1 a{color:gray !important;}
|
||||
.syntaxhighlighter.printing .color2,.syntaxhighlighter.printing .color2 a{color:#ff1493 !important;}
|
||||
.syntaxhighlighter.printing .color3,.syntaxhighlighter.printing .color3 a{color:red !important;}
|
||||
.syntaxhighlighter.printing .break,.syntaxhighlighter.printing .break a{color:black !important;}
|
||||
.syntaxhighlighter{background-color:#1b2426 !important;}
|
||||
.syntaxhighlighter .line.alt1{background-color:#1b2426 !important;}
|
||||
.syntaxhighlighter .line.alt2{background-color:#1b2426 !important;}
|
||||
.syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#323e41 !important;}
|
||||
.syntaxhighlighter .line.highlighted.number{color:#b9bdb6 !important;}
|
||||
.syntaxhighlighter table caption{color:#b9bdb6 !important;}
|
||||
.syntaxhighlighter .gutter{color:#afafaf !important;}
|
||||
.syntaxhighlighter .gutter .line{border-right:3px solid #435a5f !important;}
|
||||
.syntaxhighlighter .gutter .line.highlighted{background-color:#435a5f !important;color:#1b2426 !important;}
|
||||
.syntaxhighlighter.printing .line .content{border:none !important;}
|
||||
.syntaxhighlighter.collapsed{overflow:visible !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{color:#5ba1cf !important;background:black !important;border:1px solid #435a5f !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a{color:#5ba1cf !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a:hover{color:#5ce638 !important;}
|
||||
.syntaxhighlighter .toolbar{color:white !important;background:#435a5f !important;border:none !important;}
|
||||
.syntaxhighlighter .toolbar a{color:white !important;}
|
||||
.syntaxhighlighter .toolbar a:hover{color:#e0e8ff !important;}
|
||||
.syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:#b9bdb6 !important;}
|
||||
.syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#878a85 !important;}
|
||||
.syntaxhighlighter .string,.syntaxhighlighter .string a{color:#5ce638 !important;}
|
||||
.syntaxhighlighter .keyword{color:#5ba1cf !important;}
|
||||
.syntaxhighlighter .preprocessor{color:#435a5f !important;}
|
||||
.syntaxhighlighter .variable{color:#ffaa3e !important;}
|
||||
.syntaxhighlighter .value{color:#009900 !important;}
|
||||
.syntaxhighlighter .functions{color:#ffaa3e !important;}
|
||||
.syntaxhighlighter .constants{color:#e0e8ff !important;}
|
||||
.syntaxhighlighter .script{font-weight:bold !important;color:#5ba1cf !important;background-color:none !important;}
|
||||
.syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:#e0e8ff !important;}
|
||||
.syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:white !important;}
|
||||
.syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:#ffaa3e !important;}
|
21
3rdparty/phpmailer/examples/styles/shThemeAppleScript.css
vendored
Executable file
21
3rdparty/phpmailer/examples/styles/shThemeAppleScript.css
vendored
Executable file
@ -0,0 +1,21 @@
|
||||
.syntaxhighlighter.applescript{background:white;font-size:1em;color:black;}
|
||||
.syntaxhighlighter.applescript div,.syntaxhighlighter.applescript code{font:1em/1.25 Verdana,sans-serif !important;}
|
||||
.syntaxhighlighter.applescript .code .line{overflow:hidden !important;}
|
||||
.syntaxhighlighter.applescript .code .line.highlighted{background:#b5d5ff !important;}
|
||||
.syntaxhighlighter.applescript .color1{color:#000000 !important;}
|
||||
.syntaxhighlighter.applescript .color2{color:#000000 !important;}
|
||||
.syntaxhighlighter.applescript .color3{color:#000000 !important;font-weight:bold !important;}
|
||||
.syntaxhighlighter.applescript .keyword{color:#000000 !important;font-weight:bold !important;}
|
||||
.syntaxhighlighter.applescript .color4{color:#0000ff !important;font-style:italic !important;}
|
||||
.syntaxhighlighter.applescript .comments{color:#4c4d4d !important;}
|
||||
.syntaxhighlighter.applescript .plain{color:#408000 !important;}
|
||||
.syntaxhighlighter.applescript .string{color:#000000 !important;}
|
||||
.syntaxhighlighter.applescript .commandNames{color:#0000ff !important;font-weight:bold !important;}
|
||||
.syntaxhighlighter.applescript .parameterNames{color:#0000ff !important;}
|
||||
.syntaxhighlighter.applescript .classes{color:#0000ff !important;font-style:italic !important;}
|
||||
.syntaxhighlighter.applescript .properties{color:#6c04d4 !important;}
|
||||
.syntaxhighlighter.applescript .enumeratedValues{color:#4a1e7f !important;}
|
||||
.syntaxhighlighter.applescript .additionCommandNames{color:#0016b0 !important;font-weight:bold !important;}
|
||||
.syntaxhighlighter.applescript .additionParameterNames{color:#0016b0 !important;}
|
||||
.syntaxhighlighter.applescript .additionClasses{color:#0016b0 !important;font-style:italic !important;}
|
||||
.syntaxhighlighter.applescript .spaces{display:inline-block;height:0 !important;font-size:1.75em !important;line-height:0 !important;}
|
31
3rdparty/phpmailer/examples/styles/shThemeDefault.css
vendored
Executable file
31
3rdparty/phpmailer/examples/styles/shThemeDefault.css
vendored
Executable file
@ -0,0 +1,31 @@
|
||||
.syntaxhighlighter{background-color:white !important;}
|
||||
.syntaxhighlighter .line.alt1{background-color:white !important;}
|
||||
.syntaxhighlighter .line.alt2{background-color:white !important;}
|
||||
.syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#e0e0e0 !important;}
|
||||
.syntaxhighlighter .line.highlighted.number{color:black !important;}
|
||||
.syntaxhighlighter table caption{color:black !important;}
|
||||
.syntaxhighlighter .gutter{color:#afafaf !important;}
|
||||
.syntaxhighlighter .gutter .line{border-right:3px solid #6ce26c !important;}
|
||||
.syntaxhighlighter .gutter .line.highlighted{background-color:#6ce26c !important;color:white !important;}
|
||||
.syntaxhighlighter.printing .line .content{border:none !important;}
|
||||
.syntaxhighlighter.collapsed{overflow:visible !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{color:blue !important;background:white !important;border:1px solid #6ce26c !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a{color:blue !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a:hover{color:red !important;}
|
||||
.syntaxhighlighter .toolbar{color:white !important;background:#6ce26c !important;border:none !important;}
|
||||
.syntaxhighlighter .toolbar a{color:white !important;}
|
||||
.syntaxhighlighter .toolbar a:hover{color:black !important;}
|
||||
.syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:black !important;}
|
||||
.syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#008200 !important;}
|
||||
.syntaxhighlighter .string,.syntaxhighlighter .string a{color:blue !important;}
|
||||
.syntaxhighlighter .keyword{color:#006699 !important;}
|
||||
.syntaxhighlighter .preprocessor{color:gray !important;}
|
||||
.syntaxhighlighter .variable{color:#aa7700 !important;}
|
||||
.syntaxhighlighter .value{color:#009900 !important;}
|
||||
.syntaxhighlighter .functions{color:#ff1493 !important;}
|
||||
.syntaxhighlighter .constants{color:#0066cc !important;}
|
||||
.syntaxhighlighter .script{font-weight:bold !important;color:#006699 !important;background-color:none !important;}
|
||||
.syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:gray !important;}
|
||||
.syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:#ff1493 !important;}
|
||||
.syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:red !important;}
|
||||
.syntaxhighlighter .keyword{font-weight:bold !important;}
|
32
3rdparty/phpmailer/examples/styles/shThemeDjango.css
vendored
Executable file
32
3rdparty/phpmailer/examples/styles/shThemeDjango.css
vendored
Executable file
@ -0,0 +1,32 @@
|
||||
.syntaxhighlighter{background-color:#0a2b1d !important;}
|
||||
.syntaxhighlighter .line.alt1{background-color:#0a2b1d !important;}
|
||||
.syntaxhighlighter .line.alt2{background-color:#0a2b1d !important;}
|
||||
.syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#233729 !important;}
|
||||
.syntaxhighlighter .line.highlighted.number{color:white !important;}
|
||||
.syntaxhighlighter table caption{color:#f8f8f8 !important;}
|
||||
.syntaxhighlighter .gutter{color:#497958 !important;}
|
||||
.syntaxhighlighter .gutter .line{border-right:3px solid #41a83e !important;}
|
||||
.syntaxhighlighter .gutter .line.highlighted{background-color:#41a83e !important;color:#0a2b1d !important;}
|
||||
.syntaxhighlighter.printing .line .content{border:none !important;}
|
||||
.syntaxhighlighter.collapsed{overflow:visible !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{color:#96dd3b !important;background:black !important;border:1px solid #41a83e !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a{color:#96dd3b !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a:hover{color:white !important;}
|
||||
.syntaxhighlighter .toolbar{color:white !important;background:#41a83e !important;border:none !important;}
|
||||
.syntaxhighlighter .toolbar a{color:white !important;}
|
||||
.syntaxhighlighter .toolbar a:hover{color:#ffe862 !important;}
|
||||
.syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:#f8f8f8 !important;}
|
||||
.syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#336442 !important;}
|
||||
.syntaxhighlighter .string,.syntaxhighlighter .string a{color:#9df39f !important;}
|
||||
.syntaxhighlighter .keyword{color:#96dd3b !important;}
|
||||
.syntaxhighlighter .preprocessor{color:#91bb9e !important;}
|
||||
.syntaxhighlighter .variable{color:#ffaa3e !important;}
|
||||
.syntaxhighlighter .value{color:#f7e741 !important;}
|
||||
.syntaxhighlighter .functions{color:#ffaa3e !important;}
|
||||
.syntaxhighlighter .constants{color:#e0e8ff !important;}
|
||||
.syntaxhighlighter .script{font-weight:bold !important;color:#96dd3b !important;background-color:none !important;}
|
||||
.syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:#eb939a !important;}
|
||||
.syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:#91bb9e !important;}
|
||||
.syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:#edef7d !important;}
|
||||
.syntaxhighlighter .comments{font-style:italic !important;}
|
||||
.syntaxhighlighter .keyword{font-weight:bold !important;}
|
34
3rdparty/phpmailer/examples/styles/shThemeEclipse.css
vendored
Executable file
34
3rdparty/phpmailer/examples/styles/shThemeEclipse.css
vendored
Executable file
@ -0,0 +1,34 @@
|
||||
.syntaxhighlighter{background-color:white !important;}
|
||||
.syntaxhighlighter .line.alt1{background-color:white !important;}
|
||||
.syntaxhighlighter .line.alt2{background-color:white !important;}
|
||||
.syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#c3defe !important;}
|
||||
.syntaxhighlighter .line.highlighted.number{color:white !important;}
|
||||
.syntaxhighlighter table caption{color:black !important;}
|
||||
.syntaxhighlighter .gutter{color:#787878 !important;}
|
||||
.syntaxhighlighter .gutter .line{border-right:3px solid #d4d0c8 !important;}
|
||||
.syntaxhighlighter .gutter .line.highlighted{background-color:#d4d0c8 !important;color:white !important;}
|
||||
.syntaxhighlighter.printing .line .content{border:none !important;}
|
||||
.syntaxhighlighter.collapsed{overflow:visible !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{color:#3f5fbf !important;background:white !important;border:1px solid #d4d0c8 !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a{color:#3f5fbf !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a:hover{color:#aa7700 !important;}
|
||||
.syntaxhighlighter .toolbar{color:#a0a0a0 !important;background:#d4d0c8 !important;border:none !important;}
|
||||
.syntaxhighlighter .toolbar a{color:#a0a0a0 !important;}
|
||||
.syntaxhighlighter .toolbar a:hover{color:red !important;}
|
||||
.syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:black !important;}
|
||||
.syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#3f5fbf !important;}
|
||||
.syntaxhighlighter .string,.syntaxhighlighter .string a{color:#2a00ff !important;}
|
||||
.syntaxhighlighter .keyword{color:#7f0055 !important;}
|
||||
.syntaxhighlighter .preprocessor{color:#646464 !important;}
|
||||
.syntaxhighlighter .variable{color:#aa7700 !important;}
|
||||
.syntaxhighlighter .value{color:#009900 !important;}
|
||||
.syntaxhighlighter .functions{color:#ff1493 !important;}
|
||||
.syntaxhighlighter .constants{color:#0066cc !important;}
|
||||
.syntaxhighlighter .script{font-weight:bold !important;color:#7f0055 !important;background-color:none !important;}
|
||||
.syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:gray !important;}
|
||||
.syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:#ff1493 !important;}
|
||||
.syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:red !important;}
|
||||
.syntaxhighlighter .keyword{font-weight:bold !important;}
|
||||
.syntaxhighlighter .xml .keyword{color:#3f7f7f !important;font-weight:normal !important;}
|
||||
.syntaxhighlighter .xml .color1,.syntaxhighlighter .xml .color1 a{color:#7f007f !important;}
|
||||
.syntaxhighlighter .xml .string{font-style:italic !important;color:#2a00ff !important;}
|
30
3rdparty/phpmailer/examples/styles/shThemeEmacs.css
vendored
Executable file
30
3rdparty/phpmailer/examples/styles/shThemeEmacs.css
vendored
Executable file
@ -0,0 +1,30 @@
|
||||
.syntaxhighlighter{background-color:black !important;}
|
||||
.syntaxhighlighter .line.alt1{background-color:black !important;}
|
||||
.syntaxhighlighter .line.alt2{background-color:black !important;}
|
||||
.syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#2a3133 !important;}
|
||||
.syntaxhighlighter .line.highlighted.number{color:white !important;}
|
||||
.syntaxhighlighter table caption{color:#d3d3d3 !important;}
|
||||
.syntaxhighlighter .gutter{color:#d3d3d3 !important;}
|
||||
.syntaxhighlighter .gutter .line{border-right:3px solid #990000 !important;}
|
||||
.syntaxhighlighter .gutter .line.highlighted{background-color:#990000 !important;color:black !important;}
|
||||
.syntaxhighlighter.printing .line .content{border:none !important;}
|
||||
.syntaxhighlighter.collapsed{overflow:visible !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{color:#ebdb8d !important;background:black !important;border:1px solid #990000 !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a{color:#ebdb8d !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a:hover{color:#ff7d27 !important;}
|
||||
.syntaxhighlighter .toolbar{color:white !important;background:#990000 !important;border:none !important;}
|
||||
.syntaxhighlighter .toolbar a{color:white !important;}
|
||||
.syntaxhighlighter .toolbar a:hover{color:#9ccff4 !important;}
|
||||
.syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:#d3d3d3 !important;}
|
||||
.syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#ff7d27 !important;}
|
||||
.syntaxhighlighter .string,.syntaxhighlighter .string a{color:#ff9e7b !important;}
|
||||
.syntaxhighlighter .keyword{color:aqua !important;}
|
||||
.syntaxhighlighter .preprocessor{color:#aec4de !important;}
|
||||
.syntaxhighlighter .variable{color:#ffaa3e !important;}
|
||||
.syntaxhighlighter .value{color:#009900 !important;}
|
||||
.syntaxhighlighter .functions{color:#81cef9 !important;}
|
||||
.syntaxhighlighter .constants{color:#ff9e7b !important;}
|
||||
.syntaxhighlighter .script{font-weight:bold !important;color:aqua !important;background-color:none !important;}
|
||||
.syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:#ebdb8d !important;}
|
||||
.syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:#ff7d27 !important;}
|
||||
.syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:#aec4de !important;}
|
31
3rdparty/phpmailer/examples/styles/shThemeFadeToGrey.css
vendored
Executable file
31
3rdparty/phpmailer/examples/styles/shThemeFadeToGrey.css
vendored
Executable file
@ -0,0 +1,31 @@
|
||||
.syntaxhighlighter{background-color:#121212 !important;}
|
||||
.syntaxhighlighter .line.alt1{background-color:#121212 !important;}
|
||||
.syntaxhighlighter .line.alt2{background-color:#121212 !important;}
|
||||
.syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#2c2c29 !important;}
|
||||
.syntaxhighlighter .line.highlighted.number{color:white !important;}
|
||||
.syntaxhighlighter table caption{color:white !important;}
|
||||
.syntaxhighlighter .gutter{color:#afafaf !important;}
|
||||
.syntaxhighlighter .gutter .line{border-right:3px solid #3185b9 !important;}
|
||||
.syntaxhighlighter .gutter .line.highlighted{background-color:#3185b9 !important;color:#121212 !important;}
|
||||
.syntaxhighlighter.printing .line .content{border:none !important;}
|
||||
.syntaxhighlighter.collapsed{overflow:visible !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{color:#3185b9 !important;background:black !important;border:1px solid #3185b9 !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a{color:#3185b9 !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a:hover{color:#d01d33 !important;}
|
||||
.syntaxhighlighter .toolbar{color:white !important;background:#3185b9 !important;border:none !important;}
|
||||
.syntaxhighlighter .toolbar a{color:white !important;}
|
||||
.syntaxhighlighter .toolbar a:hover{color:#96daff !important;}
|
||||
.syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:white !important;}
|
||||
.syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#696854 !important;}
|
||||
.syntaxhighlighter .string,.syntaxhighlighter .string a{color:#e3e658 !important;}
|
||||
.syntaxhighlighter .keyword{color:#d01d33 !important;}
|
||||
.syntaxhighlighter .preprocessor{color:#435a5f !important;}
|
||||
.syntaxhighlighter .variable{color:#898989 !important;}
|
||||
.syntaxhighlighter .value{color:#009900 !important;}
|
||||
.syntaxhighlighter .functions{color:#aaaaaa !important;}
|
||||
.syntaxhighlighter .constants{color:#96daff !important;}
|
||||
.syntaxhighlighter .script{font-weight:bold !important;color:#d01d33 !important;background-color:none !important;}
|
||||
.syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:#ffc074 !important;}
|
||||
.syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:#4a8cdb !important;}
|
||||
.syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:#96daff !important;}
|
||||
.syntaxhighlighter .functions{font-weight:bold !important;}
|
30
3rdparty/phpmailer/examples/styles/shThemeMDUltra.css
vendored
Executable file
30
3rdparty/phpmailer/examples/styles/shThemeMDUltra.css
vendored
Executable file
@ -0,0 +1,30 @@
|
||||
.syntaxhighlighter{background-color:#222222 !important;}
|
||||
.syntaxhighlighter .line.alt1{background-color:#222222 !important;}
|
||||
.syntaxhighlighter .line.alt2{background-color:#222222 !important;}
|
||||
.syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#253e5a !important;}
|
||||
.syntaxhighlighter .line.highlighted.number{color:white !important;}
|
||||
.syntaxhighlighter table caption{color:lime !important;}
|
||||
.syntaxhighlighter .gutter{color:#38566f !important;}
|
||||
.syntaxhighlighter .gutter .line{border-right:3px solid #435a5f !important;}
|
||||
.syntaxhighlighter .gutter .line.highlighted{background-color:#435a5f !important;color:#222222 !important;}
|
||||
.syntaxhighlighter.printing .line .content{border:none !important;}
|
||||
.syntaxhighlighter.collapsed{overflow:visible !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{color:#428bdd !important;background:black !important;border:1px solid #435a5f !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a{color:#428bdd !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a:hover{color:lime !important;}
|
||||
.syntaxhighlighter .toolbar{color:#aaaaff !important;background:#435a5f !important;border:none !important;}
|
||||
.syntaxhighlighter .toolbar a{color:#aaaaff !important;}
|
||||
.syntaxhighlighter .toolbar a:hover{color:#9ccff4 !important;}
|
||||
.syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:lime !important;}
|
||||
.syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#428bdd !important;}
|
||||
.syntaxhighlighter .string,.syntaxhighlighter .string a{color:lime !important;}
|
||||
.syntaxhighlighter .keyword{color:#aaaaff !important;}
|
||||
.syntaxhighlighter .preprocessor{color:#8aa6c1 !important;}
|
||||
.syntaxhighlighter .variable{color:aqua !important;}
|
||||
.syntaxhighlighter .value{color:#f7e741 !important;}
|
||||
.syntaxhighlighter .functions{color:#ff8000 !important;}
|
||||
.syntaxhighlighter .constants{color:yellow !important;}
|
||||
.syntaxhighlighter .script{font-weight:bold !important;color:#aaaaff !important;background-color:none !important;}
|
||||
.syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:red !important;}
|
||||
.syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:yellow !important;}
|
||||
.syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:#ffaa3e !important;}
|
30
3rdparty/phpmailer/examples/styles/shThemeMidnight.css
vendored
Executable file
30
3rdparty/phpmailer/examples/styles/shThemeMidnight.css
vendored
Executable file
@ -0,0 +1,30 @@
|
||||
.syntaxhighlighter{background-color:#0f192a !important;}
|
||||
.syntaxhighlighter .line.alt1{background-color:#0f192a !important;}
|
||||
.syntaxhighlighter .line.alt2{background-color:#0f192a !important;}
|
||||
.syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#253e5a !important;}
|
||||
.syntaxhighlighter .line.highlighted.number{color:#38566f !important;}
|
||||
.syntaxhighlighter table caption{color:#d1edff !important;}
|
||||
.syntaxhighlighter .gutter{color:#afafaf !important;}
|
||||
.syntaxhighlighter .gutter .line{border-right:3px solid #435a5f !important;}
|
||||
.syntaxhighlighter .gutter .line.highlighted{background-color:#435a5f !important;color:#0f192a !important;}
|
||||
.syntaxhighlighter.printing .line .content{border:none !important;}
|
||||
.syntaxhighlighter.collapsed{overflow:visible !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{color:#428bdd !important;background:black !important;border:1px solid #435a5f !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a{color:#428bdd !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a:hover{color:#1dc116 !important;}
|
||||
.syntaxhighlighter .toolbar{color:#d1edff !important;background:#435a5f !important;border:none !important;}
|
||||
.syntaxhighlighter .toolbar a{color:#d1edff !important;}
|
||||
.syntaxhighlighter .toolbar a:hover{color:#8aa6c1 !important;}
|
||||
.syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:#d1edff !important;}
|
||||
.syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#428bdd !important;}
|
||||
.syntaxhighlighter .string,.syntaxhighlighter .string a{color:#1dc116 !important;}
|
||||
.syntaxhighlighter .keyword{color:#b43d3d !important;}
|
||||
.syntaxhighlighter .preprocessor{color:#8aa6c1 !important;}
|
||||
.syntaxhighlighter .variable{color:#ffaa3e !important;}
|
||||
.syntaxhighlighter .value{color:#f7e741 !important;}
|
||||
.syntaxhighlighter .functions{color:#ffaa3e !important;}
|
||||
.syntaxhighlighter .constants{color:#e0e8ff !important;}
|
||||
.syntaxhighlighter .script{font-weight:bold !important;color:#b43d3d !important;background-color:none !important;}
|
||||
.syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:#f8bb00 !important;}
|
||||
.syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:white !important;}
|
||||
.syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:#ffaa3e !important;}
|
30
3rdparty/phpmailer/examples/styles/shThemeRDark.css
vendored
Executable file
30
3rdparty/phpmailer/examples/styles/shThemeRDark.css
vendored
Executable file
@ -0,0 +1,30 @@
|
||||
.syntaxhighlighter{background-color:#1b2426 !important;}
|
||||
.syntaxhighlighter .line.alt1{background-color:#1b2426 !important;}
|
||||
.syntaxhighlighter .line.alt2{background-color:#1b2426 !important;}
|
||||
.syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#323e41 !important;}
|
||||
.syntaxhighlighter .line.highlighted.number{color:#b9bdb6 !important;}
|
||||
.syntaxhighlighter table caption{color:#b9bdb6 !important;}
|
||||
.syntaxhighlighter .gutter{color:#afafaf !important;}
|
||||
.syntaxhighlighter .gutter .line{border-right:3px solid #435a5f !important;}
|
||||
.syntaxhighlighter .gutter .line.highlighted{background-color:#435a5f !important;color:#1b2426 !important;}
|
||||
.syntaxhighlighter.printing .line .content{border:none !important;}
|
||||
.syntaxhighlighter.collapsed{overflow:visible !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{color:#5ba1cf !important;background:black !important;border:1px solid #435a5f !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a{color:#5ba1cf !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a:hover{color:#5ce638 !important;}
|
||||
.syntaxhighlighter .toolbar{color:white !important;background:#435a5f !important;border:none !important;}
|
||||
.syntaxhighlighter .toolbar a{color:white !important;}
|
||||
.syntaxhighlighter .toolbar a:hover{color:#e0e8ff !important;}
|
||||
.syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:#b9bdb6 !important;}
|
||||
.syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#878a85 !important;}
|
||||
.syntaxhighlighter .string,.syntaxhighlighter .string a{color:#5ce638 !important;}
|
||||
.syntaxhighlighter .keyword{color:#5ba1cf !important;}
|
||||
.syntaxhighlighter .preprocessor{color:#435a5f !important;}
|
||||
.syntaxhighlighter .variable{color:#ffaa3e !important;}
|
||||
.syntaxhighlighter .value{color:#009900 !important;}
|
||||
.syntaxhighlighter .functions{color:#ffaa3e !important;}
|
||||
.syntaxhighlighter .constants{color:#e0e8ff !important;}
|
||||
.syntaxhighlighter .script{font-weight:bold !important;color:#5ba1cf !important;background-color:none !important;}
|
||||
.syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:#e0e8ff !important;}
|
||||
.syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:white !important;}
|
||||
.syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:#ffaa3e !important;}
|
31
3rdparty/phpmailer/examples/styles/shThemeVisualStudio.css
vendored
Executable file
31
3rdparty/phpmailer/examples/styles/shThemeVisualStudio.css
vendored
Executable file
@ -0,0 +1,31 @@
|
||||
.syntaxhighlighter{background-color:white !important;}
|
||||
.syntaxhighlighter .line.alt1{background-color:white !important;}
|
||||
.syntaxhighlighter .line.alt2{background-color:white !important;}
|
||||
.syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#e0e0e0 !important;}
|
||||
.syntaxhighlighter .line.highlighted.number{color:black !important;}
|
||||
.syntaxhighlighter table caption{color:black !important;}
|
||||
.syntaxhighlighter .gutter{color:#afafaf !important;}
|
||||
.syntaxhighlighter .gutter .line{border-right:3px solid #6ce26c !important;}
|
||||
.syntaxhighlighter .gutter .line.highlighted{background-color:#6ce26c !important;color:white !important;}
|
||||
.syntaxhighlighter.printing .line .content{border:none !important;}
|
||||
.syntaxhighlighter.collapsed{overflow:visible !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar{color:blue !important;background:white !important;border:1px solid #6ce26c !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a{color:blue !important;}
|
||||
.syntaxhighlighter.collapsed .toolbar a:hover{color:red !important;}
|
||||
.syntaxhighlighter .toolbar{color:white !important;background:#6ce26c !important;border:none !important;}
|
||||
.syntaxhighlighter .toolbar a{color:white !important;}
|
||||
.syntaxhighlighter .toolbar a:hover{color:black !important;}
|
||||
.syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:black !important;}
|
||||
.syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#008200 !important;}
|
||||
.syntaxhighlighter .string,.syntaxhighlighter .string a{color:#d11010 !important;}
|
||||
.syntaxhighlighter .keyword{color:#006699 !important;}
|
||||
.syntaxhighlighter .preprocessor{color:gray !important;}
|
||||
.syntaxhighlighter .variable{color:#aa7700 !important;}
|
||||
.syntaxhighlighter .value{color:#009900 !important;}
|
||||
.syntaxhighlighter .functions{color:#ff1493 !important;}
|
||||
.syntaxhighlighter .constants{color:#0066cc !important;}
|
||||
.syntaxhighlighter .script{font-weight:bold !important;color:#006699 !important;background-color:none !important;}
|
||||
.syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:gray !important;}
|
||||
.syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:#ff1493 !important;}
|
||||
.syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:red !important;}
|
||||
.syntaxhighlighter .keyword{font-weight:bold !important;}
|
BIN
3rdparty/phpmailer/examples/styles/wrapping.png
vendored
Executable file
BIN
3rdparty/phpmailer/examples/styles/wrapping.png
vendored
Executable file
Binary file not shown.
After Width: | Height: | Size: 631 B |
90
3rdparty/phpmailer/extras/EasyPeasyICS.php
vendored
Executable file
90
3rdparty/phpmailer/extras/EasyPeasyICS.php
vendored
Executable file
@ -0,0 +1,90 @@
|
||||
<?php
|
||||
|
||||
/* ------------------------------------------------------------------------ */
|
||||
/* EasyPeasyICS
|
||||
/* ------------------------------------------------------------------------ */
|
||||
/* Manuel Reinhard, manu@sprain.ch
|
||||
/* Twitter: @sprain
|
||||
/* Web: www.sprain.ch
|
||||
/*
|
||||
/* Built with inspiration by
|
||||
/" http://stackoverflow.com/questions/1463480/how-can-i-use-php-to-dynamically-publish-an-ical-file-to-be-read-by-google-calend/1464355#1464355
|
||||
/* ------------------------------------------------------------------------ */
|
||||
/* History:
|
||||
/* 2010/12/17 - Manuel Reinhard - when it all started
|
||||
/* ------------------------------------------------------------------------ */
|
||||
|
||||
class EasyPeasyICS {
|
||||
|
||||
protected $calendarName;
|
||||
protected $events = array();
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param string $calendarName
|
||||
*/
|
||||
public function __construct($calendarName=""){
|
||||
$this->calendarName = $calendarName;
|
||||
}//function
|
||||
|
||||
|
||||
/**
|
||||
* Add event to calendar
|
||||
* @param string $calendarName
|
||||
*/
|
||||
public function addEvent($start, $end, $summary="", $description="", $url=""){
|
||||
$this->events[] = array(
|
||||
"start" => $start,
|
||||
"end" => $end,
|
||||
"summary" => $summary,
|
||||
"description" => $description,
|
||||
"url" => $url
|
||||
);
|
||||
}//function
|
||||
|
||||
|
||||
public function render($output = true){
|
||||
|
||||
//start Variable
|
||||
$ics = "";
|
||||
|
||||
//Add header
|
||||
$ics .= "BEGIN:VCALENDAR
|
||||
METHOD:PUBLISH
|
||||
VERSION:2.0
|
||||
X-WR-CALNAME:".$this->calendarName."
|
||||
PRODID:-//hacksw/handcal//NONSGML v1.0//EN";
|
||||
|
||||
//Add events
|
||||
foreach($this->events as $event){
|
||||
$ics .= "
|
||||
BEGIN:VEVENT
|
||||
UID:". md5(uniqid(mt_rand(), true)) ."@EasyPeasyICS.php
|
||||
DTSTAMP:" . gmdate('Ymd').'T'. gmdate('His') . "Z
|
||||
DTSTART:".gmdate('Ymd', $event["start"])."T".gmdate('His', $event["start"])."Z
|
||||
DTEND:".gmdate('Ymd', $event["end"])."T".gmdate('His', $event["end"])."Z
|
||||
SUMMARY:".str_replace("\n", "\\n", $event['summary'])."
|
||||
DESCRIPTION:".str_replace("\n", "\\n", $event['description'])."
|
||||
URL;VALUE=URI:".$event['url']."
|
||||
END:VEVENT";
|
||||
}//foreach
|
||||
|
||||
|
||||
//Footer
|
||||
$ics .= "
|
||||
END:VCALENDAR";
|
||||
|
||||
|
||||
if ($output) {
|
||||
//Output
|
||||
header('Content-type: text/calendar; charset=utf-8');
|
||||
header('Content-Disposition: inline; filename='.$this->calendarName.'.ics');
|
||||
echo $ics;
|
||||
} else {
|
||||
return $ics;
|
||||
}
|
||||
|
||||
}//function
|
||||
|
||||
}//class
|
21
3rdparty/phpmailer/extras/README.md
vendored
Executable file
21
3rdparty/phpmailer/extras/README.md
vendored
Executable file
@ -0,0 +1,21 @@
|
||||
#PHPMailer Extras
|
||||
|
||||
These classes provide optional additional functions to PHPMailer.
|
||||
|
||||
These are not loaded by the PHPMailer autoloader, so in some cases you may need to `require` them yourself before using them.
|
||||
|
||||
##HTML2Text
|
||||
|
||||
This class was written by Jon Abernathy and provides a simple conversion of HTML to plain-text, while attempting to preserve some aspects of the formatting. It is used in PHPMailer if you set the `advanced` parameter to `true` in either the `msgHTML()` or `html2text` methods of PHPMailer.
|
||||
|
||||
##EasyPeasyICS
|
||||
|
||||
This class was originally written by Manuel Reinhard and provides a simple means of generating ICS/vCal files that are used in sending calendar events. PHPMailer does not use it diorectly, but you can use it to generate content appropriate for placing in the `Ical` property of PHPMailer. The PHPMailer project is now its official home as Manuel has given permission for that and is no longer maintaining it himself.
|
||||
|
||||
##htmlfilter
|
||||
|
||||
This class by Konstantin Riabitsev and Jim Jagielski implements HTML filtering to remove potentially malicious tags, such as `<script>` or `onclick=` attributes that can result in XSS attacks. This is a simple filter and is not as comprehensive as [HTMLawed](http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/) or [HTMLPurifier](http://htmlpurifier.org), but it's easier to use and considerably better than nothing! PHPMailer does not use it directly, but you may want to apply it to user-supplied HTML before using it as a message body.
|
||||
|
||||
##NTLM_SASL_client
|
||||
|
||||
This class by Manuel Lemos (bundled with permission) adds the ability to authenticate with Microsoft Windows mail servers that use NTLM-based authentication. It is used by PHPMailer if you send via SMTP and set the `AuthType` property to `NTLM`; you will also need to use the `Realm` and `Workstation` properties. The original source is [here](http://www.phpclasses.org/browse/file/7495.html).
|
677
3rdparty/phpmailer/extras/class.html2text.php
vendored
Executable file
677
3rdparty/phpmailer/extras/class.html2text.php
vendored
Executable file
@ -0,0 +1,677 @@
|
||||
<?php
|
||||
/*************************************************************************
|
||||
* *
|
||||
* Converts HTML to formatted plain text *
|
||||
* *
|
||||
* Portions Copyright (c) 2005-2007 Jon Abernathy <jon@chuggnutt.com> *
|
||||
* *
|
||||
* This script is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* The GNU General Public License can be found at *
|
||||
* http://www.gnu.org/copyleft/gpl.html. *
|
||||
* *
|
||||
* This script 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 General Public License for more details. *
|
||||
* *
|
||||
*************************************************************************/
|
||||
|
||||
/**
|
||||
* Converts HTML to formatted plain text
|
||||
*/
|
||||
class Html2Text
|
||||
{
|
||||
/**
|
||||
* Contains the HTML content to convert.
|
||||
*
|
||||
* @type string
|
||||
*/
|
||||
protected $html;
|
||||
|
||||
/**
|
||||
* Contains the converted, formatted text.
|
||||
*
|
||||
* @type string
|
||||
*/
|
||||
protected $text;
|
||||
|
||||
/**
|
||||
* Maximum width of the formatted text, in columns.
|
||||
*
|
||||
* Set this value to 0 (or less) to ignore word wrapping
|
||||
* and not constrain text to a fixed-width column.
|
||||
*
|
||||
* @type integer
|
||||
*/
|
||||
protected $width = 70;
|
||||
|
||||
/**
|
||||
* List of preg* regular expression patterns to search for,
|
||||
* used in conjunction with $replace.
|
||||
*
|
||||
* @type array
|
||||
* @see $replace
|
||||
*/
|
||||
protected $search = array(
|
||||
"/\r/", // Non-legal carriage return
|
||||
"/[\n\t]+/", // Newlines and tabs
|
||||
'/<head[^>]*>.*?<\/head>/i', // <head>
|
||||
'/<script[^>]*>.*?<\/script>/i', // <script>s -- which strip_tags supposedly has problems with
|
||||
'/<style[^>]*>.*?<\/style>/i', // <style>s -- which strip_tags supposedly has problems with
|
||||
'/<p[^>]*>/i', // <P>
|
||||
'/<br[^>]*>/i', // <br>
|
||||
'/<i[^>]*>(.*?)<\/i>/i', // <i>
|
||||
'/<em[^>]*>(.*?)<\/em>/i', // <em>
|
||||
'/(<ul[^>]*>|<\/ul>)/i', // <ul> and </ul>
|
||||
'/(<ol[^>]*>|<\/ol>)/i', // <ol> and </ol>
|
||||
'/(<dl[^>]*>|<\/dl>)/i', // <dl> and </dl>
|
||||
'/<li[^>]*>(.*?)<\/li>/i', // <li> and </li>
|
||||
'/<dd[^>]*>(.*?)<\/dd>/i', // <dd> and </dd>
|
||||
'/<dt[^>]*>(.*?)<\/dt>/i', // <dt> and </dt>
|
||||
'/<li[^>]*>/i', // <li>
|
||||
'/<hr[^>]*>/i', // <hr>
|
||||
'/<div[^>]*>/i', // <div>
|
||||
'/(<table[^>]*>|<\/table>)/i', // <table> and </table>
|
||||
'/(<tr[^>]*>|<\/tr>)/i', // <tr> and </tr>
|
||||
'/<td[^>]*>(.*?)<\/td>/i', // <td> and </td>
|
||||
'/<span class="_html2text_ignore">.+?<\/span>/i' // <span class="_html2text_ignore">...</span>
|
||||
);
|
||||
|
||||
/**
|
||||
* List of pattern replacements corresponding to patterns searched.
|
||||
*
|
||||
* @type array
|
||||
* @see $search
|
||||
*/
|
||||
protected $replace = array(
|
||||
'', // Non-legal carriage return
|
||||
' ', // Newlines and tabs
|
||||
'', // <head>
|
||||
'', // <script>s -- which strip_tags supposedly has problems with
|
||||
'', // <style>s -- which strip_tags supposedly has problems with
|
||||
"\n\n", // <P>
|
||||
"\n", // <br>
|
||||
'_\\1_', // <i>
|
||||
'_\\1_', // <em>
|
||||
"\n\n", // <ul> and </ul>
|
||||
"\n\n", // <ol> and </ol>
|
||||
"\n\n", // <dl> and </dl>
|
||||
"\t* \\1\n", // <li> and </li>
|
||||
" \\1\n", // <dd> and </dd>
|
||||
"\t* \\1", // <dt> and </dt>
|
||||
"\n\t* ", // <li>
|
||||
"\n-------------------------\n", // <hr>
|
||||
"<div>\n", // <div>
|
||||
"\n\n", // <table> and </table>
|
||||
"\n", // <tr> and </tr>
|
||||
"\t\t\\1\n", // <td> and </td>
|
||||
"" // <span class="_html2text_ignore">...</span>
|
||||
);
|
||||
|
||||
/**
|
||||
* List of preg* regular expression patterns to search for,
|
||||
* used in conjunction with $ent_replace.
|
||||
*
|
||||
* @type array
|
||||
* @see $ent_replace
|
||||
*/
|
||||
protected $ent_search = array(
|
||||
'/&(nbsp|#160);/i', // Non-breaking space
|
||||
'/&(quot|rdquo|ldquo|#8220|#8221|#147|#148);/i',
|
||||
// Double quotes
|
||||
'/&(apos|rsquo|lsquo|#8216|#8217);/i', // Single quotes
|
||||
'/>/i', // Greater-than
|
||||
'/</i', // Less-than
|
||||
'/&(copy|#169);/i', // Copyright
|
||||
'/&(trade|#8482|#153);/i', // Trademark
|
||||
'/&(reg|#174);/i', // Registered
|
||||
'/&(mdash|#151|#8212);/i', // mdash
|
||||
'/&(ndash|minus|#8211|#8722);/i', // ndash
|
||||
'/&(bull|#149|#8226);/i', // Bullet
|
||||
'/&(pound|#163);/i', // Pound sign
|
||||
'/&(euro|#8364);/i', // Euro sign
|
||||
'/&(amp|#38);/i', // Ampersand: see _converter()
|
||||
'/[ ]{2,}/', // Runs of spaces, post-handling
|
||||
);
|
||||
|
||||
/**
|
||||
* List of pattern replacements corresponding to patterns searched.
|
||||
*
|
||||
* @type array
|
||||
* @see $ent_search
|
||||
*/
|
||||
protected $ent_replace = array(
|
||||
' ', // Non-breaking space
|
||||
'"', // Double quotes
|
||||
"'", // Single quotes
|
||||
'>',
|
||||
'<',
|
||||
'(c)',
|
||||
'(tm)',
|
||||
'(R)',
|
||||
'--',
|
||||
'-',
|
||||
'*',
|
||||
'£',
|
||||
'EUR', // Euro sign. € ?
|
||||
'|+|amp|+|', // Ampersand: see _converter()
|
||||
' ', // Runs of spaces, post-handling
|
||||
);
|
||||
|
||||
/**
|
||||
* List of preg* regular expression patterns to search for
|
||||
* and replace using callback function.
|
||||
*
|
||||
* @type array
|
||||
*/
|
||||
protected $callback_search = array(
|
||||
'/<(a) [^>]*href=("|\')([^"\']+)\2([^>]*)>(.*?)<\/a>/i', // <a href="">
|
||||
'/<(h)[123456]( [^>]*)?>(.*?)<\/h[123456]>/i', // h1 - h6
|
||||
'/<(b)( [^>]*)?>(.*?)<\/b>/i', // <b>
|
||||
'/<(strong)( [^>]*)?>(.*?)<\/strong>/i', // <strong>
|
||||
'/<(th)( [^>]*)?>(.*?)<\/th>/i', // <th> and </th>
|
||||
);
|
||||
|
||||
/**
|
||||
* List of preg* regular expression patterns to search for in PRE body,
|
||||
* used in conjunction with $pre_replace.
|
||||
*
|
||||
* @type array
|
||||
* @see $pre_replace
|
||||
*/
|
||||
protected $pre_search = array(
|
||||
"/\n/",
|
||||
"/\t/",
|
||||
'/ /',
|
||||
'/<pre[^>]*>/',
|
||||
'/<\/pre>/'
|
||||
);
|
||||
|
||||
/**
|
||||
* List of pattern replacements corresponding to patterns searched for PRE body.
|
||||
*
|
||||
* @type array
|
||||
* @see $pre_search
|
||||
*/
|
||||
protected $pre_replace = array(
|
||||
'<br>',
|
||||
' ',
|
||||
' ',
|
||||
'',
|
||||
''
|
||||
);
|
||||
|
||||
/**
|
||||
* Temporary workspace used during PRE processing.
|
||||
*
|
||||
* @type string
|
||||
*/
|
||||
protected $pre_content = '';
|
||||
|
||||
/**
|
||||
* Contains a list of HTML tags to allow in the resulting text.
|
||||
*
|
||||
* @type string
|
||||
* @see set_allowed_tags()
|
||||
*/
|
||||
protected $allowed_tags = '';
|
||||
|
||||
/**
|
||||
* Contains the base URL that relative links should resolve to.
|
||||
*
|
||||
* @type string
|
||||
*/
|
||||
protected $url;
|
||||
|
||||
/**
|
||||
* Indicates whether content in the $html variable has been converted yet.
|
||||
*
|
||||
* @type boolean
|
||||
* @see $html, $text
|
||||
*/
|
||||
protected $_converted = false;
|
||||
|
||||
/**
|
||||
* Contains URL addresses from links to be rendered in plain text.
|
||||
*
|
||||
* @type array
|
||||
* @see _build_link_list()
|
||||
*/
|
||||
protected $_link_list = array();
|
||||
|
||||
/**
|
||||
* Various configuration options (able to be set in the constructor)
|
||||
*
|
||||
* @type array
|
||||
*/
|
||||
protected $_options = array(
|
||||
// 'none'
|
||||
// 'inline' (show links inline)
|
||||
// 'nextline' (show links on the next line)
|
||||
// 'table' (if a table of link URLs should be listed after the text.
|
||||
'do_links' => 'inline',
|
||||
// Maximum width of the formatted text, in columns.
|
||||
// Set this value to 0 (or less) to ignore word wrapping
|
||||
// and not constrain text to a fixed-width column.
|
||||
'width' => 70,
|
||||
);
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* If the HTML source string (or file) is supplied, the class
|
||||
* will instantiate with that source propagated, all that has
|
||||
* to be done it to call get_text().
|
||||
*
|
||||
* @param string $source HTML content
|
||||
* @param boolean $from_file Indicates $source is a file to pull content from
|
||||
* @param array $options Set configuration options
|
||||
*/
|
||||
public function __construct($source = '', $from_file = false, $options = array())
|
||||
{
|
||||
$this->_options = array_merge($this->_options, $options);
|
||||
|
||||
if (!empty($source)) {
|
||||
$this->set_html($source, $from_file);
|
||||
}
|
||||
|
||||
$this->set_base_url();
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads source HTML into memory, either from $source string or a file.
|
||||
*
|
||||
* @param string $source HTML content
|
||||
* @param boolean $from_file Indicates $source is a file to pull content from
|
||||
*/
|
||||
public function set_html($source, $from_file = false)
|
||||
{
|
||||
if ($from_file && file_exists($source)) {
|
||||
$this->html = file_get_contents($source);
|
||||
} else {
|
||||
$this->html = $source;
|
||||
}
|
||||
|
||||
$this->_converted = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the text, converted from HTML.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_text()
|
||||
{
|
||||
if (!$this->_converted) {
|
||||
$this->_convert();
|
||||
}
|
||||
|
||||
return $this->text;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints the text, converted from HTML.
|
||||
*/
|
||||
public function print_text()
|
||||
{
|
||||
print $this->get_text();
|
||||
}
|
||||
|
||||
/**
|
||||
* Alias to print_text(), operates identically.
|
||||
*
|
||||
* @see print_text()
|
||||
*/
|
||||
public function p()
|
||||
{
|
||||
print $this->get_text();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the allowed HTML tags to pass through to the resulting text.
|
||||
*
|
||||
* Tags should be in the form "<p>", with no corresponding closing tag.
|
||||
* @param string $allowed_tags
|
||||
*/
|
||||
public function set_allowed_tags($allowed_tags = '')
|
||||
{
|
||||
if (!empty($allowed_tags)) {
|
||||
$this->allowed_tags = $allowed_tags;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a base URL to handle relative links.
|
||||
*
|
||||
* @param string $url
|
||||
*/
|
||||
public function set_base_url($url = '')
|
||||
{
|
||||
if (empty($url)) {
|
||||
if (!empty($_SERVER['HTTP_HOST'])) {
|
||||
$this->url = 'http://' . $_SERVER['HTTP_HOST'];
|
||||
} else {
|
||||
$this->url = '';
|
||||
}
|
||||
} else {
|
||||
// Strip any trailing slashes for consistency (relative
|
||||
// URLs may already start with a slash like "/file.html")
|
||||
if (substr($url, -1) == '/') {
|
||||
$url = substr($url, 0, -1);
|
||||
}
|
||||
$this->url = $url;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Workhorse function that does actual conversion (calls _converter() method).
|
||||
*/
|
||||
protected function _convert()
|
||||
{
|
||||
// Variables used for building the link list
|
||||
$this->_link_list = array();
|
||||
|
||||
$text = trim(stripslashes($this->html));
|
||||
|
||||
// Convert HTML to TXT
|
||||
$this->_converter($text);
|
||||
|
||||
// Add link list
|
||||
if (!empty($this->_link_list)) {
|
||||
$text .= "\n\nLinks:\n------\n";
|
||||
foreach ($this->_link_list as $idx => $url) {
|
||||
$text .= '[' . ($idx + 1) . '] ' . $url . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
$this->text = $text;
|
||||
|
||||
$this->_converted = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Workhorse function that does actual conversion.
|
||||
*
|
||||
* First performs custom tag replacement specified by $search and
|
||||
* $replace arrays. Then strips any remaining HTML tags, reduces whitespace
|
||||
* and newlines to a readable format, and word wraps the text to
|
||||
* $this->_options['width'] characters.
|
||||
*
|
||||
* @param string $text Reference to HTML content string
|
||||
*/
|
||||
protected function _converter(&$text)
|
||||
{
|
||||
// Convert <BLOCKQUOTE> (before PRE!)
|
||||
$this->_convert_blockquotes($text);
|
||||
|
||||
// Convert <PRE>
|
||||
$this->_convert_pre($text);
|
||||
|
||||
// Run our defined tags search-and-replace
|
||||
$text = preg_replace($this->search, $this->replace, $text);
|
||||
|
||||
// Run our defined tags search-and-replace with callback
|
||||
$text = preg_replace_callback($this->callback_search, array($this, '_preg_callback'), $text);
|
||||
|
||||
// Strip any other HTML tags
|
||||
$text = strip_tags($text, $this->allowed_tags);
|
||||
|
||||
// Run our defined entities/characters search-and-replace
|
||||
$text = preg_replace($this->ent_search, $this->ent_replace, $text);
|
||||
|
||||
// Replace known html entities
|
||||
$text = html_entity_decode($text, ENT_QUOTES);
|
||||
|
||||
// Remove unknown/unhandled entities (this cannot be done in search-and-replace block)
|
||||
$text = preg_replace('/&([a-zA-Z0-9]{2,6}|#[0-9]{2,4});/', '', $text);
|
||||
|
||||
// Convert "|+|amp|+|" into "&", need to be done after handling of unknown entities
|
||||
// This properly handles situation of "&quot;" in input string
|
||||
$text = str_replace('|+|amp|+|', '&', $text);
|
||||
|
||||
// Bring down number of empty lines to 2 max
|
||||
$text = preg_replace("/\n\s+\n/", "\n\n", $text);
|
||||
$text = preg_replace("/[\n]{3,}/", "\n\n", $text);
|
||||
|
||||
// remove leading empty lines (can be produced by eg. P tag on the beginning)
|
||||
$text = ltrim($text, "\n");
|
||||
|
||||
// Wrap the text to a readable format
|
||||
// for PHP versions >= 4.0.2. Default width is 75
|
||||
// If width is 0 or less, don't wrap the text.
|
||||
if ($this->_options['width'] > 0) {
|
||||
$text = wordwrap($text, $this->_options['width']);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function called by preg_replace() on link replacement.
|
||||
*
|
||||
* Maintains an internal list of links to be displayed at the end of the
|
||||
* text, with numeric indices to the original point in the text they
|
||||
* appeared. Also makes an effort at identifying and handling absolute
|
||||
* and relative links.
|
||||
*
|
||||
* @param string $link URL of the link
|
||||
* @param string $display Part of the text to associate number with
|
||||
* @param null $link_override
|
||||
* @return string
|
||||
*/
|
||||
protected function _build_link_list($link, $display, $link_override = null)
|
||||
{
|
||||
$link_method = ($link_override) ? $link_override : $this->_options['do_links'];
|
||||
if ($link_method == 'none') {
|
||||
return $display;
|
||||
}
|
||||
|
||||
|
||||
// Ignored link types
|
||||
if (preg_match('!^(javascript:|mailto:|#)!i', $link)) {
|
||||
return $display;
|
||||
}
|
||||
|
||||
if (preg_match('!^([a-z][a-z0-9.+-]+:)!i', $link)) {
|
||||
$url = $link;
|
||||
} else {
|
||||
$url = $this->url;
|
||||
if (substr($link, 0, 1) != '/') {
|
||||
$url .= '/';
|
||||
}
|
||||
$url .= "$link";
|
||||
}
|
||||
|
||||
if ($link_method == 'table') {
|
||||
if (($index = array_search($url, $this->_link_list)) === false) {
|
||||
$index = count($this->_link_list);
|
||||
$this->_link_list[] = $url;
|
||||
}
|
||||
|
||||
return $display . ' [' . ($index + 1) . ']';
|
||||
} elseif ($link_method == 'nextline') {
|
||||
return $display . "\n[" . $url . ']';
|
||||
} else { // link_method defaults to inline
|
||||
|
||||
return $display . ' [' . $url . ']';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function for PRE body conversion.
|
||||
*
|
||||
* @param string $text HTML content
|
||||
*/
|
||||
protected function _convert_pre(&$text)
|
||||
{
|
||||
// get the content of PRE element
|
||||
while (preg_match('/<pre[^>]*>(.*)<\/pre>/ismU', $text, $matches)) {
|
||||
$this->pre_content = $matches[1];
|
||||
|
||||
// Run our defined tags search-and-replace with callback
|
||||
$this->pre_content = preg_replace_callback(
|
||||
$this->callback_search,
|
||||
array($this, '_preg_callback'),
|
||||
$this->pre_content
|
||||
);
|
||||
|
||||
// convert the content
|
||||
$this->pre_content = sprintf(
|
||||
'<div><br>%s<br></div>',
|
||||
preg_replace($this->pre_search, $this->pre_replace, $this->pre_content)
|
||||
);
|
||||
|
||||
// replace the content (use callback because content can contain $0 variable)
|
||||
$text = preg_replace_callback(
|
||||
'/<pre[^>]*>.*<\/pre>/ismU',
|
||||
array($this, '_preg_pre_callback'),
|
||||
$text,
|
||||
1
|
||||
);
|
||||
|
||||
// free memory
|
||||
$this->pre_content = '';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function for BLOCKQUOTE body conversion.
|
||||
*
|
||||
* @param string $text HTML content
|
||||
*/
|
||||
protected function _convert_blockquotes(&$text)
|
||||
{
|
||||
if (preg_match_all('/<\/*blockquote[^>]*>/i', $text, $matches, PREG_OFFSET_CAPTURE)) {
|
||||
$start = 0;
|
||||
$taglen = 0;
|
||||
$level = 0;
|
||||
$diff = 0;
|
||||
foreach ($matches[0] as $m) {
|
||||
if ($m[0][0] == '<' && $m[0][1] == '/') {
|
||||
$level--;
|
||||
if ($level < 0) {
|
||||
$level = 0; // malformed HTML: go to next blockquote
|
||||
} elseif ($level > 0) {
|
||||
// skip inner blockquote
|
||||
} else {
|
||||
$end = $m[1];
|
||||
$len = $end - $taglen - $start;
|
||||
// Get blockquote content
|
||||
$body = substr($text, $start + $taglen - $diff, $len);
|
||||
|
||||
// Set text width
|
||||
$p_width = $this->_options['width'];
|
||||
if ($this->_options['width'] > 0) $this->_options['width'] -= 2;
|
||||
// Convert blockquote content
|
||||
$body = trim($body);
|
||||
$this->_converter($body);
|
||||
// Add citation markers and create PRE block
|
||||
$body = preg_replace('/((^|\n)>*)/', '\\1> ', trim($body));
|
||||
$body = '<pre>' . htmlspecialchars($body) . '</pre>';
|
||||
// Re-set text width
|
||||
$this->_options['width'] = $p_width;
|
||||
// Replace content
|
||||
$text = substr($text, 0, $start - $diff)
|
||||
. $body . substr($text, $end + strlen($m[0]) - $diff);
|
||||
|
||||
$diff = $len + $taglen + strlen($m[0]) - strlen($body);
|
||||
unset($body);
|
||||
}
|
||||
} else {
|
||||
if ($level == 0) {
|
||||
$start = $m[1];
|
||||
$taglen = strlen($m[0]);
|
||||
}
|
||||
$level++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Callback function for preg_replace_callback use.
|
||||
*
|
||||
* @param array $matches PREG matches
|
||||
* @return string
|
||||
*/
|
||||
protected function _preg_callback($matches)
|
||||
{
|
||||
switch (strtolower($matches[1])) {
|
||||
case 'b':
|
||||
case 'strong':
|
||||
return $this->_toupper($matches[3]);
|
||||
case 'th':
|
||||
return $this->_toupper("\t\t" . $matches[3] . "\n");
|
||||
case 'h':
|
||||
return $this->_toupper("\n\n" . $matches[3] . "\n\n");
|
||||
case 'a':
|
||||
// override the link method
|
||||
$link_override = null;
|
||||
if (preg_match('/_html2text_link_(\w+)/', $matches[4], $link_override_match)) {
|
||||
$link_override = $link_override_match[1];
|
||||
}
|
||||
// Remove spaces in URL (#1487805)
|
||||
$url = str_replace(' ', '', $matches[3]);
|
||||
|
||||
return $this->_build_link_list($url, $matches[5], $link_override);
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Callback function for preg_replace_callback use in PRE content handler.
|
||||
*
|
||||
* @param array $matches PREG matches
|
||||
* @return string
|
||||
*/
|
||||
protected function _preg_pre_callback(
|
||||
/** @noinspection PhpUnusedParameterInspection */
|
||||
$matches)
|
||||
{
|
||||
return $this->pre_content;
|
||||
}
|
||||
|
||||
/**
|
||||
* Strtoupper function with HTML tags and entities handling.
|
||||
*
|
||||
* @param string $str Text to convert
|
||||
* @return string Converted text
|
||||
*/
|
||||
private function _toupper($str)
|
||||
{
|
||||
// string can contain HTML tags
|
||||
$chunks = preg_split('/(<[^>]*>)/', $str, null, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
|
||||
|
||||
// convert toupper only the text between HTML tags
|
||||
foreach ($chunks as $idx => $chunk) {
|
||||
if ($chunk[0] != '<') {
|
||||
$chunks[$idx] = $this->_strtoupper($chunk);
|
||||
}
|
||||
}
|
||||
|
||||
return implode($chunks);
|
||||
}
|
||||
|
||||
/**
|
||||
* Strtoupper multibyte wrapper function with HTML entities handling.
|
||||
* Forces mb_strtoupper-call to UTF-8.
|
||||
*
|
||||
* @param string $str Text to convert
|
||||
* @return string Converted text
|
||||
*/
|
||||
private function _strtoupper($str)
|
||||
{
|
||||
$str = html_entity_decode($str, ENT_COMPAT);
|
||||
|
||||
if (function_exists('mb_strtoupper'))
|
||||
$str = mb_strtoupper($str, 'UTF-8');
|
||||
else
|
||||
$str = strtoupper($str);
|
||||
|
||||
$str = htmlspecialchars($str, ENT_COMPAT);
|
||||
|
||||
return $str;
|
||||
}
|
||||
}
|
874
3rdparty/phpmailer/extras/htmlfilter.php
vendored
Executable file
874
3rdparty/phpmailer/extras/htmlfilter.php
vendored
Executable file
@ -0,0 +1,874 @@
|
||||
<?php
|
||||
/**
|
||||
* htmlfilter.inc
|
||||
* ---------------
|
||||
* This set of functions allows you to filter html in order to remove
|
||||
* any malicious tags from it. Useful in cases when you need to filter
|
||||
* user input for any cross-site-scripting attempts.
|
||||
*
|
||||
* Copyright (C) 2002-2004 by Duke University
|
||||
*
|
||||
* 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 2.1 of the License, or (at your option) 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 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
|
||||
*
|
||||
* @Author Konstantin Riabitsev <icon@linux.duke.edu>
|
||||
* @Author Jim Jagielski <jim@jaguNET.com / jimjag@gmail.com>
|
||||
*/
|
||||
|
||||
/**
|
||||
* This function returns the final tag out of the tag name, an array
|
||||
* of attributes, and the type of the tag. This function is called by
|
||||
* tln_sanitize internally.
|
||||
*
|
||||
* @param string $tagname the name of the tag.
|
||||
* @param array $attary the array of attributes and their values
|
||||
* @param integer $tagtype The type of the tag (see in comments).
|
||||
* @return string A string with the final tag representation.
|
||||
*/
|
||||
function tln_tagprint($tagname, $attary, $tagtype)
|
||||
{
|
||||
if ($tagtype == 2) {
|
||||
$fulltag = '</' . $tagname . '>';
|
||||
} else {
|
||||
$fulltag = '<' . $tagname;
|
||||
if (is_array($attary) && sizeof($attary)) {
|
||||
$atts = array();
|
||||
while (list($attname, $attvalue) = each($attary)) {
|
||||
array_push($atts, "$attname=$attvalue");
|
||||
}
|
||||
$fulltag .= ' ' . join(' ', $atts);
|
||||
}
|
||||
if ($tagtype == 3) {
|
||||
$fulltag .= ' /';
|
||||
}
|
||||
$fulltag .= '>';
|
||||
}
|
||||
return $fulltag;
|
||||
}
|
||||
|
||||
/**
|
||||
* A small helper function to use with array_walk. Modifies a by-ref
|
||||
* value and makes it lowercase.
|
||||
*
|
||||
* @param string $val a value passed by-ref.
|
||||
* @return void since it modifies a by-ref value.
|
||||
*/
|
||||
function tln_casenormalize(&$val)
|
||||
{
|
||||
$val = strtolower($val);
|
||||
}
|
||||
|
||||
/**
|
||||
* This function skips any whitespace from the current position within
|
||||
* a string and to the next non-whitespace value.
|
||||
*
|
||||
* @param string $body the string
|
||||
* @param integer $offset the offset within the string where we should start
|
||||
* looking for the next non-whitespace character.
|
||||
* @return integer the location within the $body where the next
|
||||
* non-whitespace char is located.
|
||||
*/
|
||||
function tln_skipspace($body, $offset)
|
||||
{
|
||||
preg_match('/^(\s*)/s', substr($body, $offset), $matches);
|
||||
if (sizeof($matches[1])) {
|
||||
$count = strlen($matches[1]);
|
||||
$offset += $count;
|
||||
}
|
||||
return $offset;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function looks for the next character within a string. It's
|
||||
* really just a glorified "strpos", except it catches the failures
|
||||
* nicely.
|
||||
*
|
||||
* @param string $body The string to look for needle in.
|
||||
* @param integer $offset Start looking from this position.
|
||||
* @param string $needle The character/string to look for.
|
||||
* @return integer location of the next occurrence of the needle, or
|
||||
* strlen($body) if needle wasn't found.
|
||||
*/
|
||||
function tln_findnxstr($body, $offset, $needle)
|
||||
{
|
||||
$pos = strpos($body, $needle, $offset);
|
||||
if ($pos === false) {
|
||||
$pos = strlen($body);
|
||||
}
|
||||
return $pos;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function takes a PCRE-style regexp and tries to match it
|
||||
* within the string.
|
||||
*
|
||||
* @param string $body The string to look for needle in.
|
||||
* @param integer $offset Start looking from here.
|
||||
* @param string $reg A PCRE-style regex to match.
|
||||
* @return array|boolean Returns a false if no matches found, or an array
|
||||
* with the following members:
|
||||
* - integer with the location of the match within $body
|
||||
* - string with whatever content between offset and the match
|
||||
* - string with whatever it is we matched
|
||||
*/
|
||||
function tln_findnxreg($body, $offset, $reg)
|
||||
{
|
||||
$matches = array();
|
||||
$retarr = array();
|
||||
$preg_rule = '%^(.*?)(' . $reg . ')%s';
|
||||
preg_match($preg_rule, substr($body, $offset), $matches);
|
||||
if (!isset($matches[0])) {
|
||||
$retarr = false;
|
||||
} else {
|
||||
$retarr[0] = $offset + strlen($matches[1]);
|
||||
$retarr[1] = $matches[1];
|
||||
$retarr[2] = $matches[2];
|
||||
}
|
||||
return $retarr;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function looks for the next tag.
|
||||
*
|
||||
* @param string $body String where to look for the next tag.
|
||||
* @param integer $offset Start looking from here.
|
||||
* @return array|boolean false if no more tags exist in the body, or
|
||||
* an array with the following members:
|
||||
* - string with the name of the tag
|
||||
* - array with attributes and their values
|
||||
* - integer with tag type (1, 2, or 3)
|
||||
* - integer where the tag starts (starting "<")
|
||||
* - integer where the tag ends (ending ">")
|
||||
* first three members will be false, if the tag is invalid.
|
||||
*/
|
||||
function tln_getnxtag($body, $offset)
|
||||
{
|
||||
if ($offset > strlen($body)) {
|
||||
return false;
|
||||
}
|
||||
$lt = tln_findnxstr($body, $offset, '<');
|
||||
if ($lt == strlen($body)) {
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* We are here:
|
||||
* blah blah <tag attribute="value">
|
||||
* \---------^
|
||||
*/
|
||||
$pos = tln_skipspace($body, $lt + 1);
|
||||
if ($pos >= strlen($body)) {
|
||||
return array(false, false, false, $lt, strlen($body));
|
||||
}
|
||||
/**
|
||||
* There are 3 kinds of tags:
|
||||
* 1. Opening tag, e.g.:
|
||||
* <a href="blah">
|
||||
* 2. Closing tag, e.g.:
|
||||
* </a>
|
||||
* 3. XHTML-style content-less tag, e.g.:
|
||||
* <img src="blah"/>
|
||||
*/
|
||||
switch (substr($body, $pos, 1)) {
|
||||
case '/':
|
||||
$tagtype = 2;
|
||||
$pos++;
|
||||
break;
|
||||
case '!':
|
||||
/**
|
||||
* A comment or an SGML declaration.
|
||||
*/
|
||||
if (substr($body, $pos + 1, 2) == '--') {
|
||||
$gt = strpos($body, '-->', $pos);
|
||||
if ($gt === false) {
|
||||
$gt = strlen($body);
|
||||
} else {
|
||||
$gt += 2;
|
||||
}
|
||||
return array(false, false, false, $lt, $gt);
|
||||
} else {
|
||||
$gt = tln_findnxstr($body, $pos, '>');
|
||||
return array(false, false, false, $lt, $gt);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
/**
|
||||
* Assume tagtype 1 for now. If it's type 3, we'll switch values
|
||||
* later.
|
||||
*/
|
||||
$tagtype = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
/**
|
||||
* Look for next [\W-_], which will indicate the end of the tag name.
|
||||
*/
|
||||
$regary = tln_findnxreg($body, $pos, '[^\w\-_]');
|
||||
if ($regary == false) {
|
||||
return array(false, false, false, $lt, strlen($body));
|
||||
}
|
||||
list($pos, $tagname, $match) = $regary;
|
||||
$tagname = strtolower($tagname);
|
||||
|
||||
/**
|
||||
* $match can be either of these:
|
||||
* '>' indicating the end of the tag entirely.
|
||||
* '\s' indicating the end of the tag name.
|
||||
* '/' indicating that this is type-3 xhtml tag.
|
||||
*
|
||||
* Whatever else we find there indicates an invalid tag.
|
||||
*/
|
||||
switch ($match) {
|
||||
case '/':
|
||||
/**
|
||||
* This is an xhtml-style tag with a closing / at the
|
||||
* end, like so: <img src="blah"/>. Check if it's followed
|
||||
* by the closing bracket. If not, then this tag is invalid
|
||||
*/
|
||||
if (substr($body, $pos, 2) == '/>') {
|
||||
$pos++;
|
||||
$tagtype = 3;
|
||||
} else {
|
||||
$gt = tln_findnxstr($body, $pos, '>');
|
||||
$retary = array(false, false, false, $lt, $gt);
|
||||
return $retary;
|
||||
}
|
||||
//intentional fall-through
|
||||
case '>':
|
||||
return array($tagname, false, $tagtype, $lt, $pos);
|
||||
break;
|
||||
default:
|
||||
/**
|
||||
* Check if it's whitespace
|
||||
*/
|
||||
if (preg_match('/\s/', $match)) {
|
||||
} else {
|
||||
/**
|
||||
* This is an invalid tag! Look for the next closing ">".
|
||||
*/
|
||||
$gt = tln_findnxstr($body, $lt, '>');
|
||||
return array(false, false, false, $lt, $gt);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* At this point we're here:
|
||||
* <tagname attribute='blah'>
|
||||
* \-------^
|
||||
*
|
||||
* At this point we loop in order to find all attributes.
|
||||
*/
|
||||
$attary = array();
|
||||
|
||||
while ($pos <= strlen($body)) {
|
||||
$pos = tln_skipspace($body, $pos);
|
||||
if ($pos == strlen($body)) {
|
||||
/**
|
||||
* Non-closed tag.
|
||||
*/
|
||||
return array(false, false, false, $lt, $pos);
|
||||
}
|
||||
/**
|
||||
* See if we arrived at a ">" or "/>", which means that we reached
|
||||
* the end of the tag.
|
||||
*/
|
||||
$matches = array();
|
||||
preg_match('%^(\s*)(>|/>)%s', substr($body, $pos), $matches);
|
||||
if (isset($matches[0]) && $matches[0]) {
|
||||
/**
|
||||
* Yep. So we did.
|
||||
*/
|
||||
$pos += strlen($matches[1]);
|
||||
if ($matches[2] == '/>') {
|
||||
$tagtype = 3;
|
||||
$pos++;
|
||||
}
|
||||
return array($tagname, $attary, $tagtype, $lt, $pos);
|
||||
}
|
||||
|
||||
/**
|
||||
* There are several types of attributes, with optional
|
||||
* [:space:] between members.
|
||||
* Type 1:
|
||||
* attrname[:space:]=[:space:]'CDATA'
|
||||
* Type 2:
|
||||
* attrname[:space:]=[:space:]"CDATA"
|
||||
* Type 3:
|
||||
* attr[:space:]=[:space:]CDATA
|
||||
* Type 4:
|
||||
* attrname
|
||||
*
|
||||
* We leave types 1 and 2 the same, type 3 we check for
|
||||
* '"' and convert to """ if needed, then wrap in
|
||||
* double quotes. Type 4 we convert into:
|
||||
* attrname="yes".
|
||||
*/
|
||||
$regary = tln_findnxreg($body, $pos, '[^\w\-_]');
|
||||
if ($regary == false) {
|
||||
/**
|
||||
* Looks like body ended before the end of tag.
|
||||
*/
|
||||
return array(false, false, false, $lt, strlen($body));
|
||||
}
|
||||
list($pos, $attname, $match) = $regary;
|
||||
$attname = strtolower($attname);
|
||||
/**
|
||||
* We arrived at the end of attribute name. Several things possible
|
||||
* here:
|
||||
* '>' means the end of the tag and this is attribute type 4
|
||||
* '/' if followed by '>' means the same thing as above
|
||||
* '\s' means a lot of things -- look what it's followed by.
|
||||
* anything else means the attribute is invalid.
|
||||
*/
|
||||
switch ($match) {
|
||||
case '/':
|
||||
/**
|
||||
* This is an xhtml-style tag with a closing / at the
|
||||
* end, like so: <img src="blah"/>. Check if it's followed
|
||||
* by the closing bracket. If not, then this tag is invalid
|
||||
*/
|
||||
if (substr($body, $pos, 2) == '/>') {
|
||||
$pos++;
|
||||
$tagtype = 3;
|
||||
} else {
|
||||
$gt = tln_findnxstr($body, $pos, '>');
|
||||
$retary = array(false, false, false, $lt, $gt);
|
||||
return $retary;
|
||||
}
|
||||
//intentional fall-through
|
||||
case '>':
|
||||
$attary{$attname} = '"yes"';
|
||||
return array($tagname, $attary, $tagtype, $lt, $pos);
|
||||
break;
|
||||
default:
|
||||
/**
|
||||
* Skip whitespace and see what we arrive at.
|
||||
*/
|
||||
$pos = tln_skipspace($body, $pos);
|
||||
$char = substr($body, $pos, 1);
|
||||
/**
|
||||
* Two things are valid here:
|
||||
* '=' means this is attribute type 1 2 or 3.
|
||||
* \w means this was attribute type 4.
|
||||
* anything else we ignore and re-loop. End of tag and
|
||||
* invalid stuff will be caught by our checks at the beginning
|
||||
* of the loop.
|
||||
*/
|
||||
if ($char == '=') {
|
||||
$pos++;
|
||||
$pos = tln_skipspace($body, $pos);
|
||||
/**
|
||||
* Here are 3 possibilities:
|
||||
* "'" attribute type 1
|
||||
* '"' attribute type 2
|
||||
* everything else is the content of tag type 3
|
||||
*/
|
||||
$quot = substr($body, $pos, 1);
|
||||
if ($quot == '\'') {
|
||||
$regary = tln_findnxreg($body, $pos + 1, '\'');
|
||||
if ($regary == false) {
|
||||
return array(false, false, false, $lt, strlen($body));
|
||||
}
|
||||
list($pos, $attval, $match) = $regary;
|
||||
$pos++;
|
||||
$attary{$attname} = '\'' . $attval . '\'';
|
||||
} else {
|
||||
if ($quot == '"') {
|
||||
$regary = tln_findnxreg($body, $pos + 1, '\"');
|
||||
if ($regary == false) {
|
||||
return array(false, false, false, $lt, strlen($body));
|
||||
}
|
||||
list($pos, $attval, $match) = $regary;
|
||||
$pos++;
|
||||
$attary{$attname} = '"' . $attval . '"';
|
||||
} else {
|
||||
/**
|
||||
* These are hateful. Look for \s, or >.
|
||||
*/
|
||||
$regary = tln_findnxreg($body, $pos, '[\s>]');
|
||||
if ($regary == false) {
|
||||
return array(false, false, false, $lt, strlen($body));
|
||||
}
|
||||
list($pos, $attval, $match) = $regary;
|
||||
/**
|
||||
* If it's ">" it will be caught at the top.
|
||||
*/
|
||||
$attval = preg_replace('/\"/s', '"', $attval);
|
||||
$attary{$attname} = '"' . $attval . '"';
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (preg_match('|[\w/>]|', $char)) {
|
||||
/**
|
||||
* That was attribute type 4.
|
||||
*/
|
||||
$attary{$attname} = '"yes"';
|
||||
} else {
|
||||
/**
|
||||
* An illegal character. Find next '>' and return.
|
||||
*/
|
||||
$gt = tln_findnxstr($body, $pos, '>');
|
||||
return array(false, false, false, $lt, $gt);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* The fact that we got here indicates that the tag end was never
|
||||
* found. Return invalid tag indication so it gets stripped.
|
||||
*/
|
||||
return array(false, false, false, $lt, strlen($body));
|
||||
}
|
||||
|
||||
/**
|
||||
* Translates entities into literal values so they can be checked.
|
||||
*
|
||||
* @param string $attvalue the by-ref value to check.
|
||||
* @param string $regex the regular expression to check against.
|
||||
* @param boolean $hex whether the entites are hexadecimal.
|
||||
* @return boolean True or False depending on whether there were matches.
|
||||
*/
|
||||
function tln_deent(&$attvalue, $regex, $hex = false)
|
||||
{
|
||||
preg_match_all($regex, $attvalue, $matches);
|
||||
if (is_array($matches) && sizeof($matches[0]) > 0) {
|
||||
$repl = array();
|
||||
for ($i = 0; $i < sizeof($matches[0]); $i++) {
|
||||
$numval = $matches[1][$i];
|
||||
if ($hex) {
|
||||
$numval = hexdec($numval);
|
||||
}
|
||||
$repl{$matches[0][$i]} = chr($numval);
|
||||
}
|
||||
$attvalue = strtr($attvalue, $repl);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function checks attribute values for entity-encoded values
|
||||
* and returns them translated into 8-bit strings so we can run
|
||||
* checks on them.
|
||||
*
|
||||
* @param string $attvalue A string to run entity check against.
|
||||
* @return Void, modifies a reference value.
|
||||
*/
|
||||
function tln_defang(&$attvalue)
|
||||
{
|
||||
/**
|
||||
* Skip this if there aren't ampersands or backslashes.
|
||||
*/
|
||||
if (strpos($attvalue, '&') === false
|
||||
&& strpos($attvalue, '\\') === false
|
||||
) {
|
||||
return;
|
||||
}
|
||||
do {
|
||||
$m = false;
|
||||
$m = $m || tln_deent($attvalue, '/\�*(\d+);*/s');
|
||||
$m = $m || tln_deent($attvalue, '/\�*((\d|[a-f])+);*/si', true);
|
||||
$m = $m || tln_deent($attvalue, '/\\\\(\d+)/s', true);
|
||||
} while ($m == true);
|
||||
$attvalue = stripslashes($attvalue);
|
||||
}
|
||||
|
||||
/**
|
||||
* Kill any tabs, newlines, or carriage returns. Our friends the
|
||||
* makers of the browser with 95% market value decided that it'd
|
||||
* be funny to make "java[tab]script" be just as good as "javascript".
|
||||
*
|
||||
* @param string $attvalue The attribute value before extraneous spaces removed.
|
||||
* @return Void, modifies a reference value.
|
||||
*/
|
||||
function tln_unspace(&$attvalue)
|
||||
{
|
||||
if (strcspn($attvalue, "\t\r\n\0 ") != strlen($attvalue)) {
|
||||
$attvalue = str_replace(
|
||||
array("\t", "\r", "\n", "\0", " "),
|
||||
array('', '', '', '', ''),
|
||||
$attvalue
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function runs various checks against the attributes.
|
||||
*
|
||||
* @param string $tagname String with the name of the tag.
|
||||
* @param array $attary Array with all tag attributes.
|
||||
* @param array $rm_attnames See description for tln_sanitize
|
||||
* @param array $bad_attvals See description for tln_sanitize
|
||||
* @param array $add_attr_to_tag See description for tln_sanitize
|
||||
* @return Array with modified attributes.
|
||||
*/
|
||||
function tln_fixatts(
|
||||
$tagname,
|
||||
$attary,
|
||||
$rm_attnames,
|
||||
$bad_attvals,
|
||||
$add_attr_to_tag
|
||||
) {
|
||||
while (list($attname, $attvalue) = each($attary)) {
|
||||
/**
|
||||
* See if this attribute should be removed.
|
||||
*/
|
||||
foreach ($rm_attnames as $matchtag => $matchattrs) {
|
||||
if (preg_match($matchtag, $tagname)) {
|
||||
foreach ($matchattrs as $matchattr) {
|
||||
if (preg_match($matchattr, $attname)) {
|
||||
unset($attary{$attname});
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Remove any backslashes, entities, or extraneous whitespace.
|
||||
*/
|
||||
tln_defang($attvalue);
|
||||
tln_unspace($attvalue);
|
||||
|
||||
/**
|
||||
* Now let's run checks on the attvalues.
|
||||
* I don't expect anyone to comprehend this. If you do,
|
||||
* get in touch with me so I can drive to where you live and
|
||||
* shake your hand personally. :)
|
||||
*/
|
||||
foreach ($bad_attvals as $matchtag => $matchattrs) {
|
||||
if (preg_match($matchtag, $tagname)) {
|
||||
foreach ($matchattrs as $matchattr => $valary) {
|
||||
if (preg_match($matchattr, $attname)) {
|
||||
/**
|
||||
* There are two arrays in valary.
|
||||
* First is matches.
|
||||
* Second one is replacements
|
||||
*/
|
||||
list($valmatch, $valrepl) = $valary;
|
||||
$newvalue = preg_replace($valmatch, $valrepl, $attvalue);
|
||||
if ($newvalue != $attvalue) {
|
||||
$attary{$attname} = $newvalue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* See if we need to append any attributes to this tag.
|
||||
*/
|
||||
foreach ($add_attr_to_tag as $matchtag => $addattary) {
|
||||
if (preg_match($matchtag, $tagname)) {
|
||||
$attary = array_merge($attary, $addattary);
|
||||
}
|
||||
}
|
||||
return $attary;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $body The HTML you wish to filter
|
||||
* @param array $tag_list see description above
|
||||
* @param array $rm_tags_with_content see description above
|
||||
* @param array $self_closing_tags see description above
|
||||
* @param boolean $force_tag_closing see description above
|
||||
* @param array $rm_attnames see description above
|
||||
* @param array $bad_attvals see description above
|
||||
* @param array $add_attr_to_tag see description above
|
||||
* @return string Sanitized html safe to show on your pages.
|
||||
*/
|
||||
function tln_sanitize(
|
||||
$body,
|
||||
$tag_list,
|
||||
$rm_tags_with_content,
|
||||
$self_closing_tags,
|
||||
$force_tag_closing,
|
||||
$rm_attnames,
|
||||
$bad_attvals,
|
||||
$add_attr_to_tag
|
||||
) {
|
||||
/**
|
||||
* Normalize rm_tags and rm_tags_with_content.
|
||||
*/
|
||||
$rm_tags = array_shift($tag_list);
|
||||
@array_walk($tag_list, 'tln_casenormalize');
|
||||
@array_walk($rm_tags_with_content, 'tln_casenormalize');
|
||||
@array_walk($self_closing_tags, 'tln_casenormalize');
|
||||
/**
|
||||
* See if tag_list is of tags to remove or tags to allow.
|
||||
* false means remove these tags
|
||||
* true means allow these tags
|
||||
*/
|
||||
$curpos = 0;
|
||||
$open_tags = array();
|
||||
$trusted = "<!-- begin tln_sanitized html -->\n";
|
||||
$skip_content = false;
|
||||
/**
|
||||
* Take care of netscape's stupid javascript entities like
|
||||
* &{alert('boo')};
|
||||
*/
|
||||
$body = preg_replace('/&(\{.*?\};)/si', '&\\1', $body);
|
||||
while (($curtag = tln_getnxtag($body, $curpos)) != false) {
|
||||
list($tagname, $attary, $tagtype, $lt, $gt) = $curtag;
|
||||
$free_content = substr($body, $curpos, $lt - $curpos);
|
||||
if ($skip_content == false) {
|
||||
$trusted .= $free_content;
|
||||
} else {
|
||||
}
|
||||
if ($tagname != false) {
|
||||
if ($tagtype == 2) {
|
||||
if ($skip_content == $tagname) {
|
||||
/**
|
||||
* Got to the end of tag we needed to remove.
|
||||
*/
|
||||
$tagname = false;
|
||||
$skip_content = false;
|
||||
} else {
|
||||
if ($skip_content == false) {
|
||||
if (isset($open_tags{$tagname}) &&
|
||||
$open_tags{$tagname} > 0
|
||||
) {
|
||||
$open_tags{$tagname}--;
|
||||
} else {
|
||||
$tagname = false;
|
||||
}
|
||||
} else {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
/**
|
||||
* $rm_tags_with_content
|
||||
*/
|
||||
if ($skip_content == false) {
|
||||
/**
|
||||
* See if this is a self-closing type and change
|
||||
* tagtype appropriately.
|
||||
*/
|
||||
if ($tagtype == 1
|
||||
&& in_array($tagname, $self_closing_tags)
|
||||
) {
|
||||
$tagtype = 3;
|
||||
}
|
||||
/**
|
||||
* See if we should skip this tag and any content
|
||||
* inside it.
|
||||
*/
|
||||
if ($tagtype == 1
|
||||
&& in_array($tagname, $rm_tags_with_content)
|
||||
) {
|
||||
$skip_content = $tagname;
|
||||
} else {
|
||||
if (($rm_tags == false
|
||||
&& in_array($tagname, $tag_list)) ||
|
||||
($rm_tags == true
|
||||
&& !in_array($tagname, $tag_list))
|
||||
) {
|
||||
$tagname = false;
|
||||
} else {
|
||||
if ($tagtype == 1) {
|
||||
if (isset($open_tags{$tagname})) {
|
||||
$open_tags{$tagname}++;
|
||||
} else {
|
||||
$open_tags{$tagname} = 1;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* This is where we run other checks.
|
||||
*/
|
||||
if (is_array($attary) && sizeof($attary) > 0) {
|
||||
$attary = tln_fixatts(
|
||||
$tagname,
|
||||
$attary,
|
||||
$rm_attnames,
|
||||
$bad_attvals,
|
||||
$add_attr_to_tag
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
}
|
||||
}
|
||||
if ($tagname != false && $skip_content == false) {
|
||||
$trusted .= tln_tagprint($tagname, $attary, $tagtype);
|
||||
}
|
||||
} else {
|
||||
}
|
||||
$curpos = $gt + 1;
|
||||
}
|
||||
$trusted .= substr($body, $curpos, strlen($body) - $curpos);
|
||||
if ($force_tag_closing == true) {
|
||||
foreach ($open_tags as $tagname => $opentimes) {
|
||||
while ($opentimes > 0) {
|
||||
$trusted .= '</' . $tagname . '>';
|
||||
$opentimes--;
|
||||
}
|
||||
}
|
||||
$trusted .= "\n";
|
||||
}
|
||||
$trusted .= "<!-- end tln_sanitized html -->\n";
|
||||
return $trusted;
|
||||
}
|
||||
|
||||
//
|
||||
// Use the nifty htmlfilter library
|
||||
//
|
||||
|
||||
|
||||
function HTMLFilter($body, $trans_image_path, $block_external_images = false)
|
||||
{
|
||||
|
||||
$tag_list = array(
|
||||
false,
|
||||
"object",
|
||||
"meta",
|
||||
"html",
|
||||
"head",
|
||||
"base",
|
||||
"link",
|
||||
"frame",
|
||||
"iframe",
|
||||
"plaintext",
|
||||
"marquee"
|
||||
);
|
||||
|
||||
$rm_tags_with_content = array(
|
||||
"script",
|
||||
"applet",
|
||||
"embed",
|
||||
"title",
|
||||
"frameset",
|
||||
"xmp",
|
||||
"xml"
|
||||
);
|
||||
|
||||
$self_closing_tags = array(
|
||||
"img",
|
||||
"br",
|
||||
"hr",
|
||||
"input",
|
||||
"outbind"
|
||||
);
|
||||
|
||||
$force_tag_closing = true;
|
||||
|
||||
$rm_attnames = array(
|
||||
"/.*/" =>
|
||||
array(
|
||||
// "/target/i",
|
||||
"/^on.*/i",
|
||||
"/^dynsrc/i",
|
||||
"/^data.*/i",
|
||||
"/^lowsrc.*/i"
|
||||
)
|
||||
);
|
||||
|
||||
$bad_attvals = array(
|
||||
"/.*/" =>
|
||||
array(
|
||||
"/^src|background/i" =>
|
||||
array(
|
||||
array(
|
||||
'/^([\'"])\s*\S+script\s*:.*([\'"])/si',
|
||||
'/^([\'"])\s*mocha\s*:*.*([\'"])/si',
|
||||
'/^([\'"])\s*about\s*:.*([\'"])/si'
|
||||
),
|
||||
array(
|
||||
"\\1$trans_image_path\\2",
|
||||
"\\1$trans_image_path\\2",
|
||||
"\\1$trans_image_path\\2",
|
||||
"\\1$trans_image_path\\2"
|
||||
)
|
||||
),
|
||||
"/^href|action/i" =>
|
||||
array(
|
||||
array(
|
||||
'/^([\'"])\s*\S+script\s*:.*([\'"])/si',
|
||||
'/^([\'"])\s*mocha\s*:*.*([\'"])/si',
|
||||
'/^([\'"])\s*about\s*:.*([\'"])/si'
|
||||
),
|
||||
array(
|
||||
"\\1#\\1",
|
||||
"\\1#\\1",
|
||||
"\\1#\\1",
|
||||
"\\1#\\1"
|
||||
)
|
||||
),
|
||||
"/^style/i" =>
|
||||
array(
|
||||
array(
|
||||
"/expression/i",
|
||||
"/binding/i",
|
||||
"/behaviou*r/i",
|
||||
"/include-source/i",
|
||||
'/position\s*:\s*absolute/i',
|
||||
'/url\s*\(\s*([\'"])\s*\S+script\s*:.*([\'"])\s*\)/si',
|
||||
'/url\s*\(\s*([\'"])\s*mocha\s*:.*([\'"])\s*\)/si',
|
||||
'/url\s*\(\s*([\'"])\s*about\s*:.*([\'"])\s*\)/si',
|
||||
'/(.*)\s*:\s*url\s*\(\s*([\'"]*)\s*\S+script\s*:.*([\'"]*)\s*\)/si'
|
||||
),
|
||||
array(
|
||||
"idiocy",
|
||||
"idiocy",
|
||||
"idiocy",
|
||||
"idiocy",
|
||||
"",
|
||||
"url(\\1#\\1)",
|
||||
"url(\\1#\\1)",
|
||||
"url(\\1#\\1)",
|
||||
"url(\\1#\\1)",
|
||||
"url(\\1#\\1)",
|
||||
"\\1:url(\\2#\\3)"
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
if ($block_external_images) {
|
||||
array_push(
|
||||
$bad_attvals{'/.*/'}{'/^src|background/i'}[0],
|
||||
'/^([\'\"])\s*https*:.*([\'\"])/si'
|
||||
);
|
||||
array_push(
|
||||
$bad_attvals{'/.*/'}{'/^src|background/i'}[1],
|
||||
"\\1$trans_image_path\\1"
|
||||
);
|
||||
array_push(
|
||||
$bad_attvals{'/.*/'}{'/^style/i'}[0],
|
||||
'/url\(([\'\"])\s*https*:.*([\'\"])\)/si'
|
||||
);
|
||||
array_push(
|
||||
$bad_attvals{'/.*/'}{'/^style/i'}[1],
|
||||
"url(\\1$trans_image_path\\1)"
|
||||
);
|
||||
}
|
||||
|
||||
$add_attr_to_tag = array(
|
||||
"/^a$/i" =>
|
||||
array('target' => '"_blank"')
|
||||
);
|
||||
|
||||
$trusted = tln_sanitize(
|
||||
$body,
|
||||
$tag_list,
|
||||
$rm_tags_with_content,
|
||||
$self_closing_tags,
|
||||
$force_tag_closing,
|
||||
$rm_attnames,
|
||||
$bad_attvals,
|
||||
$add_attr_to_tag
|
||||
);
|
||||
return $trusted;
|
||||
}
|
185
3rdparty/phpmailer/extras/ntlm_sasl_client.php
vendored
Executable file
185
3rdparty/phpmailer/extras/ntlm_sasl_client.php
vendored
Executable file
@ -0,0 +1,185 @@
|
||||
<?php
|
||||
/*
|
||||
* ntlm_sasl_client.php
|
||||
*
|
||||
* @(#) $Id: ntlm_sasl_client.php,v 1.3 2004/11/17 08:00:37 mlemos Exp $
|
||||
*
|
||||
**
|
||||
** Source: http://www.phpclasses.org/browse/file/7495.html
|
||||
** License: BSD (http://www.phpclasses.org/package/1888-PHP-Single-API-for-standard-authentication-mechanisms.html)
|
||||
** Bundled with Permission
|
||||
**
|
||||
*/
|
||||
|
||||
define("SASL_NTLM_STATE_START", 0);
|
||||
define("SASL_NTLM_STATE_IDENTIFY_DOMAIN", 1);
|
||||
define("SASL_NTLM_STATE_RESPOND_CHALLENGE", 2);
|
||||
define("SASL_NTLM_STATE_DONE", 3);
|
||||
|
||||
class ntlm_sasl_client_class
|
||||
{
|
||||
var $credentials=array();
|
||||
var $state=SASL_NTLM_STATE_START;
|
||||
|
||||
Function Initialize(&$client)
|
||||
{
|
||||
if(!function_exists($function="mcrypt_encrypt")
|
||||
|| !function_exists($function="mhash"))
|
||||
{
|
||||
$extensions=array(
|
||||
"mcrypt_encrypt"=>"mcrypt",
|
||||
"mhash"=>"mhash"
|
||||
);
|
||||
$client->error="the extension ".$extensions[$function]." required by the NTLM SASL client class is not available in this PHP configuration";
|
||||
return(0);
|
||||
}
|
||||
return(1);
|
||||
}
|
||||
|
||||
Function ASCIIToUnicode($ascii)
|
||||
{
|
||||
for($unicode="",$a=0;$a<strlen($ascii);$a++)
|
||||
$unicode.=substr($ascii,$a,1).chr(0);
|
||||
return($unicode);
|
||||
}
|
||||
|
||||
Function TypeMsg1($domain,$workstation)
|
||||
{
|
||||
$domain_length=strlen($domain);
|
||||
$workstation_length=strlen($workstation);
|
||||
$workstation_offset=32;
|
||||
$domain_offset=$workstation_offset+$workstation_length;
|
||||
return(
|
||||
"NTLMSSP\0".
|
||||
"\x01\x00\x00\x00".
|
||||
"\x07\x32\x00\x00".
|
||||
pack("v",$domain_length).
|
||||
pack("v",$domain_length).
|
||||
pack("V",$domain_offset).
|
||||
pack("v",$workstation_length).
|
||||
pack("v",$workstation_length).
|
||||
pack("V",$workstation_offset).
|
||||
$workstation.
|
||||
$domain
|
||||
);
|
||||
}
|
||||
|
||||
Function NTLMResponse($challenge,$password)
|
||||
{
|
||||
$unicode=$this->ASCIIToUnicode($password);
|
||||
$md4=mhash(MHASH_MD4,$unicode);
|
||||
$padded=$md4.str_repeat(chr(0),21-strlen($md4));
|
||||
$iv_size=mcrypt_get_iv_size(MCRYPT_DES,MCRYPT_MODE_ECB);
|
||||
$iv=mcrypt_create_iv($iv_size,MCRYPT_RAND);
|
||||
for($response="",$third=0;$third<21;$third+=7)
|
||||
{
|
||||
for($packed="",$p=$third;$p<$third+7;$p++)
|
||||
$packed.=str_pad(decbin(ord(substr($padded,$p,1))),8,"0",STR_PAD_LEFT);
|
||||
for($key="",$p=0;$p<strlen($packed);$p+=7)
|
||||
{
|
||||
$s=substr($packed,$p,7);
|
||||
$b=$s.((substr_count($s,"1") % 2) ? "0" : "1");
|
||||
$key.=chr(bindec($b));
|
||||
}
|
||||
$ciphertext=mcrypt_encrypt(MCRYPT_DES,$key,$challenge,MCRYPT_MODE_ECB,$iv);
|
||||
$response.=$ciphertext;
|
||||
}
|
||||
return $response;
|
||||
}
|
||||
|
||||
Function TypeMsg3($ntlm_response,$user,$domain,$workstation)
|
||||
{
|
||||
$domain_unicode=$this->ASCIIToUnicode($domain);
|
||||
$domain_length=strlen($domain_unicode);
|
||||
$domain_offset=64;
|
||||
$user_unicode=$this->ASCIIToUnicode($user);
|
||||
$user_length=strlen($user_unicode);
|
||||
$user_offset=$domain_offset+$domain_length;
|
||||
$workstation_unicode=$this->ASCIIToUnicode($workstation);
|
||||
$workstation_length=strlen($workstation_unicode);
|
||||
$workstation_offset=$user_offset+$user_length;
|
||||
$lm="";
|
||||
$lm_length=strlen($lm);
|
||||
$lm_offset=$workstation_offset+$workstation_length;
|
||||
$ntlm=$ntlm_response;
|
||||
$ntlm_length=strlen($ntlm);
|
||||
$ntlm_offset=$lm_offset+$lm_length;
|
||||
$session="";
|
||||
$session_length=strlen($session);
|
||||
$session_offset=$ntlm_offset+$ntlm_length;
|
||||
return(
|
||||
"NTLMSSP\0".
|
||||
"\x03\x00\x00\x00".
|
||||
pack("v",$lm_length).
|
||||
pack("v",$lm_length).
|
||||
pack("V",$lm_offset).
|
||||
pack("v",$ntlm_length).
|
||||
pack("v",$ntlm_length).
|
||||
pack("V",$ntlm_offset).
|
||||
pack("v",$domain_length).
|
||||
pack("v",$domain_length).
|
||||
pack("V",$domain_offset).
|
||||
pack("v",$user_length).
|
||||
pack("v",$user_length).
|
||||
pack("V",$user_offset).
|
||||
pack("v",$workstation_length).
|
||||
pack("v",$workstation_length).
|
||||
pack("V",$workstation_offset).
|
||||
pack("v",$session_length).
|
||||
pack("v",$session_length).
|
||||
pack("V",$session_offset).
|
||||
"\x01\x02\x00\x00".
|
||||
$domain_unicode.
|
||||
$user_unicode.
|
||||
$workstation_unicode.
|
||||
$lm.
|
||||
$ntlm
|
||||
);
|
||||
}
|
||||
|
||||
Function Start(&$client, &$message, &$interactions)
|
||||
{
|
||||
if($this->state!=SASL_NTLM_STATE_START)
|
||||
{
|
||||
$client->error="NTLM authentication state is not at the start";
|
||||
return(SASL_FAIL);
|
||||
}
|
||||
$this->credentials=array(
|
||||
"user"=>"",
|
||||
"password"=>"",
|
||||
"realm"=>"",
|
||||
"workstation"=>""
|
||||
);
|
||||
$defaults=array();
|
||||
$status=$client->GetCredentials($this->credentials,$defaults,$interactions);
|
||||
if($status==SASL_CONTINUE)
|
||||
$this->state=SASL_NTLM_STATE_IDENTIFY_DOMAIN;
|
||||
Unset($message);
|
||||
return($status);
|
||||
}
|
||||
|
||||
Function Step(&$client, $response, &$message, &$interactions)
|
||||
{
|
||||
switch($this->state)
|
||||
{
|
||||
case SASL_NTLM_STATE_IDENTIFY_DOMAIN:
|
||||
$message=$this->TypeMsg1($this->credentials["realm"],$this->credentials["workstation"]);
|
||||
$this->state=SASL_NTLM_STATE_RESPOND_CHALLENGE;
|
||||
break;
|
||||
case SASL_NTLM_STATE_RESPOND_CHALLENGE:
|
||||
$ntlm_response=$this->NTLMResponse(substr($response,24,8),$this->credentials["password"]);
|
||||
$message=$this->TypeMsg3($ntlm_response,$this->credentials["user"],$this->credentials["realm"],$this->credentials["workstation"]);
|
||||
$this->state=SASL_NTLM_STATE_DONE;
|
||||
break;
|
||||
case SASL_NTLM_STATE_DONE:
|
||||
$client->error="NTLM authentication was finished without success";
|
||||
return(SASL_FAIL);
|
||||
default:
|
||||
$client->error="invalid NTLM authentication step state";
|
||||
return(SASL_FAIL);
|
||||
}
|
||||
return(SASL_CONTINUE);
|
||||
}
|
||||
};
|
||||
|
||||
?>
|
26
3rdparty/phpmailer/language/phpmailer.lang-ar.php
vendored
Executable file
26
3rdparty/phpmailer/language/phpmailer.lang-ar.php
vendored
Executable file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* Arabic PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author bahjat al mostafa <bahjat983@hotmail.com>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'خطأ SMTP : لا يمكن تأكيد الهوية.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'خطأ SMTP: لا يمكن الاتصال بالخادم SMTP.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'خطأ SMTP: لم يتم قبول المعلومات .';
|
||||
$PHPMAILER_LANG['empty_message'] = 'نص الرسالة فارغ';
|
||||
$PHPMAILER_LANG['encoding'] = 'ترميز غير معروف: ';
|
||||
$PHPMAILER_LANG['execute'] = 'لا يمكن تنفيذ : ';
|
||||
$PHPMAILER_LANG['file_access'] = 'لا يمكن الوصول للملف: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'خطأ في الملف: لا يمكن فتحه: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'خطأ على مستوى عنوان المرسل : ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'لا يمكن توفير خدمة البريد.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'الإرسال غير ممكن لأن عنوان البريد الإلكتروني غير صالح.';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' برنامج الإرسال غير مدعوم.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'يجب توفير عنوان البريد الإلكتروني لمستلم واحد على الأقل.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'خطأ SMTP: الأخطاء التالية ' .
|
||||
'فشل في الارسال لكل من : ';
|
||||
$PHPMAILER_LANG['signing'] = 'خطأ في التوقيع: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() غير ممكن.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'خطأ على مستوى الخادم SMTP: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'لا يمكن تعيين أو إعادة تعيين متغير: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-be.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-be.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Belarusian PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Aleksander Maksymiuk <info@setpro.pl>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'Памылка SMTP: памылка ідэнтыфікацыі.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'Памылка SMTP: нельга ўстанавіць сувязь з SMTP-серверам.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'Памылка SMTP: звесткі непрынятыя.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Пустое паведамленне.';
|
||||
$PHPMAILER_LANG['encoding'] = 'Невядомая кадыроўка тэксту: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Нельга выканаць каманду: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Няма доступу да файла: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Нельга адкрыць файл: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Няправільны адрас адпраўніка: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Нельга прымяніць функцыю mail().';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Нельга даслаць паведамленне, няправільны email атрымальніка: ';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Запоўніце, калі ласка, правільны email атрымальніка.';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' - паштовы сервер не падтрымліваецца.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'Памылка SMTP: няправільныя атрымальнікі: ';
|
||||
$PHPMAILER_LANG['signing'] = 'Памылка подпісу паведамлення: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'Памылка сувязі з SMTP-серверам.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'Памылка SMTP: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Нельга ўстанавіць або перамяніць значэнне пераменнай: ';
|
26
3rdparty/phpmailer/language/phpmailer.lang-br.php
vendored
Executable file
26
3rdparty/phpmailer/language/phpmailer.lang-br.php
vendored
Executable file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* Brazilian Portuguese PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Paulo Henrique Garcia <paulo@controllerweb.com.br>
|
||||
* @author Lucas Guimarães <lucas@lucasguimaraes.com>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'Erro de SMTP: Não foi possível autenticar.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'Erro de SMTP: Não foi possível conectar com o servidor SMTP.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'Erro de SMTP: Dados rejeitados.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Corpo da mensagem vazio';
|
||||
$PHPMAILER_LANG['encoding'] = 'Codificação desconhecida: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Não foi possível executar: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Não foi possível acessar o arquivo: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Erro de Arquivo: Não foi possível abrir o arquivo: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Os endereços dos remententes a seguir falharam: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Não foi possível iniciar uma instância da função mail.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Não enviando, endereço de e-mail inválido: ';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' mailer não é suportado.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Você deve fornecer pelo menos um endereço de destinatário de e-mail.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'Erro de SMTP: Os endereços de destinatário a seguir falharam: ';
|
||||
$PHPMAILER_LANG['signing'] = 'Erro ao assinar: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() falhou.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'Erro de servidor SMTP: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Não foi possível definir ou resetar a variável: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-ca.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-ca.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Catalan PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Ivan <web AT microstudi DOT com>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'Error SMTP: No s’ha pogut autenticar.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'Error SMTP: No es pot connectar al servidor SMTP.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'Error SMTP: Dades no acceptades.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'El cos del missatge està buit.';
|
||||
$PHPMAILER_LANG['encoding'] = 'Codificació desconeguda: ';
|
||||
$PHPMAILER_LANG['execute'] = 'No es pot executar: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'No es pot accedir a l’arxiu: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Error d’Arxiu: No es pot obrir l’arxiu: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'La(s) següent(s) adreces de remitent han fallat: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'No s’ha pogut crear una instància de la funció Mail.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Adreça d’email invalida';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' mailer no està suportat';
|
||||
$PHPMAILER_LANG['provide_address'] = 'S’ha de proveir almenys una adreça d’email com a destinatari.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'Error SMTP: Els següents destinataris han fallat: ';
|
||||
$PHPMAILER_LANG['signing'] = 'Error al signar: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'Ha fallat el SMTP Connect().';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'Error del servidor SMTP: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'No s’ha pogut establir o restablir la variable: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-ch.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-ch.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Chinese PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author LiuXin <http://www.80x86.cn/blog/>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTP 错误:身份验证失败。';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTP 错误: 不能连接SMTP主机。';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP 错误: 数据不可接受。';
|
||||
//$PHPMAILER_LANG['empty_message'] = 'Message body empty';
|
||||
$PHPMAILER_LANG['encoding'] = '未知编码:';
|
||||
$PHPMAILER_LANG['execute'] = '不能执行: ';
|
||||
$PHPMAILER_LANG['file_access'] = '不能访问文件:';
|
||||
$PHPMAILER_LANG['file_open'] = '文件错误:不能打开文件:';
|
||||
$PHPMAILER_LANG['from_failed'] = '下面的发送地址邮件发送失败了: ';
|
||||
$PHPMAILER_LANG['instantiate'] = '不能实现mail方法。';
|
||||
//$PHPMAILER_LANG['invalid_address'] = 'Not sending, email address is invalid: ';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' 您所选择的发送邮件的方法并不支持。';
|
||||
$PHPMAILER_LANG['provide_address'] = '您必须提供至少一个 收信人的email地址。';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTP 错误: 下面的 收件人失败了: ';
|
||||
//$PHPMAILER_LANG['signing'] = 'Signing Error: ';
|
||||
//$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.';
|
||||
//$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: ';
|
||||
//$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: ';
|
24
3rdparty/phpmailer/language/phpmailer.lang-cz.php
vendored
Executable file
24
3rdparty/phpmailer/language/phpmailer.lang-cz.php
vendored
Executable file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* Czech PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'Chyba SMTP: Autentizace selhala.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'Chyba SMTP: Nelze navázat spojení se SMTP serverem.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'Chyba SMTP: Data nebyla přijata.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Prázdné tělo zprávy';
|
||||
$PHPMAILER_LANG['encoding'] = 'Neznámé kódování: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Nelze provést: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Nelze získat přístup k souboru: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Chyba souboru: Nelze otevřít soubor pro čtení: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Následující adresa odesílatele je nesprávná: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Nelze vytvořit instanci emailové funkce.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Neplatná adresa: ';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' mailer není podporován.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Musíte zadat alespoň jednu emailovou adresu příjemce.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'Chyba SMTP: Následující adresy příjemců nejsou správně: ';
|
||||
$PHPMAILER_LANG['signing'] = 'Chyba přihlašování: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() selhal.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'Chyba SMTP serveru: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Nelze nastavit nebo změnit proměnnou: ';
|
24
3rdparty/phpmailer/language/phpmailer.lang-de.php
vendored
Executable file
24
3rdparty/phpmailer/language/phpmailer.lang-de.php
vendored
Executable file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* German PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTP Fehler: Authentifizierung fehlgeschlagen.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTP Fehler: Konnte keine Verbindung zum SMTP-Host herstellen.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Fehler: Daten werden nicht akzeptiert.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'E-Mail Inhalt ist leer.';
|
||||
$PHPMAILER_LANG['encoding'] = 'Unbekanntes Encoding-Format: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Konnte folgenden Befehl nicht ausführen: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Zugriff auf folgende Datei fehlgeschlagen: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Datei Fehler: konnte folgende Datei nicht öffnen: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Die folgende Absenderadresse ist nicht korrekt: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Mail Funktion konnte nicht initialisiert werden.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'E-Mail wird nicht gesendet, die Adresse ist ungültig.';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' mailer wird nicht unterstützt.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Bitte geben Sie mindestens eine Empfänger E-Mailadresse an.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTP Fehler: Die folgenden Empfänger sind nicht korrekt: ';
|
||||
$PHPMAILER_LANG['signing'] = 'Fehler beim Signieren: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'Verbindung zu SMTP Server fehlgeschlagen.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'Fehler vom SMTP Server: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Kann Variable nicht setzen oder zurücksetzen: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-dk.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-dk.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Danish PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Mikael Stokkebro <info@stokkebro.dk>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTP fejl: Kunne ikke logge på.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTP fejl: Kunne ikke tilslutte SMTP serveren.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP fejl: Data kunne ikke accepteres.';
|
||||
//$PHPMAILER_LANG['empty_message'] = 'Message body empty';
|
||||
$PHPMAILER_LANG['encoding'] = 'Ukendt encode-format: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Kunne ikke køre: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Ingen adgang til fil: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Fil fejl: Kunne ikke åbne filen: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Følgende afsenderadresse er forkert: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Kunne ikke initialisere email funktionen.';
|
||||
//$PHPMAILER_LANG['invalid_address'] = 'Not sending, email address is invalid: ';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' mailer understøttes ikke.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Du skal indtaste mindst en modtagers emailadresse.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTP fejl: Følgende modtagere er forkerte: ';
|
||||
//$PHPMAILER_LANG['signing'] = 'Signing Error: ';
|
||||
//$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.';
|
||||
//$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: ';
|
||||
//$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: ';
|
24
3rdparty/phpmailer/language/phpmailer.lang-el.php
vendored
Executable file
24
3rdparty/phpmailer/language/phpmailer.lang-el.php
vendored
Executable file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* Greek PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTP Σφάλμα: Αδυναμία πιστοποίησης (authentication).';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTP Σφάλμα: Αδυναμία σύνδεσης στον SMTP-Host.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Σφάλμα: Τα δεδομένα δεν έγιναν αποδεκτά.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Το E-Mail δεν έχει περιεχόμενο .';
|
||||
$PHPMAILER_LANG['encoding'] = 'Αγνωστο Encoding-Format: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Αδυναμία εκτέλεσης ακόλουθης εντολής: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Αδυναμία προσπέλασης του αρχείου: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Σφάλμα Αρχείου: Δεν είναί δυνατό το άνοιγμα του ακόλουθου αρχείου: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Η παρακάτω διεύθυνση αποστολέα δεν είναι σωστή: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Αδυναμία εκκίνησης Mail function.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Το μήνυμα δεν αποστέλθηκε, η διεύθυνση δεν είναι έγκυρη.';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' mailer δεν υποστηρίζεται.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Παρακαλούμε δώστε τουλάχιστον μια e-mail διεύθυνση παραλήπτη.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTP Σφάλμα: Οι παρακάτων διευθύνσεις παραλήπτη δεν είναι έγκυρες: ';
|
||||
$PHPMAILER_LANG['signing'] = 'Σφάλμα υπογραφής: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'Αποτυχία σύνδεσης στον SMTP Server.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'Σφάλμα από τον SMTP Server: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Αδυναμία ορισμού ή αρχικοποίησης μεταβλητής: ';
|
24
3rdparty/phpmailer/language/phpmailer.lang-eo.php
vendored
Executable file
24
3rdparty/phpmailer/language/phpmailer.lang-eo.php
vendored
Executable file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* Esperanto PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'Eraro de servilo SMTP : aŭtentigo malsukcesis.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'Eraro de servilo SMTP : konektado al servilo malsukcesis.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'Eraro de servilo SMTP : neĝustaj datumoj.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Teksto de mesaĝo mankas.';
|
||||
$PHPMAILER_LANG['encoding'] = 'Nekonata kodoprezento: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Lanĉi rulumadon ne eblis: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Aliro al dosiero ne sukcesis: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Eraro de dosiero: malfermo neeblas: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Jena adreso de sendinto malsukcesis: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Genero de retmesaĝa funkcio neeblis.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Retadreso ne validas: ';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' mesaĝilo ne subtenata.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Vi devas tajpi almenaŭ unu recevontan retadreson.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'Eraro de servilo SMTP : la jenaj poŝtrecivuloj kaŭzis eraron: ';
|
||||
$PHPMAILER_LANG['signing'] = 'Eraro de subskribo: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP konektado malsukcesis.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'Eraro de servilo SMTP : ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Variablo ne pravalorizeblas aŭ ne repravalorizeblas: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-es.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-es.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Spanish PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Matt Sturdy <matt.sturdy@gmail.com>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'Error SMTP: No se pudo autentificar.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'Error SMTP: No se pudo conectar al servidor SMTP.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'Error SMTP: Datos no aceptados.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Cuerpo del mensaje vacío';
|
||||
$PHPMAILER_LANG['encoding'] = 'Codificación desconocida: ';
|
||||
$PHPMAILER_LANG['execute'] = 'No se pudo ejecutar: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'No se pudo acceder al archivo: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Error de Archivo: No se pudo abrir el archivo: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'La(s) siguiente(s) direcciones de remitente fallaron: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'No se pudo crear una instancia de la función Mail.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'No se pudo enviar: dirección de email inválido: ';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' mailer no está soportado.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Debe proveer al menos una dirección de email como destino.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'Error SMTP: Los siguientes destinos fallaron: ';
|
||||
$PHPMAILER_LANG['signing'] = 'Error al firmar: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() se falló.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'Error del servidor SMTP: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'No se pudo ajustar o reajustar la variable: ';
|
26
3rdparty/phpmailer/language/phpmailer.lang-et.php
vendored
Executable file
26
3rdparty/phpmailer/language/phpmailer.lang-et.php
vendored
Executable file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* Estonian PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Indrek Päri
|
||||
* @author Elan Ruusamäe <glen@delfi.ee>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTP Viga: Autoriseerimise viga.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTP Viga: Ei õnnestunud luua ühendust SMTP serveriga.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Viga: Vigased andmed.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Tühi kirja sisu';
|
||||
$PHPMAILER_LANG["encoding"] = 'Tundmatu kodeering: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Tegevus ebaõnnestus: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Pole piisavalt õiguseid järgneva faili avamiseks: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Faili Viga: Faili avamine ebaõnnestus: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Järgnev saatja e-posti aadress on vigane: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'mail funktiooni käivitamine ebaõnnestus.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Saatmine peatatud, e-posti address vigane: ';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Te peate määrama vähemalt ühe saaja e-posti aadressi.';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' maileri tugi puudub.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTP Viga: Järgnevate saajate e-posti aadressid on vigased: ';
|
||||
$PHPMAILER_LANG["signing"] = 'Viga allkirjastamisel: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() ebaõnnestus.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'SMTP serveri viga: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Ei õnnestunud määrata või lähtestada muutujat: ';
|
26
3rdparty/phpmailer/language/phpmailer.lang-fa.php
vendored
Executable file
26
3rdparty/phpmailer/language/phpmailer.lang-fa.php
vendored
Executable file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* Persian/Farsi PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Ali Jazayeri <jaza.ali@gmail.com>
|
||||
* @author Mohammad Hossein Mojtahedi <mhm5000@gmail.com>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'خطای SMTP: احراز هویت با شکست مواجه شد.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'خطای SMTP: اتصال به سرور SMTP برقرار نشد.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'خطای SMTP: دادهها نادرست هستند.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'بخش متن پیام خالی است.';
|
||||
$PHPMAILER_LANG['encoding'] = 'کدگذاری ناشناخته: ';
|
||||
$PHPMAILER_LANG['execute'] = 'امکان اجرا وجود ندارد: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'امکان دسترسی به فایل وجود ندارد: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'خطای File: امکان بازکردن فایل وجود ندارد: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'آدرس فرستنده اشتباه است: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'امکان معرفی تابع ایمیل وجود ندارد.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'آدرس ایمیل معتبر نیست: ';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' mailer پشتیبانی نمیشود.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'باید حداقل یک آدرس گیرنده وارد کنید.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'خطای SMTP: ارسال به آدرس گیرنده با خطا مواجه شد: ';
|
||||
$PHPMAILER_LANG['signing'] = 'خطا در امضا: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'خطا در اتصال به SMTP.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'خطا در SMTP Server: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'امکان ارسال یا ارسال مجدد متغیرها وجود ندارد: ';
|
26
3rdparty/phpmailer/language/phpmailer.lang-fi.php
vendored
Executable file
26
3rdparty/phpmailer/language/phpmailer.lang-fi.php
vendored
Executable file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* Finnish PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Jyry Kuukanen
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTP-virhe: käyttäjätunnistus epäonnistui.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTP-virhe: yhteys palvelimeen ei onnistu.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP-virhe: data on virheellinen.';
|
||||
//$PHPMAILER_LANG['empty_message'] = 'Message body empty';
|
||||
$PHPMAILER_LANG['encoding'] = 'Tuntematon koodaustyyppi: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Suoritus epäonnistui: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Seuraavaan tiedostoon ei ole oikeuksia: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Tiedostovirhe: Ei voida avata tiedostoa: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Seuraava lähettäjän osoite on virheellinen: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'mail-funktion luonti epäonnistui.';
|
||||
//$PHPMAILER_LANG['invalid_address'] = 'Not sending, email address is invalid: ';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = 'postivälitintyyppiä ei tueta.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Aseta vähintään yksi vastaanottajan sähköpostiosoite.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTP-virhe: seuraava vastaanottaja osoite on virheellinen.';
|
||||
$PHPMAILER_LANG['encoding'] = 'Tuntematon koodaustyyppi: ';
|
||||
//$PHPMAILER_LANG['signing'] = 'Signing Error: ';
|
||||
//$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.';
|
||||
//$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: ';
|
||||
//$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-fo.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-fo.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Faroese PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Dávur Sørensen <http://www.profo-webdesign.dk>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTP feilur: Kundi ikki góðkenna.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTP feilur: Kundi ikki knýta samband við SMTP vert.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP feilur: Data ikki góðkent.';
|
||||
//$PHPMAILER_LANG['empty_message'] = 'Message body empty';
|
||||
$PHPMAILER_LANG['encoding'] = 'Ókend encoding: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Kundi ikki útføra: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Kundi ikki tilganga fílu: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Fílu feilur: Kundi ikki opna fílu: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'fylgjandi Frá/From adressa miseydnaðist: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Kuni ikki instantiera mail funktión.';
|
||||
//$PHPMAILER_LANG['invalid_address'] = 'Not sending, email address is invalid: ';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' er ikki supporterað.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Tú skal uppgeva minst móttakara-emailadressu(r).';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTP Feilur: Fylgjandi móttakarar miseydnaðust: ';
|
||||
//$PHPMAILER_LANG['signing'] = 'Signing Error: ';
|
||||
//$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.';
|
||||
//$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: ';
|
||||
//$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: ';
|
28
3rdparty/phpmailer/language/phpmailer.lang-fr.php
vendored
Executable file
28
3rdparty/phpmailer/language/phpmailer.lang-fr.php
vendored
Executable file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* French PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* Some French punctuation requires a thin non-breaking space (U+202F) character before it,
|
||||
* for example before a colon or exclamation mark.
|
||||
* There is one of these characters between these quotes: " "
|
||||
* @link http://unicode.org/udhr/n/notes_fra.html
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'Erreur SMTP : échec de l\'authentification.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'Erreur SMTP : impossible de se connecter au serveur SMTP.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'Erreur SMTP : données incorrectes.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Corps du message vide.';
|
||||
$PHPMAILER_LANG['encoding'] = 'Encodage inconnu : ';
|
||||
$PHPMAILER_LANG['execute'] = 'Impossible de lancer l\'exécution : ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Impossible d\'accéder au fichier : ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Ouverture du fichier impossible : ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'L\'adresse d\'expéditeur suivante a échoué : ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Impossible d\'instancier la fonction mail.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'L\'adresse courriel n\'est pas valide : ';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' client de messagerie non supporté.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Vous devez fournir au moins une adresse de destinataire.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'Erreur SMTP : les destinataires suivants sont en erreur : ';
|
||||
$PHPMAILER_LANG['signing'] = 'Erreur de signature : ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'Échec de la connexion SMTP.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'Erreur du serveur SMTP : ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Impossible d\'initialiser ou de réinitialiser une variable : ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-gl.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-gl.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Galician PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author by Donato Rouco <donatorouco@gmail.com>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'Erro SMTP: Non puido ser autentificado.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'Erro SMTP: Non puido conectar co servidor SMTP.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'Erro SMTP: Datos non aceptados.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Corpo da mensaxe vacía';
|
||||
$PHPMAILER_LANG['encoding'] = 'Codificación descoñecida: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Non puido ser executado: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Nob puido acceder ó arquivo: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Erro de Arquivo: No puido abrir o arquivo: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'A(s) seguinte(s) dirección(s) de remitente(s) deron erro: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Non puido crear unha instancia da función Mail.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Non puido envia-lo correo: dirección de email inválida: ';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' mailer non está soportado.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Debe engadir polo menos unha dirección de email coma destino.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'Erro SMTP: Os seguintes destinos fallaron: ';
|
||||
$PHPMAILER_LANG['signing'] = 'Erro ó firmar: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() fallou.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'Erro do servidor SMTP: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Non puidemos axustar ou reaxustar a variábel: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-he.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-he.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Hebrew PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Ronny Sherer <ronny@hoojima.com>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'שגיאת SMTP: פעולת האימות נכשלה.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'שגיאת SMTP: לא הצלחתי להתחבר לשרת SMTP.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'שגיאת SMTP: מידע לא התקבל.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'גוף ההודעה ריק';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'כתובת שגויה';
|
||||
$PHPMAILER_LANG['encoding'] = 'קידוד לא מוכר: ';
|
||||
$PHPMAILER_LANG['execute'] = 'לא הצלחתי להפעיל את: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'לא ניתן לגשת לקובץ: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'שגיאת קובץ: לא ניתן לגשת לקובץ: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'כתובות הנמענים הבאות נכשלו: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'לא הצלחתי להפעיל את פונקציית המייל.';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' אינה נתמכת.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'חובה לספק לפחות כתובת אחת של מקבל המייל.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'שגיאת SMTP: הנמענים הבאים נכשלו: ';
|
||||
$PHPMAILER_LANG['signing'] = 'שגיאת חתימה: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'שגיאת שרת SMTP: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'לא ניתן לקבוע או לשנות את המשתנה: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-hr.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-hr.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Croatian PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Hrvoj3e <hrvoj3e@gmail.com>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTP Greška: Neuspjela autentikacija.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTP Greška: Ne mogu se spojiti na SMTP poslužitelj.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Greška: Podatci nisu prihvaćeni.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Sadržaj poruke je prazan.';
|
||||
$PHPMAILER_LANG['encoding'] = 'Nepoznati encoding: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Nije moguće izvršiti naredbu: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Nije moguće pristupiti datoteci: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Nije moguće otvoriti datoteku: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'SMTP Greška: Slanje s navedenih e-mail adresa nije uspjelo: ';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTP Greška: Slanje na navedenih e-mail adresa nije uspjelo: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Ne mogu pokrenuti mail funkcionalnost.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'E-mail nije poslan. Neispravna e-mail adresa.';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' mailer nije podržan.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Definirajte barem jednu adresu primatelja.';
|
||||
$PHPMAILER_LANG['signing'] = 'Greška prilikom prijave: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'Spajanje na SMTP poslužitelj nije uspjelo.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'Greška SMTP poslužitelja: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Ne mogu postaviti varijablu niti ju vratiti nazad: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-hu.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-hu.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Hungarian PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author @dominicus-75
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTP hiba: az azonosítás sikertelen.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTP hiba: nem lehet kapcsolódni az SMTP-szerverhez.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP hiba: adatok visszautasítva.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Üres az üzenettörzs.';
|
||||
$PHPMAILER_LANG['encoding'] = 'Ismeretlen kódolás: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Nem lehet végrehajtani: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'A következő fájl nem elérhető: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Fájl hiba: a következő fájlt nem lehet megnyitni: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'A feladóként megadott következő cím hibás: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'A PHP mail() függvényt nem sikerült végrehajtani.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Érvénytelen cím: ';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' a mailer-osztály nem támogatott.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Legalább egy címzettet fel kell tüntetni.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTP hiba: a címzettként megadott következő címek hibásak: ';
|
||||
$PHPMAILER_LANG['signing'] = 'Hibás aláírás: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'Hiba az SMTP-kapcsolatban.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'SMTP-szerver hiba: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'A következő változók beállítása nem sikerült: ';
|
26
3rdparty/phpmailer/language/phpmailer.lang-it.php
vendored
Executable file
26
3rdparty/phpmailer/language/phpmailer.lang-it.php
vendored
Executable file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* Italian PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Ilias Bartolini <brain79@inwind.it>
|
||||
* @author Stefano Sabatini <sabas88@gmail.com>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTP Error: Impossibile autenticarsi.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTP Error: Impossibile connettersi all\'host SMTP.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Dati non accettati dal server.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Il corpo del messaggio è vuoto';
|
||||
$PHPMAILER_LANG['encoding'] = 'Codifica dei caratteri sconosciuta: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Impossibile eseguire l\'operazione: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Impossibile accedere al file: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'File Error: Impossibile aprire il file: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'I seguenti indirizzi mittenti hanno generato errore: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Impossibile istanziare la funzione mail';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Impossibile inviare, l\'indirizzo email non è valido: ';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Deve essere fornito almeno un indirizzo ricevente';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = 'Mailer non supportato';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: I seguenti indirizzi destinatari hanno generato un errore: ';
|
||||
$PHPMAILER_LANG['signing'] = 'Errore nella firma: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() fallita.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'Errore del server SMTP: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Impossibile impostare o resettare la variabile: ';
|
26
3rdparty/phpmailer/language/phpmailer.lang-ja.php
vendored
Executable file
26
3rdparty/phpmailer/language/phpmailer.lang-ja.php
vendored
Executable file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* Japanese PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Mitsuhiro Yoshida <http://mitstek.com/>
|
||||
* @author Yoshi Sakai <http://bluemooninc.jp/>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTPエラー: 認証できませんでした。';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTPエラー: SMTPホストに接続できませんでした。';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTPエラー: データが受け付けられませんでした。';
|
||||
//$PHPMAILER_LANG['empty_message'] = 'Message body empty';
|
||||
$PHPMAILER_LANG['encoding'] = '不明なエンコーディング: ';
|
||||
$PHPMAILER_LANG['execute'] = '実行できませんでした: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'ファイルにアクセスできません: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'ファイルエラー: ファイルを開けません: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Fromアドレスを登録する際にエラーが発生しました: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'メール関数が正常に動作しませんでした。';
|
||||
//$PHPMAILER_LANG['invalid_address'] = 'Not sending, email address is invalid: ';
|
||||
$PHPMAILER_LANG['provide_address'] = '少なくとも1つメールアドレスを 指定する必要があります。';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' メーラーがサポートされていません。';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTPエラー: 次の受信者アドレスに 間違いがあります: ';
|
||||
//$PHPMAILER_LANG['signing'] = 'Signing Error: ';
|
||||
//$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.';
|
||||
//$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: ';
|
||||
//$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-ka.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-ka.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Georgian PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTP შეცდომა: ავტორიზაცია შეუძლებელია.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTP შეცდომა: SMTP სერვერთან დაკავშირება შეუძლებელია.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP შეცდომა: მონაცემები არ იქნა მიღებული.';
|
||||
$PHPMAILER_LANG['encoding'] = 'კოდირების უცნობი ტიპი: ';
|
||||
$PHPMAILER_LANG['execute'] = 'შეუძლებელია შემდეგი ბრძანების შესრულება: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'შეუძლებელია წვდომა ფაილთან: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'ფაილური სისტემის შეცდომა: არ იხსნება ფაილი: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'გამგზავნის არასწორი მისამართი: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'mail ფუნქციის გაშვება ვერ ხერხდება.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'გთხოვთ მიუთითოთ ერთი ადრესატის e-mail მისამართი მაინც.';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' - საფოსტო სერვერის მხარდაჭერა არ არის.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTP შეცდომა: შემდეგ მისამართებზე გაგზავნა ვერ მოხერხდა: ';
|
||||
$PHPMAILER_LANG['empty_message'] = 'შეტყობინება ცარიელია';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'არ გაიგზავნა, e-mail მისამართის არასწორი ფორმატი: ';
|
||||
$PHPMAILER_LANG['signing'] = 'ხელმოწერის შეცდომა: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'შეცდომა SMTP სერვერთან დაკავშირებისას';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'SMTP სერვერის შეცდომა: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'შეუძლებელია შემდეგი ცვლადის შექმნა ან შეცვლა: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-lt.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-lt.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Lithuanian PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Dainius Kaupaitis <dk@sum.lt>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTP klaida: autentifikacija nepavyko.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTP klaida: nepavyksta prisijungti prie SMTP stoties.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP klaida: duomenys nepriimti.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Laiško turinys tuščias';
|
||||
$PHPMAILER_LANG['encoding'] = 'Neatpažinta koduotė: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Nepavyko įvykdyti komandos: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Byla nepasiekiama: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Bylos klaida: Nepavyksta atidaryti: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Neteisingas siuntėjo adresas: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Nepavyko paleisti mail funkcijos.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Neteisingas adresas';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' pašto stotis nepalaikoma.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Nurodykite bent vieną gavėjo adresą.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTP klaida: nepavyko išsiųsti šiems gavėjams: ';
|
||||
$PHPMAILER_LANG['signing'] = 'Prisijungimo klaida: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP susijungimo klaida';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'SMTP stoties klaida: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Nepavyko priskirti reikšmės kintamajam: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-lv.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-lv.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Latvian PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Eduards M. <e@npd.lv>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTP kļūda: Autorizācija neizdevās.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTP Kļūda: Nevar izveidot savienojumu ar SMTP serveri.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Kļūda: Nepieņem informāciju.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Ziņojuma teksts ir tukšs';
|
||||
$PHPMAILER_LANG['encoding'] = 'Neatpazīts kodējums: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Neizdevās izpildīt komandu: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Fails nav pieejams: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Faila kļūda: Nevar atvērt failu: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Nepareiza sūtītāja adrese: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Nevar palaist sūtīšanas funkciju.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Nepareiza adrese';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' sūtītājs netiek atbalstīts.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Lūdzu, norādiet vismaz vienu adresātu.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTP kļūda: neizdevās nosūtīt šādiem saņēmējiem: ';
|
||||
$PHPMAILER_LANG['signing'] = 'Autorizācijas kļūda: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP savienojuma kļūda';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'SMTP servera kļūda: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Nevar piešķirt mainīgā vērtību: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-nl.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-nl.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Dutch PHPMailer language file: refer to class.phpmailer.php for definitive list.
|
||||
* @package PHPMailer
|
||||
* @author Tuxion <team@tuxion.nl>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTP-fout: authenticatie mislukt.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTP-fout: kon niet verbinden met SMTP-host.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP-fout: data niet geaccepteerd.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Berichttekst is leeg';
|
||||
$PHPMAILER_LANG['encoding'] = 'Onbekende codering: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Kon niet uitvoeren: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Kreeg geen toegang tot bestand: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Bestandsfout: kon bestand niet openen: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Het volgende afzendersadres is mislukt: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Kon mailfunctie niet initialiseren.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Ongeldig adres';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' mailer wordt niet ondersteund.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Er moet minstens één ontvanger worden opgegeven.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTP-fout: de volgende ontvangers zijn mislukt: ';
|
||||
$PHPMAILER_LANG['signing'] = 'Signeerfout: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Verbinding mislukt.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'SMTP-serverfout: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Kan de volgende variablen niet instellen of resetten: ';
|
24
3rdparty/phpmailer/language/phpmailer.lang-no.php
vendored
Executable file
24
3rdparty/phpmailer/language/phpmailer.lang-no.php
vendored
Executable file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* Norwegian PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTP Feil: Kunne ikke authentisere.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTP Feil: Kunne ikke koble til SMTP host.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Feil: Data ble ikke akseptert.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Meldingsinnholdet er tomt';
|
||||
$PHPMAILER_LANG['encoding'] = 'Ukjent tegnkoding: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Kunne ikke utføre: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Får ikke tilgang til filen: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Fil feil: Kunne ikke åpne filen: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Følgende avsenderadresse feilet: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Kunne ikke initialisere mailfunksjonen.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Meldingen ble ikke sendt, følgende adresse er ugyldig: ';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Du må angi minst en mottakeradresse.';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' mailer er ikke supportert.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTP Feil: Følgende mottagere feilet: ';
|
||||
$PHPMAILER_LANG['signing'] = 'Signeringsfeil: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() feilet.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'SMTP-serverfeil: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Kan ikke sette eller resette variabelen: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-pl.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-pl.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Polish PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'Błąd SMTP: Nie można przeprowadzić uwierzytelnienia.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'Błąd SMTP: Nie można połączyć się z wybranym hostem.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'Błąd SMTP: Dane nie zostały przyjęte.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Wiadomość jest pusta.';
|
||||
$PHPMAILER_LANG['encoding'] = 'Nieznany sposób kodowania znaków: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Nie można uruchomić: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Brak dostępu do pliku: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Nie można otworzyć pliku: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Następujący adres Nadawcy jest nieprawidłowy: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Nie można wywołać funkcji mail(). Sprawdź konfigurację serwera.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Nie można wysłać wiadomości, '.
|
||||
'następujący adres Odbiorcy jest nieprawidłowy: ';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Należy podać prawidłowy adres email Odbiorcy.';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = 'Wybrana metoda wysyłki wiadomości nie jest obsługiwana.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'Błąd SMTP: Następujący odbiorcy są nieprawidłowi: ';
|
||||
$PHPMAILER_LANG['signing'] = 'Błąd podpisywania wiadomości: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() zakończone niepowodzeniem.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'Błąd SMTP: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Nie można ustawić lub zmodyfikować zmiennej: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-pt.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-pt.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Portuguese (European) PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Jonadabe <jonadabe@hotmail.com>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'Erro do SMTP: Não foi possível realizar a autenticação.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'Erro do SMTP: Não foi possível realizar ligação com o servidor SMTP.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'Erro do SMTP: Os dados foram rejeitados.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'A mensagem no e-mail está vazia.';
|
||||
$PHPMAILER_LANG['encoding'] = 'Codificação desconhecida: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Não foi possível executar: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Não foi possível aceder o ficheiro: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Abertura do ficheiro: Não foi possível abrir o ficheiro: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Ocorreram falhas nos endereços dos seguintes remententes: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Não foi possível iniciar uma instância da função mail.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Não foi enviado nenhum e-mail para o endereço de e-mail inválido: ';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' mailer não é suportado.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Tem de fornecer pelo menos um endereço como destinatário do e-mail.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'Erro do SMTP: O endereço do seguinte destinatário falhou: ';
|
||||
$PHPMAILER_LANG['signing'] = 'Erro ao assinar: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() falhou.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'Erro de servidor SMTP: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Não foi possível definir ou redefinir a variável: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-ro.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-ro.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Romanian PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Catalin Constantin <catalin@dazoot.ro>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'Eroare SMTP: Nu a functionat autentificarea.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'Eroare SMTP: Nu m-am putut conecta la adresa SMTP.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'Eroare SMTP: Continutul mailului nu a fost acceptat.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Mesajul este gol.';
|
||||
$PHPMAILER_LANG['encoding'] = 'Encodare necunoscuta: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Nu pot executa: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Nu pot accesa fisierul: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Eroare de fisier: Nu pot deschide fisierul: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Urmatoarele adrese From au dat eroare: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Nu am putut instantia functia mail.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Adresa de email nu este valida. ';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' mailer nu este suportat.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Trebuie sa adaugati cel putin un recipient (adresa de mail).';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'Eroare SMTP: Urmatoarele adrese de mail au dat eroare: ';
|
||||
$PHPMAILER_LANG['signing'] = 'A aparut o problema la semnarea emailului. ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'Conectarea la serverul SMTP a esuat.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'A aparut o eroare la serverul SMTP. ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Nu se poate seta/reseta variabila. ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-ru.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-ru.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Russian PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Alexey Chumakov <alex@chumakov.ru>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'Ошибка SMTP: ошибка авторизации.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'Ошибка SMTP: не удается подключиться к серверу SMTP.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'Ошибка SMTP: данные не приняты.';
|
||||
$PHPMAILER_LANG['encoding'] = 'Неизвестный вид кодировки: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Невозможно выполнить команду: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Нет доступа к файлу: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Файловая ошибка: не удается открыть файл: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Неверный адрес отправителя: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Невозможно запустить функцию mail.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Пожалуйста, введите хотя бы один адрес e-mail получателя.';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' - почтовый сервер не поддерживается.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'Ошибка SMTP: отправка по следующим адресам получателей не удалась: ';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Пустое тело сообщения';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Не отослано, неправильный формат email адреса: ';
|
||||
$PHPMAILER_LANG['signing'] = 'Ошибка подписывания: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'Ошибка соединения с SMTP-сервером';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'Ошибка SMTP-сервера: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Невозможно установить или переустановить переменную: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-se.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-se.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Swedish PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Johan Linnér <johan@linner.biz>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTP fel: Kunde inte autentisera.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTP fel: Kunde inte ansluta till SMTP-server.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP fel: Data accepterades inte.';
|
||||
//$PHPMAILER_LANG['empty_message'] = 'Message body empty';
|
||||
$PHPMAILER_LANG['encoding'] = 'Okänt encode-format: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Kunde inte köra: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Ingen åtkomst till fil: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Fil fel: Kunde inte öppna fil: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Följande avsändaradress är felaktig: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Kunde inte initiera e-postfunktion.';
|
||||
//$PHPMAILER_LANG['invalid_address'] = 'Not sending, email address is invalid: ';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Du måste ange minst en mottagares e-postadress.';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' mailer stöds inte.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTP fel: Följande mottagare är felaktig: ';
|
||||
//$PHPMAILER_LANG['signing'] = 'Signing Error: ';
|
||||
//$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.';
|
||||
//$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: ';
|
||||
//$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-sk.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-sk.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Slovak PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Michal Tinka <michaltinka@gmail.com>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTP Error: Chyba autentifikácie.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTP Error: Nebolo možné nadviazať spojenie so SMTP serverom.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Dáta neboli prijaté';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Prázdne telo správy.';
|
||||
$PHPMAILER_LANG['encoding'] = 'Neznáme kódovanie: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Nedá sa vykonať: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Súbor nebol nájdený: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'File Error: Súbor sa otvoriť pre čítanie: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Následujúca adresa From je nesprávna: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Nedá sa vytvoriť inštancia emailovej funkcie.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Neodoslané, emailová adresa je nesprávna: ';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' emailový klient nieje podporovaný.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Musíte zadať aspoň jednu emailovú adresu príjemcu.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: Adresy príjemcov niesu správne ';
|
||||
$PHPMAILER_LANG['signing'] = 'Chyba prihlasovania: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() zlyhalo.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'SMTP chyba serveru: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Nemožno nastaviť alebo resetovať premennú: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-sr.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-sr.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Serbian PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Александар Јевремовић <ajevremovic@gmail.com>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTP грешка: аутентификација није успела.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTP грешка: није могуће повезивање са SMTP сервером.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP грешка: подаци нису прихваћени.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Садржај поруке је празан.';
|
||||
$PHPMAILER_LANG['encoding'] = 'Непознато кодовање: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Није могуће извршити наредбу: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Није могуће приступити датотеци: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Није могуће отворити датотеку: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'SMTP грешка: слање са следећих адреса није успело: ';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTP грешка: слање на следеће адресе није успело: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Није могуће покренути mail функцију.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Порука није послата због неисправне адресе.';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' мејлер није подржан.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Потребно је задати најмање једну адресу.';
|
||||
$PHPMAILER_LANG['signing'] = 'Грешка приликом пријављивања: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'Повезивање са SMTP сервером није успело.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'Грешка SMTP сервера: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Није могуће задати променљиву, нити је вратити уназад: ';
|
28
3rdparty/phpmailer/language/phpmailer.lang-tr.php
vendored
Executable file
28
3rdparty/phpmailer/language/phpmailer.lang-tr.php
vendored
Executable file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Turkish PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Elçin Özel
|
||||
* @author Can Yılmaz
|
||||
* @author Mehmet Benlioğlu
|
||||
* @author @yasinaydin
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTP Hatası: Oturum açılamadı.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTP Hatası: SMTP sunucusuna bağlanılamadı.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Hatası: Veri kabul edilmedi.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Mesajın içeriği boş';
|
||||
$PHPMAILER_LANG['encoding'] = 'Bilinmeyen karakter kodlama: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Çalıştırılamadı: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Dosyaya erişilemedi: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Dosya Hatası: Dosya açılamadı: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Belirtilen adreslere gönderme başarısız: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Örnek e-posta fonksiyonu oluşturulamadı.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Geçersiz e-posta adresi: ';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' e-posta kütüphanesi desteklenmiyor.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'En az bir alıcı e-posta adresi belirtmelisiniz.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTP Hatası: Belirtilen alıcılara ulaşılamadı: ';
|
||||
$PHPMAILER_LANG['signing'] = 'İmzalama hatası: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP connect() fonksiyonu başarısız.';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'SMTP sunucu hatası: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Değişken ayarlanamadı ya da sıfırlanamadı: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-uk.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-uk.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Ukrainian PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author Yuriy Rudyy <yrudyy@prs.net.ua>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'Помилка SMTP: помилка авторизації.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'Помилка SMTP: не вдається підєднатися до серверу SMTP.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'Помилка SMTP: дані не прийняті.';
|
||||
$PHPMAILER_LANG['encoding'] = 'Невідомий тип кодування: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Неможливо виконати команду: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Немає доступу до файлу: ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Помилка файлової системи: не вдається відкрити файл: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Невірна адреса відправника: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Неможливо запустити функцію mail.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Будь-ласка, введіть хоча б одну адресу e-mail отримувача.';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' - поштовий сервер не підтримується.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'Помилка SMTP: відправти наступним отрмувачам не вдалася: ';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Пусте тіло повідомлення';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Не відправлено, невірний формат email адреси: ';
|
||||
$PHPMAILER_LANG['signing'] = 'Помилка підпису: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'Помилка зєднання із SMTP-сервером';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'Помилка SMTP-сервера: ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Неможливо встановити або перевстановити змінну: ';
|
25
3rdparty/phpmailer/language/phpmailer.lang-vi.php
vendored
Executable file
25
3rdparty/phpmailer/language/phpmailer.lang-vi.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Vietnamese (Tiếng Việt) PHPMailer language file: refer to English translation for definitive list.
|
||||
* @package PHPMailer
|
||||
* @author VINADES.,JSC <contact@vinades.vn>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'Lỗi SMTP: Không thể xác thực.';
|
||||
$PHPMAILER_LANG['connect_host'] = 'Lỗi SMTP: Không thể kết nối máy chủ SMTP.';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'Lỗi SMTP: Dữ liệu không được chấp nhận.';
|
||||
$PHPMAILER_LANG['empty_message'] = 'Không có nội dung';
|
||||
$PHPMAILER_LANG['encoding'] = 'Mã hóa không xác định: ';
|
||||
$PHPMAILER_LANG['execute'] = 'Không thực hiện được: ';
|
||||
$PHPMAILER_LANG['file_access'] = 'Không thể truy cập tệp tin ';
|
||||
$PHPMAILER_LANG['file_open'] = 'Lỗi Tập tin: Không thể mở tệp tin: ';
|
||||
$PHPMAILER_LANG['from_failed'] = 'Lỗi địa chỉ gửi đi: ';
|
||||
$PHPMAILER_LANG['instantiate'] = 'Không dùng được các hàm gửi thư.';
|
||||
$PHPMAILER_LANG['invalid_address'] = 'Đại chỉ emai không đúng';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = ' trình gửi thư không được hỗ trợ.';
|
||||
$PHPMAILER_LANG['provide_address'] = 'Bạn phải cung cấp ít nhất một địa chỉ người nhận.';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'Lỗi SMTP: lỗi địa chỉ người nhận: ';
|
||||
$PHPMAILER_LANG['signing'] = 'Lỗi đăng nhập: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'Lỗi kết nối với SMTP';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'Lỗi máy chủ smtp ';
|
||||
$PHPMAILER_LANG['variable_set'] = 'Không thể thiết lập hoặc thiết lập lại biến: ';
|
26
3rdparty/phpmailer/language/phpmailer.lang-zh.php
vendored
Executable file
26
3rdparty/phpmailer/language/phpmailer.lang-zh.php
vendored
Executable file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* Traditional Chinese PHPMailer language file: refer to English translation for definitive list
|
||||
* @package PHPMailer
|
||||
* @author liqwei <liqwei@liqwei.com>
|
||||
* @author Peter Dave Hello <@PeterDaveHello/>
|
||||
*/
|
||||
|
||||
$PHPMAILER_LANG['authenticate'] = 'SMTP 錯誤:登入失敗。';
|
||||
$PHPMAILER_LANG['connect_host'] = 'SMTP 錯誤:無法連線到 SMTP 主機。';
|
||||
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP 錯誤:無法接受的資料。';
|
||||
$PHPMAILER_LANG['empty_message'] = '郵件內容為空';
|
||||
$PHPMAILER_LANG['encoding'] = '未知編碼: ';
|
||||
$PHPMAILER_LANG['file_access'] = '無法存取檔案:';
|
||||
$PHPMAILER_LANG['file_open'] = '檔案錯誤:無法開啟檔案:';
|
||||
$PHPMAILER_LANG['from_failed'] = '發送地址錯誤:';
|
||||
$PHPMAILER_LANG['execute'] = '無法執行:';
|
||||
$PHPMAILER_LANG['instantiate'] = '未知函數呼叫。';
|
||||
$PHPMAILER_LANG['invalid_address'] = '因為電子郵件地址無效,無法傳送: ';
|
||||
$PHPMAILER_LANG['provide_address'] = '必須提供至少一個收件人地址。';
|
||||
$PHPMAILER_LANG['mailer_not_supported'] = '不支援的發信客戶端。';
|
||||
$PHPMAILER_LANG['recipients_failed'] = 'SMTP 錯誤:收件人地址錯誤:';
|
||||
$PHPMAILER_LANG['signing'] = '登入失敗: ';
|
||||
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP連線失敗';
|
||||
$PHPMAILER_LANG['smtp_error'] = 'SMTP伺服器錯誤: ';
|
||||
$PHPMAILER_LANG['variable_set'] = '無法設定或重設變數: ';
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user