How to restrict access How to restrict access
 

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

How to restrict access

Started by jfreak53, October 15, 2004, 07:23:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jfreak53

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?

Tranz