Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $opts = array(
- 'debug' => true,
- 'roots' => array(
- array(
- 'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED)
- 'path' => '../files/', // path to files (REQUIRED)
- 'URL' => dirname($_SERVER['PHP_SELF']) . '/../files/', // URL to files (REQUIRED)
- 'uploadDeny' => array('all'), // All Mimetypes not allowed to upload
- 'uploadAllow' => array('image', 'text/plain'),// Mimetype `image` and `text/plain` allowed to upload
- 'uploadOrder' => array('deny', 'allow'), // allowed Mimetype `image` and `text/plain` only
- 'accessControl' => 'access', // disable and hide dot starting files (OPTIONAL)
- 'attributes' => array(
- array(
- 'pattern' => '/^.IT/LockedFolder/', //You can also set permissions for file types by adding, for example, .jpg inside pattern.
- 'read' => true,
- 'write' => false,
- 'locked' => true,
- )
- )
- )
- )
- );
- // run elFinder
- $connector = new elFinderConnector(new elFinder($opts));
- $connector->run();
- 'pattern' => '/^.IT/',
- user_id | folder_name | read | write | locked
- 1 | IT | true | false | true
- 2 | IT/LockedFolder | false | false | false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement