|
|
|
@ -42,7 +42,9 @@ if (isset($_SESSION['_gid']) && $_SESSION['_gid'] != '') { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$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); |
|
|
|
|
$name_to_show = cut($header_file, 80); |
|
|
|
|
$interbreadcrumb[] = array('url' => 'showinframes.php?file='.$header_file, 'name' => $name_to_show); |
|
|
|
|
|
|
|
|
|
$file_url_sys = api_get_path(SYS_COURSE_PATH).'document'.$header_file; |
|
|
|
|
$path_info = pathinfo($file_url_sys); |
|
|
|
|
$this_section = SECTION_COURSES; |
|
|
|
@ -60,7 +62,6 @@ if (!empty($_GET['nopages'])) { |
|
|
|
|
|
|
|
|
|
$_SESSION['whereami'] = 'document/view'; |
|
|
|
|
|
|
|
|
|
$interbreadcrumb[] = array('url' => './document.php', 'name' => get_lang('Documents')); |
|
|
|
|
$nameTools = get_lang('Documents'); |
|
|
|
|
$file = Security::remove_XSS(urldecode($_GET['file'])); |
|
|
|
|
|
|
|
|
@ -138,7 +139,7 @@ $htmlHeadXtra[] = '<script type="text/javascript"> |
|
|
|
|
|
|
|
|
|
//Display::display_header($tool_name, 'User'); |
|
|
|
|
|
|
|
|
|
Display::display_header(null, 'Doc'); |
|
|
|
|
Display::display_header(''); |
|
|
|
|
echo "<div align=\"center\">"; |
|
|
|
|
$file_url_web = api_get_path(WEB_COURSE_PATH).$_course['path'].'/document'.$header_file.'?'.api_get_cidreq(); |
|
|
|
|
echo '<a href="'.$file_url_web.'" target="_blank">'.get_lang('_cut_paste_link').'</a></div>'; |
|
|
|
|