i'm seeking to do it myself and post the code but, i seek a function that return is the album is protected or not in order to modify printAlbumThumbImage()
edit :
In printAlbumThumbImage() you need to add :
if (empty($pwd)){
// The AlbumThumbImage.
echo "";
}else{
// A padlocks icon.
}