Skip to the content.
Home   Demo   Downloads   Release Notes   Documentation
Report Bug   FAQ   Screenshots   Forum Archive   Developers  

ExtendedFileManager Configuration

These are the most important config variables for the ExtendedFileManager.
For a complete overview look into the config.inc.php in the plugin directory.
Read here how to use these values in your Xinha configuration.

images_dir/files_dir

File system path to the directory you want to manage the images for multiple user systems, set it dynamically.

NOTE: This directory requires write access by PHP. That is, PHP must be able to create files in this directory. Able to create directories is nice, but not necessary.

$IMConfig['images_dir'] = $_SERVER['DOCUMENT_ROOT'].'/images';
//You may set a different directory for the link mode; if you don't, the above setting will be used for both modes
//$IMConfig['files_dir'] = $_SERVER['DOCUMENT_ROOT'].'/files_dir';

images_url/files_url

The URL to the above path, the web browser needs to be able to see it. It is prefixed to the filename to determoine the full image url. It can be protected via .htaccess on apache or directory permissions on IIS, check you web server documentation for futher information on directory protection If this directory needs to be publicly accessiable, remove scripting capabilities for this directory (i.e. disable PHP, Perl, CGI).

$IMConfig['images_url'] = '/images/';
//You may set a different directory for the link mode; if you don't, the above setting will be used for both modes
//$IMConfig['files_url'] = 'url/to/files_dir';

view_type

Possible values: “thumbview”,”listview”
Default is thumbview in image mode and listview in file mode

$IMConfig['view_type'] = "listview";

allow_new_dir

Possible values: true, false

TRUE (default) - Allow the user to create new sub-directories in the $IMConfig[‘images_dir’]/$IMConfig[‘files_dir’].

FALSE - No directory creation.

NOTE: If PHP is running in Safe Mode this parameter is ignored, you can not create directories

$IMConfig['allow_new_dir'] = false;

allow_edit_image

Possible values: true, false

TRUE (default) - Allow the user to edit image by image editor.

FALSE - No edit icon will be displayed.

NOTE: If $IMConfig[‘img_library’] = false, this parameter is ignored, you can not edit images.

$IMConfig['allow_edit_image'] = false;

allow_rename

Possible values: true, false

TRUE (default)- Allow the user to rename files and folders.

FALSE - No rename icon will be displayed.

$IMConfig['allow_rename'] = false;

allow_cut_copy_paste

Possible values: true, false

TRUE (default) - Allow the user to perform cut/copy/paste actions.

FALSE - No cut/copy/paste icons will be displayed.

$IMConfig['allow_cut_copy_paste'] = false;

use_color_pickers

Possible values: true, false

TRUE (default) - Display color pickers for image background / border colors

FALSE - Don’t display color pickers

$IMConfig['use_color_pickers'] = false;

images_enable_alt

Possible values: true, false

TRUE (default) - Allow the user to set alt (alternative text) attribute.

FALSE - No input field for alt attribute will be displayed.

NOTE: The alt attribute is ‘‘obligatory’’ for images, so will be inserted if ‘images_enable_alt’ is set to false

$IMConfig['images_enable_alt'] = false;

images_enable_title

Possible values: true, false

TRUE (default) - Allow the user to set title attribute (usually displayed when mouse is over element).

FALSE - No input field for title attribute will be displayed.

$IMConfig['images_enable_title'] = false;

images_enable_align

Possible values: true, false

TRUE (default) - Allow the user to set align attribute.

FALSE - No selection box for align attribute will be displayed.

$IMConfig['images_enable_align'] = false;

images_enable_styling

Possible values: true, false

TRUE (default) - Allow the user to set margin, padding, and border styles for the image

FALSE - No styling input fields will be displayed.

$IMConfig['images_enable_styling'] = false;

Possible values: true, false

TRUE (default) - Allow the user to set target attribute for link (the window in which the link will be opened).

FALSE - No selection box for target attribute will be displayed.

$IMConfig['link_enable_target'] = false;

allow_upload

Possible values: true, false

TRUE (default) - Allow the user to upload files.

FALSE - No uploading allowed.

$IMConfig['allow_upload'] = false;

Maximum upload file size

Possible values: number, “max”

number - maximum size in Kilobytes.

“max” - the maximum allowed by the server (the value is retrieved from the server configuration).

$IMConfig['max_filesize_kb_image'] = 2000000;

$IMConfig['max_filesize_kb_link'] = 5000;

max_foldersize_mb

Maximum upload folder size in Megabytes. Use 0 to disable limit

$IMConfig['max_foldersize_mb'] = 0;

Allowed extensions that can be shown and allowed to upload. Available icons are for “doc,fla,gif,gz,html,jpg,js,mov,pdf,php,png,ppt,rar,txt,xls,zip” Below is the default configuration

$IMConfig['allowed_image_extensions'] = array("jpg","gif","png","bmp");
$IMConfig['allowed_link_extensions'] = array("jpg","gif","js","php","pdf","zip","txt","psd","png","html","swf","xml","xls","doc");