You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							36 lines
						
					
					
						
							1.4 KiB
						
					
					
				
			
		
		
	
	
							36 lines
						
					
					
						
							1.4 KiB
						
					
					
				<?php
 | 
						|
/**
 | 
						|
==============================================================================
 | 
						|
*	@package dokeos.document
 | 
						|
==============================================================================
 | 
						|
*/
 | 
						|
	// name of the language file that needs to be included
 | 
						|
$language_file = 'document';
 | 
						|
 | 
						|
 | 
						|
require_once '../inc/global.inc.php';
 | 
						|
$noPHP_SELF=true;
 | 
						|
$header_file= Security::remove_XSS($_GET['file']);	
 | 
						|
$path_array=explode('/',str_replace('\\','/',$header_file));
 | 
						|
$path_array = array_map('urldecode',$path_array);
 | 
						|
 | 
						|
$header_file=implode('/',$path_array);
 | 
						|
 | 
						|
$nameTools = $header_file;
 | 
						|
 | 
						|
if(isset($_SESSION['_gid']) && $_SESSION['_gid']!='') {
 | 
						|
	$req_gid = '&gidReq='.$_SESSION['_gid'];
 | 
						|
	$interbreadcrumb[]= array ("url"=>"../group/group_space.php?gidReq=".$_SESSION['_gid'], "name"=> get_lang('GroupSpace'));
 | 
						|
}
 | 
						|
 | 
						|
$interbreadcrumb[]= array ("url"=>"./document.php?curdirpath=".dirname($header_file).$req_gid, "name"=> $langDocuments);
 | 
						|
$interbreadcrumb[]= array ("url"=>"showinframes.php?file=".$header_file, "name"=>$header_file);
 | 
						|
 | 
						|
Display::display_header(null,"Doc");
 | 
						|
 | 
						|
echo "<div align=\"center\">";
 | 
						|
$file_url_web='document_with_glossary_terms.php?file='.urlencode(Security::remove_XSS($_GET['file']));
 | 
						|
$file_origin_url_web=api_get_path('WEB_COURSE_PATH').$_course['path'].'/document'.$header_file."?".api_get_cidreq();
 | 
						|
echo "<a href='".$file_url_web."' target='blank'>".$lang_cut_paste_link."</a></div>";
 | 
						|
 | 
						|
?>
 |