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.../views/reports
File: activity-report.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* @var wfActivityReportView $this
[3] Fix | Delete
*/
[4] Fix | Delete
?>
[5] Fix | Delete
<a class="wf-logo" href="//www.wordfence.com/zz8/"><img src="<?php echo wfUtils::getBaseURL(); ?>images/wf-horizontal.svg" alt="Wordfence"/></a>
[6] Fix | Delete
[7] Fix | Delete
<h2><?php printf(/* translators: Number of IPs. */ esc_html__('Top %d IPs Blocked', 'wordfence'), $limit); ?></h2>
[8] Fix | Delete
[9] Fix | Delete
<?php wfHelperString::cycle(); ?>
[10] Fix | Delete
[11] Fix | Delete
<table class="wf-striped-table wf-fixed-table">
[12] Fix | Delete
<thead>
[13] Fix | Delete
<tr>
[14] Fix | Delete
<th width="40%"><?php esc_html_e('IP', 'wordfence'); ?></th>
[15] Fix | Delete
<th width="35%"><?php esc_html_e('Country', 'wordfence'); ?></th>
[16] Fix | Delete
<th width="25%"><?php esc_html_e('Block Count', 'wordfence'); ?></th>
[17] Fix | Delete
</tr>
[18] Fix | Delete
</thead>
[19] Fix | Delete
<tbody>
[20] Fix | Delete
<?php
[21] Fix | Delete
if ($top_ips_blocked):
[22] Fix | Delete
require(dirname(__FILE__) . '/../../lib/flags.php'); /** @var array $flags */
[23] Fix | Delete
foreach ($top_ips_blocked as $row): ?>
[24] Fix | Delete
<tr class="<?php echo wfHelperString::cycle('odd', 'even') ?>">
[25] Fix | Delete
<td class="wf-split-word"><code><?php echo wfUtils::inet_ntop($row->IP) ?></code></td>
[26] Fix | Delete
<td>
[27] Fix | Delete
<?php if ($row->countryCode): ?>
[28] Fix | Delete
<span class="wf-flag <?php echo esc_attr('wf-flag-' . strtolower($row->countryCode)); ?>" title="<?php echo esc_attr($row->countryName); ?>"></span>
[29] Fix | Delete
&nbsp;
[30] Fix | Delete
<?php echo esc_html($row->countryName) ?>
[31] Fix | Delete
<?php else: ?>
[32] Fix | Delete
<?php esc_html_e('(Unknown)', 'wordfence'); ?>
[33] Fix | Delete
<?php endif ?>
[34] Fix | Delete
</td>
[35] Fix | Delete
<td><?php echo (int) $row->blockCount ?></td>
[36] Fix | Delete
</tr>
[37] Fix | Delete
<?php endforeach ?>
[38] Fix | Delete
<?php else: ?>
[39] Fix | Delete
<tr>
[40] Fix | Delete
<td colspan="3">
[41] Fix | Delete
<?php esc_html_e('No IPs blocked yet.', 'wordfence'); ?>
[42] Fix | Delete
</td>
[43] Fix | Delete
</tr>
[44] Fix | Delete
<?php endif ?>
[45] Fix | Delete
</tbody>
[46] Fix | Delete
</table>
[47] Fix | Delete
[48] Fix | Delete
<p>
[49] Fix | Delete
<a class="button button-primary" href="<?php echo wfUtils::wpAdminURL('admin.php?page=WordfenceWAF#top#blocking') ?>"><?php esc_html_e('Update Blocked IPs', 'wordfence'); ?></a>
[50] Fix | Delete
</p>
[51] Fix | Delete
[52] Fix | Delete
<?php wfHelperString::cycle(); ?>
[53] Fix | Delete
[54] Fix | Delete
<h2><?php printf(/* translators: Number of countries. */ __('Top %d Countries Blocked', 'wordfence'), $limit); ?></h2>
[55] Fix | Delete
[56] Fix | Delete
<table class="wf-striped-table wf-fixed-table">
[57] Fix | Delete
<thead>
[58] Fix | Delete
<tr>
[59] Fix | Delete
<th><?php esc_html_e('Country', 'wordfence'); ?></th>
[60] Fix | Delete
<th><?php esc_html_e('Total IPs Blocked', 'wordfence'); ?></th>
[61] Fix | Delete
<th><?php esc_html_e('Block Count', 'wordfence'); ?></th>
[62] Fix | Delete
</tr>
[63] Fix | Delete
</thead>
[64] Fix | Delete
<tbody>
[65] Fix | Delete
<?php
[66] Fix | Delete
if ($top_countries_blocked):
[67] Fix | Delete
require(dirname(__FILE__) . '/../../lib/flags.php'); /** @var array $flags */
[68] Fix | Delete
foreach ($top_countries_blocked as $row): ?>
[69] Fix | Delete
<tr class="<?php echo wfHelperString::cycle('odd', 'even') ?>">
[70] Fix | Delete
<td>
[71] Fix | Delete
<?php if ($row->countryCode): ?>
[72] Fix | Delete
<span class="wf-flag <?php echo esc_attr('wf-flag-' . strtolower($row->countryCode)); ?>" title="<?php echo esc_attr($row->countryName); ?>"></span>
[73] Fix | Delete
&nbsp;
[74] Fix | Delete
<?php echo esc_html($row->countryName) ?>
[75] Fix | Delete
<?php else: ?>
[76] Fix | Delete
<?php esc_html_e('(Unknown)', 'wordfence'); ?>
[77] Fix | Delete
<?php endif ?>
[78] Fix | Delete
</td>
[79] Fix | Delete
<td><?php echo esc_html($row->totalIPs) ?></td>
[80] Fix | Delete
<td><?php echo (int) $row->totalBlockCount ?></td>
[81] Fix | Delete
</tr>
[82] Fix | Delete
<?php endforeach ?>
[83] Fix | Delete
<?php else: ?>
[84] Fix | Delete
<tr>
[85] Fix | Delete
<td colspan="3">
[86] Fix | Delete
<?php esc_html_e('No requests blocked yet.', 'wordfence'); ?>
[87] Fix | Delete
</td>
[88] Fix | Delete
</tr>
[89] Fix | Delete
<?php endif ?>
[90] Fix | Delete
</tbody>
[91] Fix | Delete
</table>
[92] Fix | Delete
[93] Fix | Delete
<p>
[94] Fix | Delete
<a class="button button-primary" href="<?php echo wfUtils::wpAdminURL('admin.php?page=WordfenceWAF#top#blocking') ?>"><?php esc_html_e('Update Blocked Countries', 'wordfence'); ?></a>
[95] Fix | Delete
</p>
[96] Fix | Delete
[97] Fix | Delete
<?php wfHelperString::cycle(); ?>
[98] Fix | Delete
[99] Fix | Delete
<h2><?php printf(/* translators: Number of failed logins. */ esc_html__('Top %d Failed Logins', 'wordfence'), $limit); ?></h2>
[100] Fix | Delete
[101] Fix | Delete
<table class="wf-striped-table wf-fixed-table">
[102] Fix | Delete
<thead>
[103] Fix | Delete
<tr>
[104] Fix | Delete
<th><?php esc_html_e('Username', 'wordfence'); ?></th>
[105] Fix | Delete
<th><?php esc_html_e('Login Attempts', 'wordfence'); ?></th>
[106] Fix | Delete
<th><?php esc_html_e('Existing User', 'wordfence'); ?></th>
[107] Fix | Delete
</tr>
[108] Fix | Delete
</thead>
[109] Fix | Delete
<tbody>
[110] Fix | Delete
<?php if ($top_failed_logins): ?>
[111] Fix | Delete
<?php foreach ($top_failed_logins as $row): ?>
[112] Fix | Delete
<tr class="<?php echo wfHelperString::cycle('odd', 'even') ?>">
[113] Fix | Delete
<td class="wf-split-word"><?php echo esc_html($row->username) ?></td>
[114] Fix | Delete
<td><?php echo esc_html($row->fail_count) ?></td>
[115] Fix | Delete
<td class="<?php echo sanitize_html_class($row->is_valid_user ? 'loginFailValidUsername' : 'loginFailInvalidUsername') ?>"><?php echo $row->is_valid_user ? esc_html__('Yes', 'wordfence') : esc_html__('No', 'wordfence') ?></td>
[116] Fix | Delete
</tr>
[117] Fix | Delete
<?php endforeach ?>
[118] Fix | Delete
<?php else: ?>
[119] Fix | Delete
<tr>
[120] Fix | Delete
<td colspan="3">
[121] Fix | Delete
<?php esc_html_e('No failed logins yet.', 'wordfence'); ?>
[122] Fix | Delete
</td>
[123] Fix | Delete
</tr>
[124] Fix | Delete
<?php endif ?>
[125] Fix | Delete
</tbody>
[126] Fix | Delete
</table>
[127] Fix | Delete
[128] Fix | Delete
<p>
[129] Fix | Delete
<a class="button button-primary" href="<?php echo wfUtils::wpAdminURL('admin.php?page=WordfenceWAF&subpage=waf_options#waf-options-bruteforce') ?>"><?php esc_html_e('Update Login Security Options', 'wordfence'); ?></a>
[130] Fix | Delete
</p>
[131] Fix | Delete
[132] Fix | Delete
<?php wfHelperString::cycle(); ?>
[133] Fix | Delete
[134] Fix | Delete
<?php /*?>
[135] Fix | Delete
<h2>Recently Modified Files</h2>
[136] Fix | Delete
[137] Fix | Delete
<table class="activity-table recently-modified-files">
[138] Fix | Delete
<thead>
[139] Fix | Delete
<tr>
[140] Fix | Delete
<th>Modified</th>
[141] Fix | Delete
<th>File</th>
[142] Fix | Delete
</tr>
[143] Fix | Delete
</thead>
[144] Fix | Delete
<tbody>
[145] Fix | Delete
<?php foreach ($recently_modified_files as $file_row):
[146] Fix | Delete
list($file, $mod_time) = $file_row;
[147] Fix | Delete
?>
[148] Fix | Delete
<tr class="<?php echo wfHelperString::cycle('odd', 'even') ?>">
[149] Fix | Delete
<td style="white-space: nowrap;"><?php echo $this->modTime($mod_time) ?></td>
[150] Fix | Delete
<td class="display-file-table-cell">
[151] Fix | Delete
<pre class="display-file"><?php echo esc_html($this->displayFile($file)) ?></pre>
[152] Fix | Delete
</td>
[153] Fix | Delete
</tr>
[154] Fix | Delete
<?php endforeach ?>
[155] Fix | Delete
</tbody>
[156] Fix | Delete
</table>
[157] Fix | Delete
<?php */ ?>
[158] Fix | Delete
[159] Fix | Delete
[160] Fix | Delete
<?php wfHelperString::cycle(); ?>
[161] Fix | Delete
[162] Fix | Delete
<h2><?php esc_html_e('Updates Needed', 'wordfence'); ?></h2>
[163] Fix | Delete
[164] Fix | Delete
<?php
[165] Fix | Delete
if (!is_array($updates_needed)) {
[166] Fix | Delete
$updates_needed = array('core' => array(), 'plugins' => array(), 'themes' => array());
[167] Fix | Delete
}
[168] Fix | Delete
?>
[169] Fix | Delete
<?php if ($updates_needed['core']): ?>
[170] Fix | Delete
<h4><?php esc_html_e('Core', 'wordfence'); ?></h4>
[171] Fix | Delete
<ul>
[172] Fix | Delete
<li><?php printf(/* translators: WordPress version. */ esc_html__('A new version of WordPress (v%s) is available.', 'wordfence'), esc_html($updates_needed['core'])); ?></li>
[173] Fix | Delete
</ul>
[174] Fix | Delete
<?php endif ?>
[175] Fix | Delete
<?php if ($updates_needed['plugins']): ?>
[176] Fix | Delete
<h4><?php esc_html_e('Plugins', 'wordfence'); ?></h4>
[177] Fix | Delete
<ul>
[178] Fix | Delete
<?php
[179] Fix | Delete
foreach ($updates_needed['plugins'] as $plugin):
[180] Fix | Delete
$newVersion = ($plugin['newVersion'] == 'Unknown' ? $plugin['newVersion'] : "v{$plugin['newVersion']}");
[181] Fix | Delete
?>
[182] Fix | Delete
<li>
[183] Fix | Delete
<?php echo esc_html(sprintf(/* translators: Plugin version. */ __('A new version of the plugin "%s" is available.', 'wordfence'), "{$plugin['Name']} ({$newVersion})")); ?>
[184] Fix | Delete
</li>
[185] Fix | Delete
<?php endforeach ?>
[186] Fix | Delete
</ul>
[187] Fix | Delete
<?php endif ?>
[188] Fix | Delete
<?php if ($updates_needed['themes']): ?>
[189] Fix | Delete
<h4><?php esc_html_e('Themes', 'wordfence'); ?></h4>
[190] Fix | Delete
<ul>
[191] Fix | Delete
<?php
[192] Fix | Delete
foreach ($updates_needed['themes'] as $theme):
[193] Fix | Delete
$newVersion = ($theme['newVersion'] == 'Unknown' ? $theme['newVersion'] : "v{$theme['newVersion']}");
[194] Fix | Delete
?>
[195] Fix | Delete
<li>
[196] Fix | Delete
<?php echo esc_html(sprintf(/* translators: Theme version. */ __('A new version of the theme "%s" is available.', 'wordfence'), "{$theme['name']} ({$newVersion})")); ?>
[197] Fix | Delete
</li>
[198] Fix | Delete
<?php endforeach ?>
[199] Fix | Delete
</ul>
[200] Fix | Delete
<?php endif ?>
[201] Fix | Delete
[202] Fix | Delete
<?php if ($updates_needed['core'] || $updates_needed['plugins'] || $updates_needed['themes']): ?>
[203] Fix | Delete
<p><a class="button button-primary" href="<?php echo esc_attr(wfUtils::wpAdminURL('update-core.php')) ?>"><?php esc_html_e('Update Now', 'wordfence'); ?></a></p>
[204] Fix | Delete
<?php else: ?>
[205] Fix | Delete
<p><?php esc_html_e('No updates are available at this time.', 'wordfence'); ?></p>
[206] Fix | Delete
<?php endif ?>
[207] Fix | Delete
<?php if ((defined('WP_DEBUG') && WP_DEBUG) || wfConfig::get('debugOn')): ?>
[208] Fix | Delete
<p><?php printf(/* translators: Seconds with millisecond precision. */ esc_html__('Generated in %.4f seconds', 'wordfence'), $microseconds); ?></p>
[209] Fix | Delete
<?php endif ?>
[210] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function