blank.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Script that displays a blank page (with later a message saying why)
  5. * @package chamilo.learnpath
  6. * @author Yannick Warnier <ywarnier@beeznest.org>
  7. */
  8. // Flag to allow for anonymous user - needs to be set before global.inc.php.
  9. $use_anonymous = true;
  10. require_once '../inc/global.inc.php';
  11. Display::display_reduced_header();
  12. if (isset($_GET['error'])) {
  13. switch ($_GET['error']){
  14. case 'document_deleted':
  15. echo '<br /><br />';
  16. Display::display_error_message(get_lang('DocumentHasBeenDeleted'));
  17. break;
  18. case 'prerequisites':
  19. echo '<br /><br />';
  20. Display::display_warning_message(get_lang('LearnpathPrereqNotCompleted'));
  21. break;
  22. case 'document_not_found':
  23. echo '<br /><br />';
  24. Display::display_warning_message(get_lang('FileNotFound'));
  25. break;
  26. case 'reached_one_attempt':
  27. echo '<br /><br />';
  28. Display::display_warning_message(get_lang('ReachedOneAttempt'));
  29. break;
  30. default:
  31. break;
  32. }
  33. } elseif (isset($_GET['msg']) && $_GET['msg'] == 'exerciseFinished') {
  34. echo '<br /><br />';
  35. Display::display_normal_message(get_lang('ExerciseFinished'));
  36. }
  37. ?>
  38. </body>
  39. </html>