HEX
Server: Apache
System: Linux dev.epsylon.net 3.10.0-1160.144.1.el7.tuxcare.els2.x86_64 #1 SMP Sun Feb 15 11:22:42 UTC 2026 x86_64
User: graficav (1037)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/graficav/holatimbres.cl/tools/swift/Swift/ClassLoader.php
<?php

/**
 * Swift Mailer Class Loader for includes
 * Please read the LICENSE file
 * @author Chris Corbyn <chris@w3style.co.uk>
 * @package Swift
 * @license GNU Lesser General Public License
 */

if (!defined("SWIFT_ABS_PATH")) define("SWIFT_ABS_PATH", dirname(__FILE__) . "/..");

/**
 * Locates and includes class files
 * @package Swift
 * @author Chris Corbyn <chris@w3style.co.uk>
 */
class Swift_ClassLoader
{
  /**
   * A list of files already located
   * @var array
   */
  protected static $located = array();
  
  /**
   * Load a new class into memory
   * @param string The name of the class, case SenSItivE
   */
  public static function load($name)
  {
    if (in_array($name, self::$located) || class_exists($name, false) || interface_exists($name, false))
      return;
    
    require_once SWIFT_ABS_PATH . "/" . str_replace("_", "/", $name) . ".php";
    self::$located[] = $name;
  }
}