Karl s, et éventuellement des dossiers racine différents
Yes, I thought about it afterwards and it could be interesting to have a home directory for each user while keeping the possibility of having a common folder with different rights...
Karl pourquoi ne pas simplement la déposer index.phpdans le dossier cloud racine ?
It works like that indeed, i did not tried this structure because of your previous advice :
Karl I would NOT place it inside your main public files dir ...
Karl You mean you want different login users with different root folders?
I thought that the elegant way shall be that when you access to the Web root, the Files Gallery check if there is public access, if yes it opens with a button in the menu to login with different user, if not show directly the authentication form and when you enter a user, it inherit a custom conf. (in first time to the unique root folder) and in next time of development to a home directory (so it need to set in the conf which folder is a common folder)...
Maybe a JSON structure for the config file to have a multilevel declarations, like that :
{ users :
[
{ "public" : ['root' : './public', 'username' : '', 'password' : '', 'storage_path' : '.'] },
{ "admin" : ['root' : '.', 'username' : 'admin', 'password' : 'baba', 'storage_path' : '.', 'allow_upload' : true, 'allow_delete' : true, 'allow_rename' : true, 'allow_new_folder' : true, 'allow_new_file' : true, 'allow_duplicate' : true, 'allow_text_edit' : true ] },
{ "custom1" : ['root' : './ali', 'username' : 'ali', 'password' : 'baba', 'storage_path' : '.', 'allow_upload' : true, 'allow_delete' : true, 'allow_rename' : true, 'allow_new_folder' : true, 'allow_new_file' : true, 'allow_duplicate' : true, 'allow_text_edit' : true ] },
{ "custom2" : ...},
],
"license_key" : "",
...
}
Maybe in php, i don't know...