Advanced search  

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]

Pages: [1]   Go Down

Author Topic: how would we only allow a certain group to view a page?  (Read 2255 times)

0 Members and 1 Guest are viewing this topic.

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
how would we only allow a certain group to view a page?
« on: May 25, 2004, 01:57:44 am »

hey:)

how would we only allow a certain group to view a page?

lets say i want group "A" to be able to view all the images

but

i want group "B" only to view thumbnails

how would i go about getting this to work?



if (A){

 } else {
{
    $redirect = $redirect . "you are not allowed to view this page.php";
   header("Location: $redirect");

    exit();

}}


something like this?
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Re: how would we only allow a certain group to view a page?
« Reply #1 on: May 25, 2004, 04:21:54 am »

DefenceTalk made a mod for this that is in the Mods forum.  Look for something like 'Only Registered users can view images.'
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)
Pages: [1]   Go Up
 

Page created in 0.032 seconds with 15 queries.