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: menu_scanner_options.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
$scanner = wfScanner::shared();
[2] Fix | Delete
$scanOptions = $scanner->scanOptions();
[3] Fix | Delete
[4] Fix | Delete
$backPage = new wfPage(wfPage::PAGE_SCAN);
[5] Fix | Delete
if (isset($_GET['source']) && wfPage::isValidPage($_GET['source'])) {
[6] Fix | Delete
$backPage = new wfPage($_GET['source']);
[7] Fix | Delete
}
[8] Fix | Delete
?>
[9] Fix | Delete
<script type="application/javascript">
[10] Fix | Delete
(function($) {
[11] Fix | Delete
$(function() {
[12] Fix | Delete
document.title = "<?php esc_attr_e('Scanner Options', 'wordfence'); ?>" + " \u2039 " + WFAD.basePageName;
[13] Fix | Delete
[14] Fix | Delete
//Hash-based option block linking
[15] Fix | Delete
if (window.location.hash) {
[16] Fix | Delete
var hashes = WFAD.parseHashes();
[17] Fix | Delete
var hash = hashes[hashes.length - 1];
[18] Fix | Delete
var block = $('.wf-block[data-persistence-key="' + hash + '"]');
[19] Fix | Delete
if (block && block.length) {
[20] Fix | Delete
if (!block.hasClass('wf-active')) {
[21] Fix | Delete
block.find('.wf-block-content').slideDown({
[22] Fix | Delete
always: function() {
[23] Fix | Delete
block.addClass('wf-active');
[24] Fix | Delete
[25] Fix | Delete
if (hashes.length > 1 && $('#' + hashes[hashes.length - 2]).hasClass('wf-option')) {
[26] Fix | Delete
$('html, body').animate({
[27] Fix | Delete
scrollTop: $('#' + hashes[hashes.length - 2]).offset().top - 100
[28] Fix | Delete
}, 1000);
[29] Fix | Delete
}
[30] Fix | Delete
else {
[31] Fix | Delete
$('html, body').animate({
[32] Fix | Delete
scrollTop: block.offset().top - 100
[33] Fix | Delete
}, 1000);
[34] Fix | Delete
}
[35] Fix | Delete
}
[36] Fix | Delete
});
[37] Fix | Delete
[38] Fix | Delete
WFAD.ajax('wordfence_saveDisclosureState', {name: block.data('persistenceKey'), state: true}, function() {});
[39] Fix | Delete
}
[40] Fix | Delete
else {
[41] Fix | Delete
if (hashes.length > 1 && $('#' + hashes[hashes.length - 2]).hasClass('wf-option')) {
[42] Fix | Delete
$('html, body').animate({
[43] Fix | Delete
scrollTop: $('#' + hashes[hashes.length - 2]).offset().top - 100
[44] Fix | Delete
}, 1000);
[45] Fix | Delete
}
[46] Fix | Delete
else {
[47] Fix | Delete
$('html, body').animate({
[48] Fix | Delete
scrollTop: block.offset().top - 100
[49] Fix | Delete
}, 1000);
[50] Fix | Delete
}
[51] Fix | Delete
}
[52] Fix | Delete
history.replaceState('', document.title, window.location.pathname + window.location.search);
[53] Fix | Delete
}
[54] Fix | Delete
}
[55] Fix | Delete
});
[56] Fix | Delete
})(jQuery);
[57] Fix | Delete
</script>
[58] Fix | Delete
<div class="wf-options-controls">
[59] Fix | Delete
<div class="wf-row">
[60] Fix | Delete
<div class="wf-col-xs-12">
[61] Fix | Delete
<?php
[62] Fix | Delete
echo wfView::create('options/block-controls', array(
[63] Fix | Delete
'backLink' => $backPage->url(),
[64] Fix | Delete
'backLabelHTML' => wp_kses(sprintf(__('<span class="wf-hidden-xs">Back to </span>%s', 'wordfence'), $backPage->label()), array('span'=>array('class'=>array()))),
[65] Fix | Delete
'restoreDefaultsSection' => wfConfig::OPTIONS_TYPE_SCANNER,
[66] Fix | Delete
'restoreDefaultsMessage' => __('Are you sure you want to restore the default Scan settings? This will undo any custom changes you have made to the options on this page.', 'wordfence'),
[67] Fix | Delete
))->render();
[68] Fix | Delete
?>
[69] Fix | Delete
</div>
[70] Fix | Delete
</div>
[71] Fix | Delete
</div>
[72] Fix | Delete
<div class="wf-options-controls-spacer"></div>
[73] Fix | Delete
<?php
[74] Fix | Delete
if (!wfOnboardingController::shouldShowAttempt3() && wfConfig::get('touppPromptNeeded')) {
[75] Fix | Delete
echo wfView::create('gdpr/disabled-overlay')->render();
[76] Fix | Delete
echo wfView::create('gdpr/banner')->render();
[77] Fix | Delete
}
[78] Fix | Delete
?>
[79] Fix | Delete
<div class="wrap wordfence">
[80] Fix | Delete
<div class="wf-container-fluid">
[81] Fix | Delete
<div class="wf-row">
[82] Fix | Delete
<div class="wf-col-xs-12">
[83] Fix | Delete
<div class="wp-header-end"></div>
[84] Fix | Delete
</div>
[85] Fix | Delete
</div>
[86] Fix | Delete
<div class="wf-row">
[87] Fix | Delete
<div class="<?php echo wfStyle::contentClasses(); ?>">
[88] Fix | Delete
<div id="wf-scan-options" class="wf-fixed-tab-content">
[89] Fix | Delete
<?php
[90] Fix | Delete
echo wfView::create('common/section-title', array(
[91] Fix | Delete
'title' => __('Scan Options and Scheduling', 'wordfence'),
[92] Fix | Delete
'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN),
[93] Fix | Delete
'helpLabelHTML' => wp_kses(__('Learn more<span class="wf-hidden-xs"> about Scanning</span>', 'wordfence'), array('span'=>array('classes'=>array()))),
[94] Fix | Delete
'showIcon' => true,
[95] Fix | Delete
))->render();
[96] Fix | Delete
?>
[97] Fix | Delete
<div class="wf-row">
[98] Fix | Delete
<div class="wf-col-xs-12">
[99] Fix | Delete
<div class="wf-block wf-active">
[100] Fix | Delete
<div class="wf-block-content">
[101] Fix | Delete
<ul class="wf-block-list wf-block-list-horizontal wf-block-list-nowrap wf-scanner-coverage">
[102] Fix | Delete
<li>
[103] Fix | Delete
<?php
[104] Fix | Delete
if (function_exists('network_admin_url') && is_multisite()) { $optionsURL = network_admin_url('admin.php?page=WordfenceScan&subpage=scan_options'); }
[105] Fix | Delete
else { $optionsURL = admin_url('admin.php?page=WordfenceScan&subpage=scan_options'); }
[106] Fix | Delete
echo wfView::create('common/status-detail', array(
[107] Fix | Delete
'id' => 'wf-scanner-type',
[108] Fix | Delete
'percentage' => $scanner->scanTypeStatus(),
[109] Fix | Delete
'activeColor' => (!$scanner->isEnabled() ? '#ececec' : null /* automatic */),
[110] Fix | Delete
'title' => __('Scan Type: ', 'wordfence') . wfScanner::displayScanType($scanner->scanType()),
[111] Fix | Delete
'subtitle' => wfScanner::displayScanTypeDetail($scanner->scanType()),
[112] Fix | Delete
'link' => $optionsURL,
[113] Fix | Delete
'linkLabel' => null,
[114] Fix | Delete
'statusTitle' => __('Scan Status', 'wordfence'),
[115] Fix | Delete
'statusList' => $scanner->scanTypeStatusList(),
[116] Fix | Delete
'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_STATUS_OVERALL),
[117] Fix | Delete
))->render();
[118] Fix | Delete
?>
[119] Fix | Delete
</li>
[120] Fix | Delete
<li>
[121] Fix | Delete
<?php
[122] Fix | Delete
echo wfView::create('common/status-detail', array(
[123] Fix | Delete
'id' => 'wf-scanner-malware-type',
[124] Fix | Delete
'percentage' => $scanner->signatureMode() == wfScanner::SIGNATURE_MODE_PREMIUM ? 1.0 : 0.7,
[125] Fix | Delete
'activeColor' => (!$scanner->isEnabled() ? '#ececec' : null /* automatic */),
[126] Fix | Delete
'title' => __('Malware Signatures: ', 'wordfence') . ($scanner->signatureMode() == wfScanner::SIGNATURE_MODE_PREMIUM ? __('Premium', 'wordfence') : __('Community', 'wordfence')),
[127] Fix | Delete
'subtitle' => ($scanner->signatureMode() == wfScanner::SIGNATURE_MODE_PREMIUM ? __('Signatures updated in real-time', 'wordfence') : __('Signature updates delayed by 30 days', 'wordfence')),
[128] Fix | Delete
'link' => 'https://www.wordfence.com/gnl1scanUpgrade/wordfence-signup/',
[129] Fix | Delete
'linkLabel' => null,
[130] Fix | Delete
'statusTitle' => __('Malware Signatures Status', 'wordfence'),
[131] Fix | Delete
'statusList' => $scanner->signatureMode() == wfScanner::SIGNATURE_MODE_PREMIUM ? array() : array(array(
[132] Fix | Delete
'percentage' => 0.30,
[133] Fix | Delete
'title' => __('Enable Premium Scan Signatures.', 'wordfence'),
[134] Fix | Delete
)),
[135] Fix | Delete
'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_STATUS_MALWARE),
[136] Fix | Delete
))->render();
[137] Fix | Delete
?>
[138] Fix | Delete
</li>
[139] Fix | Delete
<li>
[140] Fix | Delete
<?php
[141] Fix | Delete
echo wfView::create('common/status-detail', array(
[142] Fix | Delete
'id' => 'wf-scanner-reputation',
[143] Fix | Delete
'percentage' => $scanner->reputationStatus(),
[144] Fix | Delete
'activeColor' => (!$scanner->isEnabled() ? '#ececec' : null /* automatic */),
[145] Fix | Delete
'title' => __('Reputation Checks', 'wordfence'),
[146] Fix | Delete
'subtitle' => __('Check spam &amp; spamvertising blocklists', 'wordfence'),
[147] Fix | Delete
'link' => $optionsURL . '#wf-scanner-options-general',
[148] Fix | Delete
'linkLabel' => null,
[149] Fix | Delete
'statusTitle' => __('Reputation Check Status', 'wordfence'),
[150] Fix | Delete
'statusList' => $scanner->reputationStatusList(),
[151] Fix | Delete
'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_STATUS_REPUTATION),
[152] Fix | Delete
))->render();
[153] Fix | Delete
?>
[154] Fix | Delete
</li>
[155] Fix | Delete
</ul>
[156] Fix | Delete
</div>
[157] Fix | Delete
</div>
[158] Fix | Delete
</div>
[159] Fix | Delete
</div>
[160] Fix | Delete
<?php
[161] Fix | Delete
echo wfView::create('scanner/options-group-scan-schedule', array(
[162] Fix | Delete
'scanner' => $scanner,
[163] Fix | Delete
'stateKey' => 'wf-scanner-options-schedule',
[164] Fix | Delete
))->render();
[165] Fix | Delete
[166] Fix | Delete
echo wfView::create('scanner/options-group-basic', array(
[167] Fix | Delete
'scanner' => $scanner,
[168] Fix | Delete
'stateKey' => 'wf-scanner-options-basic',
[169] Fix | Delete
'collapseable' => false,
[170] Fix | Delete
))->render();
[171] Fix | Delete
[172] Fix | Delete
echo wfView::create('scanner/options-group-general', array(
[173] Fix | Delete
'scanner' => $scanner,
[174] Fix | Delete
'stateKey' => 'wf-scanner-options-general',
[175] Fix | Delete
))->render();
[176] Fix | Delete
[177] Fix | Delete
echo wfView::create('scanner/options-group-performance', array(
[178] Fix | Delete
'scanner' => $scanner,
[179] Fix | Delete
'stateKey' => 'wf-scanner-options-performance',
[180] Fix | Delete
))->render();
[181] Fix | Delete
[182] Fix | Delete
echo wfView::create('scanner/options-group-advanced', array(
[183] Fix | Delete
'scanner' => $scanner,
[184] Fix | Delete
'stateKey' => 'wf-scanner-options-custom',
[185] Fix | Delete
))->render();
[186] Fix | Delete
?>
[187] Fix | Delete
</div> <!-- end wf-scan-options block -->
[188] Fix | Delete
</div> <!-- end content block -->
[189] Fix | Delete
</div> <!-- end row -->
[190] Fix | Delete
</div> <!-- end container -->
[191] Fix | Delete
</div>
[192] Fix | Delete
<script type="application/javascript">
[193] Fix | Delete
(function($) {
[194] Fix | Delete
$(function() {
[195] Fix | Delete
var updatePendingCircles = function() {
[196] Fix | Delete
$('#circle-wf-scanner-type, #circle-wf-scanner-reputation').wfCircularProgress({pendingOverlay: Object.keys(WFAD.pendingChanges).length > 0});
[197] Fix | Delete
};
[198] Fix | Delete
var coalescingUpdateTimer = false;
[199] Fix | Delete
[200] Fix | Delete
$('.wf-option').on('change', function() {
[201] Fix | Delete
clearTimeout(coalescingUpdateTimer);
[202] Fix | Delete
coalescingUpdateTimer = setTimeout(updatePendingCircles, 100);
[203] Fix | Delete
});
[204] Fix | Delete
});
[205] Fix | Delete
})(jQuery);
[206] Fix | Delete
</script>
[207] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function