'./document.php', 'name'=> get_lang('Documents')); $nameTools = get_lang('Documents'); $file = Security::remove_XSS(urldecode($_GET['file'])); /* ============================================================================== Main section ============================================================================== */ header('Expires: Wed, 01 Jan 1990 00:00:00 GMT'); //header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); header('Last-Modified: Wed, 01 Jan 2100 00:00:00 GMT'); header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache'); $browser_display_title = "Dokeos Documents - " . $_GET['cidReq'] . " - " . $file; //only admins get to see the "no frames" link in pageheader.php, so students get a header that's not so high $frameheight = 135; if($is_courseAdmin) { $frameheight = 165; } $file_root=$_course['path'].'/document'.str_replace('%2F', '/',$file); $file_url_sys=api_get_path('SYS_COURSE_PATH').$file_root; $file_url_web=api_get_path('WEB_COURSE_PATH').$file_root; ?>