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: Accessright to usermgr.php  (Read 3022 times)

0 Members and 1 Guest are viewing this topic.

Senator

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 59
Accessright to usermgr.php
« on: April 10, 2006, 09:17:52 am »

How can i change the userright in usermgr.php.

the meaning is that unregisted users also can see the userslist.

How must i change that.
« Last Edit: April 10, 2006, 10:45:13 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Accessright to usermgr.php
« Reply #1 on: April 10, 2006, 10:21:36 am »

edit usermgr.php, find
Code: [Select]
if (USER_ID !='') {
 if (GALLERY_ADMIN_MODE) {
  $lim_user = 0;
  $number_of_columns = 9;
 }
 elseif ($CONFIG['allow_memberlist']) {
  $lim_user = 1;
  $number_of_columns = 7;
  show_memberlist;
 }
 else {
  $lim_user = 2;
  cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
 }
}
else {
 $lim_user = 3;
 cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
and replace with
Code: [Select]
if (USER_ID !='') {
 if (GALLERY_ADMIN_MODE) {
  $lim_user = 0;
  $number_of_columns = 9;
 }
 elseif ($CONFIG['allow_memberlist']) {
  $lim_user = 1;
  $number_of_columns = 7;
  show_memberlist;
 }
 else {
  $lim_user = 2;
  cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
 }
}
 elseif ($CONFIG['allow_memberlist']) {
  $lim_user = 3;
  $number_of_columns = 7;
  show_memberlist;
}else {
 $lim_user = 3;
 cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
(not tested)
Logged

Senator

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 59
Re: Accessright to usermgr.php
« Reply #2 on: April 10, 2006, 10:35:18 am »

Thx for your fast helping, it works.

Please can you help me with my other question too.

Quote
I have a litle question. How can i copy the extra fields they normaly displayed bij the imagedesricption, view under the filedescription.

Example i've make an extra field Price, now i want is show under the filedescription.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Accessright to usermgr.php
« Reply #3 on: April 10, 2006, 10:44:56 am »

One issue per thread, no cross-posting! Taking karma, marking thread accordingly and locking >:(. Respect board rules in the future!
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.