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/scanner
File: options-group-general.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* Presents the General Options group.
[3] Fix | Delete
*
[4] Fix | Delete
* Expects $scanner and $stateKey.
[5] Fix | Delete
*
[6] Fix | Delete
* @var wfScanner $scanner
[7] Fix | Delete
* @var string $stateKey The key under which the collapse state is stored.
[8] Fix | Delete
* @var bool $collapseable If defined, specifies whether or not this grouping can be collapsed. Defaults to true.
[9] Fix | Delete
*/
[10] Fix | Delete
[11] Fix | Delete
if (!isset($collapseable)) {
[12] Fix | Delete
$collapseable = true;
[13] Fix | Delete
}
[14] Fix | Delete
?>
[15] Fix | Delete
<div class="wf-row">
[16] Fix | Delete
<div class="wf-col-xs-12">
[17] Fix | Delete
<div class="wf-block<?php if (!$collapseable) { echo ' wf-always-active'; } else { echo (wfPersistenceController::shared()->isActive($stateKey) ? ' wf-active' : ''); } ?>" data-persistence-key="<?php echo esc_attr($stateKey); ?>">
[18] Fix | Delete
<div class="wf-block-header">
[19] Fix | Delete
<div class="wf-block-header-content">
[20] Fix | Delete
<div class="wf-block-title">
[21] Fix | Delete
<strong><?php esc_html_e('General Options', 'wordfence'); ?></strong>
[22] Fix | Delete
</div>
[23] Fix | Delete
<?php if ($collapseable): ?><div class="wf-block-header-action"><div class="wf-block-header-action-disclosure" role="checkbox" aria-checked="<?php echo (wfPersistenceController::shared()->isActive($stateKey) ? 'true' : 'false'); ?>" tabindex="0"></div></div><?php endif; ?>
[24] Fix | Delete
</div>
[25] Fix | Delete
</div>
[26] Fix | Delete
<div class="wf-block-content">
[27] Fix | Delete
<ul class="wf-block-list">
[28] Fix | Delete
<?php
[29] Fix | Delete
$options = array(
[30] Fix | Delete
array('key' => 'scansEnabled_checkGSB', 'label' => __('Check if this website is on a domain blocklist', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_CHECK_SITE_BLACKLISTED), 'premium' => true, 'subtitleHTML' => wp_kses(__('<em>Reputation check</em>', 'wordfence'), array('em'=>array()))),
[31] Fix | Delete
array('key' => 'spamvertizeCheck', 'label' => __('Check if this website is being "Spamvertised"', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_CHECK_SITE_SPAMVERTIZED), 'premium' => true, 'subtitleHTML' => wp_kses(__('<em>Reputation check</em>', 'wordfence'), array('em'=>array()))),
[32] Fix | Delete
array('key' => 'checkSpamIP', 'label' => __('Check if this website IP is generating spam', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_CHECK_IP_SPAMMING), 'premium' => true, 'subtitleHTML' => wp_kses(__('<em>Reputation check</em>', 'wordfence'), array('em'=>array()))),
[33] Fix | Delete
array('key' => 'scansEnabled_checkHowGetIPs', 'label' => __('Scan for misconfigured How does Wordfence get IPs', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_CHECK_MISCONFIGURED_HOW_GET_IPS)),
[34] Fix | Delete
array('key' => 'scansEnabled_checkReadableConfig', 'label' => __('Scan for publicly accessible configuration, backup, or log files', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_PUBLIC_CONFIG)),
[35] Fix | Delete
array('key' => 'scansEnabled_suspectedFiles', 'label' => __('Scan for publicly accessible quarantined files', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_PUBLIC_QUARANTINED)),
[36] Fix | Delete
array('key' => 'scansEnabled_core', 'label' => __('Scan core files against repository versions for changes', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_CORE_CHANGES)),
[37] Fix | Delete
array('key' => 'scansEnabled_themes', 'label' => __('Scan theme files against repository versions for changes', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_THEME_CHANGES)),
[38] Fix | Delete
array('key' => 'scansEnabled_plugins', 'label' => __('Scan plugin files against repository versions for changes', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_PLUGIN_CHANGES)),
[39] Fix | Delete
array('key' => 'scansEnabled_coreUnknown', 'label' => __('Scan wp-admin and wp-includes for files not bundled with WordPress', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_UNKNOWN_CORE)),
[40] Fix | Delete
array('key' => 'scansEnabled_malware', 'label' => __('Scan for signatures of known malicious files', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_MALWARE_HASHES)),
[41] Fix | Delete
array('key' => 'scansEnabled_fileContents', 'label' => __('Scan file contents for backdoors, trojans and suspicious code', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_MALWARE_SIGNATURES)),
[42] Fix | Delete
array('key' => 'scansEnabled_fileContentsGSB', 'label' => __('Scan file contents for malicious URLs', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_MALWARE_URLS)),
[43] Fix | Delete
array('key' => 'scansEnabled_posts', 'label' => __('Scan posts for known dangerous URLs and suspicious content', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_POST_URLS)),
[44] Fix | Delete
array('key' => 'scansEnabled_comments', 'label' => __('Scan comments for known dangerous URLs and suspicious content', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_COMMENT_URLS)),
[45] Fix | Delete
array('key' => 'scansEnabled_suspiciousOptions', 'label' => __('Scan WordPress core, plugin, and theme options for known dangerous URLs and suspicious content', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_MALWARE_OPTIONS)),
[46] Fix | Delete
array('key' => 'scansEnabled_oldVersions', 'label' => __('Scan for out of date, abandoned, and vulnerable plugins, themes, and WordPress versions', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_UPDATES)),
[47] Fix | Delete
array('key' => 'scansEnabled_suspiciousAdminUsers', 'label' => __('Scan for suspicious admin users created outside of WordPress', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_UNKNOWN_ADMINS)),
[48] Fix | Delete
array('key' => 'scansEnabled_passwds', 'label' => __('Check the strength of passwords', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_PASSWORD_STRENGTH)),
[49] Fix | Delete
array('key' => 'scansEnabled_diskSpace', 'label' => __('Monitor disk space', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_DISK_SPACE)),
[50] Fix | Delete
array('key' => 'scansEnabled_wafStatus', 'label' => __('Monitor Web Application Firewall status', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_WAF_STATUS)),
[51] Fix | Delete
array('key' => 'other_scanOutside', 'label' => __('Scan files outside your WordPress installation', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_OUTSIDE_WORDPRESS)),
[52] Fix | Delete
array('key' => 'scansEnabled_scanImages', 'label' => __('Scan images, binary, and other files as if they were executable', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_IMAGES_EXECUTABLE)),
[53] Fix | Delete
);
[54] Fix | Delete
foreach ($options as $o):
[55] Fix | Delete
?>
[56] Fix | Delete
<li>
[57] Fix | Delete
<?php
[58] Fix | Delete
if (isset($o['view'])) {
[59] Fix | Delete
echo wfView::create($o['view'], array(
[60] Fix | Delete
'optionName' => $o['key'],
[61] Fix | Delete
'value' => wfConfig::get($o['key']) ? 1 : 0,
[62] Fix | Delete
'title' => $o['label'],
[63] Fix | Delete
'helpLink' => $o['helpLink'],
[64] Fix | Delete
'premium' => isset($o['premium']) && $o['premium'],
[65] Fix | Delete
))->render();
[66] Fix | Delete
}
[67] Fix | Delete
else {
[68] Fix | Delete
echo wfView::create('options/option-toggled', array(
[69] Fix | Delete
'optionName' => $o['key'],
[70] Fix | Delete
'enabledValue' => 1,
[71] Fix | Delete
'disabledValue' => 0,
[72] Fix | Delete
'value' => wfConfig::get($o['key']) ? 1 : 0,
[73] Fix | Delete
'title' => $o['label'],
[74] Fix | Delete
'subtitleHTML' => isset($o['subtitleHTML']) ? $o['subtitleHTML'] : null,
[75] Fix | Delete
'helpLink' => $o['helpLink'],
[76] Fix | Delete
'premium' => isset($o['premium']) && $o['premium'],
[77] Fix | Delete
))->render();
[78] Fix | Delete
}
[79] Fix | Delete
?>
[80] Fix | Delete
</li>
[81] Fix | Delete
<?php endforeach; ?>
[82] Fix | Delete
</ul>
[83] Fix | Delete
</div>
[84] Fix | Delete
</div>
[85] Fix | Delete
</div>
[86] Fix | Delete
</div> <!-- end general options -->
[87] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function