ZenphotoCMS Forum
Password protected album not locked - why? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Password protected album not locked - why? (/thread-5305.html)



Password protected album not locked - why? - fxk - 09-06-2009

Hi,

I created a gallery at http://photos.project22.org and protected some of the albums, like http://photos.project22.org/klettern.

To check this, I logged out, forwarded the link to friends

  • everywhere I could still see the photos. Have a look yourself.

ZP 1.2.5 (SVN 4060)
What I did?
Well, I added a Album password, two times - ("klettern") - I also tried using a Guest User Name, tried it without ...
Any hints?

Thanks so much, fxk




Password protected album not locked - why? - sbillard - 10-06-2009

Seems to be broken. We will have to figure out what happened.




Password protected album not locked - why? - sbillard - 10-06-2009

Ok, found the difficulty. It will be fixed in tonight's build, but that may not be so stable as there has been a lot of change going into it recently.

You can change the function checkAlbumPassword($albumname, &$hint) in functions.php circa line 545. There is a line that reads
global $_zp_pre_authorization, $_zp_loggedin;
and needs to read
global $_zp_pre_authorization, $_zp_loggedin, $_zp_gallery;




Password protected album not locked - why? - fxk - 10-06-2009

Thanks again for a very fast reply!!!
I'll do a new checkout later tonite.

fxk




Password protected album not locked - why? - fxk - 11-06-2009

Works fine now, after the latest checkout!
Fxk