Passing PHP variables to elFinder

Added by Johnny Blaze 10 months ago

Hi All
First of all, awesome job guys, really is an amazing project
I have spent a couple of days integrating elFinder into a personal website - but I am a little stuck as to how to pass specific PHP variables to elFinder. For example, I have a normal php templated website concept, and have included elFinder into one of the pages (documents section). However, I want to set specific folder permissions based on the user, for example the user has a specific folder called "John" which he is able to modify etc... I tried to specify the user variable based on a variable set in the template file ($username), but it seems that elfinder does not pick up any php variables in the file connector.php unless it's initialised in that file itself - which doesn't make it very dynamic :(

Can anybody help please?


Replies (3)

RE: Passing PHP variables to elFinder - Added by Dmitry Levashov 10 months ago

I think you have to generate options for elFinder dinamically based on your own logic.
Try to use elFinder 2.0 beta http://elfinder.org/ https://github.com/Studio-42/elFinder its awesome :)

RE: Passing PHP variables to elFinder - Added by Johnny Blaze 10 months ago

my god...it IS amazing! :) thanks :D

(1-3/3)