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.
34 lines
1.0 KiB
34 lines
1.0 KiB
18 years ago
|
<?php
|
||
|
/**
|
||
|
==============================================================================
|
||
|
* @package dokeos.document
|
||
|
==============================================================================
|
||
|
*/
|
||
|
$langFile = "document";
|
||
|
|
||
|
include('../inc/global.inc.php');
|
||
|
|
||
|
$nameTools = $_GET['file'];
|
||
|
|
||
|
$noPHP_SELF=true;
|
||
|
|
||
|
$path_array=explode('/',str_replace('\\','/',$_GET['file']));
|
||
|
|
||
|
$path_array=array_map('urlencode',$path_array);
|
||
|
|
||
|
$_GET['file']=implode('/',$path_array);
|
||
|
|
||
|
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($_GET['file']).$req_gid, "name"=> $langDocuments);
|
||
|
|
||
|
Display::display_header($nameTools,"Doc");
|
||
|
|
||
|
echo "<div align=\"center\">";
|
||
|
echo "<a href='".api_get_path('WEB_COURSE_PATH').$_course['path'].'/document'.$_GET['file']."?".api_get_cidreq()."' target='blank'>".$lang_cut_paste_link."</a></div>";
|
||
|
|
||
|
?>
|