123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- /* For licensing terms, see /license.txt */
- /**
- * Script that displays a blank page (with later a message saying why)
- * @package chamilo.learnpath
- * @author Yannick Warnier <ywarnier@beeznest.org>
- */
- /**
- * Code
- */
- $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';
- Display::display_reduced_header();
- if (isset($_GET['error'])) {
- switch ($_GET['error']){
- case 'document_deleted':
- echo '<br /><br />';
- Display::display_error_message(get_lang('DocumentHasBeenDeleted'));
- break;
- case 'prerequisites':
- echo '<br /><br />';
- Display::display_warning_message(get_lang('LearnpathPrereqNotCompleted'));
- break;
- case 'document_not_found':
- echo '<br /><br />';
- Display::display_warning_message(get_lang('FileNotFound'));
- break;
- case 'reached_one_attempt':
- //Seems not be use
- echo '<br /><br />';
- Display::display_warning_message(get_lang('ReachedOneAttempt'));
- break;
- case 'max_attempt_reached':
- echo '<br /><br />';
- Display::display_warning_message(get_lang('ReachedMaxAttempt'));
- break;
- default:
- break;
- }
- } elseif (isset($_GET['msg']) && $_GET['msg'] == 'exerciseFinished') {
- echo '<br /><br />';
- Display::display_normal_message(get_lang('ExerciseFinished'));
- }
- Display::display_footer();
|