|
|
@ -22,14 +22,12 @@ use ChamiloSession as Session; |
|
|
|
/* Flag forcing the 'current course' reset, as we're not inside a course anymore */ |
|
|
|
/* Flag forcing the 'current course' reset, as we're not inside a course anymore */ |
|
|
|
$cidReset = true; |
|
|
|
$cidReset = true; |
|
|
|
|
|
|
|
|
|
|
|
// For HTML editor repository. |
|
|
|
|
|
|
|
if (isset($_SESSION['this_section'])) { |
|
|
|
|
|
|
|
unset($_SESSION['this_section']); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Included libraries */ |
|
|
|
/* Included libraries */ |
|
|
|
require_once './main/inc/global.inc.php'; |
|
|
|
require_once './main/inc/global.inc.php'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// For HTML editor repository. |
|
|
|
|
|
|
|
Session::erase('this_section'); |
|
|
|
|
|
|
|
|
|
|
|
$this_section = SECTION_COURSES; |
|
|
|
$this_section = SECTION_COURSES; |
|
|
|
|
|
|
|
|
|
|
|
api_block_anonymous_users(); // Only users who are logged in can proceed. |
|
|
|
api_block_anonymous_users(); // Only users who are logged in can proceed. |
|
|
@ -264,19 +262,6 @@ if ($useCookieValidation === 'true') { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//check for flash and message |
|
|
|
|
|
|
|
$sniff_notification = ''; |
|
|
|
|
|
|
|
$some_activex = isset($_SESSION['sniff_check_some_activex']) ? $_SESSION['sniff_check_some_activex'] : null; |
|
|
|
|
|
|
|
$some_plugins = isset($_SESSION['sniff_check_some_plugins']) ? $_SESSION['sniff_check_some_plugins'] : null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!empty($some_activex) || !empty($some_plugins)) { |
|
|
|
|
|
|
|
if (!preg_match("/flash_yes/", $some_activex) && !preg_match("/flash_yes/", $some_plugins)) { |
|
|
|
|
|
|
|
$sniff_notification = Display::return_message(get_lang('NoFlash'), 'warning', true); |
|
|
|
|
|
|
|
//js verification - To annoying of redirecting every time the page |
|
|
|
|
|
|
|
$controller->tpl->assign('sniff_notification', $sniff_notification); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$controller->tpl->assign('profile_block', $controller->return_profile_block()); |
|
|
|
$controller->tpl->assign('profile_block', $controller->return_profile_block()); |
|
|
|
$controller->tpl->assign('user_image_block', $controller->return_user_image_block()); |
|
|
|
$controller->tpl->assign('user_image_block', $controller->return_user_image_block()); |
|
|
|
$controller->tpl->assign('course_block', $controller->return_course_block()); |
|
|
|
$controller->tpl->assign('course_block', $controller->return_course_block()); |
|
|
|