|
|
|
@ -68,20 +68,19 @@ if (!is_dir($filepath)) { |
|
|
|
|
$dir = '/'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//groups //TODO: clean |
|
|
|
|
if (isset ($_SESSION['_gid']) && $_SESSION['_gid'] != 0) { |
|
|
|
|
$req_gid = '&gidReq='.$_SESSION['_gid']; |
|
|
|
|
$interbreadcrumb[] = array ("url" => "../group/group_space.php?gidReq=".$_SESSION['_gid'], "name" => get_lang('GroupSpace')); |
|
|
|
|
$groupId = api_get_group_id(); |
|
|
|
|
|
|
|
|
|
if (!empty($groupId)) { |
|
|
|
|
$interbreadcrumb[] = array ("url" => "../group/group_space.php?".api_get_cidreq(), "name" => get_lang('GroupSpace')); |
|
|
|
|
$noPHP_SELF = true; |
|
|
|
|
$to_group_id = $_SESSION['_gid']; |
|
|
|
|
$group = GroupManager :: get_group_properties($to_group_id); |
|
|
|
|
$group = GroupManager :: get_group_properties($groupId); |
|
|
|
|
$path = explode('/', $dir); |
|
|
|
|
if ('/'.$path[1] != $group['directory']) { |
|
|
|
|
api_not_allowed(true); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$interbreadcrumb[] = array ("url" => "./document.php?id=".$parent_id.$req_gid, "name" => get_lang('Documents')); |
|
|
|
|
$interbreadcrumb[] = array ("url" => "./document.php?id=".$parent_id."&".api_get_cidreq(), "name" => get_lang('Documents')); |
|
|
|
|
|
|
|
|
|
if (!$is_allowed_in_course) { |
|
|
|
|
api_not_allowed(true); |
|
|
|
@ -119,7 +118,8 @@ if (empty($document_data['parents'])) { |
|
|
|
|
Display :: display_header($nameTools, 'Doc'); |
|
|
|
|
|
|
|
|
|
echo '<div class="actions">'; |
|
|
|
|
echo '<a href="document.php?id='.$document_id.'">'.Display::return_icon('back.png',get_lang('BackTo').' '.get_lang('DocumentsOverview'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
|
|
|
echo '<a href="document.php?id='.$document_id.'">'. |
|
|
|
|
Display::return_icon('back.png',get_lang('BackTo').' '.get_lang('DocumentsOverview'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
|
|
|
echo '</div>'; |
|
|
|
|
|
|
|
|
|
if (api_browser_support('svg')) { |
|
|
|
|