Location: PHPKode > scripts > RC4PHP class > rc4php-class/rc4php_autoload.php
<?PHP
/**
*
* RC4PHP :  Raul's Classes For PHP <http://rc4php.sourceforge.net/>
* Copyright (c) 2006, Raul IONESCU
*                     Bucharest, ROMANIA
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @package      RC4PHP
* @copyright 	Copyright (c) 2006, Raul IONESCU.
* @author 	Raul IONESCU <hide@address.com>
* @license      http://www.opensource.org/licenses/mit-license.php The MIT License
* @version 	0.6.3 (development)
* @category 	Autoloader
* @access 	public
*
* PHP versions 5.1 or greater
*/
//if(realpath(basename($_SERVER['PHP_SELF']))==__FILE__) exit('Access denied!');
//////////////////////////////////////////////////////////////////
ini_set('track_errors',1);
//////////////////////////////////////////////////////////////////
require_once('rc4php_functions.php');
//////////////////////////////////////////////////////////////////
if (function_exists('__autoload')==false) 
{
function __autoload($class_name) 
{ 
if(@preg_match ('/^RC4PHP_DB_(.*?)(_.*$|$)/i',$class_name, $matches)) require_once('rc4php_db_'.strtolower($matches[1]).'.php');
else require_once(strtolower($class_name).'.php'); 
}
}
//////////////////////////////////////////////////////////////////
?>
Return current item: RC4PHP class