|
|
@ -75,25 +75,26 @@ these two paths accept relative path only, don't use absolute path |
|
|
|
|
|
|
|
|
|
|
|
// Integration for Chamilo |
|
|
|
// Integration for Chamilo |
|
|
|
|
|
|
|
|
|
|
|
if(!empty($_course['path']) && !isset($_GET['editor']) && isset($_GET['editor']) && $_GET['editor'] != 'stand_alone') { |
|
|
|
//if(!empty($_course['path']) && isset($_GET['editor']) && $_GET['editor'] != 'stand_alone') { |
|
|
|
|
|
|
|
if (isset($_course['path']) && !empty($_course['path'])) { |
|
|
|
if (!empty($group_properties['directory'])) { |
|
|
|
if (!empty($group_properties['directory'])) { |
|
|
|
$PathChamiloAjaxFileManager='../../../../../../../courses/'.$_course['path'].'/document'.$group_properties['directory'].'/'; |
|
|
|
$PathChamiloAjaxFileManager='../../../../../../../data/courses/'.$_course['path'].'/document'.$group_properties['directory'].'/'; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if(api_is_allowed_to_edit()) { |
|
|
|
if(api_is_allowed_to_edit()) { |
|
|
|
$PathChamiloAjaxFileManager='../../../../../../../courses/'.$_course['path'].'/document/'; |
|
|
|
$PathChamiloAjaxFileManager='../../../../../../../data/courses/'.$_course['path'].'/document/'; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$current_session_id = api_get_session_id(); |
|
|
|
$current_session_id = api_get_session_id(); |
|
|
|
if ($current_session_id==0) { |
|
|
|
if ($current_session_id==0) { |
|
|
|
$PathChamiloAjaxFileManager='../../../../../../../courses/'.$_course['path'].'/document/shared_folder/sf_user_'.api_get_user_id().'/'; |
|
|
|
$PathChamiloAjaxFileManager = '../../../../../../../data/courses/'.$_course['path'].'/document/shared_folder/sf_user_'.api_get_user_id().'/'; |
|
|
|
} else { |
|
|
|
} 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 { |
|
|
|
} else { |
|
|
|
if (api_is_platform_admin() && isset($_SESSION['this_section']) && $_SESSION['this_section']=='platform_admin') { |
|
|
|
if (api_is_platform_admin() && isset($_SESSION['this_section']) && $_SESSION['this_section']=='platform_admin') { |
|
|
|
//home page portal |
|
|
|
//home page portal |
|
|
|
$PathChamiloAjaxFileManager='../../../../../../../home/default_platform_document/'; |
|
|
|
$PathChamiloAjaxFileManager = '../../../../../../../data/default_platform_document/'; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
//my profile |
|
|
|
//my profile |
|
|
|
$my_path = UserManager::get_user_picture_path_by_id(api_get_user_id(),'none'); |
|
|
|
$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 |
|
|
|
// 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_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_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 |
|
|
|
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_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 |
|
|
|
define('CONFIG_LOAD_DOC_LATTER', false); //all documents will be loaded up after the template has been loaded to the client |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//General Option Declarations |
|
|
|
//General Option Declarations |
|
|
|
|
|
|
|
|
|
|
|
//LANGAUGAE DECLARATIONNS |
|
|
|
//LANGAUGAE DECLARATIONNS |
|
|
|