mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Added IPHelper implementation (#631)
This commit is contained in:
parent
2ac13bbc50
commit
ef4e1aa18f
11 changed files with 152 additions and 60 deletions
|
@ -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'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue