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"]; }
function loadExtra($classFile) { if ($file = core_locateClas($classFile)) { require_once $file; } }