├── .gitignore ├── FileWatcher.config.php ├── FileWatcher.php ├── PHPMailer_5.2.0 ├── LICENSE ├── README ├── aboutus.html ├── changelog.txt ├── class.phpmailer.php ├── class.pop3.php ├── class.smtp.php ├── docs.ini ├── docs │ ├── Callback_function_notes.txt │ ├── DomainKeys_notes.txt │ ├── Note_for_SMTP_debugging.txt │ ├── extending.html │ ├── faq.html │ ├── pop3_article.txt │ └── use_gmail.txt ├── examples │ ├── contents.html │ ├── images │ │ ├── phpmailer.gif │ │ └── phpmailer_mini.gif │ ├── index.html │ ├── test_db_smtp_basic.php │ ├── test_mail_advanced.php │ ├── test_mail_basic.php │ ├── test_pop_before_smtp_advanced.php │ ├── test_pop_before_smtp_basic.php │ ├── test_sendmail_advanced.php │ ├── test_sendmail_basic.php │ ├── test_smtp_advanced.php │ ├── test_smtp_advanced_no_auth.php │ ├── test_smtp_basic.php │ ├── test_smtp_basic_no_auth.php │ ├── test_smtp_gmail_advanced.php │ └── test_smtp_gmail_basic.php ├── extras │ └── htmlfilter.php ├── language │ ├── phpmailer.lang-ar.php │ ├── phpmailer.lang-br.php │ ├── phpmailer.lang-ca.php │ ├── phpmailer.lang-ch.php │ ├── phpmailer.lang-cz.php │ ├── phpmailer.lang-de.php │ ├── phpmailer.lang-dk.php │ ├── phpmailer.lang-es.php │ ├── phpmailer.lang-et.php │ ├── phpmailer.lang-fi.php │ ├── phpmailer.lang-fo.php │ ├── phpmailer.lang-fr.php │ ├── phpmailer.lang-hu.php │ ├── phpmailer.lang-it.php │ ├── phpmailer.lang-ja.php │ ├── phpmailer.lang-nl.php │ ├── phpmailer.lang-no.php │ ├── phpmailer.lang-pl.php │ ├── phpmailer.lang-ro.php │ ├── phpmailer.lang-ru.php │ ├── phpmailer.lang-se.php │ ├── phpmailer.lang-tr.php │ ├── phpmailer.lang-zh.php │ └── phpmailer.lang-zh_cn.php ├── test │ ├── contents.html │ ├── phpmailerTest.php │ ├── test.png │ ├── test_callback.php │ └── testemail.php └── test_script │ ├── LGPLv3.txt │ ├── contents.html │ ├── images │ ├── aikido.gif │ ├── bkgrnd.gif │ └── phpmailer.gif │ ├── index.php │ ├── scripts │ ├── clipboard.swf │ ├── shBrushBash.js │ ├── shBrushCSharp.js │ ├── shBrushCpp.js │ ├── shBrushCss.js │ ├── shBrushDelphi.js │ ├── shBrushDiff.js │ ├── shBrushGroovy.js │ ├── shBrushJScript.js │ ├── shBrushJava.js │ ├── shBrushPerl.js │ ├── shBrushPhp.js │ ├── shBrushPlain.js │ ├── shBrushPython.js │ ├── shBrushRuby.js │ ├── shBrushScala.js │ ├── shBrushSql.js │ ├── shBrushVb.js │ ├── shBrushXml.js │ ├── shCore.js │ └── shLegacy.js │ ├── src │ ├── shCore.js │ └── shLegacy.js │ ├── styles │ ├── help.png │ ├── magnifier.png │ ├── page_white_code.png │ ├── page_white_copy.png │ ├── printer.png │ ├── shCore.css │ ├── shThemeDefault.css │ ├── shThemeDjango.css │ ├── shThemeEmacs.css │ ├── shThemeFadeToGrey.css │ ├── shThemeMidnight.css │ ├── shThemeRDark.css │ └── wrapping.png │ └── test.html ├── README.md └── example.php /.gitignore: -------------------------------------------------------------------------------- 1 | FileWatcher.log 2 | FileWatcher.MasterHashes.txt -------------------------------------------------------------------------------- /FileWatcher.config.php: -------------------------------------------------------------------------------- 1 | 'secretPassword', 5 | 'includePaths' => array('/tmp'), // put a list of absolute or relative paths here 6 | 'excludeFolderList' => array('/tmp/exclude'), 7 | 'excludeExtensionList' => array('jpg', 'png', 'pdf'), 8 | 9 | 'hashMasterFilename' => 'FileWatcher.MasterHashes.txt', 10 | 'logFilename' => 'FileWatcher.log', 11 | 'overwriteMasterFile' => true, 12 | 13 | 'alertEmailAddress' => 'alerts@domain.de', 14 | 'alertEmailSubject' => 'ALERT: File hashes on your server have changed', 15 | 'alertEmailMethod' => 'mail', // mail or smtp 16 | 'alertEmailSmtpServer' => '1.2.3.4', 17 | 'alertEmailSmtpUser' => 'XXXX', 18 | 'alertEmailSmtpPass' => 'XXXX', 19 | ); -------------------------------------------------------------------------------- /PHPMailer_5.2.0/README: -------------------------------------------------------------------------------- 1 | /******************************************************************* 2 | * The http://phpmailer.codeworxtech.com/ website now carries a few * 3 | * advertisements through the Google Adsense network. Please visit * 4 | * the advertiser sites and help us offset some of our costs. * 5 | * Thanks .... * 6 | ********************************************************************/ 7 | 8 | PHPMailer 9 | Full Featured Email Transfer Class for PHP 10 | ========================================== 11 | 12 | Version 5.0.0 (April 02, 2009) 13 | 14 | With the release of this version, we are initiating a new version numbering 15 | system to differentiate from the PHP4 version of PHPMailer. 16 | 17 | Most notable in this release is fully object oriented code. 18 | 19 | We now have available the PHPDocumentor (phpdocs) documentation. This is 20 | separate from the regular download to keep file sizes down. Please see the 21 | download area of http://phpmailer.codeworxtech.com. 22 | 23 | We also have created a new test script (see /test_script) that you can use 24 | right out of the box. Copy the /test_script folder directly to your server (in 25 | the same structure ... with class.phpmailer.php and class.smtp.php in the 26 | folder above it. Then launch the test script with: 27 | http://www.yourdomain.com/phpmailer/test_script/index.php 28 | from this one script, you can test your server settings for mail(), sendmail (or 29 | qmail), and SMTP. This will email you a sample email (using contents.html for 30 | the email body) and two attachments. One of the attachments is used as an inline 31 | image to demonstrate how PHPMailer will automatically detect if attachments are 32 | the same source as inline graphics and only include one version. Once you click 33 | the Submit button, the results will be displayed including any SMTP debug 34 | information and send status. We will also display a version of the script that 35 | you can cut and paste to include in your projects. Enjoy! 36 | 37 | Version 2.3 (November 08, 2008) 38 | 39 | We have removed the /phpdoc from the downloads. All documentation is now on 40 | the http://phpmailer.codeworxtech.com website. 41 | 42 | The phpunit.php has been updated to support PHP5. 43 | 44 | For all other changes and notes, please see the changelog. 45 | 46 | Donations are accepted at PayPal with our id "paypal@worxteam.com". 47 | 48 | Version 2.2 (July 15 2008) 49 | 50 | - see the changelog. 51 | 52 | Version 2.1 (June 04 2008) 53 | 54 | With this release, we are announcing that the development of PHPMailer for PHP5 55 | will be our focus from this date on. We have implemented all the enhancements 56 | and fixes from the latest release of PHPMailer for PHP4. 57 | 58 | Far more important, though, is that this release of PHPMailer (v2.1) is 59 | fully tested with E_STRICT error checking enabled. 60 | 61 | ** NOTE: WE HAVE A NEW LANGUAGE VARIABLE FOR DIGITALLY SIGNED S/MIME EMAILS. 62 | IF YOU CAN HELP WITH LANGUAGES OTHER THAN ENGLISH AND SPANISH, IT WOULD BE 63 | APPRECIATED. 64 | 65 | We have now added S/MIME functionality (ability to digitally sign emails). 66 | BIG THANKS TO "sergiocambra" for posting this patch back in November 2007. 67 | The "Signed Emails" functionality adds the Sign method to pass the private key 68 | filename and the password to read it, and then email will be sent with 69 | content-type multipart/signed and with the digital signature attached. 70 | 71 | A quick note on E_STRICT: 72 | 73 | - In about half the test environments the development version was subjected 74 | to, an error was thrown for the date() functions (used at line 1565 and 1569). 75 | This is NOT a PHPMailer error, it is the result of an incorrectly configured 76 | PHP5 installation. The fix is to modify your 'php.ini' file and include the 77 | date.timezone = America/New York 78 | directive, (for your own server timezone) 79 | - If you do get this error, and are unable to access your php.ini file, there is 80 | a workaround. In your PHP script, add 81 | date_default_timezone_set('America/Toronto'); 82 | 83 | * do NOT try to use 84 | $myVar = date_default_timezone_get(); 85 | as a test, it will throw an error. 86 | 87 | We have also included more example files to show the use of "sendmail", "mail()", 88 | "smtp", and "gmail". 89 | 90 | We are also looking for more programmers to join the volunteer development team. 91 | If you have an interest in this, please let us know. 92 | 93 | Enjoy! 94 | 95 | 96 | Version 2.1.0beta1 & beta2 97 | 98 | please note, this is BETA software 99 | ** DO NOT USE THIS IN PRODUCTION OR LIVE PROJECTS 100 | INTENDED STRICTLY FOR TESTING 101 | 102 | ** NOTE: 103 | 104 | As of November 2007, PHPMailer has a new project team headed by industry 105 | veteran Andy Prevost (codeworxtech). The first release in more than two 106 | years will focus on fixes, adding ease-of-use enhancements, provide 107 | basic compatibility with PHP4 and PHP5 using PHP5 backwards compatibility 108 | features. A new release is planned before year-end 2007 that will provide 109 | full compatiblity with PHP4 and PHP5, as well as more bug fixes. 110 | 111 | We are looking for project developers to assist in restoring PHPMailer to 112 | its leadership position. Our goals are to simplify use of PHPMailer, provide 113 | good documentation and examples, and retain backward compatibility to level 114 | 1.7.3 standards. 115 | 116 | If you are interested in helping out, visit http://sourceforge.net/projects/phpmailer 117 | and indicate your interest. 118 | 119 | ** 120 | 121 | http://phpmailer.sourceforge.net/ 122 | 123 | This software is licenced under the LGPL. Please read LICENSE for information on the 124 | software availability and distribution. 125 | 126 | Class Features: 127 | - Send emails with multiple TOs, CCs, BCCs and REPLY-TOs 128 | - Redundant SMTP servers 129 | - Multipart/alternative emails for mail clients that do not read HTML email 130 | - Support for 8bit, base64, binary, and quoted-printable encoding 131 | - Uses the same methods as the very popular AspEmail active server (COM) component 132 | - SMTP authentication 133 | - Native language support 134 | - Word wrap, and more! 135 | 136 | Why you might need it: 137 | 138 | Many PHP developers utilize email in their code. The only PHP function 139 | that supports this is the mail() function. However, it does not expose 140 | any of the popular features that many email clients use nowadays like 141 | HTML-based emails and attachments. There are two proprietary 142 | development tools out there that have all the functionality built into 143 | easy to use classes: AspEmail(tm) and AspMail. Both of these 144 | programs are COM components only available on Windows. They are also a 145 | little pricey for smaller projects. 146 | 147 | Since I do Linux development I�ve missed these tools for my PHP coding. 148 | So I built a version myself that implements the same methods (object 149 | calls) that the Windows-based components do. It is open source and the 150 | LGPL license allows you to place the class in your proprietary PHP 151 | projects. 152 | 153 | 154 | Installation: 155 | 156 | Copy class.phpmailer.php into your php.ini include_path. If you are 157 | using the SMTP mailer then place class.smtp.php in your path as well. 158 | In the language directory you will find several files like 159 | phpmailer.lang-en.php. If you look right before the .php extension 160 | that there are two letters. These represent the language type of the 161 | translation file. For instance "en" is the English file and "br" is 162 | the Portuguese file. Chose the file that best fits with your language 163 | and place it in the PHP include path. If your language is English 164 | then you have nothing more to do. If it is a different language then 165 | you must point PHPMailer to the correct translation. To do this, call 166 | the PHPMailer SetLanguage method like so: 167 | 168 | // To load the Portuguese version 169 | $mail->SetLanguage("br", "/optional/path/to/language/directory/"); 170 | 171 | That's it. You should now be ready to use PHPMailer! 172 | 173 | 174 | A Simple Example: 175 | 176 | IsSMTP(); // set mailer to use SMTP 182 | $mail->Host = "smtp1.example.com;smtp2.example.com"; // specify main and backup server 183 | $mail->SMTPAuth = true; // turn on SMTP authentication 184 | $mail->Username = "jswan"; // SMTP username 185 | $mail->Password = "secret"; // SMTP password 186 | 187 | $mail->From = "from@example.com"; 188 | $mail->FromName = "Mailer"; 189 | $mail->AddAddress("josh@example.net", "Josh Adams"); 190 | $mail->AddAddress("ellen@example.com"); // name is optional 191 | $mail->AddReplyTo("info@example.com", "Information"); 192 | 193 | $mail->WordWrap = 50; // set word wrap to 50 characters 194 | $mail->AddAttachment("/var/tmp/file.tar.gz"); // add attachments 195 | $mail->AddAttachment("/tmp/image.jpg", "new.jpg"); // optional name 196 | $mail->IsHTML(true); // set email format to HTML 197 | 198 | $mail->Subject = "Here is the subject"; 199 | $mail->Body = "This is the HTML message body in bold!"; 200 | $mail->AltBody = "This is the body in plain text for non-HTML mail clients"; 201 | 202 | if(!$mail->Send()) 203 | { 204 | echo "Message could not be sent.

"; 205 | echo "Mailer Error: " . $mail->ErrorInfo; 206 | exit; 207 | } 208 | 209 | echo "Message has been sent"; 210 | ?> 211 | 212 | CHANGELOG 213 | 214 | See ChangeLog.txt 215 | 216 | Download: http://sourceforge.net/project/showfiles.php?group_id=26031 217 | 218 | Andy Prevost 219 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/docs.ini: -------------------------------------------------------------------------------- 1 | ;; phpDocumentor parse configuration file 2 | ;; 3 | ;; This file is designed to cut down on repetitive typing on the command-line or web interface 4 | ;; You can copy this file to create a number of configuration files that can be used with the 5 | ;; command-line switch -c, as in phpdoc -c default.ini or phpdoc -c myini.ini. The web 6 | ;; interface will automatically generate a list of .ini files that can be used. 7 | ;; 8 | ;; default.ini is used to generate the online manual at http://www.phpdoc.org/docs 9 | ;; 10 | ;; ALL .ini files must be in the user subdirectory of phpDocumentor with an extension of .ini 11 | ;; 12 | ;; Copyright 2002, Greg Beaver 13 | ;; 14 | ;; WARNING: do not change the name of any command-line parameters, phpDocumentor will ignore them 15 | 16 | [Parse Data] 17 | ;; title of all the documentation 18 | ;; legal values: any string 19 | title = PHPMailer Documentation 20 | 21 | ;; parse files that start with a . like .bash_profile 22 | ;; legal values: true, false 23 | hidden = false 24 | 25 | ;; show elements marked @access private in documentation by setting this to on 26 | ;; legal values: on, off 27 | parseprivate = on 28 | 29 | ;; parse with javadoc-like description (first sentence is always the short description) 30 | ;; legal values: on, off 31 | javadocdesc = off 32 | 33 | ;; add any custom @tags separated by commas here 34 | ;; legal values: any legal tagname separated by commas. 35 | ;customtags = mytag1,mytag2 36 | 37 | ;; This is only used by the XML:DocBook/peardoc2 converter 38 | defaultcategoryname = Documentation 39 | 40 | ;; what is the main package? 41 | ;; legal values: alphanumeric string plus - and _ 42 | defaultpackagename = PHPMailer 43 | 44 | ;; output any parsing information? set to on for cron jobs 45 | ;; legal values: on 46 | ;quiet = on 47 | 48 | ;; parse a PEAR-style repository. Do not turn this on if your project does 49 | ;; not have a parent directory named "pear" 50 | ;; legal values: on/off 51 | ;pear = on 52 | 53 | ;; where should the documentation be written? 54 | ;; legal values: a legal path 55 | target = ./phpdoc 56 | 57 | ;; limit output to the specified packages, even if others are parsed 58 | ;; legal values: package names separated by commas 59 | ;packageoutput = package1,package2 60 | 61 | ;; comma-separated list of files to parse 62 | ;; legal values: paths separated by commas 63 | ;filename = /path/to/file1,/path/to/file2,fileincurrentdirectory 64 | filename = *.php 65 | 66 | ;; comma-separated list of directories to parse 67 | ;; legal values: directory paths separated by commas 68 | ;directory = /path1,/path2,.,..,subdirectory 69 | ;directory = /home/jeichorn/cvs/pear 70 | ;;directory = . 71 | 72 | ;; template base directory (the equivalent directory of /phpDocumentor) 73 | ;templatebase = /path/to/my/templates 74 | 75 | ;; comma-separated list of files, directories or wildcards ? and * (any wildcard) to ignore 76 | ;; legal values: any wildcard strings separated by commas 77 | ;ignore = /path/to/ignore*,*list.php,myfile.php,subdirectory/ 78 | ignore = templates_c/,*HTML/default/*,spec/,*CVS*,*.txt,docs/,phpdoc/,examples/,test/ 79 | 80 | ;; comma-separated list of Converters to use in outputformat:Convertername:templatedirectory format 81 | ;; legal values: HTML:frames:default,HTML:frames:l0l33t,HTML:frames:phpdoc.de,HTML:frames:phphtmllib, 82 | ;; HTML:frames:earthli, 83 | ;; HTML:frames:DOM/default,HTML:frames:DOM/l0l33t,HTML:frames:DOM/phpdoc.de, 84 | ;; HTML:frames:DOM/phphtmllib,HTML:frames:DOM/earthli 85 | ;; HTML:Smarty:default,HTML:Smarty:PHP,HTML:Smarty:HandS 86 | ;; PDF:default:default,CHM:default:default,XML:DocBook/peardoc2:default 87 | ;;output=HTML:frames:earthli 88 | output=HTML:Smarty:HandS 89 | 90 | ;; turn this option on if you want highlighted source code for every file 91 | ;; legal values: on/off 92 | sourcecode = on 93 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/docs/Callback_function_notes.txt: -------------------------------------------------------------------------------- 1 | NEW CALLBACK FUNCTION: 2 | ====================== 3 | 4 | We have had requests for a method to process the results of sending emails 5 | through PHPMailer. In this new release, we have implemented a callback 6 | function that passes the results of each email sent (to, cc, and/or bcc). 7 | We have provided an example that echos the results back to the screen. The 8 | callback function can be used for any purpose. With minor modifications, the 9 | callback function can be used to create CSV logs, post results to databases, 10 | etc. 11 | 12 | Please review the test.php script for the example. 13 | 14 | It's pretty straight forward. 15 | 16 | Enjoy! 17 | Andy 18 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/docs/DomainKeys_notes.txt: -------------------------------------------------------------------------------- 1 | CREATE DKIM KEYS and DNS Resource Record: 2 | ========================================= 3 | 4 | To create DomainKeys Identified Mail keys, visit: 5 | http://dkim.worxware.com/ 6 | ... read the information, fill in the form, and download the ZIP file 7 | containing the public key, private key, DNS Resource Record and instructions 8 | to add to your DNS Zone Record, and the PHPMailer code to enable DKIM 9 | digital signing. 10 | 11 | /*** PROTECT YOUR PRIVATE & PUBLIC KEYS ***/ 12 | 13 | You need to protect your DKIM private and public keys from being viewed or 14 | accessed. Add protection to your .htaccess file as in this example: 15 | 16 | # secure htkeyprivate file 17 | 18 | order allow,deny 19 | deny from all 20 | 21 | 22 | # secure htkeypublic file 23 | 24 | order allow,deny 25 | deny from all 26 | 27 | 28 | (the actual .htaccess additions are in the ZIP file sent back to you from 29 | http://dkim.worxware.com/ 30 | 31 | A few notes on using DomainKey Identified Mail (DKIM): 32 | 33 | You do not need to use PHPMailer to DKIM sign emails IF: 34 | - you enable DomainKey support and add the DNS resource record 35 | - you use your outbound mail server 36 | 37 | If you are a third-party emailer that works on behalf of domain owners to 38 | send their emails from your own server: 39 | - you absolutely have to DKIM sign outbound emails 40 | - the domain owner has to add the DNS resource record to match the 41 | private key, public key, selector, identity, and domain that you create 42 | - use caution with the "selector" ... at least one "selector" will already 43 | exist in the DNS Zone Record of the domain at the domain owner's server 44 | you need to ensure that the "selector" you use is unique 45 | Note: since the IP address will not match the domain owner's DNS Zone record 46 | you can be certain that email providers that validate based on DomainKey will 47 | check the domain owner's DNS Zone record for your DNS resource record. Before 48 | sending out emails on behalf of domain owners, ensure they have entered the 49 | DNS resource record you provided them. 50 | 51 | Enjoy! 52 | Andy 53 | 54 | PS. if you need additional information about DKIM, please see: 55 | http://www.dkim.org/info/dkim-faq.html 56 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/docs/Note_for_SMTP_debugging.txt: -------------------------------------------------------------------------------- 1 | If you are having problems connecting or sending emails through your SMTP server, please note: 2 | 3 | 1. The new rewrite of class.smtp.php provides more information about the processing/errors taking place 4 | 2. Use the debug functionality of class.smtp.php. To do that, in your own script add the debug level you wish to use. An example of that is: 5 | 6 | $mail->SMTPDebug = 1; 7 | $mail->IsSMTP(); // telling the class to use SMTP 8 | $mail->SMTPAuth = true; // enable SMTP authentication 9 | $mail->Port = 26; // set the SMTP port 10 | $mail->Host = "mail.yourhost.com"; // SMTP server 11 | $mail->Username = "name@yourhost.com"; // SMTP account username 12 | $mail->Password = "your password"; // SMTP account password 13 | 14 | Notes on this: 15 | $mail->SMTPDebug = 0; ... will disable debugging (you can also leave this out completely, 0 is the default 16 | $mail->SMTPDebug = 1; ... will echo errors and messages 17 | $mail->SMTPDebug = 2; ... will echo messages only 18 | ... and finally, the options are 0, 1, and 2 ... any number greater than 2 will be interpreted as 2 19 | 20 | And finally, don't forget to disable debugging before going into production. 21 | 22 | Enjoy! 23 | Andy -------------------------------------------------------------------------------- /PHPMailer_5.2.0/docs/extending.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PHPGangsta/FileWatcher/e925abc479c85e82312e40c454542f4af8a83adb/PHPMailer_5.2.0/docs/extending.html -------------------------------------------------------------------------------- /PHPMailer_5.2.0/docs/faq.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | PHPMailer FAQ 4 | 14 | 15 | 16 |

17 |
18 |

PHPMailer FAQ

19 | 62 | 63 |
64 |
65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/docs/pop3_article.txt: -------------------------------------------------------------------------------- 1 | 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. 2 | 3 | With that noted, here is how to implement it: 4 | Install the class file 5 | 6 | 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-1.72 directory: 7 | [geshi lang=php] require 'phpmailer-1.72/class.phpmailer.php'; require 'phpmailer-1.72/class.pop3.php'; [/geshi] 8 | When you need it, create your POP3 object 9 | 10 | 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: 11 | [geshi lang=php] 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; } ?> [/geshi] 12 | 13 | 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. 14 | The Parameters 15 | 16 | The Authorise parameters are as follows: 17 | [geshi lang=php]$pop->Authorise('pop3.example.com', 110, 30, 'mailer', 'password', 1);[/geshi] 18 | 19 | 1. pop3.example.com - The POP3 Mail Server Name (hostname or IP address) 20 | 2. 110 - The POP3 Port on which to connect (default is usually 110, but check with your host) 21 | 3. 30 - A connection time-out value (in seconds) 22 | 4. mailer - The POP3 Username required to logon 23 | 5. password - The POP3 Password required to logon 24 | 6. 1 - The class debug level (0 = off, 1+ = debug output is echoed to the browser) 25 | 26 | Final Comments + the Download 27 | 28 | 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. 29 | 30 | 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. 31 | 32 | 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. 33 | 34 | 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. 35 | Download 36 | 37 | Here is the full class file plus my test script: POP_before_SMTP_PHPMailer.zip (4 KB) - Please note that it does not include PHPMailer itself. 38 | 39 | My thanks to Chris Ryan for the inspiration (even if indirectly, via his SMTP class) 40 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/docs/use_gmail.txt: -------------------------------------------------------------------------------- 1 | getFile('contents.html'); 11 | $body = eregi_replace("[\]",'',$body); 12 | 13 | $mail->IsSMTP(); 14 | $mail->SMTPAuth = true; // enable SMTP authentication 15 | $mail->SMTPSecure = "ssl"; // sets the prefix to the servier 16 | $mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server 17 | $mail->Port = 465; // set the SMTP port 18 | 19 | $mail->Username = "yourname@gmail.com"; // GMAIL username 20 | $mail->Password = "password"; // GMAIL password 21 | 22 | $mail->From = "replyto@yourdomain.com"; 23 | $mail->FromName = "Webmaster"; 24 | $mail->Subject = "This is the subject"; 25 | $mail->AltBody = "This is the body when user views in plain text format"; //Text Body 26 | $mail->WordWrap = 50; // set word wrap 27 | 28 | $mail->MsgHTML($body); 29 | 30 | $mail->AddReplyTo("replyto@yourdomain.com","Webmaster"); 31 | 32 | $mail->AddAttachment("/path/to/file.zip"); // attachment 33 | $mail->AddAttachment("/path/to/image.jpg", "new.jpg"); // attachment 34 | 35 | $mail->AddAddress("username@domain.com","First Last"); 36 | 37 | $mail->IsHTML(true); // send as HTML 38 | 39 | if(!$mail->Send()) { 40 | echo "Mailer Error: " . $mail->ErrorInfo; 41 | } else { 42 | echo "Message has been sent"; 43 | } 44 | 45 | ?> 46 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/examples/contents.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

4 |
5 |  This is a test of PHPMailer.
6 |
7 | This particular example uses HTML, with a <div> tag and inline
8 | styles.
9 |
10 | Also note the use of the PHPMailer logo above with no specific code to handle 11 | including it.
12 | Included are two attachments:
13 | phpmailer.gif is an attachment and used inline as a graphic (above)
14 | phpmailer_mini.gif is an attachment
15 |
16 | PHPMailer:
17 | Author: Andy Prevost (codeworxtech@users.sourceforge.net)
18 | Author: Marcus Bointon (coolbru@users.sourceforge.net)
19 |
20 | 21 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/examples/images/phpmailer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PHPGangsta/FileWatcher/e925abc479c85e82312e40c454542f4af8a83adb/PHPMailer_5.2.0/examples/images/phpmailer.gif -------------------------------------------------------------------------------- /PHPMailer_5.2.0/examples/images/phpmailer_mini.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PHPGangsta/FileWatcher/e925abc479c85e82312e40c454542f4af8a83adb/PHPMailer_5.2.0/examples/images/phpmailer_mini.gif -------------------------------------------------------------------------------- /PHPMailer_5.2.0/examples/index.html: -------------------------------------------------------------------------------- 1 | This release of PHPMailer (v5.0.0) sets a new milestone in the development 2 | cycle of PHPMailer. First, class.phpmailer.php has a small footprint (65.7 Kb), 3 | while class.smtp.php is even smaller than before (at only 25.0 Kb).
4 |
5 | We have maintained all functionality and added Exception handling unique to 6 | PHP 5/6.
7 |
8 | There is only one function that has been removed: that is getFile(). The reason 9 | for this is that getFile() became a wrapper for the PHP function 'file_get_contents()' 10 | and nothing more. Rather than burden the class with a function already available 11 | in PHP, we decided to remove it.
12 |
13 | Our new Exception handling provides your own scripts far more power than ever.
14 |
15 | We have also enhanced the "packaging" of PHPMailer with an entirely new set of 16 | examples. Included are both basic and advanced examples showing how you can take 17 | advantage of PHP Exception handling to improve your own scripts.
18 |
19 | A few things to note about PHPMailer: 20 | 29 | A note to users that want to use SMTP with PHPMailer. The most common problems are: 30 | 44 | Our examples all use an HTML file in the /examples folder. To see what the email SHOULD 45 | look like in your HTML compatible email viewer: click here
46 |
47 | From the PHPMailer team:
48 | Author: Andy Prevost (codeworxtech) codeworxtech@users.sourceforge.net (and Project Administrator)
49 | Author: Marcus Bointon (coolbru) coolbru@users.sourceforge.net
50 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/examples/test_db_smtp_basic.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | PHPMailer - MySQL Database - SMTP basic test with authentication 4 | 5 | 6 | 7 | IsSMTP(); // telling the class to use SMTP 23 | $mail->Host = "smtp1.site.com;smtp2.site.com"; 24 | $mail->SMTPAuth = true; // enable SMTP authentication 25 | $mail->SMTPKeepAlive = true; // SMTP connection will not close after each email sent 26 | $mail->Host = "mail.yourdomain.com"; // sets the SMTP server 27 | $mail->Port = 26; // set the SMTP port for the GMAIL server 28 | $mail->Username = "yourname@yourdomain"; // SMTP account username 29 | $mail->Password = "yourpassword"; // SMTP account password 30 | $mail->SetFrom('list@mydomain.com', 'List manager'); 31 | $mail->AddReplyTo('list@mydomain.com', 'List manager'); 32 | 33 | $mail->Subject = "PHPMailer Test Subject via smtp, basic with authentication"; 34 | 35 | @MYSQL_CONNECT("localhost","root","password"); 36 | @mysql_select_db("my_company"); 37 | $query = "SELECT full_name, email, photo FROM employee WHERE id=$id"; 38 | $result = @MYSQL_QUERY($query); 39 | 40 | while ($row = mysql_fetch_array ($result)) { 41 | $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test 42 | $mail->MsgHTML($body); 43 | $mail->AddAddress($row["email"], $row["full_name"]); 44 | $mail->AddStringAttachment($row["photo"], "YourPhoto.jpg"); 45 | 46 | if(!$mail->Send()) { 47 | echo "Mailer Error (" . str_replace("@", "@", $row["email"]) . ') ' . $mail->ErrorInfo . '
'; 48 | } else { 49 | echo "Message sent to :" . $row["full_name"] . ' (' . str_replace("@", "@", $row["email"]) . ')
'; 50 | } 51 | // Clear all addresses and attachments for next loop 52 | $mail->ClearAddresses(); 53 | $mail->ClearAttachments(); 54 | } 55 | ?> 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/examples/test_mail_advanced.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | PHPMailer - Mail() advanced test 4 | 5 | 6 | 7 | AddReplyTo('name@yourdomain.com', 'First Last'); 14 | $mail->AddAddress('whoto@otherdomain.com', 'John Doe'); 15 | $mail->SetFrom('name@yourdomain.com', 'First Last'); 16 | $mail->AddReplyTo('name@yourdomain.com', 'First Last'); 17 | $mail->Subject = 'PHPMailer Test Subject via mail(), advanced'; 18 | $mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically 19 | $mail->MsgHTML(file_get_contents('contents.html')); 20 | $mail->AddAttachment('images/phpmailer.gif'); // attachment 21 | $mail->AddAttachment('images/phpmailer_mini.gif'); // attachment 22 | $mail->Send(); 23 | echo "Message Sent OK

\n"; 24 | } catch (phpmailerException $e) { 25 | echo $e->errorMessage(); //Pretty error messages from PHPMailer 26 | } catch (Exception $e) { 27 | echo $e->getMessage(); //Boring error messages from anything else! 28 | } 29 | ?> 30 | 31 | 32 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/examples/test_mail_basic.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | PHPMailer - Mail() basic test 4 | 5 | 6 | 7 | AddReplyTo("name@yourdomain.com","First Last"); 17 | 18 | $mail->SetFrom('name@yourdomain.com', 'First Last'); 19 | 20 | $mail->AddReplyTo("name@yourdomain.com","First Last"); 21 | 22 | $address = "whoto@otherdomain.com"; 23 | $mail->AddAddress($address, "John Doe"); 24 | 25 | $mail->Subject = "PHPMailer Test Subject via mail(), basic"; 26 | 27 | $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test 28 | 29 | $mail->MsgHTML($body); 30 | 31 | $mail->AddAttachment("images/phpmailer.gif"); // attachment 32 | $mail->AddAttachment("images/phpmailer_mini.gif"); // attachment 33 | 34 | if(!$mail->Send()) { 35 | echo "Mailer Error: " . $mail->ErrorInfo; 36 | } else { 37 | echo "Message sent!"; 38 | } 39 | 40 | ?> 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/examples/test_pop_before_smtp_advanced.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | POP before SMTP Test 4 | 5 | 6 | 7 | Authorise('pop3.yourdomain.com', 110, 30, 'username', 'password', 1); 13 | 14 | $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch 15 | 16 | $mail->IsSMTP(); 17 | 18 | try { 19 | $mail->SMTPDebug = 2; 20 | $mail->Host = 'pop3.yourdomain.com'; 21 | $mail->AddReplyTo('name@yourdomain.com', 'First Last'); 22 | $mail->AddAddress('whoto@otherdomain.com', 'John Doe'); 23 | $mail->SetFrom('name@yourdomain.com', 'First Last'); 24 | $mail->AddReplyTo('name@yourdomain.com', 'First Last'); 25 | $mail->Subject = 'PHPMailer Test Subject via mail(), advanced'; 26 | $mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically 27 | $mail->MsgHTML(file_get_contents('contents.html')); 28 | $mail->AddAttachment('images/phpmailer.gif'); // attachment 29 | $mail->AddAttachment('images/phpmailer_mini.gif'); // attachment 30 | $mail->Send(); 31 | echo "Message Sent OK

\n"; 32 | } catch (phpmailerException $e) { 33 | echo $e->errorMessage(); //Pretty error messages from PHPMailer 34 | } catch (Exception $e) { 35 | echo $e->getMessage(); //Boring error messages from anything else! 36 | } 37 | ?> 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/examples/test_pop_before_smtp_basic.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | POP before SMTP Test 4 | 5 | 6 | 7 | Authorise('pop3.yourdomain.com', 110, 30, 'username', 'password', 1); 13 | 14 | $mail = new PHPMailer(); 15 | 16 | $body = file_get_contents('contents.html'); 17 | $body = eregi_replace("[\]",'',$body); 18 | 19 | $mail->IsSMTP(); 20 | $mail->SMTPDebug = 2; 21 | $mail->Host = 'pop3.yourdomain.com'; 22 | 23 | $mail->SetFrom('name@yourdomain.com', 'First Last'); 24 | 25 | $mail->AddReplyTo("name@yourdomain.com","First Last"); 26 | 27 | $mail->Subject = "PHPMailer Test Subject via POP before SMTP, basic"; 28 | 29 | $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test 30 | 31 | $mail->MsgHTML($body); 32 | 33 | $address = "whoto@otherdomain.com"; 34 | $mail->AddAddress($address, "John Doe"); 35 | 36 | $mail->AddAttachment("images/phpmailer.gif"); // attachment 37 | $mail->AddAttachment("images/phpmailer_mini.gif"); // attachment 38 | 39 | 40 | if(!$mail->Send()) { 41 | echo "Mailer Error: " . $mail->ErrorInfo; 42 | } else { 43 | echo "Message sent!"; 44 | } 45 | 46 | ?> 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/examples/test_sendmail_advanced.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | PHPMailer - Sendmail advanced test 4 | 5 | 6 | 7 | IsSendmail(); // telling the class to use SendMail transport 13 | 14 | try { 15 | $mail->AddReplyTo('name@yourdomain.com', 'First Last'); 16 | $mail->AddAddress('whoto@otherdomain.com', 'John Doe'); 17 | $mail->SetFrom('name@yourdomain.com', 'First Last'); 18 | $mail->AddReplyTo('name@yourdomain.com', 'First Last'); 19 | $mail->Subject = 'PHPMailer Test Subject via mail(), advanced'; 20 | $mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically 21 | $mail->MsgHTML(file_get_contents('contents.html')); 22 | $mail->AddAttachment('images/phpmailer.gif'); // attachment 23 | $mail->AddAttachment('images/phpmailer_mini.gif'); // attachment 24 | $mail->Send(); 25 | echo "Message Sent OK

\n"; 26 | } catch (phpmailerException $e) { 27 | echo $e->errorMessage(); //Pretty error messages from PHPMailer 28 | } catch (Exception $e) { 29 | echo $e->getMessage(); //Boring error messages from anything else! 30 | } 31 | ?> 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/examples/test_sendmail_basic.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | PHPMailer - Sendmail basic test 4 | 5 | 6 | 7 | IsSendmail(); // telling the class to use SendMail transport 14 | 15 | $body = file_get_contents('contents.html'); 16 | $body = eregi_replace("[\]",'',$body); 17 | 18 | $mail->AddReplyTo("name@yourdomain.com","First Last"); 19 | 20 | $mail->SetFrom('name@yourdomain.com', 'First Last'); 21 | 22 | $mail->AddReplyTo("name@yourdomain.com","First Last"); 23 | 24 | $address = "whoto@otherdomain.com"; 25 | $mail->AddAddress($address, "John Doe"); 26 | 27 | $mail->Subject = "PHPMailer Test Subject via Sendmail, basic"; 28 | 29 | $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test 30 | 31 | $mail->MsgHTML($body); 32 | 33 | $mail->AddAttachment("images/phpmailer.gif"); // attachment 34 | $mail->AddAttachment("images/phpmailer_mini.gif"); // attachment 35 | 36 | if(!$mail->Send()) { 37 | echo "Mailer Error: " . $mail->ErrorInfo; 38 | } else { 39 | echo "Message sent!"; 40 | } 41 | 42 | ?> 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/examples/test_smtp_advanced.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | PHPMailer - SMTP advanced test with authentication 4 | 5 | 6 | 7 | IsSMTP(); // telling the class to use SMTP 15 | 16 | try { 17 | $mail->Host = "mail.yourdomain.com"; // SMTP server 18 | $mail->SMTPDebug = 2; // enables SMTP debug information (for testing) 19 | $mail->SMTPAuth = true; // enable SMTP authentication 20 | $mail->Host = "mail.yourdomain.com"; // sets the SMTP server 21 | $mail->Port = 26; // set the SMTP port for the GMAIL server 22 | $mail->Username = "yourname@yourdomain"; // SMTP account username 23 | $mail->Password = "yourpassword"; // SMTP account password 24 | $mail->AddReplyTo('name@yourdomain.com', 'First Last'); 25 | $mail->AddAddress('whoto@otherdomain.com', 'John Doe'); 26 | $mail->SetFrom('name@yourdomain.com', 'First Last'); 27 | $mail->AddReplyTo('name@yourdomain.com', 'First Last'); 28 | $mail->Subject = 'PHPMailer Test Subject via mail(), advanced'; 29 | $mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically 30 | $mail->MsgHTML(file_get_contents('contents.html')); 31 | $mail->AddAttachment('images/phpmailer.gif'); // attachment 32 | $mail->AddAttachment('images/phpmailer_mini.gif'); // attachment 33 | $mail->Send(); 34 | echo "Message Sent OK

\n"; 35 | } catch (phpmailerException $e) { 36 | echo $e->errorMessage(); //Pretty error messages from PHPMailer 37 | } catch (Exception $e) { 38 | echo $e->getMessage(); //Boring error messages from anything else! 39 | } 40 | ?> 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/examples/test_smtp_advanced_no_auth.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | PHPMailer - SMTP advanced test with no authentication 4 | 5 | 6 | 7 | IsSMTP(); // telling the class to use SMTP 14 | 15 | try { 16 | $mail->Host = "mail.yourdomain.com"; // SMTP server 17 | $mail->SMTPDebug = 2; // enables SMTP debug information (for testing) 18 | $mail->AddReplyTo('name@yourdomain.com', 'First Last'); 19 | $mail->AddAddress('whoto@otherdomain.com', 'John Doe'); 20 | $mail->SetFrom('name@yourdomain.com', 'First Last'); 21 | $mail->AddReplyTo('name@yourdomain.com', 'First Last'); 22 | $mail->Subject = 'PHPMailer Test Subject via mail(), advanced'; 23 | $mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically 24 | $mail->MsgHTML(file_get_contents('contents.html')); 25 | $mail->AddAttachment('images/phpmailer.gif'); // attachment 26 | $mail->AddAttachment('images/phpmailer_mini.gif'); // attachment 27 | $mail->Send(); 28 | echo "Message Sent OK

\n"; 29 | } catch (phpmailerException $e) { 30 | echo $e->errorMessage(); //Pretty error messages from PHPMailer 31 | } catch (Exception $e) { 32 | echo $e->getMessage(); //Boring error messages from anything else! 33 | } 34 | ?> 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/examples/test_smtp_basic.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | PHPMailer - SMTP basic test with authentication 4 | 5 | 6 | 7 | IsSMTP(); // telling the class to use SMTP 23 | $mail->Host = "mail.yourdomain.com"; // SMTP server 24 | $mail->SMTPDebug = 2; // enables SMTP debug information (for testing) 25 | // 1 = errors and messages 26 | // 2 = messages only 27 | $mail->SMTPAuth = true; // enable SMTP authentication 28 | $mail->Host = "mail.yourdomain.com"; // sets the SMTP server 29 | $mail->Port = 26; // set the SMTP port for the GMAIL server 30 | $mail->Username = "yourname@yourdomain"; // SMTP account username 31 | $mail->Password = "yourpassword"; // SMTP account password 32 | 33 | $mail->SetFrom('name@yourdomain.com', 'First Last'); 34 | 35 | $mail->AddReplyTo("name@yourdomain.com","First Last"); 36 | 37 | $mail->Subject = "PHPMailer Test Subject via smtp, basic with authentication"; 38 | 39 | $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test 40 | 41 | $mail->MsgHTML($body); 42 | 43 | $address = "whoto@otherdomain.com"; 44 | $mail->AddAddress($address, "John Doe"); 45 | 46 | $mail->AddAttachment("images/phpmailer.gif"); // attachment 47 | $mail->AddAttachment("images/phpmailer_mini.gif"); // attachment 48 | 49 | if(!$mail->Send()) { 50 | echo "Mailer Error: " . $mail->ErrorInfo; 51 | } else { 52 | echo "Message sent!"; 53 | } 54 | 55 | ?> 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/examples/test_smtp_basic_no_auth.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | PHPMailer - SMTP basic test with no authentication 4 | 5 | 6 | 7 | IsSMTP(); // telling the class to use SMTP 23 | $mail->Host = "mail.yourdomain.com"; // SMTP server 24 | $mail->SMTPDebug = 2; // enables SMTP debug information (for testing) 25 | // 1 = errors and messages 26 | // 2 = messages only 27 | 28 | $mail->SetFrom('name@yourdomain.com', 'First Last'); 29 | 30 | $mail->AddReplyTo("name@yourdomain.com","First Last"); 31 | 32 | $mail->Subject = "PHPMailer Test Subject via smtp, basic with no authentication"; 33 | 34 | $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test 35 | 36 | $mail->MsgHTML($body); 37 | 38 | $address = "whoto@otherdomain.com"; 39 | $mail->AddAddress($address, "John Doe"); 40 | 41 | $mail->AddAttachment("images/phpmailer.gif"); // attachment 42 | $mail->AddAttachment("images/phpmailer_mini.gif"); // attachment 43 | 44 | if(!$mail->Send()) { 45 | echo "Mailer Error: " . $mail->ErrorInfo; 46 | } else { 47 | echo "Message sent!"; 48 | } 49 | 50 | ?> 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/examples/test_smtp_gmail_advanced.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | PHPMailer - SMTP (Gmail) advanced test 4 | 5 | 6 | 7 | IsSMTP(); // telling the class to use SMTP 14 | 15 | try { 16 | $mail->Host = "mail.yourdomain.com"; // SMTP server 17 | $mail->SMTPDebug = 2; // enables SMTP debug information (for testing) 18 | $mail->SMTPAuth = true; // enable SMTP authentication 19 | $mail->SMTPSecure = "ssl"; // sets the prefix to the servier 20 | $mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server 21 | $mail->Port = 465; // set the SMTP port for the GMAIL server 22 | $mail->Username = "yourusername@gmail.com"; // GMAIL username 23 | $mail->Password = "yourpassword"; // GMAIL password 24 | $mail->AddReplyTo('name@yourdomain.com', 'First Last'); 25 | $mail->AddAddress('whoto@otherdomain.com', 'John Doe'); 26 | $mail->SetFrom('name@yourdomain.com', 'First Last'); 27 | $mail->AddReplyTo('name@yourdomain.com', 'First Last'); 28 | $mail->Subject = 'PHPMailer Test Subject via mail(), advanced'; 29 | $mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically 30 | $mail->MsgHTML(file_get_contents('contents.html')); 31 | $mail->AddAttachment('images/phpmailer.gif'); // attachment 32 | $mail->AddAttachment('images/phpmailer_mini.gif'); // attachment 33 | $mail->Send(); 34 | echo "Message Sent OK

\n"; 35 | } catch (phpmailerException $e) { 36 | echo $e->errorMessage(); //Pretty error messages from PHPMailer 37 | } catch (Exception $e) { 38 | echo $e->getMessage(); //Boring error messages from anything else! 39 | } 40 | ?> 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/examples/test_smtp_gmail_basic.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | PHPMailer - SMTP (Gmail) basic test 4 | 5 | 6 | 7 | IsSMTP(); // telling the class to use SMTP 23 | $mail->Host = "mail.yourdomain.com"; // SMTP server 24 | $mail->SMTPDebug = 2; // enables SMTP debug information (for testing) 25 | // 1 = errors and messages 26 | // 2 = messages only 27 | $mail->SMTPAuth = true; // enable SMTP authentication 28 | $mail->SMTPSecure = "ssl"; // sets the prefix to the servier 29 | $mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server 30 | $mail->Port = 465; // set the SMTP port for the GMAIL server 31 | $mail->Username = "yourusername@gmail.com"; // GMAIL username 32 | $mail->Password = "yourpassword"; // GMAIL password 33 | 34 | $mail->SetFrom('name@yourdomain.com', 'First Last'); 35 | 36 | $mail->AddReplyTo("name@yourdomain.com","First Last"); 37 | 38 | $mail->Subject = "PHPMailer Test Subject via smtp (Gmail), basic"; 39 | 40 | $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test 41 | 42 | $mail->MsgHTML($body); 43 | 44 | $address = "whoto@otherdomain.com"; 45 | $mail->AddAddress($address, "John Doe"); 46 | 47 | $mail->AddAttachment("images/phpmailer.gif"); // attachment 48 | $mail->AddAttachment("images/phpmailer_mini.gif"); // attachment 49 | 50 | if(!$mail->Send()) { 51 | echo "Mailer Error: " . $mail->ErrorInfo; 52 | } else { 53 | echo "Message sent!"; 54 | } 55 | 56 | ?> 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-ar.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP Error: لم نستطع تأكيد الهوية.'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP Error: لم نستطع الاتصال بمخدم SMTP.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: لم يتم قبول المعلومات .'; 11 | //$PHPMAILER_LANG['empty_message'] = 'Message body empty'; 12 | $PHPMAILER_LANG['encoding'] = 'ترميز غير معروف: '; 13 | $PHPMAILER_LANG['execute'] = 'لم أستطع تنفيذ : '; 14 | $PHPMAILER_LANG['file_access'] = 'لم نستطع الوصول للملف: '; 15 | $PHPMAILER_LANG['file_open'] = 'File Error: لم نستطع فتح الملف: '; 16 | $PHPMAILER_LANG['from_failed'] = 'البريد التالي لم نستطع ارسال البريد له : '; 17 | $PHPMAILER_LANG['instantiate'] = 'لم نستطع توفير خدمة البريد.'; 18 | //$PHPMAILER_LANG['invalid_email'] = 'Not sending, email address is invalid: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer غير مدعوم.'; 20 | //$PHPMAILER_LANG['provide_address'] = 'You must provide at least one recipient email address.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: الأخطاء التالية ' . 22 | 'فشل في الارسال لكل من : '; 23 | $PHPMAILER_LANG['signing'] = 'خطأ في التوقيع: '; 24 | //$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; 25 | //$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: '; 26 | //$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: '; 27 | ?> -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-br.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-ca.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-ch.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-cz.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-de.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-dk.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP fejl: Kunne ikke logge på.'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP fejl: Kunne ikke tilslutte SMTP serveren.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP fejl: Data kunne ikke accepteres.'; 11 | //$PHPMAILER_LANG['empty_message'] = 'Message body empty'; 12 | $PHPMAILER_LANG['encoding'] = 'Ukendt encode-format: '; 13 | $PHPMAILER_LANG['execute'] = 'Kunne ikke køre: '; 14 | $PHPMAILER_LANG['file_access'] = 'Ingen adgang til fil: '; 15 | $PHPMAILER_LANG['file_open'] = 'Fil fejl: Kunne ikke åbne filen: '; 16 | $PHPMAILER_LANG['from_failed'] = 'Følgende afsenderadresse er forkert: '; 17 | $PHPMAILER_LANG['instantiate'] = 'Kunne ikke initialisere email funktionen.'; 18 | //$PHPMAILER_LANG['invalid_email'] = 'Not sending, email address is invalid: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer understøttes ikke.'; 20 | $PHPMAILER_LANG['provide_address'] = 'Du skal indtaste mindst en modtagers emailadresse.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP fejl: Følgende modtagere er forkerte: '; 22 | //$PHPMAILER_LANG['signing'] = 'Signing Error: '; 23 | //$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; 24 | //$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: '; 25 | //$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: '; 26 | ?> -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-es.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-et.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-fi.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-fo.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-fr.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-hu.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-it.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'SMTP Error: Impossibile autenticarsi.'; 10 | $PHPMAILER_LANG['connect_host'] = 'SMTP Error: Impossibile connettersi all\'host SMTP.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Data non accettati dal server.'; 12 | //$PHPMAILER_LANG['empty_message'] = 'Message body empty'; 13 | $PHPMAILER_LANG['encoding'] = 'Encoding set dei caratteri sconosciuto: '; 14 | $PHPMAILER_LANG['execute'] = 'Impossibile eseguire l\'operazione: '; 15 | $PHPMAILER_LANG['file_access'] = 'Impossibile accedere al file: '; 16 | $PHPMAILER_LANG['file_open'] = 'File Error: Impossibile aprire il file: '; 17 | $PHPMAILER_LANG['from_failed'] = 'I seguenti indirizzi mittenti hanno generato errore: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Impossibile istanziare la funzione mail'; 19 | //$PHPMAILER_LANG['invalid_email'] = 'Not sending, email address is invalid: '; 20 | $PHPMAILER_LANG['provide_address'] = 'Deve essere fornito almeno un indirizzo ricevente'; 21 | $PHPMAILER_LANG['mailer_not_supported'] = 'Mailer non supportato'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: I seguenti indirizzi destinatari hanno generato errore: '; 23 | //$PHPMAILER_LANG['signing'] = 'Signing Error: '; 24 | //$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; 25 | //$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: '; 26 | //$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: '; 27 | ?> -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-ja.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-nl.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-no.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-pl.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-ro.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'Eroare SMTP: Nu a functionat autentificarea.'; 10 | $PHPMAILER_LANG['connect_host'] = 'Eroare SMTP: Nu m-am putut conecta la adresa SMTP.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'Eroare SMTP: Continutul mailului nu a fost acceptat.'; 12 | //$PHPMAILER_LANG['empty_message'] = 'Message body empty'; 13 | $PHPMAILER_LANG['encoding'] = 'Encodare necunoscuta: '; 14 | $PHPMAILER_LANG['execute'] = 'Nu pot executa: '; 15 | $PHPMAILER_LANG['file_access'] = 'Nu pot accesa fisierul: '; 16 | $PHPMAILER_LANG['file_open'] = 'Eroare de fisier: Nu pot deschide fisierul: '; 17 | $PHPMAILER_LANG['from_failed'] = 'Urmatoarele adrese From au dat eroare: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Nu am putut instantia functia mail.'; 19 | //$PHPMAILER_LANG['invalid_email'] = 'Not sending, email address is invalid: '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer nu este suportat.'; 21 | $PHPMAILER_LANG['provide_address'] = 'Trebuie sa adaugati cel putin un recipient (adresa de mail).'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'Eroare SMTP: Urmatoarele adrese de mail au dat eroare: '; 23 | //$PHPMAILER_LANG['signing'] = 'Signing Error: '; 24 | //$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; 25 | //$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: '; 26 | //$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: '; 27 | ?> -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-ru.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | $PHPMAILER_LANG['authenticate'] = 'Ошибка SMTP: ошибка авторизации.'; 8 | $PHPMAILER_LANG['connect_host'] = 'Ошибка SMTP: не удается подключиться к серверу SMTP.'; 9 | $PHPMAILER_LANG['data_not_accepted'] = 'Ошибка SMTP: данные не приняты.'; 10 | //$PHPMAILER_LANG['empty_message'] = 'Message body empty'; 11 | $PHPMAILER_LANG['encoding'] = 'Неизвестный вид кодировки: '; 12 | $PHPMAILER_LANG['execute'] = 'Невозможно выполнить команду: '; 13 | $PHPMAILER_LANG['file_access'] = 'Нет доступа к файлу: '; 14 | $PHPMAILER_LANG['file_open'] = 'Файловая ошибка: не удается открыть файл: '; 15 | $PHPMAILER_LANG['from_failed'] = 'Неверный адрес отправителя: '; 16 | $PHPMAILER_LANG['instantiate'] = 'Невозможно запустить функцию mail.'; 17 | //$PHPMAILER_LANG['invalid_email'] = 'Not sending, email address is invalid: '; 18 | $PHPMAILER_LANG['provide_address'] = 'Пожалуйста, введите хотя бы один адрес e-mail получателя.'; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' - почтовый сервер не поддерживается.'; 20 | $PHPMAILER_LANG['recipients_failed'] = 'Ошибка SMTP: отправка по следующим адресам получателей не удалась: '; 21 | //$PHPMAILER_LANG['signing'] = 'Signing Error: '; 22 | //$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; 23 | //$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: '; 24 | //$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: '; 25 | ?> -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-se.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP fel: Kunde inte autentisera.'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP fel: Kunde inte ansluta till SMTP-server.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP fel: Data accepterades inte.'; 11 | //$PHPMAILER_LANG['empty_message'] = 'Message body empty'; 12 | $PHPMAILER_LANG['encoding'] = 'Okänt encode-format: '; 13 | $PHPMAILER_LANG['execute'] = 'Kunde inte köra: '; 14 | $PHPMAILER_LANG['file_access'] = 'Ingen åtkomst till fil: '; 15 | $PHPMAILER_LANG['file_open'] = 'Fil fel: Kunde inte öppna fil: '; 16 | $PHPMAILER_LANG['from_failed'] = 'Följande avsändaradress är felaktig: '; 17 | $PHPMAILER_LANG['instantiate'] = 'Kunde inte initiera e-postfunktion.'; 18 | //$PHPMAILER_LANG['invalid_email'] = 'Not sending, email address is invalid: '; 19 | $PHPMAILER_LANG['provide_address'] = 'Du måste ange minst en mottagares e-postadress.'; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer stöds inte.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP fel: Följande mottagare är felaktig: '; 22 | //$PHPMAILER_LANG['signing'] = 'Signing Error: '; 23 | //$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; 24 | //$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: '; 25 | //$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: '; 26 | ?> -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-tr.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-zh.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP 錯誤:登錄失敗。'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP 錯誤:無法連接到 SMTP 主機。'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP 錯誤:數據不被接受。'; 11 | //$PHPMAILER_LANG['empty_message'] = 'Message body empty'; 12 | $PHPMAILER_LANG['encoding'] = '未知編碼: '; 13 | $PHPMAILER_LANG['file_access'] = '無法訪問文件:'; 14 | $PHPMAILER_LANG['file_open'] = '文件錯誤:無法打開文件:'; 15 | $PHPMAILER_LANG['from_failed'] = '發送地址錯誤:'; 16 | $PHPMAILER_LANG['execute'] = '無法執行:'; 17 | $PHPMAILER_LANG['instantiate'] = '未知函數調用。'; 18 | //$PHPMAILER_LANG['invalid_email'] = 'Not sending, email address is invalid: '; 19 | $PHPMAILER_LANG['provide_address'] = '必須提供至少一個收件人地址。'; 20 | $PHPMAILER_LANG['mailer_not_supported'] = '發信客戶端不被支持。'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP 錯誤:收件人地址錯誤:'; 22 | //$PHPMAILER_LANG['signing'] = 'Signing Error: '; 23 | //$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; 24 | //$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: '; 25 | //$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: '; 26 | ?> -------------------------------------------------------------------------------- /PHPMailer_5.2.0/language/phpmailer.lang-zh_cn.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP 错误:登录失败。'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP 错误:无法连接到 SMTP 主机。'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP 错误:数据不被接受。'; 11 | //$P$PHPMAILER_LANG['empty_message'] = 'Message body empty'; 12 | $PHPMAILER_LANG['encoding'] = '未知编码: '; 13 | $PHPMAILER_LANG['execute'] = '无法执行:'; 14 | $PHPMAILER_LANG['file_access'] = '无法访问文件:'; 15 | $PHPMAILER_LANG['file_open'] = '文件错误:无法打开文件:'; 16 | $PHPMAILER_LANG['from_failed'] = '发送地址错误:'; 17 | $PHPMAILER_LANG['instantiate'] = '未知函数调用。'; 18 | //$PHPMAILER_LANG['invalid_email'] = 'Not sending, email address is invalid: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = '发信客户端不被支持。'; 20 | $PHPMAILER_LANG['provide_address'] = '必须提供至少一个收件人地址。'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP 错误:收件人地址错误:'; 22 | //$PHPMAILER_LANG['signing'] = 'Signing Error: '; 23 | //$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; 24 | //$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: '; 25 | //$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: '; 26 | ?> -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test/contents.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Email test 5 | 6 | 7 | 8 |

Here is a test HTML email

9 | 10 | 11 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test/phpmailerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PHPGangsta/FileWatcher/e925abc479c85e82312e40c454542f4af8a83adb/PHPMailer_5.2.0/test/phpmailerTest.php -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PHPGangsta/FileWatcher/e925abc479c85e82312e40c454542f4af8a83adb/PHPMailer_5.2.0/test/test.png -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test/test_callback.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | PHPMailer Lite - DKIM and Callback Function test 4 | 5 | 6 | 7 | \n"; 30 | return true; 31 | } 32 | 33 | $testLite = false; 34 | 35 | if ($testLite) { 36 | require_once '../class.phpmailer-lite.php'; 37 | $mail = new PHPMailerLite(); 38 | } else { 39 | require_once '../class.phpmailer.php'; 40 | $mail = new PHPMailer(); 41 | } 42 | 43 | try { 44 | $mail->IsMail(); // telling the class to use SMTP 45 | $mail->SetFrom('you@yourdomain.com', 'Your Name'); 46 | $mail->AddAddress('another@yourdomain.com', 'John Doe'); 47 | $mail->Subject = 'PHPMailer Lite Test Subject via Mail()'; 48 | $mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically 49 | $mail->MsgHTML(file_get_contents('contents.html')); 50 | $mail->AddAttachment('images/phpmailer.gif'); // attachment 51 | $mail->AddAttachment('images/phpmailer_mini.gif'); // attachment 52 | $mail->action_function = 'callbackAction'; 53 | $mail->Send(); 54 | echo "Message Sent OK

\n"; 55 | } catch (phpmailerException $e) { 56 | echo $e->errorMessage(); //Pretty error messages from PHPMailer 57 | } catch (Exception $e) { 58 | echo $e->getMessage(); //Boring error messages from anything else! 59 | } 60 | 61 | function cleanEmails($str,$type) { 62 | if ($type == 'cc') { 63 | $addy['Email'] = $str[0]; 64 | $addy['Name'] = $str[1]; 65 | return $addy; 66 | } 67 | if (!strstr($str, ' <')) { 68 | $addy['Name'] = ''; 69 | $addy['Email'] = $addy; 70 | return $addy; 71 | } 72 | $addyArr = explode(' <', $str); 73 | if (substr($addyArr[1],-1) == '>') { 74 | $addyArr[1] = substr($addyArr[1],0,-1); 75 | } 76 | $addy['Name'] = $addyArr[0]; 77 | $addy['Email'] = $addyArr[1]; 78 | $addy['Email'] = str_replace('@', '@', $addy['Email']); 79 | return $addy; 80 | } 81 | 82 | ?> 83 | 84 | 85 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test/testemail.php: -------------------------------------------------------------------------------- 1 | IsSMTP(); // tell the class to use SMTP 17 | $mail->SMTPAuth = true; // enable SMTP authentication 18 | $mail->Port = 25; // set the SMTP server port 19 | $mail->Host = "mail.yourdomain.com"; // SMTP server 20 | $mail->Username = "name@domain.com"; // SMTP server username 21 | $mail->Password = "password"; // SMTP server password 22 | 23 | $mail->IsSendmail(); // tell the class to use Sendmail 24 | 25 | $mail->AddReplyTo("name@domain.com","First Last"); 26 | 27 | $mail->From = "name@domain.com"; 28 | $mail->FromName = "First Last"; 29 | 30 | $to = "someone@example...com"; 31 | 32 | $mail->AddAddress($to); 33 | 34 | $mail->Subject = "First PHPMailer Message"; 35 | 36 | $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test 37 | $mail->WordWrap = 80; // set word wrap 38 | 39 | $mail->MsgHTML($body); 40 | 41 | $mail->IsHTML(true); // send as HTML 42 | 43 | $mail->Send(); 44 | echo 'Message has been sent.'; 45 | } catch (phpmailerException $e) { 46 | echo $e->errorMessage(); 47 | } 48 | ?> -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/LGPLv3.txt: -------------------------------------------------------------------------------- 1 | GNU LESSER GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | 9 | This version of the GNU Lesser General Public License incorporates 10 | the terms and conditions of version 3 of the GNU General Public 11 | License, supplemented by the additional permissions listed below. 12 | 13 | 0. Additional Definitions. 14 | 15 | As used herein, "this License" refers to version 3 of the GNU Lesser 16 | General Public License, and the "GNU GPL" refers to version 3 of the GNU 17 | General Public License. 18 | 19 | "The Library" refers to a covered work governed by this License, 20 | other than an Application or a Combined Work as defined below. 21 | 22 | An "Application" is any work that makes use of an interface provided 23 | by the Library, but which is not otherwise based on the Library. 24 | Defining a subclass of a class defined by the Library is deemed a mode 25 | of using an interface provided by the Library. 26 | 27 | A "Combined Work" is a work produced by combining or linking an 28 | Application with the Library. The particular version of the Library 29 | with which the Combined Work was made is also called the "Linked 30 | Version". 31 | 32 | The "Minimal Corresponding Source" for a Combined Work means the 33 | Corresponding Source for the Combined Work, excluding any source code 34 | for portions of the Combined Work that, considered in isolation, are 35 | based on the Application, and not on the Linked Version. 36 | 37 | The "Corresponding Application Code" for a Combined Work means the 38 | object code and/or source code for the Application, including any data 39 | and utility programs needed for reproducing the Combined Work from the 40 | Application, but excluding the System Libraries of the Combined Work. 41 | 42 | 1. Exception to Section 3 of the GNU GPL. 43 | 44 | You may convey a covered work under sections 3 and 4 of this License 45 | without being bound by section 3 of the GNU GPL. 46 | 47 | 2. Conveying Modified Versions. 48 | 49 | If you modify a copy of the Library, and, in your modifications, a 50 | facility refers to a function or data to be supplied by an Application 51 | that uses the facility (other than as an argument passed when the 52 | facility is invoked), then you may convey a copy of the modified 53 | version: 54 | 55 | a) under this License, provided that you make a good faith effort to 56 | ensure that, in the event an Application does not supply the 57 | function or data, the facility still operates, and performs 58 | whatever part of its purpose remains meaningful, or 59 | 60 | b) under the GNU GPL, with none of the additional permissions of 61 | this License applicable to that copy. 62 | 63 | 3. Object Code Incorporating Material from Library Header Files. 64 | 65 | The object code form of an Application may incorporate material from 66 | a header file that is part of the Library. You may convey such object 67 | code under terms of your choice, provided that, if the incorporated 68 | material is not limited to numerical parameters, data structure 69 | layouts and accessors, or small macros, inline functions and templates 70 | (ten or fewer lines in length), you do both of the following: 71 | 72 | a) Give prominent notice with each copy of the object code that the 73 | Library is used in it and that the Library and its use are 74 | covered by this License. 75 | 76 | b) Accompany the object code with a copy of the GNU GPL and this license 77 | document. 78 | 79 | 4. Combined Works. 80 | 81 | You may convey a Combined Work under terms of your choice that, 82 | taken together, effectively do not restrict modification of the 83 | portions of the Library contained in the Combined Work and reverse 84 | engineering for debugging such modifications, if you also do each of 85 | the following: 86 | 87 | a) Give prominent notice with each copy of the Combined Work that 88 | the Library is used in it and that the Library and its use are 89 | covered by this License. 90 | 91 | b) Accompany the Combined Work with a copy of the GNU GPL and this license 92 | document. 93 | 94 | c) For a Combined Work that displays copyright notices during 95 | execution, include the copyright notice for the Library among 96 | these notices, as well as a reference directing the user to the 97 | copies of the GNU GPL and this license document. 98 | 99 | d) Do one of the following: 100 | 101 | 0) Convey the Minimal Corresponding Source under the terms of this 102 | License, and the Corresponding Application Code in a form 103 | suitable for, and under terms that permit, the user to 104 | recombine or relink the Application with a modified version of 105 | the Linked Version to produce a modified Combined Work, in the 106 | manner specified by section 6 of the GNU GPL for conveying 107 | Corresponding Source. 108 | 109 | 1) Use a suitable shared library mechanism for linking with the 110 | Library. A suitable mechanism is one that (a) uses at run time 111 | a copy of the Library already present on the user's computer 112 | system, and (b) will operate properly with a modified version 113 | of the Library that is interface-compatible with the Linked 114 | Version. 115 | 116 | e) Provide Installation Information, but only if you would otherwise 117 | be required to provide such information under section 6 of the 118 | GNU GPL, and only to the extent that such information is 119 | necessary to install and execute a modified version of the 120 | Combined Work produced by recombining or relinking the 121 | Application with a modified version of the Linked Version. (If 122 | you use option 4d0, the Installation Information must accompany 123 | the Minimal Corresponding Source and Corresponding Application 124 | Code. If you use option 4d1, you must provide the Installation 125 | Information in the manner specified by section 6 of the GNU GPL 126 | for conveying Corresponding Source.) 127 | 128 | 5. Combined Libraries. 129 | 130 | You may place library facilities that are a work based on the 131 | Library side by side in a single library together with other library 132 | facilities that are not Applications and are not covered by this 133 | License, and convey such a combined library under terms of your 134 | choice, if you do both of the following: 135 | 136 | a) Accompany the combined library with a copy of the same work based 137 | on the Library, uncombined with any other library facilities, 138 | conveyed under the terms of this License. 139 | 140 | b) Give prominent notice with the combined library that part of it 141 | is a work based on the Library, and explaining where to find the 142 | accompanying uncombined form of the same work. 143 | 144 | 6. Revised Versions of the GNU Lesser General Public License. 145 | 146 | The Free Software Foundation may publish revised and/or new versions 147 | of the GNU Lesser General Public License from time to time. Such new 148 | versions will be similar in spirit to the present version, but may 149 | differ in detail to address new problems or concerns. 150 | 151 | Each version is given a distinguishing version number. If the 152 | Library as you received it specifies that a certain numbered version 153 | of the GNU Lesser General Public License "or any later version" 154 | applies to it, you have the option of following the terms and 155 | conditions either of that published version or of any later version 156 | published by the Free Software Foundation. If the Library as you 157 | received it does not specify a version number of the GNU Lesser 158 | General Public License, you may choose any version of the GNU Lesser 159 | General Public License ever published by the Free Software Foundation. 160 | 161 | If the Library as you received it specifies that a proxy can decide 162 | whether future versions of the GNU Lesser General Public License shall 163 | apply, that proxy's public statement of acceptance of any version is 164 | permanent authorization for you to choose that version for the 165 | Library. -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/contents.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

4 |
5 |  This is a test of PHPMailer v5.0.0 for PHP5/6.
6 |
7 | This particular example uses HTML, with a <div> tag and inline
8 | styles.
9 |
10 | Also note the use of the PHPMailer at the top with no specific code to handle 11 | including it in the body of the email.
12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/images/aikido.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PHPGangsta/FileWatcher/e925abc479c85e82312e40c454542f4af8a83adb/PHPMailer_5.2.0/test_script/images/aikido.gif -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/images/bkgrnd.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PHPGangsta/FileWatcher/e925abc479c85e82312e40c454542f4af8a83adb/PHPMailer_5.2.0/test_script/images/bkgrnd.gif -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/images/phpmailer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PHPGangsta/FileWatcher/e925abc479c85e82312e40c454542f4af8a83adb/PHPMailer_5.2.0/test_script/images/phpmailer.gif -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/scripts/clipboard.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PHPGangsta/FileWatcher/e925abc479c85e82312e40c454542f4af8a83adb/PHPMailer_5.2.0/test_script/scripts/clipboard.swf -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/scripts/shBrushBash.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.296 (March 01 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Bash = function() 31 | { 32 | var keywords = 'if fi then elif else for do done until while break continue case function return in eq ne gt lt ge le'; 33 | var commands = 'alias apropos awk bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' + 34 | 'cksum clear cmp comm command cp cron crontab csplit cut date dc dd ddrescue declare df ' + 35 | 'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' + 36 | 'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' + 37 | 'free fsck ftp gawk getopts grep groups gzip hash head history hostname id ifconfig ' + 38 | 'import install join kill less let ln local locate logname logout look lpc lpr lprint ' + 39 | 'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' + 40 | 'mv netstat nice nl nohup nslookup open op passwd paste pathchk ping popd pr printcap ' + 41 | 'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' + 42 | 'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' + 43 | 'sleep sort source split ssh strace su sudo sum symlink sync tail tar tee test time ' + 44 | 'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' + 45 | 'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' + 46 | 'vi watch wc whereis which who whoami Wget xargs yes' 47 | ; 48 | 49 | this.regexList = [ 50 | { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments 51 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings 52 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords 53 | { regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' } // commands 54 | ]; 55 | } 56 | 57 | SyntaxHighlighter.brushes.Bash.prototype = new SyntaxHighlighter.Highlighter(); 58 | SyntaxHighlighter.brushes.Bash.aliases = ['bash', 'shell']; 59 | 60 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/scripts/shBrushCSharp.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.296 (March 01 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.CSharp = function() 31 | { 32 | var keywords = 'abstract as base bool break byte case catch char checked class const ' + 33 | 'continue decimal default delegate do double else enum event explicit ' + 34 | 'extern false finally fixed float for foreach get goto if implicit in int ' + 35 | 'interface internal is lock long namespace new null object operator out ' + 36 | 'override params private protected public readonly ref return sbyte sealed set ' + 37 | 'short sizeof stackalloc static string struct switch this throw true try ' + 38 | 'typeof uint ulong unchecked unsafe ushort using virtual void while'; 39 | 40 | function fixComments(match, regexInfo) 41 | { 42 | var css = (match[0].indexOf("///") == 0) 43 | ? 'color1' 44 | : 'comments' 45 | ; 46 | 47 | return [new SyntaxHighlighter.Match(match[0], match.index, css)]; 48 | } 49 | 50 | this.regexList = [ 51 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments 52 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 53 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings 54 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings 55 | { regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion 56 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // c# keyword 57 | ]; 58 | 59 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 60 | }; 61 | 62 | SyntaxHighlighter.brushes.CSharp.prototype = new SyntaxHighlighter.Highlighter(); 63 | SyntaxHighlighter.brushes.CSharp.aliases = ['c#', 'c-sharp', 'csharp']; 64 | 65 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/scripts/shBrushCpp.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.296 (March 01 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Cpp = function() 31 | { 32 | // Copyright 2006 Shin, YoungJin 33 | 34 | var datatypes = 'ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR ' + 35 | 'DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH ' + 36 | 'HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP ' + 37 | 'HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY ' + 38 | 'HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT ' + 39 | 'HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE ' + 40 | 'LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF ' + 41 | 'LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR ' + 42 | 'LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR ' + 43 | 'PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT ' + 44 | 'PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 ' + 45 | 'POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR ' + 46 | 'PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 ' + 47 | 'PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT ' + 48 | 'SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG ' + 49 | 'ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM ' + 50 | 'char bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' + 51 | 'clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS ' + 52 | 'FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t ' + 53 | '__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t ' + 54 | 'jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler ' + 55 | 'sig_atomic_t size_t _stat __stat64 _stati64 terminate_function ' + 56 | 'time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf ' + 57 | 'va_list wchar_t wctrans_t wctype_t wint_t signed'; 58 | 59 | var keywords = 'break case catch class const __finally __exception __try ' + 60 | 'const_cast continue private public protected __declspec ' + 61 | 'default delete deprecated dllexport dllimport do dynamic_cast ' + 62 | 'else enum explicit extern if for friend goto inline ' + 63 | 'mutable naked namespace new noinline noreturn nothrow ' + 64 | 'register reinterpret_cast return selectany ' + 65 | 'sizeof static static_cast struct switch template this ' + 66 | 'thread throw true false try typedef typeid typename union ' + 67 | 'using uuid virtual void volatile whcar_t while'; 68 | 69 | var functions = 'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' + 70 | 'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' + 71 | 'setlocale acos asin atan atan2 ceil cos cosh exp fabs floor fmod ' + 72 | 'frexp ldexp log log10 modf pow sin sinh sqrt tan tanh jmp_buf ' + 73 | 'longjmp setjmp raise signal sig_atomic_t va_arg va_end va_start ' + 74 | 'clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen ' + 75 | 'fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell ' + 76 | 'fwrite getc getchar gets perror printf putc putchar puts remove ' + 77 | 'rename rewind scanf setbuf setvbuf sprintf sscanf tmpfile tmpnam ' + 78 | 'ungetc vfprintf vprintf vsprintf abort abs atexit atof atoi atol ' + 79 | 'bsearch calloc div exit free getenv labs ldiv malloc mblen mbstowcs ' + 80 | 'mbtowc qsort rand realloc srand strtod strtol strtoul system ' + 81 | 'wcstombs wctomb memchr memcmp memcpy memmove memset strcat strchr ' + 82 | 'strcmp strcoll strcpy strcspn strerror strlen strncat strncmp ' + 83 | 'strncpy strpbrk strrchr strspn strstr strtok strxfrm asctime ' + 84 | 'clock ctime difftime gmtime localtime mktime strftime time'; 85 | 86 | this.regexList = [ 87 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments 88 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 89 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings 90 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings 91 | { regex: /^ *#.*/gm, css: 'preprocessor' }, 92 | { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'color1 bold' }, 93 | { regex: new RegExp(this.getKeywords(functions), 'gm'), css: 'functions bold' }, 94 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword bold' } 95 | ]; 96 | }; 97 | 98 | SyntaxHighlighter.brushes.Cpp.prototype = new SyntaxHighlighter.Highlighter(); 99 | SyntaxHighlighter.brushes.Cpp.aliases = ['cpp', 'c']; 100 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/scripts/shBrushCss.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.296 (March 01 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.CSS = function() 31 | { 32 | function getKeywordsCSS(str) 33 | { 34 | return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b'; 35 | }; 36 | 37 | function getValuesCSS(str) 38 | { 39 | return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b'; 40 | }; 41 | 42 | var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' + 43 | 'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' + 44 | 'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' + 45 | 'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' + 46 | 'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' + 47 | 'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' + 48 | 'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' + 49 | 'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' + 50 | 'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' + 51 | 'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' + 52 | 'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' + 53 | 'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' + 54 | 'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' + 55 | 'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index'; 56 | 57 | var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+ 58 | 'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+ 59 | 'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+ 60 | 'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+ 61 | 'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+ 62 | 'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+ 63 | 'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+ 64 | 'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+ 65 | 'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+ 66 | 'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+ 67 | 'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+ 68 | 'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+ 69 | 'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+ 70 | 'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow'; 71 | 72 | var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif'; 73 | 74 | this.regexList = [ 75 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 76 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings 77 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings 78 | { regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors 79 | { regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes 80 | { regex: /!important/g, css: 'color3' }, // !important 81 | { regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords 82 | { regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values 83 | { regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts 84 | ]; 85 | 86 | this.forHtmlScript({ 87 | left: /(<|<)\s*style.*?(>|>)/gi, 88 | right: /(<|<)\/\s*style\s*(>|>)/gi 89 | }); 90 | }; 91 | 92 | SyntaxHighlighter.brushes.CSS.prototype = new SyntaxHighlighter.Highlighter(); 93 | SyntaxHighlighter.brushes.CSS.aliases = ['css']; 94 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/scripts/shBrushDelphi.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.296 (March 01 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Delphi = function() 31 | { 32 | var keywords = 'abs addr and ansichar ansistring array as asm begin boolean byte cardinal ' + 33 | 'case char class comp const constructor currency destructor div do double ' + 34 | 'downto else end except exports extended false file finalization finally ' + 35 | 'for function goto if implementation in inherited int64 initialization ' + 36 | 'integer interface is label library longint longword mod nil not object ' + 37 | 'of on or packed pansichar pansistring pchar pcurrency pdatetime pextended ' + 38 | 'pint64 pointer private procedure program property pshortstring pstring ' + 39 | 'pvariant pwidechar pwidestring protected public published raise real real48 ' + 40 | 'record repeat set shl shortint shortstring shr single smallint string then ' + 41 | 'threadvar to true try type unit until uses val var varirnt while widechar ' + 42 | 'widestring with word write writeln xor'; 43 | 44 | this.regexList = [ 45 | { regex: /\(\*[\s\S]*?\*\)/gm, css: 'comments' }, // multiline comments (* *) 46 | { regex: /{(?!\$)[\s\S]*?}/gm, css: 'comments' }, // multiline comments { } 47 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line 48 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings 49 | { regex: /\{\$[a-zA-Z]+ .+\}/g, css: 'color1' }, // compiler Directives and Region tags 50 | { regex: /\b[\d\.]+\b/g, css: 'value' }, // numbers 12345 51 | { regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // numbers $F5D3 52 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword 53 | ]; 54 | }; 55 | 56 | SyntaxHighlighter.brushes.Delphi.prototype = new SyntaxHighlighter.Highlighter(); 57 | SyntaxHighlighter.brushes.Delphi.aliases = ['delphi', 'pascal']; 58 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/scripts/shBrushDiff.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.296 (March 01 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Diff = function() 31 | { 32 | this.regexList = [ 33 | { regex: /^\+\+\+.*$/gm, css: 'color2' }, 34 | { regex: /^\-\-\-.*$/gm, css: 'color2' }, 35 | { regex: /^\s.*$/gm, css: 'color1' }, 36 | { regex: /^@@.*@@$/gm, css: 'variable' }, 37 | { regex: /^\+[^\+]{1}.*$/gm, css: 'string' }, 38 | { regex: /^\-[^\-]{1}.*$/gm, css: 'comments' } 39 | ]; 40 | }; 41 | 42 | SyntaxHighlighter.brushes.Diff.prototype = new SyntaxHighlighter.Highlighter(); 43 | SyntaxHighlighter.brushes.Diff.aliases = ['diff', 'patch']; 44 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/scripts/shBrushGroovy.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.296 (March 01 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Groovy = function() 31 | { 32 | // Contributed by Andres Almiray 33 | // http://jroller.com/aalmiray/entry/nice_source_code_syntax_highlighter 34 | 35 | var keywords = 'as assert break case catch class continue def default do else extends finally ' + 36 | 'if in implements import instanceof interface new package property return switch ' + 37 | 'throw throws try while public protected private static'; 38 | var types = 'void boolean byte char short int long float double'; 39 | var constants = 'null'; 40 | var methods = 'allProperties count get size '+ 41 | 'collect each eachProperty eachPropertyName eachWithIndex find findAll ' + 42 | 'findIndexOf grep inject max min reverseEach sort ' + 43 | 'asImmutable asSynchronized flatten intersect join pop reverse subMap toList ' + 44 | 'padRight padLeft contains eachMatch toCharacter toLong toUrl tokenize ' + 45 | 'eachFile eachFileRecurse eachB yte eachLine readBytes readLine getText ' + 46 | 'splitEachLine withReader append encodeBase64 decodeBase64 filterLine ' + 47 | 'transformChar transformLine withOutputStream withPrintWriter withStream ' + 48 | 'withStreams withWriter withWriterAppend write writeLine '+ 49 | 'dump inspect invokeMethod print println step times upto use waitForOrKill '+ 50 | 'getText'; 51 | 52 | this.regexList = [ 53 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments 54 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 55 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings 56 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings 57 | { regex: /""".*"""/g, css: 'string' }, // GStrings 58 | { regex: new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b', 'gi'), css: 'value' }, // numbers 59 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // goovy keyword 60 | { regex: new RegExp(this.getKeywords(types), 'gm'), css: 'color1' }, // goovy/java type 61 | { regex: new RegExp(this.getKeywords(constants), 'gm'), css: 'constants' }, // constants 62 | { regex: new RegExp(this.getKeywords(methods), 'gm'), css: 'functions' } // methods 63 | ]; 64 | 65 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 66 | } 67 | 68 | SyntaxHighlighter.brushes.Groovy.prototype = new SyntaxHighlighter.Highlighter(); 69 | SyntaxHighlighter.brushes.Groovy.aliases = ['groovy']; 70 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/scripts/shBrushJScript.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.296 (March 01 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.JScript = function() 31 | { 32 | var keywords = 'abstract boolean break byte case catch char class const continue debugger ' + 33 | 'default delete do double else enum export extends false final finally float ' + 34 | 'for function goto if implements import in instanceof int interface long native ' + 35 | 'new null package private protected public return short static super switch ' + 36 | 'synchronized this throw throws transient true try typeof var void volatile while with'; 37 | 38 | this.regexList = [ 39 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments 40 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 41 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings 42 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings 43 | { regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion 44 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords 45 | ]; 46 | 47 | this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags); 48 | }; 49 | 50 | SyntaxHighlighter.brushes.JScript.prototype = new SyntaxHighlighter.Highlighter(); 51 | SyntaxHighlighter.brushes.JScript.aliases = ['js', 'jscript', 'javascript']; 52 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/scripts/shBrushJava.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.296 (March 01 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Java = function() 31 | { 32 | var keywords = 'abstract assert boolean break byte case catch char class const ' + 33 | 'continue default do double else enum extends ' + 34 | 'false final finally float for goto if implements import ' + 35 | 'instanceof int interface long native new null ' + 36 | 'package private protected public return ' + 37 | 'short static strictfp super switch synchronized this throw throws true ' + 38 | 'transient try void volatile while'; 39 | 40 | this.regexList = [ 41 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments 42 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 43 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings 44 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings 45 | { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers 46 | { regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno 47 | { regex: /\@interface\b/g, css: 'color2' }, // @interface keyword 48 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword 49 | ]; 50 | 51 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 52 | }; 53 | 54 | SyntaxHighlighter.brushes.Java.prototype = new SyntaxHighlighter.Highlighter(); 55 | SyntaxHighlighter.brushes.Java.aliases = ['java']; 56 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/scripts/shBrushPerl.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.296 (March 01 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Perl = function() 31 | { 32 | // Contributed by David Simmons-Duffin and Marty Kube 33 | 34 | var funcs = 35 | 'abs accept alarm atan2 bind binmode chdir chmod chomp chop chown chr ' + 36 | 'chroot close closedir connect cos crypt defined delete each endgrent ' + 37 | 'endhostent endnetent endprotoent endpwent endservent eof exec exists ' + 38 | 'exp fcntl fileno flock fork format formline getc getgrent getgrgid ' + 39 | 'getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr ' + 40 | 'getnetbyname getnetent getpeername getpgrp getppid getpriority ' + 41 | 'getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid ' + 42 | 'getservbyname getservbyport getservent getsockname getsockopt glob ' + 43 | 'gmtime grep hex index int ioctl join keys kill lc lcfirst length link ' + 44 | 'listen localtime lock log lstat map mkdir msgctl msgget msgrcv msgsnd ' + 45 | 'oct open opendir ord pack pipe pop pos print printf prototype push ' + 46 | 'quotemeta rand read readdir readline readlink readpipe recv rename ' + 47 | 'reset reverse rewinddir rindex rmdir scalar seek seekdir select semctl ' + 48 | 'semget semop send setgrent sethostent setnetent setpgrp setpriority ' + 49 | 'setprotoent setpwent setservent setsockopt shift shmctl shmget shmread ' + 50 | 'shmwrite shutdown sin sleep socket socketpair sort splice split sprintf ' + 51 | 'sqrt srand stat study substr symlink syscall sysopen sysread sysseek ' + 52 | 'system syswrite tell telldir time times tr truncate uc ucfirst umask ' + 53 | 'undef unlink unpack unshift utime values vec wait waitpid warn write'; 54 | 55 | var keywords = 56 | 'bless caller continue dbmclose dbmopen die do dump else elsif eval exit ' + 57 | 'for foreach goto if import last local my next no our package redo ref ' + 58 | 'require return sub tie tied unless untie until use wantarray while'; 59 | 60 | this.regexList = [ 61 | { regex: new RegExp('#[^!].*$', 'gm'), css: 'comments' }, 62 | { regex: new RegExp('^\\s*#!.*$', 'gm'), css: 'preprocessor' }, // shebang 63 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, 64 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, 65 | { regex: new RegExp('(\\$|@|%)\\w+', 'g'), css: 'variable' }, 66 | { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, 67 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } 68 | ]; 69 | 70 | this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags); 71 | } 72 | 73 | SyntaxHighlighter.brushes.Perl.prototype = new SyntaxHighlighter.Highlighter(); 74 | SyntaxHighlighter.brushes.Perl.aliases = ['perl', 'Perl', 'pl']; -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/scripts/shBrushPhp.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.296 (March 01 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Php = function() 31 | { 32 | var funcs = 'abs acos acosh addcslashes addslashes ' + 33 | 'array_change_key_case array_chunk array_combine array_count_values array_diff '+ 34 | 'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+ 35 | 'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+ 36 | 'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+ 37 | 'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+ 38 | 'array_push array_rand array_reduce array_reverse array_search array_shift '+ 39 | 'array_slice array_splice array_sum array_udiff array_udiff_assoc '+ 40 | 'array_udiff_uassoc array_uintersect array_uintersect_assoc '+ 41 | 'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+ 42 | 'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+ 43 | 'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+ 44 | 'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+ 45 | 'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+ 46 | 'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+ 47 | 'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+ 48 | 'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+ 49 | 'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+ 50 | 'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+ 51 | 'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+ 52 | 'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+ 53 | 'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+ 54 | 'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+ 55 | 'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+ 56 | 'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+ 57 | 'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+ 58 | 'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+ 59 | 'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+ 60 | 'parse_ini_file parse_str parse_url passthru pathinfo readlink realpath rewind rewinddir rmdir '+ 61 | 'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+ 62 | 'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+ 63 | 'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+ 64 | 'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+ 65 | 'strtoupper strtr strval substr substr_compare'; 66 | 67 | var keywords = 'and or xor array as break case ' + 68 | 'cfunction class const continue declare default die do else ' + 69 | 'elseif enddeclare endfor endforeach endif endswitch endwhile ' + 70 | 'extends for foreach function include include_once global if ' + 71 | 'new old_function return static switch use require require_once ' + 72 | 'var while abstract interface public implements extends private protected throw'; 73 | 74 | var constants = '__FILE__ __LINE__ __METHOD__ __FUNCTION__ __CLASS__'; 75 | 76 | this.regexList = [ 77 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments 78 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 79 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings 80 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings 81 | { regex: /\$\w+/g, css: 'variable' }, // variables 82 | { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions 83 | { regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants 84 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword 85 | ]; 86 | 87 | this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags); 88 | }; 89 | 90 | SyntaxHighlighter.brushes.Php.prototype = new SyntaxHighlighter.Highlighter(); 91 | SyntaxHighlighter.brushes.Php.aliases = ['php']; 92 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/scripts/shBrushPlain.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.296 (March 01 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Plain = function() 31 | { 32 | }; 33 | 34 | SyntaxHighlighter.brushes.Plain.prototype = new SyntaxHighlighter.Highlighter(); 35 | SyntaxHighlighter.brushes.Plain.aliases = ['text', 'plain']; 36 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/scripts/shBrushPython.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.296 (March 01 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Python = function() 31 | { 32 | // Contributed by Gheorghe Milas 33 | 34 | var keywords = 'and assert break class continue def del elif else ' + 35 | 'except exec finally for from global if import in is ' + 36 | 'lambda not or pass print raise return try yield while'; 37 | 38 | var special = 'None True False self cls class_'; 39 | 40 | this.regexList = [ 41 | { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, 42 | { regex: /^\s*@\w+/gm, css: 'decorator' }, 43 | { regex: /(['\"]{3})([^\1])*?\1/gm, css: 'comments' }, 44 | { regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, css: 'string' }, 45 | { regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, css: 'string' }, 46 | { regex: /\+|\-|\*|\/|\%|=|==/gm, css: 'keyword' }, 47 | { regex: /\b\d+\.?\w*/g, css: 'value' }, 48 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, 49 | { regex: new RegExp(this.getKeywords(special), 'gm'), css: 'color1' } 50 | ]; 51 | 52 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 53 | }; 54 | 55 | SyntaxHighlighter.brushes.Python.prototype = new SyntaxHighlighter.Highlighter(); 56 | SyntaxHighlighter.brushes.Python.aliases = ['py', 'python']; 57 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/scripts/shBrushRuby.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.296 (March 01 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Ruby = function() 31 | { 32 | // Contributed by Erik Peterson. 33 | 34 | var keywords = 'alias and BEGIN begin break case class def define_method defined do each else elsif ' + 35 | 'END end ensure false for if in module new next nil not or raise redo rescue retry return ' + 36 | 'self super then throw true undef unless until when while yield'; 37 | 38 | var builtins = 'Array Bignum Binding Class Continuation Dir Exception FalseClass File::Stat File Fixnum Fload ' + 39 | 'Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol ' + 40 | 'ThreadGroup Thread Time TrueClass'; 41 | 42 | this.regexList = [ 43 | { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments 44 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings 45 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings 46 | { regex: /\b[A-Z0-9_]+\b/g, css: 'constants' }, // constants 47 | { regex: /:[a-z][A-Za-z0-9_]*/g, css: 'color2' }, // symbols 48 | { regex: /(\$|@@|@)\w+/g, css: 'variable bold' }, // $global, @instance, and @@class variables 49 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords 50 | { regex: new RegExp(this.getKeywords(builtins), 'gm'), css: 'color1' } // builtins 51 | ]; 52 | 53 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 54 | }; 55 | 56 | SyntaxHighlighter.brushes.Ruby.prototype = new SyntaxHighlighter.Highlighter(); 57 | SyntaxHighlighter.brushes.Ruby.aliases = ['ruby', 'rails', 'ror']; 58 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/scripts/shBrushScala.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.296 (March 01 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Scala = function() 31 | { 32 | // Contributed by Yegor Jbanov and David Bernard. 33 | 34 | var keywords = 'val sealed case def true trait implicit forSome import match object null finally super ' + 35 | 'override try lazy for var catch throw type extends class while with new final yield abstract ' + 36 | 'else do if return protected private this package false'; 37 | 38 | var keyops = '[_:=><%#@]+'; 39 | 40 | this.regexList = [ 41 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments 42 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 43 | { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // multi-line strings 44 | { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double-quoted string 45 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings 46 | { regex: /0x[a-f0-9]+|\d+(\.\d+)?/gi, css: 'value' }, // numbers 47 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords 48 | { regex: new RegExp(keyops, 'gm'), css: 'keyword' } // scala keyword 49 | ]; 50 | } 51 | 52 | SyntaxHighlighter.brushes.Scala.prototype = new SyntaxHighlighter.Highlighter(); 53 | SyntaxHighlighter.brushes.Scala.aliases = ['scala']; 54 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/scripts/shBrushSql.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.296 (March 01 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Sql = function() 31 | { 32 | var funcs = 'abs avg case cast coalesce convert count current_timestamp ' + 33 | 'current_user day isnull left lower month nullif replace right ' + 34 | 'session_user space substring sum system_user upper user year'; 35 | 36 | var keywords = 'absolute action add after alter as asc at authorization begin bigint ' + 37 | 'binary bit by cascade char character check checkpoint close collate ' + 38 | 'column commit committed connect connection constraint contains continue ' + 39 | 'create cube current current_date current_time cursor database date ' + 40 | 'deallocate dec decimal declare default delete desc distinct double drop ' + 41 | 'dynamic else end end-exec escape except exec execute false fetch first ' + 42 | 'float for force foreign forward free from full function global goto grant ' + 43 | 'group grouping having hour ignore index inner insensitive insert instead ' + 44 | 'int integer intersect into is isolation key last level load local max min ' + 45 | 'minute modify move name national nchar next no numeric of off on only ' + 46 | 'open option order out output partial password precision prepare primary ' + 47 | 'prior privileges procedure public read real references relative repeatable ' + 48 | 'restrict return returns revoke rollback rollup rows rule schema scroll ' + 49 | 'second section select sequence serializable set size smallint static ' + 50 | 'statistics table temp temporary then time timestamp to top transaction ' + 51 | 'translation trigger true truncate uncommitted union unique update values ' + 52 | 'varchar varying view when where with work'; 53 | 54 | var operators = 'all and any between cross in join like not null or outer some'; 55 | 56 | this.regexList = [ 57 | { regex: /--(.*)$/gm, css: 'comments' }, // one line and multiline comments 58 | { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings 59 | { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // single quoted strings 60 | { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'color2' }, // functions 61 | { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such 62 | { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword 63 | ]; 64 | }; 65 | 66 | SyntaxHighlighter.brushes.Sql.prototype = new SyntaxHighlighter.Highlighter(); 67 | SyntaxHighlighter.brushes.Sql.aliases = ['sql']; 68 | 69 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/scripts/shBrushVb.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.296 (March 01 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Vb = function() 31 | { 32 | var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto ' + 33 | 'Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate ' + 34 | 'CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType ' + 35 | 'Date Decimal Declare Default Delegate Dim DirectCast Do Double Each ' + 36 | 'Else ElseIf End Enum Erase Error Event Exit False Finally For Friend ' + 37 | 'Function Get GetType GoSub GoTo Handles If Implements Imports In ' + 38 | 'Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module ' + 39 | 'MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing ' + 40 | 'NotInheritable NotOverridable Object On Option Optional Or OrElse ' + 41 | 'Overloads Overridable Overrides ParamArray Preserve Private Property ' + 42 | 'Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume ' + 43 | 'Return Select Set Shadows Shared Short Single Static Step Stop String ' + 44 | 'Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until ' + 45 | 'Variant When While With WithEvents WriteOnly Xor'; 46 | 47 | this.regexList = [ 48 | { regex: /'.*$/gm, css: 'comments' }, // one line comments 49 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings 50 | { regex: /^\s*#.*$/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion 51 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // vb keyword 52 | ]; 53 | 54 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 55 | }; 56 | 57 | SyntaxHighlighter.brushes.Vb.prototype = new SyntaxHighlighter.Highlighter(); 58 | SyntaxHighlighter.brushes.Vb.aliases = ['vb', 'vbnet']; 59 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/scripts/shBrushXml.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.296 (March 01 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Xml = function() 31 | { 32 | function process(match, regexInfo) 33 | { 34 | var constructor = SyntaxHighlighter.Match, 35 | code = match[0], 36 | tag = new XRegExp('(<|<)[\\s\\/\\?]*(?[:\\w-\\.]+)', 'xg').exec(code), 37 | result = [] 38 | ; 39 | 40 | if (match.attributes != null) 41 | { 42 | var attributes, 43 | regex = new XRegExp('(? [\\w:\\-\\.]+)' + 44 | '\\s*=\\s*' + 45 | '(? ".*?"|\'.*?\'|\\w+)', 46 | 'xg'); 47 | 48 | while ((attributes = regex.exec(code)) != null) 49 | { 50 | result.push(new constructor(attributes.name, match.index + attributes.index, 'color1')); 51 | result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string')); 52 | } 53 | } 54 | 55 | if (tag != null) 56 | result.push( 57 | new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword') 58 | ); 59 | 60 | return result; 61 | } 62 | 63 | this.regexList = [ 64 | { regex: new XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), css: 'color2' }, // 65 | { regex: new XRegExp('(\\<|<)!--\\s*.*?\\s*--(\\>|>)', 'gm'), css: 'comments' }, // 66 | { regex: new XRegExp('(<|<)[\\s\\/\\?]*(\\w+)(?.*?)[\\s\\/\\?]*(>|>)', 'sg'), func: process } 67 | ]; 68 | }; 69 | 70 | SyntaxHighlighter.brushes.Xml.prototype = new SyntaxHighlighter.Highlighter(); 71 | SyntaxHighlighter.brushes.Xml.aliases = ['xml', 'xhtml', 'xslt', 'html', 'xhtml']; 72 | -------------------------------------------------------------------------------- /PHPMailer_5.2.0/test_script/scripts/shLegacy.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.296 (March 01 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1 y={d:{}};y.d={F:6(S,l,q,k,m,n){6 J(z,Y){1 V=16 15("^"+Y+"\\\\[(?\\\\w+)\\\\]$","14"),x=2;h(1 i=0;i. 29 | */ 30 | var dp = { 31 | SyntaxHighlighter : {} 32 | }; 33 | 34 | dp.SyntaxHighlighter = { 35 | parseParams: function( 36 | input, 37 | showGutter, 38 | showControls, 39 | collapseAll, 40 | firstLine, 41 | showColumns 42 | ) 43 | { 44 | function getValue(list, name) 45 | { 46 | var regex = new XRegExp('^' + name + '\\[(?\\w+)\\]$', 'gi'), 47 | match = null 48 | ; 49 | 50 | for (var i = 0; i < list.length; i++) 51 | if ((match = regex.exec(list[i])) != null) 52 | return match.value; 53 | 54 | return null; 55 | }; 56 | 57 | function defaultValue(value, def) 58 | { 59 | return value != null ? value : def; 60 | }; 61 | 62 | function asString(value) 63 | { 64 | return value != null ? value.toString() : null; 65 | }; 66 | 67 | var parts = input.split(':'), 68 | brushName = parts[0], 69 | options = {}, 70 | straight = { 'true' : 'true' } 71 | reverse = { 'true' : 'false' }, 72 | result = null, 73 | defaults = SyntaxHighlighter.defaults 74 | ; 75 | 76 | for (var i in parts) 77 | options[parts[i]] = 'true'; 78 | 79 | showGutter = asString(defaultValue(showGutter, defaults.gutter)); 80 | showControls = asString(defaultValue(showControls, defaults.toolbar)); 81 | collapseAll = asString(defaultValue(collapseAll, defaults.collapse)); 82 | showColumns = asString(defaultValue(showColumns, defaults.ruler)); 83 | firstLine = asString(defaultValue(firstLine, defaults['first-line'])); 84 | 85 | result = { 86 | brush : brushName, 87 | gutter : defaultValue(reverse[options.nogutter], showGutter), 88 | toolbar : defaultValue(reverse[options.nocontrols], showControls), 89 | collapse : defaultValue(straight[options.collapse], collapseAll), 90 | ruler : defaultValue(straight[options.showcolumns], showColumns), 91 | 'first-line' : defaultValue(getValue(parts, 'firstline'), firstLine) 92 | }; 93 | 94 | return result; 95 | }, 96 | 97 | HighlightAll: function( 98 | name, 99 | showGutter /* optional */, 100 | showControls /* optional */, 101 | collapseAll /* optional */, 102 | firstLine /* optional */, 103 | showColumns /* optional */ 104 | ) 105 | { 106 | function findValue() 107 | { 108 | var a = arguments; 109 | 110 | for (var i = 0; i < a.length; i++) 111 | { 112 | if (a[i] === null) 113 | continue; 114 | 115 | if (typeof(a[i]) == 'string' && a[i] != '') 116 | return a[i] + ''; 117 | 118 | if (typeof(a[i]) == 'object' && a[i].value != '') 119 | return a[i].value + ''; 120 | } 121 | 122 | return null; 123 | }; 124 | 125 | function findTagsByName(list, name, tagName) 126 | { 127 | var tags = document.getElementsByTagName(tagName); 128 | 129 | for (var i = 0; i < tags.length; i++) 130 | if (tags[i].getAttribute('name') == name) 131 | list.push(tags[i]); 132 | } 133 | 134 | var elements = [], 135 | highlighter = null, 136 | registered = {}, 137 | propertyName = 'innerHTML' 138 | ; 139 | 140 | // for some reason IE doesn't find
 by name, however it does see them just fine by tag name... 
141 | 		findTagsByName(elements, name, 'pre');
142 | 		findTagsByName(elements, name, 'textarea');
143 | 
144 | 		if (elements.length === 0)
145 | 			return;
146 | 		
147 | 		for (var i = 0; i < elements.length; i++)
148 | 		{
149 | 			var element = elements[i],
150 | 				params = findValue(
151 | 					element.attributes['class'], element.className, 
152 | 					element.attributes['language'], element.language
153 | 					),
154 | 				language = ''
155 | 				;
156 | 			
157 | 			if (params === null) 
158 | 				continue;
159 | 
160 | 			params = dp.SyntaxHighlighter.parseParams(
161 | 				params,
162 | 				showGutter, 
163 | 				showControls, 
164 | 				collapseAll, 
165 | 				firstLine, 
166 | 				showColumns
167 | 				);
168 | 
169 | 			SyntaxHighlighter.highlight(params, element);
170 | 		}
171 | 	}
172 | };
173 | 


--------------------------------------------------------------------------------
/PHPMailer_5.2.0/test_script/styles/help.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPGangsta/FileWatcher/e925abc479c85e82312e40c454542f4af8a83adb/PHPMailer_5.2.0/test_script/styles/help.png


--------------------------------------------------------------------------------
/PHPMailer_5.2.0/test_script/styles/magnifier.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPGangsta/FileWatcher/e925abc479c85e82312e40c454542f4af8a83adb/PHPMailer_5.2.0/test_script/styles/magnifier.png


--------------------------------------------------------------------------------
/PHPMailer_5.2.0/test_script/styles/page_white_code.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPGangsta/FileWatcher/e925abc479c85e82312e40c454542f4af8a83adb/PHPMailer_5.2.0/test_script/styles/page_white_code.png


--------------------------------------------------------------------------------
/PHPMailer_5.2.0/test_script/styles/page_white_copy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPGangsta/FileWatcher/e925abc479c85e82312e40c454542f4af8a83adb/PHPMailer_5.2.0/test_script/styles/page_white_copy.png


--------------------------------------------------------------------------------
/PHPMailer_5.2.0/test_script/styles/printer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPGangsta/FileWatcher/e925abc479c85e82312e40c454542f4af8a83adb/PHPMailer_5.2.0/test_script/styles/printer.png


--------------------------------------------------------------------------------
/PHPMailer_5.2.0/test_script/styles/shCore.css:
--------------------------------------------------------------------------------
  1 | /**
  2 |  * SyntaxHighlighter
  3 |  * http://alexgorbatchev.com/
  4 |  *
  5 |  * SyntaxHighlighter is donationware. If you are using it, please donate.
  6 |  * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
  7 |  *
  8 |  * @version
  9 |  * 2.0.296 (March 01 2009)
 10 |  * 
 11 |  * @copyright
 12 |  * Copyright (C) 2004-2009 Alex Gorbatchev.
 13 |  *
 14 |  * @license
 15 |  * This file is part of SyntaxHighlighter.
 16 |  * 
 17 |  * SyntaxHighlighter is free software: you can redistribute it and/or modify
 18 |  * it under the terms of the GNU General Public License as published by
 19 |  * the Free Software Foundation, either version 3 of the License, or
 20 |  * (at your option) any later version.
 21 |  * 
 22 |  * SyntaxHighlighter is distributed in the hope that it will be useful,
 23 |  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 24 |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 25 |  * GNU General Public License for more details.
 26 |  * 
 27 |  * You should have received a copy of the GNU General Public License
 28 |  * along with SyntaxHighlighter.  If not, see .
 29 |  */
 30 | .syntaxhighlighter,
 31 | .syntaxhighlighter div,
 32 | .syntaxhighlighter code,
 33 | .syntaxhighlighter span
 34 | {
 35 | 	margin: 0 !important;
 36 | 	padding: 0 !important;
 37 | 	border: 0 !important;
 38 | 	outline: 0 !important;
 39 | 	background: none !important;
 40 | 	text-align: left !important;
 41 | 	float: none !important;
 42 | 	vertical-align: baseline !important;
 43 | 	position: static !important;
 44 | 	left: auto !important;
 45 | 	top: auto !important;
 46 | 	right: auto !important;
 47 | 	bottom: auto !important;
 48 | 	height: auto !important;
 49 | 	width: auto !important;
 50 | 	line-height: 1.1em !important;
 51 | 	font-family: "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
 52 | 	font-weight: normal !important;
 53 | 	font-style: normal !important;
 54 | 	font-size: 1em !important;
 55 | }
 56 | 
 57 | .syntaxhighlighter
 58 | {
 59 | 	width: 100% !important;
 60 | 	margin: 1em 0 1em 0 !important;
 61 | 	padding: 1px !important; /* adds a little border on top and bottom */
 62 | 	position: relative !important;
 63 | }
 64 | 
 65 | .syntaxhighlighter .bold {
 66 | 	font-weight: bold !important;
 67 | }
 68 | 
 69 | .syntaxhighlighter .italic {
 70 | 	font-style: italic !important;
 71 | }
 72 | 
 73 | .syntaxhighlighter .line .number
 74 | {
 75 | 	float: left !important; 
 76 | 	width: 3em !important; 
 77 | 	padding-right: .3em !important;
 78 | 	text-align: right !important;
 79 | 	display: block !important;
 80 | }
 81 | 
 82 | /* Disable numbers when no gutter option is set */
 83 | .syntaxhighlighter.nogutter .line .number
 84 | {
 85 | 	display: none !important;
 86 | }
 87 | 
 88 | .syntaxhighlighter .line .content
 89 | {
 90 | 	margin-left: 3.3em !important; 
 91 | 	padding-left: .5em !important;
 92 | 	display: block !important;
 93 | }
 94 | 
 95 | .syntaxhighlighter .line .content .block
 96 | {
 97 | 	display: block !important;
 98 | 	padding-left: 1.5em !important;
 99 | 	text-indent: -1.5em !important;
100 | }
101 | 
102 | .syntaxhighlighter .line .content .spaces
103 | {
104 | 	display: none !important;
105 | }
106 | 
107 | /* Disable border and margin on the lines when no gutter option is set */
108 | .syntaxhighlighter.nogutter .line .content
109 | {
110 | 	margin-left: 0 !important; 
111 | 	border-left: none !important;
112 | }
113 | 
114 | .syntaxhighlighter .bar
115 | {
116 | }
117 | 
118 | .syntaxhighlighter.collapsed .bar
119 | {
120 | 
121 | }
122 | 
123 | .syntaxhighlighter.nogutter .ruler
124 | {
125 | 	margin-left: 0 !important;
126 | 	padding-left: 0 !important;
127 | }
128 | 
129 | .syntaxhighlighter .ruler
130 | {
131 | 	padding: 0 0 .5em .5em !important;
132 | 	margin-left: 3.3em !important;
133 | 	overflow: hidden !important;
134 | }
135 | 
136 | /* Adjust some properties when collapsed */
137 | 
138 | .syntaxhighlighter.collapsed .lines,
139 | .syntaxhighlighter.collapsed .ruler
140 | {
141 | 	display: none !important;
142 | }
143 | 
144 | /* Styles for the toolbar */
145 | 
146 | .syntaxhighlighter .toolbar
147 | {
148 | 	position: absolute !important;
149 | 	right: 0px !important;
150 | 	top: 0px !important;
151 | 	font-size: 1px !important;
152 | 	padding: 8px 8px 8px 0 !important; /* in px because images don't scale with ems */
153 | }
154 | 
155 | .syntaxhighlighter.collapsed .toolbar
156 | {
157 | 	font-size: 80% !important;
158 | 	padding: .2em 0 .5em .5em !important;
159 | 	position: static !important;
160 | }
161 | 
162 | .syntaxhighlighter .toolbar a.item,
163 | .syntaxhighlighter .toolbar .item
164 | {
165 | 	display: block !important;
166 | 	float: left !important;
167 | 	margin-left: 8px !important;
168 | 	background-repeat: no-repeat !important;
169 | 	overflow: hidden !important;
170 | 	text-indent: -5000px !important;
171 | }
172 | 
173 | .syntaxhighlighter.collapsed .toolbar .item
174 | {
175 | 	display: none !important;
176 | }
177 | 
178 | .syntaxhighlighter.collapsed .toolbar .item.expandSource
179 | {
180 | 	background-image: url(magnifier.png) !important;
181 | 	display: inline !important;
182 | 	text-indent: 0 !important;
183 | 	width: auto !important;
184 | 	float: none !important;
185 | 	height: 16px !important;
186 | 	padding-left: 20px !important;
187 | }
188 | 
189 | .syntaxhighlighter .toolbar .item.viewSource
190 | {
191 | 	background-image: url(page_white_code.png) !important;
192 | }
193 | 
194 | .syntaxhighlighter .toolbar .item.printSource
195 | {
196 | 	background-image: url(printer.png) !important;
197 | }
198 | 
199 | .syntaxhighlighter .toolbar .item.copyToClipboard
200 | {
201 | 	text-indent: 0 !important;
202 | 	background: none !important;
203 | 	overflow: visible !important;
204 | }
205 | 
206 | .syntaxhighlighter .toolbar .item.about
207 | {
208 | 	background-image: url(help.png) !important;
209 | }
210 | 
211 | /** 
212 |  * Print view.
213 |  * Colors are based on the default theme without background.
214 |  */
215 | 
216 | .syntaxhighlighter.printing,
217 | .syntaxhighlighter.printing .line.alt1 .content,
218 | .syntaxhighlighter.printing .line.alt2 .content,
219 | .syntaxhighlighter.printing .line.highlighted .number,
220 | .syntaxhighlighter.printing .line.highlighted.alt1 .content,
221 | .syntaxhighlighter.printing .line.highlighted.alt2 .content,
222 | .syntaxhighlighter.printing .line .content .block
223 | {
224 | 	background: none !important;
225 | }
226 | 
227 | /* Gutter line numbers */
228 | .syntaxhighlighter.printing .line .number
229 | {
230 | 	color: #bbb !important;
231 | }
232 | 
233 | /* Add border to the lines */
234 | .syntaxhighlighter.printing .line .content
235 | {
236 | 	color: #000 !important;
237 | }
238 | 
239 | /* Toolbar when visible */
240 | .syntaxhighlighter.printing .toolbar,
241 | .syntaxhighlighter.printing .ruler
242 | {
243 | 	display: none !important;
244 | }
245 | 
246 | .syntaxhighlighter.printing a
247 | {
248 | 	text-decoration: none !important;
249 | }
250 | 
251 | .syntaxhighlighter.printing .plain,
252 | .syntaxhighlighter.printing .plain a
253 | { 
254 | 	color: #000 !important;
255 | }
256 | 
257 | .syntaxhighlighter.printing .comments,
258 | .syntaxhighlighter.printing .comments a
259 | { 
260 | 	color: #008200 !important;
261 | }
262 | 
263 | .syntaxhighlighter.printing .string,
264 | .syntaxhighlighter.printing .string a
265 | {
266 | 	color: blue !important; 
267 | }
268 | 
269 | .syntaxhighlighter.printing .keyword
270 | { 
271 | 	color: #069 !important; 
272 | 	font-weight: bold !important; 
273 | }
274 | 
275 | .syntaxhighlighter.printing .preprocessor 
276 | { 
277 | 	color: gray !important; 
278 | }
279 | 
280 | .syntaxhighlighter.printing .variable 
281 | { 
282 | 	color: #a70 !important; 
283 | }
284 | 
285 | .syntaxhighlighter.printing .value
286 | { 
287 | 	color: #090 !important; 
288 | }
289 | 
290 | .syntaxhighlighter.printing .functions
291 | { 
292 | 	color: #ff1493 !important; 
293 | }
294 | 
295 | .syntaxhighlighter.printing .constants
296 | { 
297 | 	color: #0066CC !important; 
298 | }
299 | 
300 | .syntaxhighlighter.printing .script
301 | {
302 | 	font-weight: bold !important;
303 | }
304 | 
305 | .syntaxhighlighter.printing .color1,
306 | .syntaxhighlighter.printing .color1 a
307 | { 
308 | 	color: #808080 !important; 
309 | }
310 | 
311 | .syntaxhighlighter.printing .color2,
312 | .syntaxhighlighter.printing .color2 a
313 | { 
314 | 	color: #ff1493 !important; 
315 | }
316 | 
317 | .syntaxhighlighter.printing .color3,
318 | .syntaxhighlighter.printing .color3 a
319 | { 
320 | 	color: red !important; 
321 | }
322 | 


--------------------------------------------------------------------------------
/PHPMailer_5.2.0/test_script/styles/shThemeDefault.css:
--------------------------------------------------------------------------------
  1 | /**
  2 |  * SyntaxHighlighter
  3 |  * http://alexgorbatchev.com/
  4 |  *
  5 |  * SyntaxHighlighter is donationware. If you are using it, please donate.
  6 |  * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
  7 |  *
  8 |  * @version
  9 |  * 2.0.296 (March 01 2009)
 10 |  * 
 11 |  * @copyright
 12 |  * Copyright (C) 2004-2009 Alex Gorbatchev.
 13 |  *
 14 |  * @license
 15 |  * This file is part of SyntaxHighlighter.
 16 |  * 
 17 |  * SyntaxHighlighter is free software: you can redistribute it and/or modify
 18 |  * it under the terms of the GNU General Public License as published by
 19 |  * the Free Software Foundation, either version 3 of the License, or
 20 |  * (at your option) any later version.
 21 |  * 
 22 |  * SyntaxHighlighter is distributed in the hope that it will be useful,
 23 |  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 24 |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 25 |  * GNU General Public License for more details.
 26 |  * 
 27 |  * You should have received a copy of the GNU General Public License
 28 |  * along with SyntaxHighlighter.  If not, see .
 29 |  */
 30 | /************************************
 31 |  * Default Syntax Highlighter theme.
 32 |  * 
 33 |  * Interface elements.
 34 |  ************************************/
 35 | 
 36 | .syntaxhighlighter
 37 | {
 38 | 	background-color: #E7E5DC !important;
 39 | }
 40 | 
 41 | /* Highlighed line number */
 42 | .syntaxhighlighter .line.highlighted .number
 43 | {
 44 | 	background-color: #6CE26C !important;
 45 | 	color: black !important;
 46 | }
 47 | 
 48 | /* Highlighed line */
 49 | .syntaxhighlighter .line.highlighted.alt1 .content,
 50 | .syntaxhighlighter .line.highlighted.alt2 .content
 51 | {
 52 | 	background-color: #6CE26C !important;
 53 | }
 54 | 
 55 | /* Gutter line numbers */
 56 | .syntaxhighlighter .line .number
 57 | {
 58 | 	color: #5C5C5C !important;
 59 | }
 60 | 
 61 | /* Add border to the lines */
 62 | .syntaxhighlighter .line .content
 63 | {
 64 | 	border-left: 3px solid #6CE26C !important;
 65 | 	color: #000 !important;
 66 | }
 67 | 
 68 | .syntaxhighlighter.printing .line .content 
 69 | {
 70 | 	border: 0 !important;
 71 | }
 72 | 
 73 | /* First line */
 74 | .syntaxhighlighter .line.alt1 .content
 75 | {
 76 | 	background-color: #fff !important;
 77 | }
 78 | 
 79 | /* Second line */
 80 | .syntaxhighlighter .line.alt2 .content
 81 | {
 82 | 	background-color: #F8F8F8 !important;
 83 | }
 84 | 
 85 | .syntaxhighlighter .line .content .block
 86 | {
 87 | 	background: url(wrapping.png) 0 1.1em no-repeat !important;
 88 | }
 89 | 
 90 | .syntaxhighlighter .ruler
 91 | {
 92 | 	color: silver !important;
 93 | 	background-color: #F8F8F8 !important;
 94 | 	border-left: 3px solid #6CE26C !important;
 95 | }
 96 | 
 97 | .syntaxhighlighter.nogutter .ruler
 98 | {
 99 | 	border: 0 !important;
100 | }
101 | 
102 | .syntaxhighlighter .toolbar
103 | {
104 | 	background-color: #F8F8F8 !important;
105 | 	border: #E7E5DC solid 1px !important;
106 | }
107 | 
108 | .syntaxhighlighter .toolbar a
109 | {
110 | 	color: #a0a0a0 !important;
111 | }
112 | 
113 | .syntaxhighlighter .toolbar a:hover
114 | {
115 | 	color: red !important;
116 | }
117 | 
118 | /************************************
119 |  * Actual syntax highlighter colors.
120 |  ************************************/
121 | .syntaxhighlighter .plain,
122 | .syntaxhighlighter .plain a
123 | { 
124 | 	color: #000 !important;
125 | }
126 | 
127 | .syntaxhighlighter .comments,
128 | .syntaxhighlighter .comments a
129 | { 
130 | 	color: #008200 !important;
131 | }
132 | 
133 | .syntaxhighlighter .string,
134 | .syntaxhighlighter .string a
135 | {
136 | 	color: blue !important; 
137 | }
138 | 
139 | .syntaxhighlighter .keyword
140 | { 
141 | 	color: #069 !important; 
142 | 	font-weight: bold !important; 
143 | }
144 | 
145 | .syntaxhighlighter .preprocessor 
146 | { 
147 | 	color: gray !important; 
148 | }
149 | 
150 | .syntaxhighlighter .variable 
151 | { 
152 | 	color: #a70 !important; 
153 | }
154 | 
155 | .syntaxhighlighter .value
156 | { 
157 | 	color: #090 !important; 
158 | }
159 | 
160 | .syntaxhighlighter .functions
161 | { 
162 | 	color: #ff1493 !important; 
163 | }
164 | 
165 | .syntaxhighlighter .constants
166 | { 
167 | 	color: #0066CC !important; 
168 | }
169 | 
170 | .syntaxhighlighter .script
171 | { 
172 | 	background-color: yellow !important;
173 | }
174 | 
175 | .syntaxhighlighter .color1,
176 | .syntaxhighlighter .color1 a
177 | { 
178 | 	color: #808080 !important; 
179 | }
180 | 
181 | .syntaxhighlighter .color2,
182 | .syntaxhighlighter .color2 a
183 | { 
184 | 	color: #ff1493 !important; 
185 | }
186 | 
187 | .syntaxhighlighter .color3,
188 | .syntaxhighlighter .color3 a
189 | { 
190 | 	color: red !important; 
191 | }
192 | 


--------------------------------------------------------------------------------
/PHPMailer_5.2.0/test_script/styles/shThemeDjango.css:
--------------------------------------------------------------------------------
  1 | /**
  2 |  * SyntaxHighlighter
  3 |  * http://alexgorbatchev.com/
  4 |  *
  5 |  * SyntaxHighlighter is donationware. If you are using it, please donate.
  6 |  * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
  7 |  *
  8 |  * @version
  9 |  * 2.0.296 (March 01 2009)
 10 |  * 
 11 |  * @copyright
 12 |  * Copyright (C) 2004-2009 Alex Gorbatchev.
 13 |  *
 14 |  * @license
 15 |  * This file is part of SyntaxHighlighter.
 16 |  * 
 17 |  * SyntaxHighlighter is free software: you can redistribute it and/or modify
 18 |  * it under the terms of the GNU General Public License as published by
 19 |  * the Free Software Foundation, either version 3 of the License, or
 20 |  * (at your option) any later version.
 21 |  * 
 22 |  * SyntaxHighlighter is distributed in the hope that it will be useful,
 23 |  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 24 |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 25 |  * GNU General Public License for more details.
 26 |  * 
 27 |  * You should have received a copy of the GNU General Public License
 28 |  * along with SyntaxHighlighter.  If not, see .
 29 |  */
 30 | /**
 31 |  * Django SyntaxHighlighter theme
 32 |  */
 33 | 
 34 | /************************************
 35 |  * Interface elements.
 36 |  ************************************/
 37 | 
 38 | .syntaxhighlighter
 39 | {
 40 | 	background-color: #0B2F20 !important;
 41 | }
 42 | 
 43 | /* Gutter line numbers */
 44 | .syntaxhighlighter .line .number
 45 | {
 46 | 	color: #497958 !important;
 47 | }
 48 | 
 49 | /* Add border to the lines */
 50 | .syntaxhighlighter .line .content
 51 | {
 52 | 	border-left: 3px solid #41A83E !important;
 53 | 	color: #B9BDB6 !important;
 54 | }
 55 | 
 56 | .syntaxhighlighter.printing .line .content 
 57 | {
 58 | 	border: 0 !important;
 59 | }
 60 | 
 61 | /* First line */
 62 | .syntaxhighlighter .line.alt1 .content
 63 | {
 64 | }
 65 | 
 66 | /* Second line */
 67 | .syntaxhighlighter .line.alt2 .content
 68 | {
 69 | 	background-color: #0a2b1d !important;
 70 | }
 71 | 
 72 | .syntaxhighlighter .line .content .block
 73 | {
 74 | 	background: url(wrapping.png) 0 1.1em no-repeat !important;
 75 | }
 76 | 
 77 | /* Highlighed line number */
 78 | .syntaxhighlighter .line.highlighted .number
 79 | {
 80 | 	background-color: #336442 !important;
 81 | 	color: #fff !important;
 82 | }
 83 | 
 84 | /* Highlighed line */
 85 | .syntaxhighlighter .line.highlighted.alt1 .content,
 86 | .syntaxhighlighter .line.highlighted.alt2 .content
 87 | {
 88 | 	background-color: #336442 !important;
 89 | }
 90 | 
 91 | .syntaxhighlighter .ruler
 92 | {
 93 | 	color: #C4B14A !important;
 94 | 	background-color: #245032 !important;
 95 | 	border-left: 3px solid #41A83E !important;
 96 | }
 97 | 
 98 | .syntaxhighlighter.nogutter .ruler
 99 | {
100 | 	border: 0 !important;
101 | }
102 | 
103 | .syntaxhighlighter .toolbar
104 | {
105 | 	background-color: #245032 !important;
106 | 	border: #0B2F20 solid 1px !important;
107 | }
108 | 
109 | .syntaxhighlighter .toolbar a
110 | {
111 | 	color: #C4B14A !important;
112 | }
113 | 
114 | .syntaxhighlighter .toolbar a:hover
115 | {
116 | 	color: #FFE862 !important;
117 | }
118 | 
119 | /************************************
120 |  * Actual syntax highlighter colors.
121 |  ************************************/
122 | .syntaxhighlighter .plain,
123 | .syntaxhighlighter .plain a
124 | {
125 | 	color: #F8F8F8 !important;
126 | }
127 | 
128 | .syntaxhighlighter .comments,
129 | .syntaxhighlighter .comments a
130 | { 
131 | 	color: #336442 !important;
132 | 	font-style: italic !important;
133 | }
134 | 
135 | .syntaxhighlighter .string,
136 | .syntaxhighlighter .string a
137 | {
138 | 	color: #9DF39F !important; 
139 | }
140 | 
141 | .syntaxhighlighter .keyword
142 | { 
143 | 	color: #96DD3B !important; 
144 | 	font-weight: bold !important;
145 | }
146 | 
147 | .syntaxhighlighter .preprocessor 
148 | { 
149 | 	color: #91BB9E !important; 
150 | }
151 | 
152 | .syntaxhighlighter .variable 
153 | { 
154 | 	color: #FFAA3E !important; 
155 | }
156 | 
157 | .syntaxhighlighter .value
158 | { 
159 | 	color: #F7E741 !important; 
160 | }
161 | 
162 | .syntaxhighlighter .functions
163 | { 
164 | 	color: #FFAA3E !important; 
165 | }
166 | 
167 | .syntaxhighlighter .constants
168 | { 
169 | 	color: #E0E8FF !important; 
170 | }
171 | 
172 | .syntaxhighlighter .script
173 | { 
174 | 	background-color: #497958 !important;
175 | }
176 | 
177 | .syntaxhighlighter .color1,
178 | .syntaxhighlighter .color1 a
179 | { 
180 | 	color: #EB939A !important; 
181 | }
182 | 
183 | .syntaxhighlighter .color2,
184 | .syntaxhighlighter .color2 a
185 | { 
186 | 	color: #91BB9E !important; 
187 | }
188 | 
189 | .syntaxhighlighter .color3,
190 | .syntaxhighlighter .color3 a
191 | { 
192 | 	color: #EDEF7D !important; 
193 | }
194 | 


--------------------------------------------------------------------------------
/PHPMailer_5.2.0/test_script/styles/shThemeEmacs.css:
--------------------------------------------------------------------------------
  1 | /**
  2 |  * SyntaxHighlighter
  3 |  * http://alexgorbatchev.com/
  4 |  *
  5 |  * SyntaxHighlighter is donationware. If you are using it, please donate.
  6 |  * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
  7 |  *
  8 |  * @version
  9 |  * 2.0.296 (March 01 2009)
 10 |  * 
 11 |  * @copyright
 12 |  * Copyright (C) 2004-2009 Alex Gorbatchev.
 13 |  *
 14 |  * @license
 15 |  * This file is part of SyntaxHighlighter.
 16 |  * 
 17 |  * SyntaxHighlighter is free software: you can redistribute it and/or modify
 18 |  * it under the terms of the GNU General Public License as published by
 19 |  * the Free Software Foundation, either version 3 of the License, or
 20 |  * (at your option) any later version.
 21 |  * 
 22 |  * SyntaxHighlighter is distributed in the hope that it will be useful,
 23 |  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 24 |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 25 |  * GNU General Public License for more details.
 26 |  * 
 27 |  * You should have received a copy of the GNU General Public License
 28 |  * along with SyntaxHighlighter.  If not, see .
 29 |  */
 30 | /**
 31 |  * Emacs SyntaxHighlighter theme based on theme by Joshua Emmons
 32 |  * http://www.skia.net/
 33 |  */
 34 | 
 35 | /************************************
 36 |  * Interface elements.
 37 |  ************************************/
 38 | 
 39 | .syntaxhighlighter
 40 | {
 41 | 	background-color: #000000 !important;
 42 | }
 43 | 
 44 | /* Gutter line numbers */
 45 | .syntaxhighlighter .line .number
 46 | {
 47 | 	color: #D3D3D3 !important;
 48 | }
 49 | 
 50 | /* Add border to the lines */
 51 | .syntaxhighlighter .line .content
 52 | {
 53 | 	border-left: 3px solid #990000 !important;
 54 | 	color: #B9BDB6 !important;
 55 | }
 56 | 
 57 | .syntaxhighlighter.printing .line .content 
 58 | {
 59 | 	border: 0 !important;
 60 | }
 61 | 
 62 | /* First line */
 63 | .syntaxhighlighter .line.alt1 .content
 64 | {
 65 | }
 66 | 
 67 | /* Second line */
 68 | .syntaxhighlighter .line.alt2 .content
 69 | {
 70 | 	background-color: #0f0f0f !important;
 71 | }
 72 | 
 73 | .syntaxhighlighter .line .content .block
 74 | {
 75 | 	background: url(wrapping.png) 0 1.1em no-repeat !important;
 76 | }
 77 | 
 78 | /* Highlighed line number */
 79 | .syntaxhighlighter .line.highlighted .number
 80 | {
 81 | 	background-color: #435A5F !important;
 82 | 	color: #fff !important;
 83 | }
 84 | 
 85 | /* Highlighed line */
 86 | .syntaxhighlighter .line.highlighted.alt1 .content,
 87 | .syntaxhighlighter .line.highlighted.alt2 .content
 88 | {
 89 | 	background-color: #435A5F !important;
 90 | }
 91 | 
 92 | .syntaxhighlighter .ruler
 93 | {
 94 | 	color: silver !important;
 95 | 	background-color: #000000 !important;
 96 | 	border-left: 3px solid #990000 !important;
 97 | }
 98 | 
 99 | .syntaxhighlighter.nogutter .ruler
100 | {
101 | 	border: 0 !important;
102 | }
103 | 
104 | .syntaxhighlighter .toolbar
105 | {
106 | 	background-color: #000000 !important;
107 | 	border: #000000 solid 1px !important;
108 | }
109 | 
110 | .syntaxhighlighter .toolbar a
111 | {
112 | 	color: #646763 !important;
113 | }
114 | 
115 | .syntaxhighlighter .toolbar a:hover
116 | {
117 | 	color: #9CCFF4 !important;
118 | }
119 | 
120 | /************************************
121 |  * Actual syntax highlighter colors.
122 |  ************************************/
123 | .syntaxhighlighter .plain,
124 | .syntaxhighlighter .plain a
125 | { 
126 | 	color: #D3D3D3 !important;
127 | }
128 | 
129 | .syntaxhighlighter .comments,
130 | .syntaxhighlighter .comments a
131 | { 
132 | 	color: #FF7D27 !important;
133 | }
134 | 
135 | .syntaxhighlighter .string,
136 | .syntaxhighlighter .string a
137 | {
138 | 	color: #FF9E7B !important; 
139 | }
140 | 
141 | .syntaxhighlighter .keyword
142 | { 
143 | 	color: #00FFFF !important; 
144 | }
145 | 
146 | .syntaxhighlighter .preprocessor 
147 | { 
148 | 	color: #AEC4DE !important; 
149 | }
150 | 
151 | .syntaxhighlighter .variable 
152 | { 
153 | 	color: #FFAA3E !important; 
154 | }
155 | 
156 | .syntaxhighlighter .value
157 | { 
158 | 	color: #090 !important; 
159 | }
160 | 
161 | .syntaxhighlighter .functions
162 | { 
163 | 	color: #81CEF9 !important; 
164 | }
165 | 
166 | .syntaxhighlighter .constants
167 | { 
168 | 	color: #FF9E7B !important; 
169 | }
170 | 
171 | .syntaxhighlighter .script
172 | { 
173 | 	background-color: #990000 !important;
174 | }
175 | 
176 | .syntaxhighlighter .color1,
177 | .syntaxhighlighter .color1 a
178 | { 
179 | 	color: #EBDB8D !important; 
180 | }
181 | 
182 | .syntaxhighlighter .color2,
183 | .syntaxhighlighter .color2 a
184 | { 
185 | 	color: #FF7D27 !important; 
186 | }
187 | 
188 | .syntaxhighlighter .color3,
189 | .syntaxhighlighter .color3 a
190 | { 
191 | 	color: #AEC4DE !important; 
192 | }
193 | 


--------------------------------------------------------------------------------
/PHPMailer_5.2.0/test_script/styles/shThemeFadeToGrey.css:
--------------------------------------------------------------------------------
  1 | /**
  2 |  * SyntaxHighlighter
  3 |  * http://alexgorbatchev.com/
  4 |  *
  5 |  * SyntaxHighlighter is donationware. If you are using it, please donate.
  6 |  * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
  7 |  *
  8 |  * @version
  9 |  * 2.0.296 (March 01 2009)
 10 |  * 
 11 |  * @copyright
 12 |  * Copyright (C) 2004-2009 Alex Gorbatchev.
 13 |  *
 14 |  * @license
 15 |  * This file is part of SyntaxHighlighter.
 16 |  * 
 17 |  * SyntaxHighlighter is free software: you can redistribute it and/or modify
 18 |  * it under the terms of the GNU General Public License as published by
 19 |  * the Free Software Foundation, either version 3 of the License, or
 20 |  * (at your option) any later version.
 21 |  * 
 22 |  * SyntaxHighlighter is distributed in the hope that it will be useful,
 23 |  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 24 |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 25 |  * GNU General Public License for more details.
 26 |  * 
 27 |  * You should have received a copy of the GNU General Public License
 28 |  * along with SyntaxHighlighter.  If not, see .
 29 |  */
 30 | /**
 31 |  * Fade to Grey SyntaxHighlighter theme based on theme by Brasten Sager
 32 |  * http://www.ibrasten.com/
 33 |  */
 34 | 
 35 | /************************************
 36 |  * Interface elements.
 37 |  ************************************/
 38 | 
 39 | .syntaxhighlighter
 40 | {
 41 | 	background-color: #121212 !important;
 42 | }
 43 | 
 44 | /* Gutter line numbers */
 45 | .syntaxhighlighter .line .number
 46 | {
 47 | 	color: #C3C3C3 !important;
 48 | }
 49 | 
 50 | /* Add border to the lines */
 51 | .syntaxhighlighter .line .content
 52 | {
 53 | 	border-left: 3px solid #3185B9 !important;
 54 | 	color: #B9BDB6 !important;
 55 | }
 56 | 
 57 | .syntaxhighlighter.printing .line .content 
 58 | {
 59 | 	border: 0 !important;
 60 | }
 61 | 
 62 | /* First line */
 63 | .syntaxhighlighter .line.alt1 .content
 64 | {
 65 | }
 66 | 
 67 | /* Second line */
 68 | .syntaxhighlighter .line.alt2 .content
 69 | {
 70 | 	background-color: #000000 !important;
 71 | }
 72 | 
 73 | .syntaxhighlighter .line .content .block
 74 | {
 75 | 	background: url(wrapping.png) 0 1.1em no-repeat !important;
 76 | }
 77 | 
 78 | /* Highlighed line number */
 79 | .syntaxhighlighter .line.highlighted .number
 80 | {
 81 | 	background-color: #3A3A00 !important;
 82 | 	color: #fff !important;
 83 | }
 84 | 
 85 | /* Highlighed line */
 86 | .syntaxhighlighter .line.highlighted.alt1 .content,
 87 | .syntaxhighlighter .line.highlighted.alt2 .content
 88 | {
 89 | 	background-color: #3A3A00 !important;
 90 | }
 91 | 
 92 | .syntaxhighlighter .ruler
 93 | {
 94 | 	color: silver !important;
 95 | 	border-left: 3px solid #3185B9 !important;
 96 | }
 97 | 
 98 | .syntaxhighlighter.nogutter .ruler
 99 | {
100 | 	border: 0 !important;
101 | }
102 | 
103 | .syntaxhighlighter .toolbar
104 | {
105 | 	background-color: #000000 !important;
106 | 	border: #000000 solid 1px !important;
107 | }
108 | 
109 | .syntaxhighlighter .toolbar a
110 | {
111 | 	color: #808080 !important;
112 | }
113 | 
114 | .syntaxhighlighter .toolbar a:hover
115 | {
116 | 	color: #96DAFF !important;
117 | }
118 | 
119 | /************************************
120 |  * Actual syntax highlighter colors.
121 |  ************************************/
122 | .syntaxhighlighter .plain,
123 | .syntaxhighlighter .plain a
124 | { 
125 | 	color: #FFFFFF !important;
126 | }
127 | 
128 | .syntaxhighlighter .comments,
129 | .syntaxhighlighter .comments a
130 | { 
131 | 	color: #696854 !important;
132 | }
133 | 
134 | .syntaxhighlighter .string,
135 | .syntaxhighlighter .string a
136 | {
137 | 	color: #E3E658 !important; 
138 | }
139 | 
140 | .syntaxhighlighter .keyword
141 | { 
142 | 	color: #D01D33 !important; 
143 | }
144 | 
145 | .syntaxhighlighter .preprocessor 
146 | { 
147 | 	color: #435A5F !important; 
148 | }
149 | 
150 | .syntaxhighlighter .variable 
151 | { 
152 | 	color: #898989 !important; 
153 | }
154 | 
155 | .syntaxhighlighter .value
156 | { 
157 | 	color: #090 !important; 
158 | }
159 | 
160 | .syntaxhighlighter .functions
161 | { 
162 | 	color: #AAAAAA !important;
163 | 	font-weight: bold !important;
164 | }
165 | 
166 | .syntaxhighlighter .constants
167 | { 
168 | 	color: #96DAFF !important; 
169 | }
170 | 
171 | .syntaxhighlighter .script
172 | { 
173 | 	background-color: #C3C3C3 !important;
174 | 	color: #000 !important;
175 | }
176 | 
177 | .syntaxhighlighter .color1,
178 | .syntaxhighlighter .color1 a
179 | { 
180 | 	color: #FFC074 !important; 
181 | }
182 | 
183 | .syntaxhighlighter .color2,
184 | .syntaxhighlighter .color2 a
185 | { 
186 | 	color: #4A8CDB !important; 
187 | }
188 | 
189 | .syntaxhighlighter .color3,
190 | .syntaxhighlighter .color3 a
191 | { 
192 | 	color: #96DAFF !important; 
193 | }
194 | 


--------------------------------------------------------------------------------
/PHPMailer_5.2.0/test_script/styles/shThemeMidnight.css:
--------------------------------------------------------------------------------
  1 | /**
  2 |  * SyntaxHighlighter
  3 |  * http://alexgorbatchev.com/
  4 |  *
  5 |  * SyntaxHighlighter is donationware. If you are using it, please donate.
  6 |  * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
  7 |  *
  8 |  * @version
  9 |  * 2.0.296 (March 01 2009)
 10 |  * 
 11 |  * @copyright
 12 |  * Copyright (C) 2004-2009 Alex Gorbatchev.
 13 |  *
 14 |  * @license
 15 |  * This file is part of SyntaxHighlighter.
 16 |  * 
 17 |  * SyntaxHighlighter is free software: you can redistribute it and/or modify
 18 |  * it under the terms of the GNU General Public License as published by
 19 |  * the Free Software Foundation, either version 3 of the License, or
 20 |  * (at your option) any later version.
 21 |  * 
 22 |  * SyntaxHighlighter is distributed in the hope that it will be useful,
 23 |  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 24 |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 25 |  * GNU General Public License for more details.
 26 |  * 
 27 |  * You should have received a copy of the GNU General Public License
 28 |  * along with SyntaxHighlighter.  If not, see .
 29 |  */
 30 | /**
 31 |  * Midnight SyntaxHighlighter theme based on theme by J.D. Myers
 32 |  * http://webdesign.lsnjd.com/
 33 |  */
 34 | 
 35 | /************************************
 36 |  * Interface elements.
 37 |  ************************************/
 38 | 
 39 | .syntaxhighlighter
 40 | {
 41 | 	background-color: #0F192A !important;
 42 | }
 43 | 
 44 | /* Gutter line numbers */
 45 | .syntaxhighlighter .line .number
 46 | {
 47 | 	color: #38566F !important;
 48 | }
 49 | 
 50 | /* Add border to the lines */
 51 | .syntaxhighlighter .line .content
 52 | {
 53 | 	border-left: 3px solid #435A5F !important;
 54 | 	color: #B9BDB6 !important;
 55 | }
 56 | 
 57 | .syntaxhighlighter.printing .line .content 
 58 | {
 59 | 	border: 0 !important;
 60 | }
 61 | 
 62 | /* First line */
 63 | .syntaxhighlighter .line.alt1 .content
 64 | {
 65 | 	background-color: #0F192A !important;
 66 | }
 67 | 
 68 | /* Second line */
 69 | .syntaxhighlighter .line.alt2 .content
 70 | {
 71 | 	background-color: #0F192A !important;
 72 | }
 73 | 
 74 | .syntaxhighlighter .line .content .block
 75 | {
 76 | 	background: url(wrapping.png) 0 1.1em no-repeat !important;
 77 | }
 78 | 
 79 | /* Highlighed line number */
 80 | .syntaxhighlighter .line.highlighted .number
 81 | {
 82 | 	background-color: #253E5A !important;
 83 | 	color: #fff !important;
 84 | }
 85 | 
 86 | /* Highlighed line */
 87 | .syntaxhighlighter .line.highlighted.alt1 .content,
 88 | .syntaxhighlighter .line.highlighted.alt2 .content
 89 | {
 90 | 	background-color: #253E5A !important;
 91 | }
 92 | 
 93 | .syntaxhighlighter .ruler
 94 | {
 95 | 	color: #38566F !important;
 96 | 	background-color: #0F192A !important;
 97 | 	border-left: 3px solid #435A5F !important;
 98 | }
 99 | 
100 | .syntaxhighlighter.nogutter .ruler
101 | {
102 | 	border: 0 !important;
103 | }
104 | 
105 | .syntaxhighlighter .toolbar
106 | {
107 | 	background-color: #0F192A !important;
108 | }
109 | 
110 | .syntaxhighlighter .toolbar a
111 | {
112 | 	color: #38566F !important;
113 | }
114 | 
115 | .syntaxhighlighter .toolbar a:hover
116 | {
117 | 	color: #8AA6C1 !important;
118 | }
119 | 
120 | /************************************
121 |  * Actual syntax highlighter colors.
122 |  ************************************/
123 | .syntaxhighlighter .plain,
124 | .syntaxhighlighter .plain a
125 | { 
126 | 	color: #D1EDFF !important;
127 | }
128 | 
129 | .syntaxhighlighter .comments,
130 | .syntaxhighlighter .comments a
131 | { 
132 | 	color: #428BDD !important;
133 | }
134 | 
135 | .syntaxhighlighter .string,
136 | .syntaxhighlighter .string a
137 | {
138 | 	color: #1DC116 !important; 
139 | }
140 | 
141 | .syntaxhighlighter .keyword
142 | { 
143 | 	color: #B43D3D !important; 
144 | }
145 | 
146 | .syntaxhighlighter .preprocessor 
147 | { 
148 | 	color: #8AA6C1 !important; 
149 | }
150 | 
151 | .syntaxhighlighter .variable 
152 | { 
153 | 	color: #FFAA3E !important; 
154 | }
155 | 
156 | .syntaxhighlighter .value
157 | { 
158 | 	color: #F7E741 !important; 
159 | }
160 | 
161 | .syntaxhighlighter .functions
162 | { 
163 | 	color: #FFAA3E !important; 
164 | }
165 | 
166 | .syntaxhighlighter .constants
167 | { 
168 | 	color: #E0E8FF !important; 
169 | }
170 | 
171 | .syntaxhighlighter .script
172 | { 
173 | 	background-color: #404040 !important;
174 | }
175 | 
176 | .syntaxhighlighter .color1,
177 | .syntaxhighlighter .color1 a
178 | { 
179 | 	color: #F8BB00 !important; 
180 | }
181 | 
182 | .syntaxhighlighter .color2,
183 | .syntaxhighlighter .color2 a
184 | { 
185 | 	color: #FFFFFF !important; 
186 | }
187 | 
188 | .syntaxhighlighter .color3,
189 | .syntaxhighlighter .color3 a
190 | { 
191 | 	color: #FFAA3E !important; 
192 | }
193 | 


--------------------------------------------------------------------------------
/PHPMailer_5.2.0/test_script/styles/shThemeRDark.css:
--------------------------------------------------------------------------------
  1 | /**
  2 |  * SyntaxHighlighter
  3 |  * http://alexgorbatchev.com/
  4 |  *
  5 |  * SyntaxHighlighter is donationware. If you are using it, please donate.
  6 |  * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
  7 |  *
  8 |  * @version
  9 |  * 2.0.296 (March 01 2009)
 10 |  * 
 11 |  * @copyright
 12 |  * Copyright (C) 2004-2009 Alex Gorbatchev.
 13 |  *
 14 |  * @license
 15 |  * This file is part of SyntaxHighlighter.
 16 |  * 
 17 |  * SyntaxHighlighter is free software: you can redistribute it and/or modify
 18 |  * it under the terms of the GNU General Public License as published by
 19 |  * the Free Software Foundation, either version 3 of the License, or
 20 |  * (at your option) any later version.
 21 |  * 
 22 |  * SyntaxHighlighter is distributed in the hope that it will be useful,
 23 |  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 24 |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 25 |  * GNU General Public License for more details.
 26 |  * 
 27 |  * You should have received a copy of the GNU General Public License
 28 |  * along with SyntaxHighlighter.  If not, see .
 29 |  */
 30 | /**
 31 |  * RDark SyntaxHighlighter theme based on theme by Radu Dineiu
 32 |  * http://www.vim.org/scripts/script.php?script_id=1732
 33 |  */
 34 | 
 35 | /************************************
 36 |  * Interface elements.
 37 |  ************************************/
 38 | 
 39 | .syntaxhighlighter
 40 | {
 41 | 	background-color: #1B2426 !important;
 42 | }
 43 | 
 44 | /* Gutter line numbers */
 45 | .syntaxhighlighter .line .number
 46 | {
 47 | 	color: #B9BDB6 !important;
 48 | }
 49 | 
 50 | /* Add border to the lines */
 51 | .syntaxhighlighter .line .content
 52 | {
 53 | 	border-left: 3px solid #435A5F !important;
 54 | 	color: #B9BDB6 !important;
 55 | }
 56 | 
 57 | .syntaxhighlighter.printing .line .content 
 58 | {
 59 | 	border: 0 !important;
 60 | }
 61 | 
 62 | /* First line */
 63 | .syntaxhighlighter .line.alt1 .content
 64 | {
 65 | 	background-color: #1B2426 !important;
 66 | }
 67 | 
 68 | /* Second line */
 69 | .syntaxhighlighter .line.alt2 .content
 70 | {
 71 | 	background-color: #1B2426 !important;
 72 | }
 73 | 
 74 | .syntaxhighlighter .line .content .block
 75 | {
 76 | 	background: url(wrapping.png) 0 1.1em no-repeat !important;
 77 | }
 78 | 
 79 | /* Highlighed line number */
 80 | .syntaxhighlighter .line.highlighted .number
 81 | {
 82 | 	background-color: #435A5F !important;
 83 | 	color: #fff !important;
 84 | }
 85 | 
 86 | /* Highlighed line */
 87 | .syntaxhighlighter .line.highlighted.alt1 .content,
 88 | .syntaxhighlighter .line.highlighted.alt2 .content
 89 | {
 90 | 	background-color: #435A5F !important;
 91 | }
 92 | 
 93 | .syntaxhighlighter .ruler
 94 | {
 95 | 	color: silver !important;
 96 | 	background-color: #1B2426 !important;
 97 | 	border-left: 3px solid #435A5F !important;
 98 | }
 99 | 
100 | .syntaxhighlighter.nogutter .ruler
101 | {
102 | 	border: 0 !important;
103 | }
104 | 
105 | .syntaxhighlighter .toolbar
106 | {
107 | 	background-color: #1B2426 !important;
108 | }
109 | 
110 | .syntaxhighlighter .toolbar a
111 | {
112 | 	color: #646763 !important;
113 | }
114 | 
115 | .syntaxhighlighter .toolbar a:hover
116 | {
117 | 	color: #E0E8FF !important;
118 | }
119 | 
120 | /************************************
121 |  * Actual syntax highlighter colors.
122 |  ************************************/
123 | .syntaxhighlighter .plain,
124 | .syntaxhighlighter .plain a
125 | { 
126 | 	color: #B9BDB6 !important;
127 | }
128 | 
129 | .syntaxhighlighter .comments,
130 | .syntaxhighlighter .comments a
131 | { 
132 | 	color: #878A85 !important;
133 | }
134 | 
135 | .syntaxhighlighter .string,
136 | .syntaxhighlighter .string a
137 | {
138 | 	color: #5CE638 !important; 
139 | }
140 | 
141 | .syntaxhighlighter .keyword
142 | { 
143 | 	color: #5BA1CF !important; 
144 | }
145 | 
146 | .syntaxhighlighter .preprocessor 
147 | { 
148 | 	color: #435A5F !important; 
149 | }
150 | 
151 | .syntaxhighlighter .variable 
152 | { 
153 | 	color: #FFAA3E !important; 
154 | }
155 | 
156 | .syntaxhighlighter .value
157 | { 
158 | 	color: #090 !important; 
159 | }
160 | 
161 | .syntaxhighlighter .functions
162 | { 
163 | 	color: #FFAA3E !important; 
164 | }
165 | 
166 | .syntaxhighlighter .constants
167 | { 
168 | 	color: #E0E8FF !important; 
169 | }
170 | 
171 | .syntaxhighlighter .script
172 | { 
173 | 	background-color: #435A5F !important;
174 | }
175 | 
176 | .syntaxhighlighter .color1,
177 | .syntaxhighlighter .color1 a
178 | { 
179 | 	color: #E0E8FF !important; 
180 | }
181 | 
182 | .syntaxhighlighter .color2,
183 | .syntaxhighlighter .color2 a
184 | { 
185 | 	color: #FFFFFF !important; 
186 | }
187 | 
188 | .syntaxhighlighter .color3,
189 | .syntaxhighlighter .color3 a
190 | { 
191 | 	color: #FFAA3E !important; 
192 | }
193 | 


--------------------------------------------------------------------------------
/PHPMailer_5.2.0/test_script/styles/wrapping.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPGangsta/FileWatcher/e925abc479c85e82312e40c454542f4af8a83adb/PHPMailer_5.2.0/test_script/styles/wrapping.png


--------------------------------------------------------------------------------
/PHPMailer_5.2.0/test_script/test.html:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | 
 4 |   
 5 |   SyntaxHighlighter Build Test Page
 6 |   
 7 |   
18 |   
19 |   
28 |   
29 |   
30 |   
34 | 
35 | 
36 | 
37 | 

SyntaxHihglighter Test

38 |

This is a test file to insure that everything is working well.

39 | 40 |
41 | function test() : String
42 | {
43 |   return 10;
44 | }
45 | 
46 | 47 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | FileWatcher PHP class 2 | ===================== 3 | 4 | * Copyright (c) 2011, [http://www.phpgangsta.de](http://www.phpgangsta.de) 5 | * Author: Michael Kliewe, [@PHPGangsta](http://twitter.com/PHPGangsta) 6 | * Licensed under the BSD License. 7 | 8 | Usage: 9 | ------ 10 | edit FileWatcher.config.php and set email address, password and all paths and filenames 11 | 12 | create your main script, see example.php. Should be more or less 4 lines like this: 13 | 14 | readConfig('FileWatcher.config.php') 20 | ->checkNow(); 21 | 22 | upload everything important to your website (you don't need README and ToDo). 23 | 24 | run this script on the server regularly (password and overallHash are optional): 25 | 26 | http://www.domain.de/example.php 27 | 28 | or from CLI: 29 | 30 | php example.php 31 | 32 | make sure 2 files have been created on the first run: FileWatcher.log and FileWatcher.MasterHashes.txt 33 | 34 | Security considerations: 35 | ------------------------ 36 | - If you want to make it a little bit more secure you can set a password and provide it via GET, POST or CLI parameter. POST is preferrred over GET, for example via curl or wget, then the password is not logged to Apache access.log 37 | - You can also provide the script with an overall hash that you provide via GET or POST like this: 38 | http://www.domain.de/example.php?password=YourPassword&overallhash=243a7ab8c30ebdf31728fd947a1bab0ad7ddfc65 39 | - If possible you should put all data outside your document root, otherwise the hacker could also change these files and disable your FileWatcher or manipulate the master hashes file. Obviously then you cannot use the obove http calls, you then have to work with local cronjobs on the machine. 40 | 41 | ToDo: 42 | ----- 43 | - add example calls with curl or wget when sending POST data to the script 44 | - provide more information about new/deleted/changed files: modified time, creation time, on a new file perhaps the first 10 lines? 45 | - add additional parameters to mail() call, for example sendmail sometimes needs -f 46 | - change alert methods to a plugin structure, so new alert methods can be added easily 47 | - make alert email a bit nicer, perhaps a nice html mail with a table and color codes, like a colored diff? 48 | - add logFilename and masterHashesFilename to exclude dir if includePaths contains . 49 | - also support checking filesize and last-modified-timestamp, that should be faster on large or many files 50 | - maybe skipping of excluded files (excludeFolderList, excludeExtensionList) is easier with FilterIterator 51 | 52 | Notes: 53 | ------ 54 | If you like this script or have some features to add, contact me, fork this project, send pull requests, you know how it works. -------------------------------------------------------------------------------- /example.php: -------------------------------------------------------------------------------- 1 | readConfig('FileWatcher.config.php') 7 | ->checkNow(); --------------------------------------------------------------------------------