AlkantarClanX12

Your IP : 18.188.76.209


Current Path : /opt/cloudlinux/alt-php55/root/usr/share/doc/pear/ConsoleTools/docs/
Upload File :
Current File : //opt/cloudlinux/alt-php55/root/usr/share/doc/pear/ConsoleTools/docs/tutorial_autoload.php

<?php
$dir = dirname( __FILE__ );
$dirParts = explode( DIRECTORY_SEPARATOR, $dir );
switch ( $dirParts[count( $dirParts ) - 3] )
{
    case 'doc': require_once 'ezc/Base/base.php'; break; // pear
    case 'trunk': require_once "$dir/../../Base/src/base.php"; break; // svn
    default: require_once "$dir/../../Base/src/base.php"; break; // bundle
}

/**
 * Autoload ezc classes 
 * 
 * @param string $className 
 */
function __autoload( $className )
{
    ezcBase::autoload( $className );
}
?>