GLACIER How can I prevent deleting a specific folder or a file?
Two ways:
- Assign no-write permissions on the folder, so it simply can't be deleted.
- Use the dirs_exclude option to entirely exclude certain dirs from being accessed (and therefore can't be deleted either).
GLACIER Also, how can I hide a specific file or a folder?
By using config settings files_exclude and dirs_exclude.
Then you are doing something wrong, I can't see from here. You can't just rewrite anything you want ... Files Gallery needs to access itself and documents from url's.
Besides, why not instead just create a folder file-manager
with index.php
inside? Then it can be accessed domain.com/file-manager
.