Unverified Commit c244d8c3 authored by Gavin Brown's avatar Gavin Brown
Browse files

entry point with autoload function

parent 628bfee1
class Net_EPP {
static function autoload($class) {
$prefix = __CLASS__.'_';
if ($prefix == substr($class, 0, strlen($prefix))) {
$file = dirname(__FILE__).'/'.str_replace('_', '/', $class).'.php';
return (file_exists($file) && @include_once($file));
} else {
return false;
spl_autoload_register(array('Net_EPP', 'autoload'));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment