WebNaz Creations | Cyprus Hosting

ezFilemanager v1

ezFilemanager v2  has been released  more »
  1. Better security
  2. All user inputs are sanitized extensively, both from the client and server site.
  3. Much easier configuration/instalation
  4. Extensive use of jQuery
  5. Upload multiple files
  6. Create multiple folders
  7. If a folder/file name exists, it will be appended by a number
  8. Recursively delete directories/files
  9. Preview/Download files
  10. Copy/Paste files between directories
  11. Added option for multiuser (Implemention is up to you, or if you need help, contact me)
ezFilemanager v2 Installation instructions & Download »
ALTHOUGH I WILL CONTINUE SUPPORTING v1,
I WOULD HIGHLY ADVICE YOU TO USE V.2

Eazy file manager platform for TinyMCE or stand-alone file management utility.
Today 2009-02-17 the final v1.0 has been released.

  • It is an online file management utility
  • It can be installed as stand-alone file management utility
  • Integrates with TinyMCE as Plugin.
  • Integrates as a custom file browser within TinyMCE for image, media and link popup.
  • Browse directories.
  • Display file information such as type, size and dimensions (images only).
  • Preview files (iframe zoom + for iE only, we dont need zoom for FF)
  • Download files
  • Rename files directories
  • Delete files (single/multiple).
  • Delete Directories (even non empty).
  • Upload files (based on type permission for image/media/links).
  • Upload dynamicaly multiple files simultaneously
  • Rename files before uploading
  • Enable/Disable file/directory delete
  • Enable/Disable file/directory rename
  • Enable/Disable file upload
  • Check if directory is writable
  • Create Directories.
  • Restrict max upload size for image/media/links.
  • Restrict characters to use for uploaded files and new Directories.
  • Multilingual.(Translated to English,French,German,Greek)
  • Security to block non existant folders and back_browsing (../../etc).
  • Some other user definable settings, see includes/config.inc.php.
  • Almost every single function is fully commented and dated

ezFilemanger v0.8a has been used/tested extensively and the only bug reported was a JavaScript error which prevented uploading files with more than 3 characters extension, thus today 2009-02-17 the final v1.0 has been released.
For those using v0.8a the only file modified is the the includes/upload.inc.php and new German translation (thanks Joachim Schneider)

Download latest version v1.0

Download ezFilemanager+TinyMCE v3.2.5 Extract the tinymce-ezfilemanager.zip file and put the tinymce directory in your root folder, naviagte to www.your_url/tinymce/examples and  test ezFilemanager

A common missconseption is that you can install images/links from the ezFilemanager button in the TinyMCE toolbar.
In order to install images/links you must install the advimg plugin as well and then you will see a small icon next to the Image URL, which when clicked will open the ezFilemanager

Installation instructions are included in the download, you can allso read details instructions here

2010-01-12

Comments 10

Michel-Ange 16th February 2009 19:14 p.m.

Hello,

It is possible to select one file in SA mode and to retrieve the URL in a form field ?
I tried, but in SA mode, the select button isn't available.

Regards,

Michel-Ange (michelange (at) partikule (point or dot) net)
I dont know what you want to achieve, but you can retrieve the URL by modifying the
/js/ezfilemanager.js
The variable that stores the URL is the theurl
Open the file and add '+theurl+' at the end of line 15
///js/ezfilemanager.js
function selectURL(theurl)
{
clear_rename();
 document.previewform.selected_url.value = theurl;
 try {
 document.getElementById('go').style.visibility = 'visible';
 } catch (e) { }
 DownloadContainer=document.getElementById('do_download');
 DownloadContainer.style.visibility = 'visible';
DownloadContainer.innerHTML = '<a href=\"'+theurl+'\" target=\"_blank\"><img src=\"img/downloads.gif\" width=\"22\" height=\"22\" alt=\"\">'+theurl+'</a>';
}
//The part in red is the new addition, now you should see the url next to the download icon
you can either copy it manually or add a javascript (if you are using the ezFM as a popup add a javascript on click event and send the var to the windows.opener...) let me know if you need more help
Dwaine 25th February 2009 21:20 p.m.

Hi,
I'm having a problem and I'm not sure why, in the file manager I have created folders under images, everything was fine a couple of days ago now I try to make a new folder and I'm getting wrong file path error. This only happens serveral folders down.

Example:
images/"new_folder" works
but,
images/folder1/sub-folder/sub-sub-folder1
will not work. Funny because sub-sub-folder worked 2 days ago now I'm tryin the add sub-sub-folder2 and I get worng file path error.

the form source shows:
input type='hidden' name='upload_path' id='upload_path' value='h:/server2go/htdocs/aoshore/images/reviews/2600/'
and
window.location="http://192.168.1.102/aoshore/admin/css_js/tiny_mce/plugins/ezfilemanager/ezfilemanager.php?type=image&thedir=reviews/2600/&sa=1"

which are my exact locations on my develpment server, like I said this did work, now it will not? any ideas?

Dwaine 25th February 2009 22:06 p.m.

Actually I've checked and it won't et me create a 2nd sub folders under images
example:
images/folder1/sub-folder
will not work?

Is ths a limitation of the script?
TIA

No there is no liitations, you can create as many sub-folders as you want provided the characters used are within VALID_DIR_CHAR regex

Probably the problem is your define('WN_PATH','h:/server2go/')
and define('HACK_PATH_CHAR','/[;\\\\\\.&,h:><]/i')
If in your HACK_PATH you have : either remove it or fix your WN_PATH, i.e remove h:, you dont need it
Davide 14th March 2009 18:42 p.m.

Hi, have test this plugin... have setup and now work fine but... when use EzFileManager cannot insert the image after upload/rename ?
Thanks.

Make sure you have intalled the advimg plugin as well
 tinyMCE.init({
 mode : 'textareas',
 theme : 'advanced',
 plugins : "ezfilemanager,advimg.......",
 theme_advanced_buttons3_add_before : 'separator,ezfilemanager',
 relative_urls : false,
 ............
 });
And also dont forget the file_browser_callback,
Bogdan 23rd March 2009 20:53 p.m.

Hello there

This is a nice plugin but it has quite a few problems - php related
They are due to the fact that you created this plugin ignoring php notices - if you set php error reporting to E_ALL you will see them all (you probably have error reporting set to E_ALL & ~E_NOTICE & ~E_STRICT)
Among these notices there are undefined variables, bad use of constants and other things - i can make you a list with everything I've changed.

Thanks for your feedback.
Any fixes/enhancements are more than welcome.
Please either send me the list of changes or the whole of ezFilemanager with your changes and I will include it with my next release.

In-fact I would appreciate it if anybody else has any chnages/enhancemets to let me know.

Morten 23rd April 2009 00:28 a.m.

I have used it in the filbrowser callback in tniymce, but i get an error:
Error Wrong Path [galleri] although it is here my images are stored.
Theres is also a 'return to previous folder icon' and when i click it I get an empty gray window with the following text in the top: Select Directory or Browse

If you are sure the path is correct, then make sure that you only have
allowed characters in your path or modify the HACK_PATH_CHAR
The default is
define('HACK_PATH_CHAR','/[;\\\\\\.&,:><]/i')
This means you cannot have ;,:,\,,>,<,.,&
So if you have c:// in your path it will be rejected.
Roland 24th April 2009 11:09 a.m.

I'm getting error message: Error Wrong Path [images] I've tried everything here's my config code.

define('LANG','en');
define('CHECK_IF_WRITABLE',true); //do checks to see if dir is writable (true/false)
define('ENABLE_RENAME',true); //allow file/dir renaming (true/false)
define('ENABLE_DELETE',true); //allow file/dir deleting (true/false)
define('ENABLE_NEW_DIR',true); //allow new dir creation (true/false)
define('MAX_SIM_UPLOAD','3'); //Max number of simultaneous uploads, 0 disables upload
define('VALID_DIR_CHAR','[^0-9a-zA-Z_-]'); //makedir allow alphanumeric(upper/lower) and _-
define('VALID_FILE_CHAR','[^0-9a-zA-Z_.-]');//upload allow alphanumeric(upper/lower) and ._-
define('HACK_PATH_CHAR','/[;\\\\\\.&,>,<,.,& characters in path/upload
define('IMG_EXT','[\'jpeg\', \'jpg\', \'gif\', \'png\']');// Used for javascript validation
define('DATE_FORMAT','d/m/Y H:i');
define('FILE_CHAR_TO_SHOW','25');//filename will be truncated to 25chars if it's longer
//define("WN_URL","http://www.yourdomain.com/");//your domain url
define("WN_URL","http://mysite/");//your domain url
define('WN_PATH','http://mysite');//domain root absolute path
define("IMG_PATH",WN_PATH."/images/");//Image dir url
define('IMG_URL',WN_URL.'/images/');//Image dir absolute path
define('FILE_PATH',WN_PATH.'docs/');//File dir url
define('FILE_URL',WN_URL.'docs/');//File dir absolute path
define('MEDIA_PATH',WN_PATH.'media/');//Media dir url
define('MEDIA_URL',WN_URL.'media/');//Media dir absolute path

Roland 24th April 2009 11:15 a.m.

Any help will be accepted, I'm using Xammp

Your define('WN_PATH','http://mysite');  is wrong
As you are using xampp it should be define('WN_PATH','/xampp/htdocs/your_directory/?');
also your  define('HACK_PATH_CHAR','/[;\\\\\\.&,>,<,.,& characters in path/upload is wrong
the default is  define('HACK_PATH_CHAR','/[;\\\\\\.&,:><]/i');
See my post above to Morten 23rd April 2009

Also you should add tailng slash (/) to WN_URL & WN_PATH and remove the starting slash from your IMG_URL & IMG_PATH
Roland 24th April 2009 14:01 p.m.

Problem solved, thx alot ;-)

Honka Bonka 27th May 2009 19:30 p.m.

Hi, thanks for such a nice plugin.

I am having issues, it is setup fine with Magento/Tiny_MCE, but when I try to insert the doc, it gives me "h = document.body.innerHTML;" within the popup of ezfilemanager. and in the tiny_mce editor window it says "win is undefined".

Could you please tell, what is wrong here?

http://img36.imageshack.us/img36/1364/77221918.jpg

config.inc.php:
define('LANG','en');
define('CHECK_IF_WRITABLE',true); //do checks to see if dir is writable (true/false)
define('ENABLE_RENAME',true); //allow file/dir renaming (true/false)
define('ENABLE_DELETE',true); //allow file/dir deleting (true/false)
define('ENABLE_NEW_DIR',true); //allow new dir creation (true/false)
define('MAX_SIM_UPLOAD','3'); //Max number of simultaneous uploads, 0 disables upload
define('VALID_DIR_CHAR','[^0-9a-zA-Z_-]'); //makedir allow alphanumeric(upper/lower) and _-
define('VALID_FILE_CHAR','[^0-9a-zA-Z_.-]');//upload allow alphanumeric(upper/lower) and ._-
define('HACK_PATH_CHAR','/[;\\\\\\.&,>,<,.,& characters in path/upload
define('IMG_EXT','[\'jpeg\', \'jpg\', \'gif\', \'png\']');// Used for javascript validation
define('DATE_FORMAT','d/m/Y H:i');
define('FILE_CHAR_TO_SHOW','25');//filename will be truncated to 25chars if it's longer
define("WN_URL","http://www.localhost.com/magento2/");//your domain url
define('WN_PATH','F:\apache2triad\htdocs\magento2\\');//domain root absolute path
define("IMG_PATH",WN_PATH.'uploads\media\\');//Image dir url
define('IMG_URL',WN_URL.'uploads/media/');//Image dir absolute path
define('FILE_PATH',WN_PATH.'uploads\docs\\');//File dir url
define('FILE_URL',WN_URL.'uploads/docs/');//File dir absolute path
define('MEDIA_PATH',WN_PATH.'uploads\media\\');//Media dir url
define('MEDIA_URL',WN_URL.'uploads/media/');//Media dir absolute path
define("STAND_ALONE",$_GET['sa']);
define("THE_TYPE",'file');//$_GET['type']);
define('CHANGE_URL',$ezfilemanager['url'][THE_TYPE]);
define('CHANGE_PATH',$ezfilemanager['path'][THE_TYPE]);
define('WORKING_PATH',$ezfilemanager['path'][THE_TYPE].$_GET['thedir']);
if (!defined('LANG'))
define('LANG','en');

I believe the error is your Tiny_MCE config
Unfortunately the image was too small, I could not read the Tiny_MCE config.
Please send me your Tiny_mce config..
Also you have some errors in the ez config
e.g.
define('WN_PATH','F:\apache2triad\htdocs\magento2\\');//domain root absolute path
remove F: (it will give invalid path error)
define('WN_PATH','/apache2triad/htdocs/magento2/');
Also although the script should work with forward slashes, better use backslashes

Add Comments

Optional

captcha


Products
Free Scripts
Terms & Legal
Featured Clients
Blockmountings
Ararat Futsal
Tyres 4u
Cyprus Golf Federation
Ameicana Hotel UK
Limassol Golf Club
Platos Bar
Chris Law