Password-protected galleries
Finally, minishowcase got password protection for individual galleries.
The script is rather simle, so please don’t use it to protect sensitive data. It relies on a file which name you can change in $settings['password_filename'] inside /config/settings.php. The defualt name is ‘password.php’. It is highly recommended that you change the setting before using passwords, as failing to do so might render the password vulnerable.
So, after changing the name (for example to ’security’), add a file ’security.php’ inside the gallery folder you want to protect and voilà, your gallery will be protected! Users will then be prompted for the password when clicking on the menu link. Unfortunately they’ll be prompted every time they visited the same gallery.
I’m working in a more stable version where you can control how long the password is valid, so not to annoy the users with constant password request.
For the moment, I hope you enjoy the new protected minishowcase.