"../group/group_space.php?gidReq=".$_SESSION['_gid'], "name"=> get_lang('GroupSpace')); } $interbreadcrumb[]= array ("url"=>"./document.php?curdirpath=".dirname($header_file).$req_gid, "name"=> get_lang('Documents')); $interbreadcrumb[]= array ("url"=>"showinframes.php?file=".$header_file, "name"=>$header_file); $file_url_sys=api_get_path(SYS_COURSE_PATH).'document'.$header_file; $path_info= pathinfo($file_url_sys); $this_section = SECTION_COURSES; /* if (!empty($_GET['nopages'])) { $nopages=Security::remove_XSS($_GET['nopages']); if ($nopages==1) { require_once api_get_path(INCLUDE_PATH).'reduced_header.inc.php'; Display::display_error_message(get_lang('FileNotFound')); } exit; } */ $_SESSION['whereami'] = 'document/view'; $interbreadcrumb[]= array ('url'=>'./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 - " . Security::remove_XSS($_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; $path_info= pathinfo($file_url_sys); $js_glossary_in_documents = ''; if (api_get_setting('show_glossary_in_documents') == 'ismanual') { $js_glossary_in_documents = ' // $(document).ready(function() { $.frameReady(function() { // $("
I am a div courses
").prependTo("body"); }, "top.mainFrame", { load: [ {type:"script", id:"_fr1", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.js"}, {type:"script", id:"_fr2", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.highlight.js"}, {type:"script", id:"_fr3", src:"'.api_get_path(WEB_LIBRARY_PATH).'fckeditor/editor/plugins/glossary/fck_glossary_manual.js"} ] } ); //});'; } elseif(api_get_setting('show_glossary_in_documents') == 'isautomatic') { $js_glossary_in_documents = '// $(document).ready(function() { $.frameReady(function(){ // $("
I am a div courses
").prependTo("body"); }, "top.mainFrame", { load: [ {type:"script", id:"_fr1", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.js"}, {type:"script", id:"_fr2", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.highlight.js"}, {type:"script", id:"_fr3", src:"'.api_get_path(WEB_LIBRARY_PATH).'fckeditor/editor/plugins/glossary/fck_glossary_automatic.js"} ] } ); // });'; } $htmlHeadXtra[] = ''; $htmlHeadXtra[] = ''; $htmlHeadXtra[] = ''; //Display::display_header($tool_name, "User"); Display::display_header(null,"Doc"); echo "
"; $file_url_web=api_get_path('WEB_COURSE_PATH').$_course['path'].'/document'.$header_file."?".api_get_cidreq(); echo "".get_lang('_cut_paste_link')."
"; //echo '
'; if (file_exists($file_url_sys)) { echo ''; } else { echo ''; } //echo '
'; Display::display_footer();