$_SESSION['sniff_java']=Security::remove_XSS($_POST['sniff_navigator_java']); $_SESSION['sniff_java_sun_ver']=Security::remove_XSS($_POST['sniff_navigator_java_sun_ver']); } */ /* MAIN CODE */ $controller = new IndexManager(get_lang('MyCourses')); // Main courses and session list $courses_and_sessions = $controller->return_courses_and_sessions($user_id); //Show the chamilo mascot if (empty($courses_and_sessions) && !isset($_GET['history'])) { $controller->tpl->assign('welcome_to_course_block', $controller->return_welcome_to_course_block()); } $controller->tpl->assign('content', $courses_and_sessions); if (api_get_setting('allow_browser_sniffer') == 'true') { if ($_SESSION['sniff_navigator']!="checked") { $controller->tpl->assign('show_sniff', 1); } else { $controller->tpl->assign('show_sniff', 0); } } // Display the Site Use Cookie Warning Validation $useCookieValidation = api_get_configuration_value('cookie_warning'); if ($useCookieValidation) {