redirect un-registered users to login (bridged vb3) redirect un-registered users to login (bridged vb3)
 

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

redirect un-registered users to login (bridged vb3)

Started by m0nty, December 14, 2004, 12:37:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

m0nty

hi, a client of mine asked me last night if it was possible to make her gallery viewable to members only, which i know is possible.

but she requires that people who aren't logged on to not be able to view the gallery at all, and would like them to be redirected to the login page.

i found this topic > http://forum.coppermine-gallery.net/index.php?topic=3503.20

but it's just for standalone version, and i'm wondering if this would still work with a CPG 1.3.2 bridged VB3 install, or would further hacking be needed?

i'm not at home for a couple days, so i can't access her server or my test server at home to be able to try it but i would like to know if the if (USER_ID) method will work the same.

regards

Vaughan

Nibbler

It'll work. The bridge files still set the standard constants like USER_ID and USER_NAME.