Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 540086ec01
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (25 sloc) 0.81 kB
<?php
if (!defined("BX_POPOON_DIR")) {
define("BX_POPOON_DIR",dirname(__FILE__));
}
function __autoload($class) {
switch (substr($class,0,3)) {
case "pop":
if ($class == 'popoon') {
$incFile = BX_POPOON_DIR.'/popoon.php';
} else {
$incFile = BX_POPOON_DIR.str_replace("_","/",substr($class,6)).'.php';
}
break;
default:
if (substr($class, -9) == "Exception") {
$incFile = BX_POPOON_DIR.'exceptions/'.substr(substr($class,6),0,-9).'.php';
} else {
$incFile = str_replace("_",DIRECTORY_SEPARATOR,$class).".php";
}
}
if (! @include_once($incFile)) {
//print("couldn't load $class from $incFile\n");
}
}
?>
Jump to Line
Something went wrong with that request. Please try again.