Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/wordfenc.../lib
File: IPTrafList.php
<?php if (!defined('WORDFENCE_VERSION')) { exit; } ?>
[0] Fix | Delete
<?php
[1] Fix | Delete
if (!wfUtils::isAdmin()) {
[2] Fix | Delete
exit();
[3] Fix | Delete
}
[4] Fix | Delete
/**
[5] Fix | Delete
* @var array $results
[6] Fix | Delete
*/
[7] Fix | Delete
?>
[8] Fix | Delete
<table border="0" cellpadding="2" cellspacing="0" class="wf-recent-traffic-table">
[9] Fix | Delete
<?php foreach ($results as $key => $v) { ?>
[10] Fix | Delete
<tr>
[11] Fix | Delete
<th><?php esc_html_e('Time:', 'wordfence') ?></th>
[12] Fix | Delete
<td><?php esc_html_e(sprintf(
[13] Fix | Delete
/* translators: 1. Time ago, example: 2 hours, 40 seconds. 2. Localized date. 3. Unix timestamp. */
[14] Fix | Delete
__('%1$s ago -- %2$s -- %3$s in Unixtime', 'wordfence'), $v['timeAgo'], date(DATE_RFC822, (int) $v['ctime']), $v['ctime'])) ?></td>
[15] Fix | Delete
</tr>
[16] Fix | Delete
<?php if ($v['timeSinceLastHit']) {
[17] Fix | Delete
echo '<th>' . esc_html__('Seconds since last hit:', 'wordfence') . '</th><td>' . $v['timeSinceLastHit'] . '</td></tr>';
[18] Fix | Delete
} ?>
[19] Fix | Delete
<tr>
[20] Fix | Delete
<th><?php esc_html_e('URL:', 'wordfence') ?></th>
[21] Fix | Delete
<td>
[22] Fix | Delete
<a href="<?php echo esc_url($v['URL']) ?>" target="_blank" rel="noopener noreferrer"><?php echo esc_html($v['URL']); ?><span class="screen-reader-text"> (<?php esc_html_e('opens in new tab', 'wordfence') ?>)</span></a>
[23] Fix | Delete
</td>
[24] Fix | Delete
</tr>
[25] Fix | Delete
<tr>
[26] Fix | Delete
<th>Type:</th>
[27] Fix | Delete
<td><?php
[28] Fix | Delete
if ($v['statusCode'] == '404') {
[29] Fix | Delete
echo '<span style="color: #F00;">' . esc_html__('Page not found', 'wordfence') . '</span>';
[30] Fix | Delete
}
[31] Fix | Delete
else if ($v['type'] == 'hit') {
[32] Fix | Delete
esc_html_e('Normal request', 'wordfence');
[33] Fix | Delete
} ?></td>
[34] Fix | Delete
</tr>
[35] Fix | Delete
<?php if ($v['referer']) { ?>
[36] Fix | Delete
<tr>
[37] Fix | Delete
<th><?php esc_html_e('Referrer:', 'wordfence') ?></th>
[38] Fix | Delete
<td>
[39] Fix | Delete
<a href="<?php echo esc_url($v['referer']); ?>" target="_blank" rel="noopener noreferrer"><?php echo esc_html($v['referer']); ?><span class="screen-reader-text"> (<?php esc_html_e('opens in new tab', 'wordfence') ?>)</span></a>
[40] Fix | Delete
</td></tr><?php } ?>
[41] Fix | Delete
<tr>
[42] Fix | Delete
<th><?php esc_html_e('Full Browser ID:', 'wordfence') ?></th>
[43] Fix | Delete
<td><?php echo esc_html($v['UA']); ?></td>
[44] Fix | Delete
</tr>
[45] Fix | Delete
<?php if ($v['user']) { ?>
[46] Fix | Delete
<tr>
[47] Fix | Delete
<th><?php esc_html_e('User:', 'wordfence') ?></th>
[48] Fix | Delete
<td>
[49] Fix | Delete
<a href="<?php echo esc_url($v['user']['editLink']); ?>" target="_blank" rel="noopener noreferrer"><span data-userid="<?php echo esc_attr($v['user']['ID']); ?>" class="wfAvatar"></span><?php echo esc_html($v['user']['display_name']); ?><span class="screen-reader-text"> (<?php esc_html_e('opens in new tab', 'wordfence') ?>)</span></a>
[50] Fix | Delete
</td>
[51] Fix | Delete
</tr>
[52] Fix | Delete
<?php } ?>
[53] Fix | Delete
<?php if ($v['loc']) { ?>
[54] Fix | Delete
<tr>
[55] Fix | Delete
<th><?php esc_html_e('Location:', 'wordfence') ?></th>
[56] Fix | Delete
<td>
[57] Fix | Delete
<span class="wf-flag <?php echo esc_attr('wf-flag-' . strtolower($v['loc']['countryCode'])); ?>" title="<?php echo esc_attr($v['loc']['countryName']); ?>"></span>
[58] Fix | Delete
<?php if ($v['loc']['city']) {
[59] Fix | Delete
echo esc_html($v['loc']['city']) . ', ';
[60] Fix | Delete
} ?>
[61] Fix | Delete
<?php
[62] Fix | Delete
if ($v['loc']['region'] && wfUtils::shouldDisplayRegion($v['loc']['countryName'])) {
[63] Fix | Delete
echo esc_html($v['loc']['region']) . ', ';
[64] Fix | Delete
} ?>
[65] Fix | Delete
<?php echo esc_html($v['loc']['countryName']); ?>
[66] Fix | Delete
</td>
[67] Fix | Delete
</tr>
[68] Fix | Delete
<?php } ?>
[69] Fix | Delete
<tr class="wf-recent-traffic-table-row-border">
[70] Fix | Delete
<td colspan="2"><div></div></td>
[71] Fix | Delete
</tr>
[72] Fix | Delete
<?php } ?>
[73] Fix | Delete
[74] Fix | Delete
</table>
[75] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function