coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: bit bit spears on May 25, 2004, 01:57:44 AM

Title: how would we only allow a certain group to view a page?
Post by: bit bit spears 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?
Title: Re: how would we only allow a certain group to view a page?
Post by: hyperion 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.'