How to restrict access How to restrict access
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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