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/blocking
File: options-group-advanced-country.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* Presents the Advanced Country Blocking Options group.
[3] Fix | Delete
*
[4] Fix | Delete
* Expects $stateKey.
[5] Fix | Delete
*
[6] Fix | Delete
* @var string $stateKey The key under which the collapse state is stored.
[7] Fix | Delete
* @var bool $collapseable If defined, specifies whether or not this grouping can be collapsed. Defaults to true.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
if (!isset($collapseable)) {
[11] Fix | Delete
$collapseable = true;
[12] Fix | Delete
}
[13] Fix | Delete
?>
[14] Fix | Delete
<div class="wf-row">
[15] Fix | Delete
<div class="wf-col-xs-12">
[16] 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); ?>">
[17] Fix | Delete
<div class="wf-block-header">
[18] Fix | Delete
<div class="wf-block-header-content">
[19] Fix | Delete
<div class="wf-block-title">
[20] Fix | Delete
<strong><?php esc_html_e('Advanced Country Blocking Options', 'wordfence'); ?></strong>
[21] Fix | Delete
</div>
[22] 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; ?>
[23] Fix | Delete
</div>
[24] Fix | Delete
</div>
[25] Fix | Delete
<div class="wf-block-content">
[26] Fix | Delete
<?php if (wfConfig::get('isPaid')): ?>
[27] Fix | Delete
<ul class="wf-block-list">
[28] Fix | Delete
<li>
[29] Fix | Delete
<?php
[30] Fix | Delete
echo wfView::create('options/option-select', array(
[31] Fix | Delete
'selectOptionName' => 'cbl_action',
[32] Fix | Delete
'selectOptions' => array(
[33] Fix | Delete
array('value' => 'block', 'label' => 'Show the standard Wordfence blocked message'),
[34] Fix | Delete
array('value' => 'redir', 'label' => 'Redirect to the URL below'),
[35] Fix | Delete
),
[36] Fix | Delete
'selectValue' => wfConfig::get('cbl_action'),
[37] Fix | Delete
'title' => __('What to do when we block someone', 'wordfence'),
[38] Fix | Delete
'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_FIREWALL_BLOCKING_OPTION_WHAT_TO_DO),
[39] Fix | Delete
))->render();
[40] Fix | Delete
?>
[41] Fix | Delete
</li>
[42] Fix | Delete
<li>
[43] Fix | Delete
<?php
[44] Fix | Delete
echo wfView::create('options/option-text', array(
[45] Fix | Delete
'textOptionName' => 'cbl_redirURL',
[46] Fix | Delete
'textValue' => wfConfig::get('cbl_redirURL'),
[47] Fix | Delete
'title' => __('URL to redirect blocked users to', 'wordfence'),
[48] Fix | Delete
'placeholder' => __('Enter a full URL (e.g., http://example.com/blocked/)', 'wordfence'),
[49] Fix | Delete
'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_FIREWALL_BLOCKING_OPTION_REDIRECT),
[50] Fix | Delete
))->render();
[51] Fix | Delete
?>
[52] Fix | Delete
</li>
[53] Fix | Delete
<li>
[54] Fix | Delete
<?php
[55] Fix | Delete
echo wfView::create('options/option-toggled', array(
[56] Fix | Delete
'optionName' => 'cbl_loggedInBlocked',
[57] Fix | Delete
'enabledValue' => 1,
[58] Fix | Delete
'disabledValue' => 0,
[59] Fix | Delete
'value' => wfConfig::get('cbl_loggedInBlocked') ? 1 : 0,
[60] Fix | Delete
'title' => __('Block countries even if they are logged in', 'wordfence'),
[61] Fix | Delete
'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_FIREWALL_BLOCKING_OPTION_BLOCK_LOGGED_IN),
[62] Fix | Delete
))->render();
[63] Fix | Delete
?>
[64] Fix | Delete
</li>
[65] Fix | Delete
<li>
[66] Fix | Delete
<?php
[67] Fix | Delete
echo wfView::create('blocking/option-bypass-redirect', array(
[68] Fix | Delete
))->render();
[69] Fix | Delete
?>
[70] Fix | Delete
</li>
[71] Fix | Delete
<li>
[72] Fix | Delete
<?php
[73] Fix | Delete
echo wfView::create('blocking/option-bypass-cookie', array(
[74] Fix | Delete
))->render();
[75] Fix | Delete
?>
[76] Fix | Delete
</li>
[77] Fix | Delete
</ul>
[78] Fix | Delete
<?php else: ?>
[79] Fix | Delete
<ul class="wf-flex-vertical wf-padding-add-right-large wf-padding-add-bottom-large">
[80] Fix | Delete
<li><h3><?php esc_html_e('Put Geographic Protection In Place With Country Blocking', 'wordfence'); ?></h3></li>
[81] Fix | Delete
<li><p class="wf-no-top"><?php esc_html_e('Wordfence country blocking is designed to stop an attack, prevent content theft, or end malicious activity that originates from a geographic region in less than 1/300,000th of a second. Blocking countries who are regularly creating failed logins, a large number of page not found errors, and are clearly engaged in malicious activity is an effective way to protect your site during an attack.', 'wordfence'); ?></p></li>
[82] Fix | Delete
<li><?php echo wfView::create('blocking/country-block-map')->render(); ?></li>
[83] Fix | Delete
<li><a class="wf-btn wf-btn-primary wf-btn-callout-subtle" href="https://www.wordfence.com/gnl1countryBlockUpgrade/wordfence-signup/" target="_blank" rel="noopener noreferrer"><?php esc_html_e('Upgrade to Premium', 'wordfence'); ?><span class="screen-reader-text"> (<?php esc_html_e('opens in new tab', 'wordfence') ?>)</span></a></li>
[84] Fix | Delete
</ul>
[85] Fix | Delete
<?php endif; ?>
[86] Fix | Delete
</div>
[87] Fix | Delete
</div>
[88] Fix | Delete
</div>
[89] Fix | Delete
</div> <!-- end country blocking -->
[90] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function