@ -75,25 +75,26 @@ these two paths accept relative path only, don't use absolute path
// Integration for Chamilo
if(!empty($_course['path']) & & !isset($_GET['editor']) & & isset($_GET['editor']) & & $_GET['editor'] != 'stand_alone') {
if(!empty($group_properties['directory'])) {
$PathChamiloAjaxFileManager='../../../../../../../courses/'.$_course['path'].'/document'.$group_properties['directory'].'/';
//if(!empty($_course['path']) & & isset($_GET['editor']) & & $_GET['editor'] != 'stand_alone') {
if (isset($_course['path']) & & !empty($_course['path'])) {
if (!empty($group_properties['directory'])) {
$PathChamiloAjaxFileManager='../../../../../../../data/courses/'.$_course['path'].'/document'.$group_properties['directory'].'/';
} else {
if(api_is_allowed_to_edit()) {
$PathChamiloAjaxFileManager='../../../../../../../courses/'.$_course['path'].'/document/';
$PathChamiloAjaxFileManager='../../../../../../../data/ courses/'.$_course['path'].'/document/';
} else {
$current_session_id = api_get_session_id();
if($current_session_id==0) {
$PathChamiloAjaxFileManager='../../../../../../../courses/'.$_course['path'].'/document/shared_folder/sf_user_'.api_get_user_id().'/';
if ($current_session_id==0) {
$PathChamiloAjaxFileManager = '../../../../../../../data /courses/'.$_course['path'].'/document/shared_folder/sf_user_'.api_get_user_id().'/';
} else {
$PathChamiloAjaxFileManager='../../../../../../../courses/'.$_course['path'].'/document/shared_folder_session_'.$current_session_id.'/sf_user_'.api_get_user_id().'/';
$PathChamiloAjaxFileManager = '../../../../../../../data /courses/'.$_course['path'].'/document/shared_folder_session_'.$current_session_id.'/sf_user_'.api_get_user_id().'/';
}
}
}
} else {
if (api_is_platform_admin() & & isset($_SESSION['this_section']) & & $_SESSION['this_section']=='platform_admin') {
//home page portal
$PathChamiloAjaxFileManager='../../../../../../../home /default_platform_document/';
$PathChamiloAjaxFileManager = '../../../../../../../data /default_platform_document/';
} else {
//my profile
$my_path = UserManager::get_user_picture_path_by_id(api_get_user_id(),'none');
@ -113,8 +114,6 @@ define('CONFIG_SYS_ROOT_PATH', $PathChamiloAjaxFileManager);
// end chamilo
define('CONFIG_SYS_FOLDER_SHOWN_ON_TOP', true); //show your folders on the top of list if true or order by name
define("CONFIG_SYS_DIR_SESSION_PATH", session_save_path()); // Hack by Juan Carlos Raña
define("CONFIG_SYS_PATTERN_FORMAT", 'list'); //three options: reg ,csv, list, this option define the parttern format for the following patterns
@ -209,7 +208,6 @@ define('CONFIG_DEFAULT_VIEW', (CONFIG_SYS_THUMBNAIL_VIEW_ENABLE?'thumbnail':'det
define('CONFIG_DEFAULT_PAGINATION_LIMIT', 10000); //change 10 by 10000 while pagination is deactivated on Chamilo
define('CONFIG_LOAD_DOC_LATTER', false); //all documents will be loaded up after the template has been loaded to the client
//General Option Declarations
//LANGAUGAE DECLARATIONNS
@ -221,4 +219,4 @@ $langajaxfilemanager = file_exists(api_get_path(SYS_PATH).'main/inc/lib/fckedito
define('CONFIG_LANG_INDEX', 'language'); //the index in the session
define('CONFIG_LANG_DEFAULT', (CONFIG_QUERY_STRING_ENABLE & & !empty($_GET['language']) & & file_exists(DIR_LANG . secureFileName($_GET['language']) . '.php')?secureFileName($_GET['language']):$langajaxfilemanager)); //change it to be your language file base name, such en
// Language text direction.
define('CONFIG_LANG_TEXT_DIRECTION_DEFAULT', in_array(CONFIG_LANG_DEFAULT, array('ar', 'prs', 'he', 'ps', 'fa')) ? 'rtl' : 'ltr');
define('CONFIG_LANG_TEXT_DIRECTION_DEFAULT', in_array(CONFIG_LANG_DEFAULT, array('ar', 'prs', 'he', 'ps', 'fa')) ? 'rtl' : 'ltr');