mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Fixed: Moderators can't see self IP addresses (#1049)
This commit is contained in:
parent
444a872579
commit
130628248d
2 changed files with 2 additions and 2 deletions
|
@ -926,7 +926,7 @@ if (!isset($_REQUEST['dosearch'])) {
|
||||||
'USER' => profile_url($rowset[$i]),
|
'USER' => profile_url($rowset[$i]),
|
||||||
'EMAIL' => $rowset[$i]['user_email'],
|
'EMAIL' => $rowset[$i]['user_email'],
|
||||||
'JOINDATE' => bb_date($rowset[$i]['user_regdate']),
|
'JOINDATE' => bb_date($rowset[$i]['user_regdate']),
|
||||||
'LASTVISIT' => bb_date($rowset[$i]['user_lastvisit']),
|
'LASTVISIT' => $rowset[$i]['user_lastvisit'] ? bb_date($rowset[$i]['user_lastvisit']) : $lang['NEVER'],
|
||||||
'POSTS' => $rowset[$i]['user_posts'],
|
'POSTS' => $rowset[$i]['user_posts'],
|
||||||
'BAN' => (!isset($banned[$rowset[$i]['user_id']])) ? $lang['NOT_BANNED'] : $lang['BANNED'],
|
'BAN' => (!isset($banned[$rowset[$i]['user_id']])) ? $lang['NOT_BANNED'] : $lang['BANNED'],
|
||||||
'ABLED' => $rowset[$i]['user_active'] ? $lang['ENABLED'] : $lang['DISABLED'],
|
'ABLED' => $rowset[$i]['user_active'] ? $lang['ENABLED'] : $lang['DISABLED'],
|
||||||
|
|
|
@ -121,7 +121,7 @@ switch ($mode) {
|
||||||
|
|
||||||
if ($profiledata['user_level'] == ADMIN && !IS_ADMIN) {
|
if ($profiledata['user_level'] == ADMIN && !IS_ADMIN) {
|
||||||
$reg_ip = $last_ip = $lang['HIDDEN'];
|
$reg_ip = $last_ip = $lang['HIDDEN'];
|
||||||
} elseif ($profiledata['user_level'] == MOD && IS_MOD) {
|
} elseif ($profiledata['user_level'] == MOD && !IS_AM) {
|
||||||
$reg_ip = $last_ip = $lang['HIDDEN'];
|
$reg_ip = $last_ip = $lang['HIDDEN'];
|
||||||
} else {
|
} else {
|
||||||
$user_reg_ip = \TorrentPier\Helpers\IPHelper::long2ip_extended($profiledata['user_reg_ip']);
|
$user_reg_ip = \TorrentPier\Helpers\IPHelper::long2ip_extended($profiledata['user_reg_ip']);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue