[svn r18167] Dokeos 1.8.6 - FCKEditor, simple file manager. Making permissions configurable for newly created folders and for uploaded files. Starting of introduction of a new more generic resource type Audio (MP3 is an alias). Adding an empty index.html in one of the directories.

skala
Ivan Tcholakov 16 years ago
parent 1bdb8ded81
commit d9828fbddc
  1. 13
      main/inc/lib/fckeditor/editor/filemanager/browser/default/connectors/php/config.php

@ -60,7 +60,7 @@ $Config['ConfigAllowedCommands'] = array('QuickUpload', 'FileUpload', 'GetFolder
// Allowed Resource Types.
//$Config['ConfigAllowedTypes'] = array('File', 'Image', 'Flash', 'Media') ;
$Config['ConfigAllowedTypes'] = array('File', 'Images', 'Flash', 'Media', 'MP3', 'Video', 'Video/flv') ;
$Config['ConfigAllowedTypes'] = array('File', 'Audio', 'Images', 'Flash', 'Media', 'MP3', 'Video', 'Video/flv') ;
// For security, HTML is allowed in the first Kb of data for files having the
// following extensions only.
@ -71,11 +71,13 @@ $Config['HtmlExtensions'] = array("html", "htm", "xml", "xsd", "txt", "js") ;
// If possible, it is recommended to set more restrictive permissions, like 0755.
// Set to 0 to disable this feature.
// Note: not needed on Windows-based servers.
$Config['ChmodOnUpload'] = 0777 ;
//$Config['ChmodOnUpload'] = 0777 ;
$Config['ChmodOnUpload'] = $permissions_for_new_files ;
// See comments above.
// Used when creating folders that does not exist.
$Config['ChmodOnFolderCreate'] = 0777 ;
//$Config['ChmodOnFolderCreate'] = 0777 ;
$Config['ChmodOnFolderCreate'] = $permissions_for_new_directories ;
/*
Configuration settings for each Resource Type
@ -135,6 +137,11 @@ $Config['ChmodOnFolderCreate'] = 0777 ;
$Config['AllowedExtensions']['File'] = array('7z', 'aiff', 'asf', 'avi', 'bmp', 'csv', 'doc', 'fla', 'flv', 'gif', 'gz', 'gzip', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'ods', 'odt', 'pdf', 'png', 'ppt', 'pxd', 'qt', 'ram', 'rar', 'rm', 'rmi', 'rmvb', 'rtf', 'sdc', 'sitd', 'swf', 'sxc', 'sxw', 'tar', 'tgz', 'tif', 'tiff', 'txt', 'vsd', 'wav', 'wma', 'wmv', 'xls', 'xml', 'zip') ;
$Config['DeniedExtensions']['File'] = array('php','php3','php4','php5','phtml','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg','cgi') ;
// Audio (MP3 is an alias)
$Config['AllowedExtensions']['Audio'] = array('mp3') ;
$Config['DeniedExtensions']['Audio'] = array('php','php3','php4','php5','phtml','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg','cgi') ;
// Images
$Config['AllowedExtensions']['Images'] = array('jpg','gif','jpeg','png') ;
$Config['DeniedExtensions']['Images'] = array('php','php3','php4','php5','phtml','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg','cgi') ;

Loading…
Cancel
Save