Esempio n. 1
0
            $current_function = $_GET['fct'];
        }
    }
}
$environment->setCurrentContextID($current_context);
$environment->setCurrentModule($current_module);
$environment->setCurrentFunction($current_function);
unset($current_context);
#unset($current_module);
#unset($current_function);
// HTML text area corrections
$_POST = $environment->getTextConverter()->correctPostValuesForTextEditor($_POST);
// set output mode: default is html
if ($environment->getCurrentFunction() == 'index' and $environment->getCurrentModule() == type2Module(CS_MATERIAL_TYPE) or $environment->getCurrentModule() == 'ajax' or $environment->getCurrentModule() == 'scorm') {
    if (!empty($_GET['output'])) {
        $environment->setOutputMode($_GET['output']);
    } elseif (!empty($_POST['output'])) {
        $environment->setOutputMode($_POST['output']);
    }
}
if ($environment->inPortal() or $environment->inServer()) {
    $class_factory->setDesignTo6();
} else {
    $class_factory->setDesignTo7();
}
$server_item = $environment->getServerItem();
if ($server_item->showOutOfService()) {
    $current_context_id_save = $environment->getCurrentContextID();
    $current_module_save = $current_module;
    $current_function_save = $current_function;
    $current_module = 'home';