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: Security  (Read 5514 times)

0 Members and 1 Guest are viewing this topic.

Daveo

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Security
« on: August 31, 2005, 12:04:53 pm »

How can i stop unregistered user from viewing my photos, i want to only select users that i know, i don’t want any other guest viewing them. How can i set this up?
« Last Edit: August 31, 2005, 01:18:48 pm by Nibbler »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Security
« Reply #1 on: August 31, 2005, 12:18:33 pm »

from the FAQs... anon users redirected to register.php
http://coppermine.sourceforge.net/faq.php#registeredUsersOnly

I don't like that very much so I allow anon to only view thumbs but not the normal and fullsized

in displayimage.php after
Code: [Select]
require('include/init.inc.php');add
Code: [Select]
// mod - only registererd users can view images
$unregisteredcanviewthumbs=false;
if(!$unregisteredcanviewthumbs)
  if(!USER_ID) cpg_die(ERROR, 'You must be a registered user to do that!<BR>Please register or login!', __FILE__, __LINE__);
// end mod

you can set it to true/ false... you also can make this a config setting... no problem at all ;)

Daveo

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Security
« Reply #2 on: August 31, 2005, 12:55:01 pm »

spot on nice one! ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 15 queries.