Changes between Initial Version and Version 1 of Documentation/Plugins/ExtendedFileManager/Config


Ignore:
Timestamp:
02/08/07 12:30:25 (13 years ago)
Author:
ray
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/Plugins/ExtendedFileManager/Config

    v1 v1  
     1= ExtendedFileManager Configuration = 
     2These are the most important config variables for the !ExtendedFileManager.[[BR]] 
     3For a complete overview look into the config.inc.php in the plugin directory.[[BR]] 
     4Read [wiki:Plugins/ExtendedFileManager here] how to use these values in your Xinha configuration. 
     5 
     6 * [wiki:Plugins/ExtendedFileManager/Config#images_dirfiles_dir images_dir/files_dir] 
     7 * [wiki:Plugins/ExtendedFileManager/Config#images_urlfiles_url images_url/files_url] 
     8 * [wiki:Plugins/ExtendedFileManager/Config#images_dirfiles_dir view_type] 
     9 * [wiki:Plugins/ExtendedFileManager/Config#allow_new_dir allow_new_dir] 
     10 * [wiki:Plugins/ExtendedFileManager/Config#allow_edit_image allow_edit_image] 
     11 * [wiki:Plugins/ExtendedFileManager/Config#allow_rename allow_rename] 
     12 * [wiki:Plugins/ExtendedFileManager/Config#allow_cut_copy_paste allow_cut_copy_paste] 
     13 * [wiki:Plugins/ExtendedFileManager/Config#use_color_pickers use_color_pickers] 
     14 * [wiki:Plugins/ExtendedFileManager/Config#images_enable_alt images_enable_alt] 
     15 * [wiki:Plugins/ExtendedFileManager/Config#images_enable_title images_enable_title] 
     16 * [wiki:Plugins/ExtendedFileManager/Config#images_enable_align images_enable_align] 
     17 * [wiki:Plugins/ExtendedFileManager/Config#images_enable_styling images_enable_styling] 
     18 * [wiki:Plugins/ExtendedFileManager/Config#link_enable_target link_enable_target] 
     19 * [wiki:Plugins/ExtendedFileManager/Config#allow_upload allow_upload] 
     20 * [wiki:Plugins/ExtendedFileManager/Config#max_filesize_kb_imagemax_filesize_kb_link max_filesize_kb_image/max_filesize_kb_link] 
     21 * [wiki:Plugins/ExtendedFileManager/Config#max_foldersize_mb max_foldersize_mb] 
     22 
     23=== images_dir/files_dir === 
     24 
     25 File system path to the directory you want to manage the images 
     26 for multiple user systems, set it dynamically. 
     27 
     28 NOTE: This directory requires write access by PHP. That is, 
     29           PHP must be able to create files in this directory. 
     30           Able to create directories is nice, but not necessary. 
     31{{{ 
     32$IMConfig['images_dir'] = $_SERVER['DOCUMENT_ROOT'].'/images'; 
     33//You may set a different directory for the link mode; if you don't, the above setting will be used for both modes 
     34//$IMConfig['files_dir'] = $_SERVER['DOCUMENT_ROOT'].'/files_dir'; 
     35}}} 
     36 
     37=== images_url/files_url === 
     38 The URL to the above path, the web browser needs to be able to see it. It is  
     39 prefixed to the filename to determoine the full image url. 
     40 It can be protected via .htaccess on apache or directory permissions on IIS, 
     41 check you web server documentation for futher information on directory protection 
     42 If this directory needs to be publicly accessiable, remove scripting capabilities 
     43 for this directory (i.e. disable PHP, Perl, CGI). 
     44{{{ 
     45$IMConfig['images_url'] = '/images/'; 
     46//You may set a different directory for the link mode; if you don't, the above setting will be used for both modes 
     47//$IMConfig['files_url'] = 'url/to/files_dir'; 
     48}}} 
     49=== view_type === 
     50Possible values: "thumbview","listview"[[BR]] 
     51Default is thumbview in image mode and listview in file mode 
     52 
     53{{{ 
     54$IMConfig['view_type'] = "listview"; 
     55}}} 
     56 
     57 
     58=== allow_new_dir === 
     59Possible values: true, false 
     60 
     61 TRUE (default) -  Allow the user to create new sub-directories in the 
     62         $IMConfig['images_dir']/$IMConfig['files_dir']. 
     63 
     64 FALSE - No directory creation. 
     65 
     66  
     67 NOTE: If PHP is running in Safe Mode this parameter 
     68       is ignored, you can not create directories 
     69        
     70{{{ 
     71$IMConfig['allow_new_dir'] = false; 
     72}}} 
     73 
     74=== allow_edit_image === 
     75 
     76Possible values: true, false 
     77 
     78 TRUE (default) -  Allow the user to edit image by image editor. 
     79 
     80 FALSE - No edit icon will be displayed. 
     81 
     82 NOTE: If $IMConfig['img_library'] = false, this parameter 
     83       is ignored, you can not edit images. 
     84{{{ 
     85$IMConfig['allow_edit_image'] = false; 
     86}}} 
     87 
     88=== allow_rename === 
     89 
     90Possible values: true, false 
     91 
     92 TRUE (default)-  Allow the user to rename files and folders. 
     93 
     94 FALSE - No rename icon will be displayed. 
     95{{{ 
     96$IMConfig['allow_rename'] = false; 
     97}}} 
     98 
     99=== allow_cut_copy_paste === 
     100 
     101Possible values: true, false 
     102 
     103 TRUE (default) -  Allow the user to perform cut/copy/paste actions. 
     104 
     105 FALSE - No cut/copy/paste icons will be displayed. 
     106 
     107{{{ 
     108$IMConfig['allow_cut_copy_paste'] = false; 
     109}}} 
     110 
     111=== use_color_pickers === 
     112 
     113Possible values: true, false 
     114 
     115  TRUE (default) - Display color pickers for image background / border colors 
     116 
     117  FALSE - Don't display color pickers 
     118{{{ 
     119$IMConfig['use_color_pickers'] = false; 
     120}}} 
     121 
     122=== images_enable_alt === 
     123 
     124Possible values: true, false 
     125 
     126 TRUE (default) -  Allow the user to set alt (alternative text) attribute. 
     127 
     128 FALSE - No input field for alt attribute will be displayed. 
     129 
     130 NOTE: The alt attribute is ''obligatory'' for images, so <img alt="" /> will be inserted 
     131      if 'images_enable_alt' is set to false 
     132{{{ 
     133$IMConfig['images_enable_alt'] = false; 
     134}}} 
     135 
     136 
     137=== images_enable_title === 
     138 
     139Possible values: true, false 
     140 
     141 TRUE (default) -  Allow the user to set title attribute (usually displayed when mouse is over element). 
     142 
     143 FALSE - No input field for title attribute will be displayed. 
     144 
     145{{{ 
     146$IMConfig['images_enable_title'] = false; 
     147}}} 
     148 
     149=== images_enable_align === 
     150 
     151Possible values: true, false 
     152 
     153 TRUE (default) -  Allow the user to set align attribute. 
     154 
     155 FALSE - No selection box for align attribute will be displayed. 
     156 
     157{{{ 
     158$IMConfig['images_enable_align'] = false; 
     159}}} 
     160 
     161=== images_enable_styling === 
     162 
     163Possible values: true, false 
     164 
     165 TRUE (default) -   Allow the user to set margin, padding, and border styles for the image 
     166 
     167 FALSE - No styling input fields will be displayed. 
     168 
     169{{{ 
     170$IMConfig['images_enable_styling'] = false; 
     171}}} 
     172 
     173=== link_enable_target === 
     174 
     175Possible values: true, false 
     176 
     177 TRUE (default) -   Allow the user to set target attribute for link (the window in which the link will be opened). 
     178  
     179 FALSE - No selection box for target attribute will be displayed. 
     180 
     181{{{ 
     182$IMConfig['link_enable_target'] = false; 
     183}}} 
     184 
     185=== allow_upload === 
     186 
     187Possible values: true, false 
     188 
     189 TRUE (default) -   Allow the user to upload files. 
     190  
     191 FALSE - No uploading allowed. 
     192 
     193{{{ 
     194$IMConfig['allow_upload'] = false; 
     195}}} 
     196 
     197=== max_filesize_kb_image/max_filesize_kb_link === 
     198Maximum upload file size 
     199 
     200  Possible values: number, "max" 
     201 
     202  number - maximum size in Kilobytes. 
     203 
     204  "max"  - the maximum allowed by the server (the value is retrieved from the server configuration). 
     205 
     206{{{ 
     207$IMConfig['max_filesize_kb_image'] = 2000000; 
     208 
     209$IMConfig['max_filesize_kb_link'] = 5000; 
     210}}} 
     211 
     212=== max_foldersize_mb === 
     213Maximum upload folder size in Megabytes. Use 0 to disable limit 
     214{{{ 
     215$IMConfig['max_foldersize_mb'] = 0; 
     216}}}