mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Simplified IPHelper (#712)
This commit is contained in:
parent
8a5bac558f
commit
d9d38935b6
11 changed files with 17 additions and 90 deletions
|
@ -112,8 +112,8 @@ switch ($mode) {
|
|||
} elseif ($profiledata['user_level'] == MOD && IS_MOD) {
|
||||
$reg_ip = $last_ip = $lang['HIDDEN'];
|
||||
} else {
|
||||
$user_reg_ip = \TorrentPier\Helpers\IPHelper::decodeIP($profiledata['user_reg_ip']);
|
||||
$user_last_ip = \TorrentPier\Helpers\IPHelper::decodeIP($profiledata['user_last_ip']);
|
||||
$user_reg_ip = \TorrentPier\Helpers\IPHelper::long2ip($profiledata['user_reg_ip']);
|
||||
$user_last_ip = \TorrentPier\Helpers\IPHelper::long2ip($profiledata['user_last_ip']);
|
||||
$reg_ip = '<a href="' . $bb_cfg['whois_info'] . $user_reg_ip . '" class="gen" target="_blank">' . $user_reg_ip . '</a>';
|
||||
$last_ip = '<a href="' . $bb_cfg['whois_info'] . $user_last_ip . '" class="gen" target="_blank">' . $user_last_ip . '</a>';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue