Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeI..

Decoded Output download

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 
/** 
 * CodeIgniter 
 * 
 * An open source application development framework for PHP 5.1.6 or newer 
 * 
 * @package		CodeIgniter 
 * @author		EllisLab Dev Team 
 * @copyright	Copyright (c) 2006 - 2011, EllisLab, Inc. 
 * @license		http: 
 * @link		http: 
 * @since		Version 1.0 
 * @filesource 
 */ 
 
 
 
/** 
 * CodeIgniter Driver Library Class 
 * 
 * This class enables you to create "Driver" libraries that add runtime ability 
 * to extend the capabilities of a class via additional driver objects 
 * 
 * @package		CodeIgniter 
 * @subpackage	Libraries 
 * @category	Libraries 
 * @author		EllisLab Dev Team 
 * @link 
 */ 
class CI_Driver_Library { 
 
	protected $PHPprotectV1056	= array(); 
	protected static $PHPprotectV1057; 
 
	 
	 
	function __get($PHPprotectV1058) 
	{ 
		if ( ! isset($this->lib_name)) 
		{ 
			$this->lib_name = get_class($this); 
		} 
 
		 
		$PHPprotectV1059 = $this->lib_name.'_'.$PHPprotectV1058; 
	 
		 
		$PHPprotectV1057 = ucfirst(strtolower(str_replace('CI_', '', $this->lib_name))); 
		$PHPprotectV1060 = strtolower(str_replace('CI_', '', $PHPprotectV1059)); 
		 
		if (in_array($PHPprotectV1060, array_map('strtolower', $this->valid_drivers))) 
		{ 
			 
			if ( ! class_exists($PHPprotectV1059)) 
			{ 
				 
				foreach (get_instance()->load->get_package_paths(TRUE) as $PHPprotectV500) 
				{ 
					 
					foreach (array(ucfirst($PHPprotectV1060), $PHPprotectV1060) as $PHPprotectV492) 
					{ 
						$PHPprotectV144 = $PHPprotectV500.'libraries/'.$PHPprotectV1057.'/drivers/'.$PHPprotectV492.'.php'; 
 
						if (file_exists($PHPprotectV144)) 
						{ 
							include_once $PHPprotectV144; 
							break; 
						} 
					} 
				} 
 
				 
				if ( ! class_exists($PHPprotectV1059)) 
				{ 
					log_message('error', "Unable to load the requested driver: ".$PHPprotectV1059); 
					show_error("Unable to load the requested driver: ".$PHPprotectV1059); 
				} 
			} 
 
			$PHPprotectV248 = new $PHPprotectV1059; 
			$PHPprotectV248->decorate($this); 
			$this->$PHPprotectV1058 = $PHPprotectV248; 
			return $this->$PHPprotectV1058; 
		} 
 
		 
		log_message('error', "Invalid driver requested: ".$PHPprotectV1059); 
		show_error("Invalid driver requested: ".$PHPprotectV1059); 
	} 
 
	 
 
} 
 
 
 
/** 
 * CodeIgniter Driver Class 
 * 
 * This class enables you to create drivers for a Library based on the Driver Library. 
 * It handles the drivers' access to the parent library 
 * 
 * @package		CodeIgniter 
 * @subpackage	Libraries 
 * @category	Libraries 
 * @author		EllisLab Dev Team 
 * @link 
 */ 
class CI_Driver { 
	protected $PHPprotectV1061; 
 
	private $PHPprotectV1062 = array(); 
	private $PHPprotectV233 = array(); 
 
	private static $PHPprotectV1063 = array(); 
 
	/** 
	 * Decorate 
	 * 
	 * Decorates the child with the parent driver lib's methods and properties 
	 * 
	 * @param	object 
	 * @return	void 
	 */ 
	public function decorate($PHPprotectV1061) 
	{ 
		$this->parent = $PHPprotectV1061; 
 
		 
		 
 
		$PHPprotectV826 = get_class($PHPprotectV1061); 
 
		if ( ! isset(self::$PHPprotectV1063[$PHPprotectV826])) 
		{ 
			$PHPprotectV933 = new ReflectionObject($PHPprotectV1061); 
 
			foreach ($PHPprotectV933->getMethods() as $PHPprotectV493) 
			{ 
				if ($PHPprotectV493->isPublic()) 
				{ 
					$this->methods[] = $PHPprotectV493->getName(); 
				} 
			} 
 
			foreach ($PHPprotectV933->getProperties() as $PHPprotectV1064) 
			{ 
				if ($PHPprotectV1064->isPublic()) 
				{ 
					$this->properties[] = $PHPprotectV1064->getName(); 
				} 
			} 
 
			self::$PHPprotectV1063[$PHPprotectV826] = array($this->methods, $this->properties); 
		} 
		else 
		{ 
			list($this->methods, $this->properties) = self::$PHPprotectV1063[$PHPprotectV826]; 
		} 
	} 
 
	 
 
	/** 
	 * __call magic method 
	 * 
	 * Handles access to the parent driver library's methods 
	 * 
	 * @access	public 
	 * @param	string 
	 * @param	array 
	 * @return	mixed 
	 */ 
	public function __call($PHPprotectV493, $PHPprotectV672 = array()) 
	{ 
		if (in_array($PHPprotectV493, $this->methods)) 
		{ 
			return call_user_func_array(array($this->parent, $PHPprotectV493), $PHPprotectV672); 
		} 
 
		$PHPprotectV805 = debug_backtrace(); 
		_exception_handler(E_ERROR, "No such method '{$PHPprotectV493}'", $PHPprotectV805[1]['file'], $PHPprotectV805[1]['line']); 
		exit; 
	} 
 
	 
 
	/** 
	 * __get magic method 
	 * 
	 * Handles reading of the parent driver library's properties 
	 * 
	 * @param	string 
	 * @return	mixed 
	 */ 
	public function __get($PHPprotectV228) 
	{ 
		if (in_array($PHPprotectV228, $this->properties)) 
		{ 
			return $this->parent->$PHPprotectV228; 
		} 
	} 
 
	 
 
	/** 
	 * __set magic method 
	 * 
	 * Handles writing to the parent driver library's properties 
	 * 
	 * @param	string 
	 * @param	array 
	 * @return	mixed 
	 */ 
	public function __set($PHPprotectV228, $PHPprotectV252) 
	{ 
		if (in_array($PHPprotectV228, $this->properties)) 
		{ 
			$this->parent->$PHPprotectV228 = $PHPprotectV252; 
		} 
	} 
 
	 
 
} 
 
 
/* End of file Driver.php */ 
/* Location: ./system/libraries/Driver.php */ 
 ?>

Did this file decode correctly?

Original Code

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * CodeIgniter
 *
 * An open source application development framework for PHP 5.1.6 or newer
 *
 * @package		CodeIgniter
 * @author		EllisLab Dev Team
 * @copyright	Copyright (c) 2006 - 2011, EllisLab, Inc.
 * @license		http:
 * @link		http:
 * @since		Version 1.0
 * @filesource
 */



/**
 * CodeIgniter Driver Library Class
 *
 * This class enables you to create "Driver" libraries that add runtime ability
 * to extend the capabilities of a class via additional driver objects
 *
 * @package		CodeIgniter
 * @subpackage	Libraries
 * @category	Libraries
 * @author		EllisLab Dev Team
 * @link
 */
class CI_Driver_Library {

	protected $PHPprotectV1056	= array();
	protected static $PHPprotectV1057;

	
	
	function __get($PHPprotectV1058)
	{
		if ( ! isset($this->lib_name))
		{
			$this->lib_name = get_class($this);
		}

		
		$PHPprotectV1059 = $this->lib_name.'_'.$PHPprotectV1058;
	
		
		$PHPprotectV1057 = ucfirst(strtolower(str_replace('CI_', '', $this->lib_name)));
		$PHPprotectV1060 = strtolower(str_replace('CI_', '', $PHPprotectV1059));
		
		if (in_array($PHPprotectV1060, array_map('strtolower', $this->valid_drivers)))
		{
			
			if ( ! class_exists($PHPprotectV1059))
			{
				
				foreach (get_instance()->load->get_package_paths(TRUE) as $PHPprotectV500)
				{
					
					foreach (array(ucfirst($PHPprotectV1060), $PHPprotectV1060) as $PHPprotectV492)
					{
						$PHPprotectV144 = $PHPprotectV500.'libraries/'.$PHPprotectV1057.'/drivers/'.$PHPprotectV492.'.php';

						if (file_exists($PHPprotectV144))
						{
							include_once $PHPprotectV144;
							break;
						}
					}
				}

				
				if ( ! class_exists($PHPprotectV1059))
				{
					log_message('error', "Unable to load the requested driver: ".$PHPprotectV1059);
					show_error("Unable to load the requested driver: ".$PHPprotectV1059);
				}
			}

			$PHPprotectV248 = new $PHPprotectV1059;
			$PHPprotectV248->decorate($this);
			$this->$PHPprotectV1058 = $PHPprotectV248;
			return $this->$PHPprotectV1058;
		}

		
		log_message('error', "Invalid driver requested: ".$PHPprotectV1059);
		show_error("Invalid driver requested: ".$PHPprotectV1059);
	}

	

}



/**
 * CodeIgniter Driver Class
 *
 * This class enables you to create drivers for a Library based on the Driver Library.
 * It handles the drivers' access to the parent library
 *
 * @package		CodeIgniter
 * @subpackage	Libraries
 * @category	Libraries
 * @author		EllisLab Dev Team
 * @link
 */
class CI_Driver {
	protected $PHPprotectV1061;

	private $PHPprotectV1062 = array();
	private $PHPprotectV233 = array();

	private static $PHPprotectV1063 = array();

	/**
	 * Decorate
	 *
	 * Decorates the child with the parent driver lib's methods and properties
	 *
	 * @param	object
	 * @return	void
	 */
	public function decorate($PHPprotectV1061)
	{
		$this->parent = $PHPprotectV1061;

		
		

		$PHPprotectV826 = get_class($PHPprotectV1061);

		if ( ! isset(self::$PHPprotectV1063[$PHPprotectV826]))
		{
			$PHPprotectV933 = new ReflectionObject($PHPprotectV1061);

			foreach ($PHPprotectV933->getMethods() as $PHPprotectV493)
			{
				if ($PHPprotectV493->isPublic())
				{
					$this->methods[] = $PHPprotectV493->getName();
				}
			}

			foreach ($PHPprotectV933->getProperties() as $PHPprotectV1064)
			{
				if ($PHPprotectV1064->isPublic())
				{
					$this->properties[] = $PHPprotectV1064->getName();
				}
			}

			self::$PHPprotectV1063[$PHPprotectV826] = array($this->methods, $this->properties);
		}
		else
		{
			list($this->methods, $this->properties) = self::$PHPprotectV1063[$PHPprotectV826];
		}
	}

	

	/**
	 * __call magic method
	 *
	 * Handles access to the parent driver library's methods
	 *
	 * @access	public
	 * @param	string
	 * @param	array
	 * @return	mixed
	 */
	public function __call($PHPprotectV493, $PHPprotectV672 = array())
	{
		if (in_array($PHPprotectV493, $this->methods))
		{
			return call_user_func_array(array($this->parent, $PHPprotectV493), $PHPprotectV672);
		}

		$PHPprotectV805 = debug_backtrace();
		_exception_handler(E_ERROR, "No such method '{$PHPprotectV493}'", $PHPprotectV805[1]['file'], $PHPprotectV805[1]['line']);
		exit;
	}

	

	/**
	 * __get magic method
	 *
	 * Handles reading of the parent driver library's properties
	 *
	 * @param	string
	 * @return	mixed
	 */
	public function __get($PHPprotectV228)
	{
		if (in_array($PHPprotectV228, $this->properties))
		{
			return $this->parent->$PHPprotectV228;
		}
	}

	

	/**
	 * __set magic method
	 *
	 * Handles writing to the parent driver library's properties
	 *
	 * @param	string
	 * @param	array
	 * @return	mixed
	 */
	public function __set($PHPprotectV228, $PHPprotectV252)
	{
		if (in_array($PHPprotectV228, $this->properties))
		{
			$this->parent->$PHPprotectV228 = $PHPprotectV252;
		}
	}

	

}


/* End of file Driver.php */
/* Location: ./system/libraries/Driver.php */

Function Calls

defined 1

Variables

None

Stats

MD5 ab85c39f868d50322b75d0f3457bfcb6
Eval Count 0
Decode Time 113 ms