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: Exclusion  (Read 4260 times)

0 Members and 1 Guest are viewing this topic.

brandsvend

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Exclusion
« on: October 11, 2005, 09:35:56 pm »

I wonder if there is a hack that makes anonymous users see all galleries but NOT the user galleries... :-\\
Is this possible?
« Last Edit: October 11, 2005, 10:28:43 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Exclusion
« Reply #1 on: October 11, 2005, 09:44:54 pm »

index.php,

find

Code: [Select]
if (isset($HTTP_GET_VARS['cat'])) {
    $cat = (int)$HTTP_GET_VARS['cat'];
}

change to

Code: [Select]
if (isset($HTTP_GET_VARS['cat'])) {
    $cat = (int)$HTTP_GET_VARS['cat'];
if (($cat == USER_GAL_CAT || $cat > FIRST_USER_CAT) && !USER_ID) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
Logged

brandsvend

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Exclusion
« Reply #2 on: October 11, 2005, 10:06:30 pm »

COOL!

But some of the pictures are still shown in 'Random files' and 'Last additions' on the front page - could these be turned off?
Logged

Nibbler

  • Guest
Re: Exclusion
« Reply #3 on: October 11, 2005, 10:11:41 pm »

You should be able to set the viewing permissions in album properties.

http://coppermine-gallery.net/demo/cpg13x/docs/index.htm#album_prop
Logged

brandsvend

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Exclusion
« Reply #4 on: October 11, 2005, 10:19:01 pm »

Beautiful! Sorry about the newbie questions - everything is sweeeet now!
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.