<?php // File: $Id: modules.php,v 1.14 2002/02/18 09:25:12 voll Exp $ $Name:  $
// ----------------------------------------------------------------------
// Original Author of file: Francisco Burzi
// Purpose of file: Load the module in a safe and friendly enviornment
// ----------------------------------------------------------------------
switch ($op) {
    case 'modload':
        define("LOADED_AS_MODULE","1");
        include 'includes/pnAPI.php';
        pnInit();
        include 'includes/legacy.php';
        pnThemeLoad();
        include 'modules/' . pnVarPrepForOS($name) . '/' . pnVarPrepForOS($file) . '.php';
        break;
    default:
        die ("Sorry, you can't access this file directly...");
        break;
}
?>