0) {
echo str_repeat(' ',0).'Entered exercise_result.php'."
\n";var_dump($_POST);
}
// general parameters passed via POST/GET
if ( empty ( $origin ) )
{
$origin = $_REQUEST['origin'];
}
if ( empty ( $learnpath_id ) )
{
$learnpath_id = $_REQUEST['learnpath_id'];
}
if ( empty ( $learnpath_item_id ) )
{
$learnpath_item_id = $_REQUEST['learnpath_item_id'];
}
if ( empty ( $formSent ) )
{
$formSent= $_REQUEST['formSent'];
}
if ( empty ( $exerciseResult ) )
{
$exerciseResult = $_SESSION['exerciseResult'];
}
if ( empty ( $questionId ) )
{
$questionId = $_REQUEST['questionId'];
}
if ( empty ( $choice ) ) {
$choice = $_REQUEST['choice'];
}
if ( empty ( $questionNum ) )
{
$questionNum = $_REQUEST['questionNum'];
}
if ( empty ( $nbrQuestions ) )
{
$nbrQuestions = $_REQUEST['nbrQuestions'];
}
if ( empty ( $questionList ) )
{
$questionList = $_SESSION['questionList'];
}
if ( empty ( $objExercise ) )
{
$objExercise = $_SESSION['objExercise'];
}
$exercise_id = intval($_GET['exercise_id']);
$is_allowedToEdit=$is_courseAdmin;
if (isset($_SESSION['gradebook'])){
$gradebook= $_SESSION['gradebook'];
}
if (!empty($gradebook) && $gradebook=='view') {
$interbreadcrumb[]= array (
'url' => '../gradebook/'.Security::remove_XSS($_SESSION['gradebook_dest']),
'name' => get_lang('ToolGradebook')
);
}
$nameTools=get_lang('Exercises');
$interbreadcrumb[]=array("url" => "exercise.php","name" => get_lang('Exercises'));
Display::display_header($nameTools,"Exercises");
if (isset($_POST['ok'])) {
$message = get_lang('TestLimitsAdded');
Display::display_normal_message($message);
}
?>