Skip to content

lusterx/filemanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP File Manager

A good solution for managing files and folders on your site.

PHP File Manager

How to use

Copy filemanager.php to your website and open it on browser (e.g. http://yoursite/any_path/filemanager.php).

Default username/password: fm_admin/fm_admin

Warning: Please set your own username and password in $auth_users before use.

To enable/disable authentication set $use_auth to true or false.

You can include file manager in another scripts. Just define FM_EMBED and other necessary variables. Example:

class SomeController
{
    public function actionIndex()
    {
        define('FM_EMBED', true);
        define('FM_LANG', 'en');
        define('FM_SELF_URL', UrlHelper::currentUrl());
        require 'path/to/filemanager.php';
    }
}

Supports variables FM_LANG, FM_ROOT_PATH, FM_ROOT_URL, FM_SELF_URL.

Localization

To change default language set $lang value to one of supported languages in list below.

You can create file filemanager-l10n.php in folder with File Manager and put your own translations in it. They will be merged with built-in translations.

Bug tracker

If you have any issues with file manager, you may report them on Issue tracker.

License

This software is released under the MIT license.

Icons by Yusuke Kamiyamane.

About

File manager in a single php file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%