How to restrict access How to restrict access
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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