예제 #1
0
function core_flavor2header($flavor = False)
{
    if (!$GLOBALS["headerClass"]) {
        $hdr = core_getFlavorH($flavor, 'h');
        if (core_locateClas($hdr)) {
            $GLOBALS["headerClass"] = new $hdr();
        } else {
            $GLOBALS["headerClass"] = new header();
        }
    }
    return $GLOBALS["headerClass"];
}
예제 #2
0
 function loadExtra($classFile)
 {
     if ($file = core_locateClas($classFile)) {
         require_once $file;
     }
 }