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: How to restrict access  (Read 3775 times)

0 Members and 1 Guest are viewing this topic.

jfreak53

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
How to restrict access
« on: October 15, 2004, 07:23:33 pm »

I would like to restrict access to the large image files for people not registered as users of my gallery, I already used this one that the FAQ gave me:

if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);
just before


/**************************************************************************
* Local functions definition
**************************************************************************/

in the file "displayimage.php", but this blocks the whole page, I want that page to come up and show the normal smaller size photo, but what I don't want is for the unregistered users to be able to see the exploded pic..How would I do this?
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
« Last Edit: October 15, 2004, 07:46:16 pm by TranzNDance »
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.