Coppermine is a photo-gallery software system written in PHP. http://coppermine-gallery.net/index.php