forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: jfreak53 on October 15, 2004, 07:23:33 pm

Title: How to restrict access
Post by: jfreak53 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?
Title: Re: How to restrict access
Post by: Tranz on October 15, 2004, 07:40:48 pm
http://forum.coppermine-gallery.net/index.php?topic=7636.0