*/ $language_file = array('learnpath', 'document','exercice'); // Flag to allow for anonymous user - needs to be set before global.inc.php. $use_anonymous = true; require_once '../inc/global.inc.php'; require_once '../inc/reduced_header.inc.php'; echo ''; if (isset($_GET['error'])) { switch($_GET['error']){ case 'document_deleted': echo '

'; Display::display_error_message(get_lang('DocumentHasBeenDeleted')); break; case 'prerequisites': echo '

'; Display::display_normal_message(get_lang('_prereq_not_complete')); break; case 'document_not_found': echo '

'; Display::display_normal_message(get_lang('FileNotFound')); break; case 'reached_one_attempt': echo '

'; Display::display_normal_message(get_lang('ReachedOneAttempt')); break; default: break; } } elseif (isset($_GET['msg']) && $_GET['msg'] == 'exerciseFinished') { echo '

'; Display::display_normal_message(get_lang('ExerciseFinished')); } ?>