Revert "Update modcp.php"

This reverts commit e959c5140c.
This commit is contained in:
Roman Kelesidis 2024-04-30 16:23:36 +07:00
parent e959c5140c
commit c51745bc2d

View File

@ -695,7 +695,7 @@ switch ($mode)
$template->assign_vars(array(
'TPL_MODCP_IP' => true,
'IP' => (verify_ip($ip_this_post)) ? '<a href="' . $bb_cfg['whois_info'] . $ip_this_post . '" class="gen" target="_blank">' . $ip_this_post . '</a>' : htmlCHR($ip_this_post),
'IP' => (verify_ip($ip_this_post)) ? '<a href="' . $bb_cfg['whois_info'] . $ip_this_post . '" class="gen" target="_blank">' . $ip_this_post . '</a>' : $ip_this_post,
'U_LOOKUP_IP' => (!$no_lookup) ? "modcp.php?mode=ip&amp;" . POST_POST_URL . "=$post_id&amp;" . POST_TOPIC_URL . "=$topic_id&amp;rdns=$ip_this_post&amp;sid=" . $userdata['session_id'] : '',
));
unset($no_lookup);
@ -734,7 +734,7 @@ switch ($mode)
$template->assign_block_vars('iprow', array(
'ROW_CLASS' => !($i % 2) ? 'row4' : 'row5',
'IP' => (verify_ip($ip)) ? '<a href="' . $bb_cfg['whois_info'] . $ip . '" class="gen" target="_blank">' . $ip . '</a>' : htmlCHR($ip),
'IP' => (verify_ip($ip)) ? '<a href="' . $bb_cfg['whois_info'] . $ip . '" class="gen" target="_blank">' . $ip . '</a>' : $ip,
'POSTS' => $row['postings'],
'U_LOOKUP_IP' => (!$no_lookup) ? "modcp.php?mode=ip&amp;" . POST_POST_URL . "=$post_id&amp;" . POST_TOPIC_URL . "=$topic_id&amp;rdns=" . $ip . "&amp;sid=" . $userdata['session_id'] : '',
));