config error:'.__FILE__.'
set or '); } else { $orderKey = array('keyCourse', 'keyTools', 'keyTime'); } }*/ /* Header Include the HTTP, HTML headers plus the top banner. */ if ($load_dirs) { $url = api_get_path(WEB_AJAX_PATH).'document.ajax.php?a=document_preview'; $folder_icon = api_get_path(WEB_IMG_PATH).'icons/22/folder.png'; $close_icon = api_get_path(WEB_IMG_PATH).'loading1.gif'; $htmlHeadXtra[] = ''; } /* Sniffing system */ //store posts to sessions $_SESSION['sniff_screen_size_w']=Security::remove_XSS($_POST['sniff_navigator_screen_size_w']); $_SESSION['sniff__screen_size_h']=Security::remove_XSS($_POST['sniff_navigator_screen_size_h']); $_SESSION['sniff_type_mimetypes']=Security::remove_XSS($_POST['sniff_navigator_type_mimetypes']); $_SESSION['sniff_suffixes_mimetypes']=Security::remove_XSS($_POST['sniff_navigator_suffixes_mimetypes']); $_SESSION['sniff_list_plugins']=Security::remove_XSS($_POST['sniff_navigator_list_plugins']); $_SESSION['sniff_check_some_activex']=Security::remove_XSS($_POST['sniff_navigator_check_some_activex']); $_SESSION['sniff_check_some_plugins']=Security::remove_XSS($_POST['sniff_navigator_check_some_plugins']); $_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')); //if (!$$controllerl->tpl->isCached($tpl, api_get_user_id())) { //@todo all this could be moved in the IndexManager $courses_list = $controller->return_courses_main_plugin(); $personal_course_list = UserManager::get_personal_session_course_list(api_get_user_id()); // Main courses and session list ob_start(); $controller->return_courses_and_sessions($personal_course_list); $courses_and_sessions = ob_get_contents(); ob_get_clean(); // $controller->tpl->assign('content', $courses_and_sessions); $controller->tpl->assign('show_sniff', 0); $sniff_notification = ''; //check for flash and message if (stripos("flash_yes", $_SESSION['sniff_check_some_activex'])===0 || stripos("flash_yes", $_SESSION['sniff_check_some_plugins'])===0){ $sniff_notification = Display::return_message(get_lang('NoFlash'), 'warning', false); //js verification - To annoying of redirecting every time the page //$controller->tpl->assign('sniff_notification', $sniff_notification); } $controller->tpl->assign('plugin_courses_block', $controller->return_courses_main_plugin()); $controller->tpl->assign('profile_block', $controller->return_profile_block()); $controller->tpl->assign('account_block', $controller->return_account_block()); $controller->tpl->assign('navigation_course_links', $controller->return_navigation_course_links($menu_navigation)); $controller->tpl->assign('plugin_courses_right_block', $controller->return_plugin_courses_block()); $controller->tpl->assign('reservation_block', $controller->return_reservation_block()); $controller->tpl->assign('search_block', $controller->return_search_block()); $controller->tpl->assign('classes_block', $controller->return_classes_block()); //if (api_is_platform_admin() || api_is_drh()) { $controller->tpl->assign('skills_block', $controller->return_skills_links()); //} $controller->tpl->display_two_col_template(); // Deleting the session_id. api_session_unregister('session_id');