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/wp-conte.../plugins/wordfenc.../views/scanner
File: scanner-status.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* Presents the scanner status.
[3] Fix | Delete
*
[4] Fix | Delete
* Expects $scanner to be defined.
[5] Fix | Delete
*
[6] Fix | Delete
* @var wfScanner $scanner The scanner state.
[7] Fix | Delete
* @var wfDashboard $dashboard Dashboard statistics.
[8] Fix | Delete
*/
[9] Fix | Delete
?>
[10] Fix | Delete
<ul class="wf-block-list wf-block-list-horizontal">
[11] Fix | Delete
<?php if ($scanner->isEnabled() == 'enabled' && $scanner->signatureMode() == wfScanner::SIGNATURE_MODE_PREMIUM): ?>
[12] Fix | Delete
<li>
[13] Fix | Delete
<div class="wf-block-labeled-value wf-scan-status wf-scan-status-full-enabled">
[14] Fix | Delete
<div class="wf-block-labeled-value-label"><?php
[15] Fix | Delete
switch (wfLicense::current()->getType()) {
[16] Fix | Delete
case wfLicense::TYPE_RESPONSE:
[17] Fix | Delete
esc_html_e('Wordfence Scan &amp; Response License Enabled', 'wordfence');
[18] Fix | Delete
break;
[19] Fix | Delete
case wfLicense::TYPE_CARE:
[20] Fix | Delete
esc_html_e('Wordfence Scan &amp; Care License Enabled', 'wordfence');
[21] Fix | Delete
break;
[22] Fix | Delete
default:
[23] Fix | Delete
esc_html_e('Wordfence Scan &amp; Premium Enabled', 'wordfence');
[24] Fix | Delete
break;
[25] Fix | Delete
}
[26] Fix | Delete
?></div>
[27] Fix | Delete
</div>
[28] Fix | Delete
</li>
[29] Fix | Delete
<?php else: ?>
[30] Fix | Delete
<li>
[31] Fix | Delete
<?php if (!$scanner->isEnabled()): ?>
[32] Fix | Delete
<div class="wf-scan-status-disabled">
[33] Fix | Delete
<p><h3><?php esc_html_e('Wordfence Scan Deactivated', 'wordfence'); ?></h3></p>
[34] Fix | Delete
<p><?php esc_html_e('A Wordfence scan examines all files, posts, pages, and comments on your WordPress website looking for malware, known malicious URLs, and known patterns of infections. It also does several other reputation and server checks.', 'wordfence'); ?></p>
[35] Fix | Delete
<p>
[36] Fix | Delete
<a class="wf-btn wf-btn-primary wf-btn-callout-subtle" href="#" target="_blank" rel="noopener noreferrer" id="wf-scan-top-enable-scans" role="button"><?php esc_html_e('Enable Automatic Scans', 'wordfence'); ?><span class="screen-reader-text"> (<?php esc_html_e('opens in new tab', 'wordfence') ?>)</span></a>
[37] Fix | Delete
<script type="application/javascript">
[38] Fix | Delete
(function($) {
[39] Fix | Delete
$(function() {
[40] Fix | Delete
$('#wf-scan-top-enable-scans').on('click', function(e) {
[41] Fix | Delete
e.preventDefault();
[42] Fix | Delete
e.stopPropagation();
[43] Fix | Delete
[44] Fix | Delete
WFAD.setOption('scheduledScansEnabled', 1, function() {
[45] Fix | Delete
window.location.reload(true);
[46] Fix | Delete
});
[47] Fix | Delete
});
[48] Fix | Delete
});
[49] Fix | Delete
})(jQuery);
[50] Fix | Delete
</script>
[51] Fix | Delete
</p>
[52] Fix | Delete
</div>
[53] Fix | Delete
<?php else: ?>
[54] Fix | Delete
<div class="wf-block-labeled-value wf-scan-status wf-scan-status-enabled">
[55] Fix | Delete
<div class="wf-block-labeled-value-value"><i class="wf-fa wf-fa-check" aria-hidden="true"></i></div>
[56] Fix | Delete
<div class="wf-block-labeled-value-label"><?php esc_html_e('Wordfence Scan Enabled', 'wordfence'); ?></div>
[57] Fix | Delete
</div>
[58] Fix | Delete
<?php endif; ?>
[59] Fix | Delete
</li>
[60] Fix | Delete
<li>
[61] Fix | Delete
<?php if ($scanner->signatureMode() == wfScanner::SIGNATURE_MODE_COMMUNITY): ?>
[62] Fix | Delete
<div>
[63] Fix | Delete
<p><h3><?php esc_html_e('Premium Protection Disabled', 'wordfence'); ?></h3></p>
[64] Fix | Delete
<p><?php esc_html_e('As a free Wordfence user, you are currently using the Community version of the Threat Defense Feed. Premium users are protected by additional firewall rules and malware signatures as well as the Wordfence real-time IP blocklist. Upgrade to Premium today to improve your protection.', 'wordfence'); ?></p>
[65] Fix | Delete
<p><a class="wf-btn wf-btn-primary wf-btn-callout-subtle" href="https://www.wordfence.com/gnl1scanUpgrade/wordfence-signup/#premium-order-form" target="_blank" rel="noopener noreferrer"><?php esc_html_e('Upgrade to Premium', 'wordfence'); ?></a>&nbsp;&nbsp;<a class="wf-btn wf-btn-callout-subtle wf-btn-default" href="https://www.wordfence.com/gnl1scanLearn/wordfence-signup/" target="_blank" rel="noopener noreferrer"><?php esc_html_e('Learn More', 'wordfence'); ?><span class="screen-reader-text"> (<?php esc_html_e('opens in new tab', 'wordfence') ?>)</span></a></p>
[66] Fix | Delete
</div>
[67] Fix | Delete
<?php else: ?>
[68] Fix | Delete
<div class="wf-block-labeled-value wf-protection-status wf-protection-status-<?php echo esc_attr($scanner->signatureMode()); ?>">
[69] Fix | Delete
<div class="wf-block-labeled-value-value"><i class="wf-fa wf-fa-check" aria-hidden="true"></i></div>
[70] Fix | Delete
<div class="wf-block-labeled-value-label"><?php esc_html_e('Premium Protection Enabled', 'wordfence'); ?></div>
[71] Fix | Delete
</div>
[72] Fix | Delete
<?php endif; ?>
[73] Fix | Delete
</li>
[74] Fix | Delete
<?php endif; ?>
[75] Fix | Delete
</ul>
[76] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function