Author: Bharat Mediratta
This script will identify any data files in your Gallery2 that are stored in lowercase when Gallery2 is expecting them to be in uppercase. Gallery2 is case sensitive, so the wrong casing will cause it to think that the files are missing. This can help you fix the problem if you accidentaly store your Gallery2 data on a system that is case insensitive (like Windows FAT32). It won't take any action, it just gives you a list of commands that you can run yourself.
To use it, just copy this script into your Gallery2 directory and then open it up in your web browser. Cut and paste the lines that it gives you into a shell or ftp script and run them