PHP 8.1.33
Preview: PHPMailerAutoload.php Size: 1.61 KB
/home/jambtst2015/public_html/giraffeng.com/admin/mail_function/PHPMailerAutoload.php

<?php
/**
 * PHPMailer SPL autoloader.
 * PHP Version 5.0.0
 * @package PHPMailer
 * @link https://github.com/PHPMailer/PHPMailer/
 * @author Marcus Bointon (coolbru) <phpmailer@synchromedia.co.uk>
 * @author Jim Jagielski (jimjag) <jimjag@gmail.com>
 * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
 * @author Brent R. Matzelle (original founder)
 * @copyright 2013 Marcus Bointon
 * @copyright 2010 - 2012 Jim Jagielski
 * @copyright 2004 - 2009 Andy Prevost
 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
 * @note This program is distributed in the hope that it will be useful - WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.
 */

/**
 * PHPMailer SPL autoloader.
 * @param string $classname The name of the class to load
 */
function PHPMailerAutoload($classname)
{
    //Can't use __DIR__ as it's only in PHP 5.3+
    $filename = dirname(__FILE__).DIRECTORY_SEPARATOR.'class.'.strtolower($classname).'.php';
    if (is_readable($filename)) {
        require $filename;
    }
}

if (version_compare(PHP_VERSION, '5.1.2', '>=')) {
    //SPL autoloading was introduced in PHP 5.1.2
    if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
        spl_autoload_register('PHPMailerAutoload', true, true);
    } else {
        spl_autoload_register('PHPMailerAutoload');
    }
} else {
    /**
     * Fall back to traditional autoload for old PHP versions
     * @param string $classname The name of the class to load
     */
    function __autoload($classname)
    {
        PHPMailerAutoload($classname);
    }
}

Directory Contents

Dirs: 5 × Files: 13

Name Size Perms Modified Actions
docs DIR
- drwxr-xr-x 2024-11-22 17:53:01
Edit Download
examples DIR
- drwxr-xr-x 2024-11-22 17:53:01
Edit Download
extras DIR
- drwxr-xr-x 2025-10-17 01:28:29
Edit Download
language DIR
- drwxr-xr-x 2024-11-22 17:53:01
Edit Download
test DIR
- drwxr-xr-x 2025-10-10 04:45:39
Edit Download
66 B lrw-r--r-- 2024-11-22 17:53:01
Edit Download
2.91 KB lrw-r--r-- 2024-11-22 17:53:01
Edit Download
889 B lrw-r--r-- 2024-11-22 17:53:01
Edit Download
21.66 KB lrw-r--r-- 2024-11-22 17:53:01
Edit Download
111.59 KB lrw-r--r-- 2024-11-22 17:53:01
Edit Download
10.88 KB lrw-r--r-- 2024-11-22 17:53:01
Edit Download
28.31 KB lrw-r--r-- 2024-11-22 17:53:01
Edit Download
845 B lrw-r--r-- 2024-11-22 17:53:01
Edit Download
3.62 KB lrw-r--r-- 2025-11-03 21:57:03
Edit Download
25.80 KB lrw-r--r-- 2024-11-22 17:53:01
Edit Download
1.61 KB lrw-r--r-- 2024-11-22 17:53:01
Edit Download
8.64 KB lrw-r--r-- 2024-11-22 17:53:01
Edit Download
1.07 KB lrw-r--r-- 2024-11-22 17:53:01
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).