///First step for hidden some type of Dokeos files and folders
///First step for hidden some type of Chamilo files and folders
//Juan Carlos Raña
//hidden files and folders deleted by Dokeos. Hidde folders css, hotpotatoes, chat_files
$deleted_by_dokeos_file=' DELETED '; // ' DELETED ' not '_DELETED_' because in $file['name'] _ is replaced with blank see class.manager.php
$deleted_by_dokeos_folder='_DELETED_';
$css_folder_dokeos='css';
$hotpotatoes_folder_dokeos='HotPotatoes_files';
$chat_files_dokeos='chat_files';
//hidden files and folders deleted by Chamilo. Hidde folders css, hotpotatoes, chat_files
$deleted_by_Chamilo_file=' DELETED '; // ' DELETED ' not '_DELETED_' because in $file['name'] _ is replaced with blank see class.manager.php
$deleted_by_Chamilo_folder='_DELETED_';
$css_folder_Chamilo='css';
$hotpotatoes_folder_Chamilo='HotPotatoes_files';
$chat_files_Chamilo='chat_files';
//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 ?
$group_folder='_groupdocs';
@ -45,13 +45,10 @@
}
//show icon sharedfolder
$shared_folder='shared folder'; //'shared folder' not 'shared_folder' because in $file['name'] _ is replaced with blank see class.manager.php
<tdalign="center"class="fileColumns"id="tdst<?phpecho$count;?>"> <aid="a<?phpecho$count;?>"href="<?phpecho"../".$file['path'];?>"target="_blank"><spanclass="<?phpecho$file['cssClass'];?>"> </span></a></td><!-- Juan Carlos Raña Fix for Dokeos: On the path I put a directory up echo "../".$ file [ 'path'], what makes good show when pressed next on window preview, don't only one image -->
<tdalign="center"class="fileColumns"id="tdst<?phpecho$count;?>"> <aid="a<?phpecho$count;?>"href="<?phpecho"../".$file['path'];?>"target="_blank"><spanclass="<?phpecho$file['cssClass'];?>"> </span></a></td><!-- Juan Carlos Raña Fix for Chamilo: On the path I put a directory up echo "../".$ file [ 'path'], what makes good show when pressed next on window preview, don't only one image -->
<a<?phpecho($file['cssClass']=='filePicture'?'rel="orgImg"':'');?>href="<?phpecho"../".$file['path'];?>"title="<?phpecho$file['name'];?>"id="a<?phpecho$count;?>"><?phpechoshortenFileName($file['name']);?></a></dd><!-- Juan Carlos Ra<EFBFBD>a Fix for Dokeos: On the path I put a directory up echo "../".$ file [ 'path'], what makes good show when pressed next on window preview, don't only one image -->
<a<?phpecho($file['cssClass']=='filePicture'?'rel="orgImg"':'');?>href="<?phpecho"../".$file['path'];?>"title="<?phpecho$file['name'];?>"id="a<?phpecho$count;?>"><?phpechoshortenFileName($file['name']);?></a></dd><!-- Juan Carlos Ra<EFBFBD>a Fix for Chamilo: On the path I put a directory up echo "../".$ file [ 'path'], what makes good show when pressed next on window preview, don't only one image -->
</dl>
<?php
}//end if hidden files and folders deleted by Dokeos
}//end if hidden files and folders deleted by Chamilo
<selectclass="input inputSearchSelect"name="search_folder"id="search_folder"><!-- Chamilo integrating, modify name class for disable by css -->
<?php
foreach(getFolderListing(CONFIG_SYS_ROOT_PATH) as $k=>$v)
{
//////////////
if(hideFolderName($k))
{
//shows only those permitted by Dokeos
//show only those permitted by Chamilo
?>
<optionvalue="<?phpecho$v;?>"<?phpecho(removeTrailingSlash(backslashToSlash(($folderInfo['path'])))==removeTrailingSlash(backslashToSlash(($v)))?' selected="selected"':'');?>><?phpechohideFolderName(shortenFileName($k,30));// shows only those permitted by Dokeos
//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 ?