Personal Album protected by .htaccess Personal Album protected by .htaccess
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Personal Album protected by .htaccess

Started by NickDE, February 24, 2005, 08:56:30 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

NickDE

hi,

i've created an useralbum wich is protected with an .htaccess-file. all works fine on this way. if the private gallery is selected by a user, the authenfication-window pops up and the user can fill in his username and password. if a user had no permissons for this private album or if a user is chlicking on the cancel-button, you will see the "normal" album-page without any pictures. instead of pictures you will see an image with the red "x".

Is there a way, instead of showing this picture with the read "x" to show a pictures with an information, that the user has no access to this gallery? or can i redirect to an information-page that show's the user, that he has no access? normaly if the authentication failed, the ie will show an information-page, the the user has no access.

thanks for an information and greetings

nick

Joachim Müller

If you use .htaccess authentification, it's expected behaviour that a red cross appears instead of the actual image if a users fails to authenticate. That's why we created an authentification method for coppermine that is capable of doing what you want: if a user is allowed to see a pic, he will see it. If he isn't, he won't.
Why don't you drop the .htaccess method and use the built-in user management coppermine offers? If you can't or won't, you will have to live with the red cross apearing when authentification failed - this is not a coppermine issue, but a question of webserver setup, consult the apache docs for details.

Joachim

Tarique Sani

Try and marry the CPG and .htaccess method - it will need some header magic but is doable - do post here if you succeed
SANIsoft PHP applications for E Biz