Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/main/lp/blank.php

61 lines
1.9 KiB

<?php
/* For licensing terms, see /license.txt */
use ChamiloSession as Session;
/**
* Script that displays a blank page (with later a message saying why)
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
// Flag to allow for anonymous user - needs to be set before global.inc.php.
$use_anonymous = true;
require_once '../inc/global.inc.php';
$htmlHeadXtra[] = "
<style>
body { background: none;}
</style>
";
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':
echo '<br /><br />';
Display::display_warning_message(get_lang('ReachedOneAttempt'));
break;
case 'x_frames_options':
$src = Session::read('x_frame_source');
if (!empty($src)) {
$icon = '<em class="icon-play-sign icon-2x"></em>&nbsp;';
echo Display::return_message(
Display::url($icon.$src, $src, ['class' => 'btn generated', 'target' => '_blank']),
'normal',
false
);
Session::erase('x_frame_source');
}
break;
default:
break;
}
} elseif (isset($_GET['msg']) && $_GET['msg'] == 'exerciseFinished') {
echo '<br /><br />';
Display::display_normal_message(get_lang('ExerciseFinished'));
}
?>
</body>
</html>