Ejemplo n.º 1
0
        $masks[] = ADMIN_PLUGIN | FEATURE_PLUGIN;
    }
    if (DEBUG_PLUGINS) {
        if (OFFSET_PATH) {
            debugLog('Loading the "class" "feature" and "admin" plugins.');
        } else {
            debugLog('Loading the "class" plugins.');
        }
    }
    foreach ($masks as $mask) {
        foreach (getEnabledPlugins() as $extension => $plugin) {
            $priority = $plugin['priority'];
            if ($priority & $mask) {
                if (DEBUG_PLUGINS) {
                    list($usec, $sec) = explode(" ", microtime());
                    $start = (double) $usec + (double) $sec;
                }
                require_once $plugin['path'];
                $_zp_loaded_plugins[$extension] = $extension;
                if (DEBUG_PLUGINS) {
                    zpFunctions::pluginDebug($extension, $priority, $start);
                }
            }
        }
        require_once dirname(__FILE__) . '/auth_zp.php';
        // loaded after CLASS_PLUGIN and before ADMIN_PLUGIN
    }
} else {
    require_once dirname(__FILE__) . '/auth_zp.php';
    // setup needs this!
}