Git Product home page Git Product logo

filemanager-1's Introduction

PHP File Manager

A good solution for managing files and folders for developers who can't access their site over SSH or FTP.

PHP File Manager

WARNING! Do not use this script as a regular file manager in public area. After all actions you must delete this script from the server.

Requirements

  • PHP 5.2 or higher.
  • Zip extension for zip and unzip actions.
  • Fileinfo, iconv and mbstring extensions are strongly recommended.

How to use

Download ZIP with the latest version from the master branch.

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

Security

Default username/password: fm_admin/fm_admin

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

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

For better security enable HTTP Authentication in your web server.

Embedding

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

class SomeController
{
    public function actionIndex()
    {
        define('FM_EMBED', true);
        define('FM_SELF_URL', UrlHelper::currentUrl()); // must be set if URL to manager not equal PHP_SELF
        require 'path/to/filemanager.php';
    }
}

Supported constants:

  • FM_ROOT_PATH - default is $_SERVER['DOCUMENT_ROOT']
  • FM_ROOT_URL - default is 'http(s)://site.domain/'
  • FM_SELF_URL - default is 'http(s)://site.domain/' . $_SERVER['PHP_SELF']
  • FM_ICONV_INPUT_ENC - default is 'CP1251'
  • FM_USE_HIGHLIGHTJS - default is true
  • FM_HIGHLIGHTJS_STYLE - default is 'vs'
  • FM_DATETIME_FORMAT - default is 'd.m.y H:i'

Alternatives

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.

filemanager-1's People

Contributors

alexantr avatar nikaro avatar rehmatworks avatar roblui avatar zhigalin avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.