Accessright to usermgr.php Accessright to usermgr.php
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Accessright to usermgr.php

Started by Senator, April 10, 2006, 09:17:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Senator

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.

Joachim Müller

edit usermgr.php, findif (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 withif (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)

Senator

Thx for your fast helping, it works.

Please can you help me with my other question too.

QuoteI 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.

Joachim Müller

One issue per thread, no cross-posting! Taking karma, marking thread accordingly and locking >:(. Respect board rules in the future!