Login   Register  
PHP Classes
elePHPant
Icontem

File: class/core_i8e_engine.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of anoop singh  >  CDN CMS  >  class/core_i8e_engine.php  >  Download  
File: class/core_i8e_engine.php
Role: Auxiliary script
Content type: text/plain
Description: autoload
Class: CDN CMS
Manage content stored in a MySQL database
Author: By
Last change:
Date: 5 years ago
Size: 831 bytes
 

Contents

Class file image Download
<?php 

/*
 * @author anoop
 * @copyright 2:28:2008 / 22:1
 * @email anoop@cdnsol.com
 * @company CDN Software Solutions
 */

ini_Set('unserialize_Callback_Func''__Autoload' );
/**
 * __autoload()
 *
 * @param mixed $extensionName
 * @return
 */
function __autoload($extensionName)
{
    
//echo $extensionName."<br>";
    
if (isset($extensionName))
    {
        if(
file_exists($extensionName.EXT))
        {
            include_once(
$extensionName.EXT);
        }
        else if(
file_exists(INCLUDE_DIR.$extensionName.EXT))
        {
            include_once(
INCLUDE_DIR.$extensionName.EXT);
        }
        else if(
file_exists(THEME_DIR.$extensionName.EXT))
        {
            include_once(
THEME_DIR.$extensionName.EXT);
        }
        else if(
file_exists(THEME_DIR."/class/".$extensionName.EXT))
        {
            include_once(
THEME_DIR."/class/".$extensionName.EXT);
        }
    }
}

?>