api_get_path(WEB_CODE_PATH).'group/group.php?'.api_get_cidreq(), 'name' => get_lang('Groups'), ); $interbreadcrumb[] = array( 'url' => api_get_path(WEB_CODE_PATH).'group/group_space.php?'.api_get_cidreq(), 'name' => get_lang('GroupSpace').' '.$current_group_name, ); $name_to_show = explode('/', $name_to_show); unset($name_to_show[1]); $name_to_show = implode('/', $name_to_show); } $interbreadcrumb[] = array( 'url' => './document.php?curdirpath='.dirname($header_file).'&'.api_get_cidreq(), 'name' => get_lang('Documents'), ); if (empty($document_data['parents'])) { if (isset($_GET['createdir'])) { $interbreadcrumb[] = array( 'url' => $document_data['document_url'], 'name' => $document_data['title'], ); } else { $interbreadcrumb[] = array( 'url' => '#', 'name' => $document_data['title'], ); } } else { foreach ($document_data['parents'] as $document_sub_data) { if (!isset($_GET['createdir']) && $document_sub_data['id'] == $document_data['id']) { $document_sub_data['document_url'] = '#'; } $interbreadcrumb[] = array( 'url' => $document_sub_data['document_url'], 'name' => $document_sub_data['title'], ); } } $this_section = SECTION_COURSES; $_SESSION['whereami'] = 'document/view'; $nameTools = get_lang('Documents'); /** * Main code 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 = '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; } $js_glossary_in_documents = ' $.frameReady(function(){ // $("