Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Commit c5d3879

Browse files
committed
updated PHPMailer
1 parent c7401cb commit c5d3879

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+7336
-4532
lines changed

CHANGELOG-1.3.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
CHANGELOG - ZIKULA 1.3.12
2+
-------------------------
3+
4+
- Upgraded to PHPMailer 5.2.21
5+
16
CHANGELOG - ZIKULA 1.3.11
27
-------------------------
38

src/system/Mailer/lib/Mailer/Api/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function sendmessage($args)
6868
}
6969

7070
// include php mailer class file
71-
require_once "system/Mailer/lib/vendor/class.phpmailer.php";
71+
require_once 'system/Mailer/lib/vendor/PHPMailerAutoload.php';
7272

7373
// create new instance of mailer class
7474
$mail = new PHPMailer();
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php
2+
/**
3+
* PHPMailer SPL autoloader.
4+
* PHP Version 5
5+
* @package PHPMailer
6+
* @link https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
7+
* @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
8+
* @author Jim Jagielski (jimjag) <jimjag@gmail.com>
9+
* @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
10+
* @author Brent R. Matzelle (original founder)
11+
* @copyright 2012 - 2014 Marcus Bointon
12+
* @copyright 2010 - 2012 Jim Jagielski
13+
* @copyright 2004 - 2009 Andy Prevost
14+
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
15+
* @note This program is distributed in the hope that it will be useful - WITHOUT
16+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17+
* FITNESS FOR A PARTICULAR PURPOSE.
18+
*/
19+
20+
/**
21+
* PHPMailer SPL autoloader.
22+
* @param string $classname The name of the class to load
23+
*/
24+
function PHPMailerAutoload($classname)
25+
{
26+
//Can't use __DIR__ as it's only in PHP 5.3+
27+
$filename = dirname(__FILE__).DIRECTORY_SEPARATOR.'class.'.strtolower($classname).'.php';
28+
if (is_readable($filename)) {
29+
require $filename;
30+
}
31+
}
32+
33+
if (version_compare(PHP_VERSION, '5.1.2', '>=')) {
34+
//SPL autoloading was introduced in PHP 5.1.2
35+
if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
36+
spl_autoload_register('PHPMailerAutoload', true, true);
37+
} else {
38+
spl_autoload_register('PHPMailerAutoload');
39+
}
40+
} else {
41+
/**
42+
* Fall back to traditional autoload for old PHP versions
43+
* @param string $classname The name of the class to load
44+
*/
45+
function __autoload($classname)
46+
{
47+
PHPMailerAutoload($classname);
48+
}
49+
}

src/system/Mailer/lib/vendor/README

Lines changed: 0 additions & 218 deletions
This file was deleted.

0 commit comments

Comments
 (0)