function manager($path = null, $calculateSubdir=true)
{
function manager($path = null, $calculateSubdir=true) {
$this->__construct($path, $calculateSubdir);
}
/**
* get current folder path
* @return string
@ -190,17 +186,21 @@ class manager {
$hotpotatoes_folder_Chamilo='HotPotatoes_files';
$chat_files_Chamilo='chat_files';
$certificates_Chamilo='certificates';
//show group's directory only if I'm member. Or if I'm a teacher. TODO: check groups not necessary because the student dont have access to main folder documents (only to document/group or document/shared_folder). Teachers can access to all groups ?
//show group's directory only if I'm member. Or if I'm a teacher.
//@todo: check groups not necessary because the student dont have access to main folder documents (only to document/group or document/shared_folder).
@ -32,13 +32,13 @@ var FCKTools = oEditor.FCKTools ;
window.document.dir=FCKLang.Dir;
// We have to avoid javascript errors if some language variables have not been defined.
FCKLang['UploadSelectFileFirst']=FCKLang['UploadSelectFileFirst']?FCKLang['UploadSelectFileFirst']:'Please, select a file before pressing the upload button.';
FCKLang['UploadSelectFileFirst']=FCKLang['UploadSelectFileFirst']?FCKLang['UploadSelectFileFirst']:'Please, select a file before pressing the upload button.';
FCKLang['FileSuccessfullyUploaded']=FCKLang['FileSuccessfullyUploaded']?FCKLang['FileSuccessfullyUploaded']:'Your file has been successfully uploaded.';
FCKLang['FileRenamed']=FCKLang['FileRenamed']?FCKLang['FileRenamed']:'A file with the same name is already available. The uploaded file has been renamed to ';
FCKLang['SecurityError']=FCKLang['SecurityError']?FCKLang['SecurityError']:'Security error. You probably don\'t have enough permissions to upload. Please check your server.';
FCKLang['ConnectorDisabled']=FCKLang['ConnectorDisabled']?FCKLang['ConnectorDisabled']:'The upload feature (connector) is disabled.';
FCKLang['UploadError']=FCKLang['UploadError']?FCKLang['UploadError']:'Error on file upload. Error number: ';
FCKLang['FileRenamed']=FCKLang['FileRenamed']?FCKLang['FileRenamed']:'A file with the same name is already available. The uploaded file has been renamed to ';
FCKLang['SecurityError']=FCKLang['SecurityError']?FCKLang['SecurityError']:'Security error. You probably don\'t have enough permissions to upload. Please check your server.';
FCKLang['ConnectorDisabled']=FCKLang['ConnectorDisabled']?FCKLang['ConnectorDisabled']:'The upload feature (connector) is disabled.';
FCKLang['UploadError']=FCKLang['UploadError']?FCKLang['UploadError']:'Error on file upload. Error number: ';