skala
Juan Carlos Raña 13 years ago
commit ca0ca91f33
  1. 3
      main/document/document.php
  2. 4
      main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/inc/config.base.php

@ -210,6 +210,9 @@ switch ($action) {
$id_session= Security::remove_XSS($_GET['id_session']);
$gidReq= Security::remove_XSS($_GET['gidReq']);
$id= Security::remove_XSS($_GET['id']);
if(empty($parent_id)){
$parent_id=0;
}
$file_link = Display::url(get_lang('SeeFile'), api_get_path(WEB_CODE_PATH).'social/myfiles.php?cidReq='.$cidReq.'&id_session='.$id_session.'&gidReq='.$gidReq.'&parent_id='.$parent_id);
if (file_exists($copyfile)) {

@ -36,7 +36,7 @@ define('CONFIG_SYS_THUMBNAIL_VIEW_ENABLE', true);//REMOVE THE thumbnail view if
//User Permissions
//Hack by Juan Carlos Raña Trabado
if(empty($_course['path'])) {
if(empty($_course['path']) || Security::remove_XSS($_GET['editor'])=="stand_alone") {
define('CONFIG_OPTIONS_DELETE', true);
define('CONFIG_OPTIONS_CUT', true);
define('CONFIG_OPTIONS_COPY', true);
@ -78,7 +78,7 @@ these two paths accept relative path only, don't use absolute path
// Integration for Chamilo
if(!empty($_course['path'])) {
if(!empty($_course['path']) && Security::remove_XSS($_GET['editor'])!="stand_alone") {
if(!empty($group_properties['directory'])) {
$PathChamiloAjaxFileManager='../../../../../../../courses/'.$_course['path'].'/document'.$group_properties['directory'].'/';
} else {

Loading…
Cancel
Save