Added IPHelper implementation (#631)

This commit is contained in:
Roman Kelesidis 2023-03-20 13:52:28 +07:00 committed by GitHub
commit ef4e1aa18f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 152 additions and 60 deletions

View file

@ -587,7 +587,7 @@ switch ($mode) {
bb_die($lang['NO_SUCH_POST']);
}
if (!$ip_this_post = decode_ip($post_row['poster_ip'])) {
if (!$ip_this_post = \TorrentPier\Helpers\IPHelper::decodeIP($post_row['poster_ip'])) {
$ip_this_post = $lang['NOT_AVAILABLE'];
}
@ -619,7 +619,7 @@ switch ($mode) {
continue;
}
if (!$ip = decode_ip($row['poster_ip'])) {
if (!$ip = \TorrentPier\Helpers\IPHelper::decodeIP($row['poster_ip'])) {
$ip = $lang['NOT_AVAILABLE'];
}