Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Personal Album protected by .htaccess  (Read 4183 times)

0 Members and 1 Guest are viewing this topic.

NickDE

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Personal Album protected by .htaccess
« on: February 24, 2005, 08:56:30 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Personal Album protected by .htaccess
« Reply #1 on: February 24, 2005, 09:49:19 am »

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
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: Personal Album protected by .htaccess
« Reply #2 on: February 24, 2005, 10:35:50 am »

Try and marry the CPG and .htaccess method - it will need some header magic but is doable - do post here if you succeed
Logged
SANIsoft PHP applications for E Biz
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.