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_firewall_blocking.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
?>
[2] Fix | Delete
<div class="wf-row">
[3] Fix | Delete
<div class="wf-col-xs-12">
[4] Fix | Delete
<div class="wf-block wf-block-no-header wf-active">
[5] Fix | Delete
<div class="wf-block-content">
[6] Fix | Delete
<ul class="wf-block-list">
[7] Fix | Delete
<li>
[8] Fix | Delete
<?php
[9] Fix | Delete
echo wfView::create('blocking/blocking-status', array(
[10] Fix | Delete
))->render();
[11] Fix | Delete
?>
[12] Fix | Delete
</li>
[13] Fix | Delete
</ul>
[14] Fix | Delete
</div>
[15] Fix | Delete
</div>
[16] Fix | Delete
</div>
[17] Fix | Delete
</div>
[18] Fix | Delete
<div class="wf-row">
[19] Fix | Delete
<div class="wf-col-xs-12">
[20] Fix | Delete
<div class="wf-block wf-always-active">
[21] Fix | Delete
<?php if (!wfConfig::get('firewallEnabled')): ?>
[22] Fix | Delete
<ul class="wf-block-banner">
[23] Fix | Delete
<li><?php echo wp_kses(__('<strong>Note:</strong> Blocking is disabled when the option "Enable Rate Limiting and Advanced Blocking" is off.', 'wordfence'), array('strong'=>array())); ?></li>
[24] Fix | Delete
<li><a href="#" class="wf-btn wf-btn-default" id="wf-blocking-enable" role="button"><?php esc_html_e('Turn On', 'wordfence'); ?></a></li>
[25] Fix | Delete
</ul>
[26] Fix | Delete
<?php endif; ?>
[27] Fix | Delete
<?php if (version_compare(phpversion(), '5.4') < 0 && wfConfig::get('isPaid') && wfBlock::hasCountryBlock()): ?>
[28] Fix | Delete
<ul class="wf-block-banner">
[29] Fix | Delete
<li><?php echo esc_html(sprintf(
[30] Fix | Delete
/* translators: PHP version. */
[31] Fix | Delete
__('<strong>Note:</strong> The GeoIP database that is required for country blocking has been updated to a new format. This new format requires sites to run PHP 5.4 or newer, and this site is on PHP %s. To ensure country blocking continues functioning, please update PHP.', 'wordfence'), wfUtils::cleanPHPVersion())); ?></li>
[32] Fix | Delete
<li><a href="<?php echo wfSupportController::esc_supportURL(wfSupportController::ITEM_SCAN_RESULT_GEOIP_UPDATE); ?>" class="wf-btn wf-btn-default" target="_blank" rel="noopener noreferrer"><?php esc_html_e('More Information', 'wordfence'); ?><span class="screen-reader-text"> (<?php esc_html_e('opens in new tab', 'wordfence') ?>)</span></a></li>
[33] Fix | Delete
</ul>
[34] Fix | Delete
<?php endif; ?>
[35] Fix | Delete
<div class="wf-block-header">
[36] Fix | Delete
<div class="wf-block-header-content">
[37] Fix | Delete
<div class="wf-block-title">
[38] Fix | Delete
<strong id="wf-block-parameters-title" data-new-title="<?php esc_attr_e('Create a Blocking Rule', 'wordfence'); ?>" data-edit-title="<?php esc_attr_e('Edit Blocking Rule', 'wordfence'); ?>"><?php esc_html_e('Create a Blocking Rule', 'wordfence'); ?></strong>
[39] Fix | Delete
</div>
[40] Fix | Delete
</div>
[41] Fix | Delete
</div>
[42] Fix | Delete
<div class="wf-block-content">
[43] Fix | Delete
<?php
[44] Fix | Delete
echo wfView::create('blocking/blocking-create', array(
[45] Fix | Delete
))->render();
[46] Fix | Delete
?>
[47] Fix | Delete
</div>
[48] Fix | Delete
</div>
[49] Fix | Delete
</div>
[50] Fix | Delete
</div> <!-- end firewall status -->
[51] Fix | Delete
<?php
[52] Fix | Delete
echo wfView::create('blocking/block-list', array(
[53] Fix | Delete
))->render();
[54] Fix | Delete
?>
[55] Fix | Delete
<div id="wf-overlay-wrapper" style="display: none">
[56] Fix | Delete
<div class="wf-overlay">
[57] Fix | Delete
<div class="wf-overlay-header"></div>
[58] Fix | Delete
<div class="wf-overlay-body"></div>
[59] Fix | Delete
<span class="wf-overlay-close wf-ion-android-close"></span>
[60] Fix | Delete
</div>
[61] Fix | Delete
</div>
[62] Fix | Delete
<script type="application/javascript">
[63] Fix | Delete
(function($) {
[64] Fix | Delete
$(function() {
[65] Fix | Delete
$('#wf-blocking-enable').on('click', function(e) {
[66] Fix | Delete
e.preventDefault();
[67] Fix | Delete
e.stopPropagation();
[68] Fix | Delete
[69] Fix | Delete
WFAD.setOption('firewallEnabled', 1, function() {
[70] Fix | Delete
window.location.reload(true);
[71] Fix | Delete
});
[72] Fix | Delete
});
[73] Fix | Delete
});
[74] Fix | Delete
})(jQuery);
[75] Fix | Delete
</script>
[76] Fix | Delete
<?php if (wfOnboardingController::willShowNewTour(wfOnboardingController::TOUR_BLOCKING)): ?>
[77] Fix | Delete
<script type="application/javascript">
[78] Fix | Delete
(function($) {
[79] Fix | Delete
$(function() {
[80] Fix | Delete
WFAD.setUpBlockingTour = function() {
[81] Fix | Delete
WFAD.tour1 = function () {
[82] Fix | Delete
WFAD.tour('wfBlockingNewTour1', 'wf-section-blocking', 'top', 'left', null, WFAD.tour2);
[83] Fix | Delete
};
[84] Fix | Delete
WFAD.tour2 = function () {
[85] Fix | Delete
WFAD.tour('wfBlockingNewTour2', 'wf-create-block', 'top', 'top', WFAD.tour1, WFAD.tour3);
[86] Fix | Delete
};
[87] Fix | Delete
WFAD.tour3 = function () {
[88] Fix | Delete
WFAD.tour('wfBlockingNewTour3', 'wf-blocks-wrapper', 'bottom', 'bottom', WFAD.tour2, WFAD.tourComplete);
[89] Fix | Delete
};
[90] Fix | Delete
WFAD.tourComplete = function () {
[91] Fix | Delete
WFAD.tourFinish('<?php echo esc_attr(wfOnboardingController::TOUR_BLOCKING); ?>');
[92] Fix | Delete
};
[93] Fix | Delete
}
[94] Fix | Delete
[95] Fix | Delete
WFAD.blockingTourShown = false;
[96] Fix | Delete
<?php if (wfOnboardingController::shouldShowNewTour(wfOnboardingController::TOUR_BLOCKING)): ?>
[97] Fix | Delete
$(window).on('wfTabChange', function(e, tab) {
[98] Fix | Delete
if (tab == 'blocking' && !WFAD.blockingTourShown) {
[99] Fix | Delete
WFAD.blockingTourShown = true;
[100] Fix | Delete
WFAD.setUpBlockingTour();
[101] Fix | Delete
if (!WFAD.isSmallScreen) { WFAD.tour1(); }
[102] Fix | Delete
}
[103] Fix | Delete
});
[104] Fix | Delete
[105] Fix | Delete
if ($('#blocking').hasClass('wf-active')) {
[106] Fix | Delete
WFAD.blockingTourShown = true;
[107] Fix | Delete
WFAD.setUpBlockingTour();
[108] Fix | Delete
if (!WFAD.isSmallScreen) { WFAD.tour1(); }
[109] Fix | Delete
}
[110] Fix | Delete
<?php endif; ?>
[111] Fix | Delete
});
[112] Fix | Delete
})(jQuery);
[113] Fix | Delete
</script>
[114] Fix | Delete
[115] Fix | Delete
<script type="text/x-jquery-template" id="wfBlockingNewTour1">
[116] Fix | Delete
<div>
[117] Fix | Delete
<h3><?php esc_html_e('Blocking', 'wordfence'); ?></h3>
[118] Fix | Delete
<p><?php esc_html_e('Wordfence lets you take control of protecting your site with powerful blocking features. Block traffic based on IP, IP range, hostname, browser, or referrer. Country blocking is available for Premium customers.', 'wordfence'); ?></p>
[119] Fix | Delete
<div class="wf-pointer-footer">
[120] Fix | Delete
<ul class="wf-tour-pagination">
[121] Fix | Delete
<li class="wf-active">&bullet;</li>
[122] Fix | Delete
<li>&bullet;</li>
[123] Fix | Delete
<li>&bullet;</li>
[124] Fix | Delete
</ul>
[125] Fix | Delete
<div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary" role="button"><?php esc_html_e('Next', 'wordfence'); ?></a></div>
[126] Fix | Delete
</div>
[127] Fix | Delete
<div id="wf-tour-close"><a href="#" role="button"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div>
[128] Fix | Delete
</div>
[129] Fix | Delete
</script>
[130] Fix | Delete
<script type="text/x-jquery-template" id="wfBlockingNewTour2">
[131] Fix | Delete
<div>
[132] Fix | Delete
<h3><?php esc_html_e('Blocking Builder', 'wordfence'); ?></h3>
[133] Fix | Delete
<p><?php esc_html_e('All of your blocking rules are in one central location. Choose the Block Type, then enter the details for the rule. Once it has been added, you\'ll see it saved as a rule for your site.', 'wordfence'); ?></p>
[134] Fix | Delete
<div class="wf-pointer-footer">
[135] Fix | Delete
<ul class="wf-tour-pagination">
[136] Fix | Delete
<li>&bullet;</li>
[137] Fix | Delete
<li class="wf-active">&bullet;</li>
[138] Fix | Delete
<li>&bullet;</li>
[139] Fix | Delete
</ul>
[140] Fix | Delete
<div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default" role="button"><?php esc_html_e('Previous', 'wordfence'); ?></a></div>
[141] Fix | Delete
<div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary" role="button"><?php esc_html_e('Next', 'wordfence'); ?></a></div>
[142] Fix | Delete
</div>
[143] Fix | Delete
<div id="wf-tour-close"><a href="#" role="button"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div>
[144] Fix | Delete
</div>
[145] Fix | Delete
</script>
[146] Fix | Delete
<script type="text/x-jquery-template" id="wfBlockingNewTour3">
[147] Fix | Delete
<div>
[148] Fix | Delete
<h3><?php esc_html_e('Manage Blocking Rules', 'wordfence'); ?></h3>
[149] Fix | Delete
<p><?php esc_html_e('Here\'s where you\'ll see all the blocking rules you\'ve created. You can also manage them as well as remove or modify them from this table.', 'wordfence'); ?></p>
[150] Fix | Delete
<div class="wf-pointer-footer">
[151] Fix | Delete
<ul class="wf-tour-pagination">
[152] Fix | Delete
<li>&bullet;</li>
[153] Fix | Delete
<li>&bullet;</li>
[154] Fix | Delete
<li class="wf-active">&bullet;</li>
[155] Fix | Delete
</ul>
[156] Fix | Delete
<div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default" role="button"><?php esc_html_e('Previous', 'wordfence'); ?></a></div>
[157] Fix | Delete
<div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary" role="button"><?php esc_html_e('Got it', 'wordfence'); ?></a></div>
[158] Fix | Delete
</div>
[159] Fix | Delete
<div id="wf-tour-close"><a href="#" role="button"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div>
[160] Fix | Delete
</div>
[161] Fix | Delete
</script>
[162] Fix | Delete
<?php endif; ?>
[163] Fix | Delete
[164] Fix | Delete
<?php if (wfOnboardingController::willShowUpgradeTour(wfOnboardingController::TOUR_BLOCKING)): ?>
[165] Fix | Delete
<script type="application/javascript">
[166] Fix | Delete
(function($) {
[167] Fix | Delete
$(function() {
[168] Fix | Delete
WFAD.setUpBlockingTour = function() {
[169] Fix | Delete
WFAD.tour1 = function () {
[170] Fix | Delete
WFAD.tour('wfBlockingUpgradeTour1', 'wf-create-block', 'top', 'top', null, WFAD.tour2);
[171] Fix | Delete
};
[172] Fix | Delete
WFAD.tour2 = function () {
[173] Fix | Delete
WFAD.tour('wfBlockingUpgradeTour2', 'wf-blocks-wrapper', 'bottom', 'bottom', WFAD.tour1, WFAD.tourComplete);
[174] Fix | Delete
};
[175] Fix | Delete
WFAD.tourComplete = function () {
[176] Fix | Delete
WFAD.tourFinish('<?php echo esc_attr(wfOnboardingController::TOUR_BLOCKING); ?>');
[177] Fix | Delete
};
[178] Fix | Delete
};
[179] Fix | Delete
[180] Fix | Delete
WFAD.blockingTourShown = false;
[181] Fix | Delete
<?php if (wfOnboardingController::shouldShowUpgradeTour(wfOnboardingController::TOUR_BLOCKING)): ?>
[182] Fix | Delete
$(window).on('wfTabChange', function(e, tab) {
[183] Fix | Delete
if (tab == 'blocking' && !WFAD.blockingTourShown) {
[184] Fix | Delete
WFAD.blockingTourShown = true;
[185] Fix | Delete
WFAD.setUpBlockingTour();
[186] Fix | Delete
if (!WFAD.isSmallScreen) { WFAD.tour1(); }
[187] Fix | Delete
}
[188] Fix | Delete
});
[189] Fix | Delete
[190] Fix | Delete
if ($('#blocking').hasClass('wf-active')) {
[191] Fix | Delete
WFAD.blockingTourShown = true;
[192] Fix | Delete
WFAD.setUpBlockingTour();
[193] Fix | Delete
if (!WFAD.isSmallScreen) { WFAD.tour1(); }
[194] Fix | Delete
}
[195] Fix | Delete
<?php endif; ?>
[196] Fix | Delete
});
[197] Fix | Delete
})(jQuery);
[198] Fix | Delete
</script>
[199] Fix | Delete
[200] Fix | Delete
<script type="text/x-jquery-template" id="wfBlockingUpgradeTour1">
[201] Fix | Delete
<div>
[202] Fix | Delete
<h3><?php esc_html_e('Blocking Builder', 'wordfence'); ?></h3>
[203] Fix | Delete
<p><?php echo wp_kses(__('All of the blocking rules you create are now in one central location. Simply choose the block type and enter the details for the rule you want to create. Premium users have access to advanced country blocking options, found via the <strong>Options</strong> link.', 'wordfence'), array('strong'=>array())); ?></p>
[204] Fix | Delete
<div class="wf-pointer-footer">
[205] Fix | Delete
<ul class="wf-tour-pagination">
[206] Fix | Delete
<li class="wf-active">&bullet;</li>
[207] Fix | Delete
<li>&bullet;</li>
[208] Fix | Delete
</ul>
[209] Fix | Delete
<div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary" role="button"><?php esc_html_e('Next', 'wordfence'); ?></a></div>
[210] Fix | Delete
</div>
[211] Fix | Delete
<div id="wf-tour-close"><a href="#" role="button"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div>
[212] Fix | Delete
</div>
[213] Fix | Delete
</script>
[214] Fix | Delete
<script type="text/x-jquery-template" id="wfBlockingUpgradeTour2">
[215] Fix | Delete
<div>
[216] Fix | Delete
<h3><?php esc_html_e('Manage Blocking Rules', 'wordfence'); ?></h3>
[217] Fix | Delete
<p><?php esc_html_e('All blocking rules you create will show here. You can manage them as well as remove or modify them from the same location.', 'wordfence'); ?></p>
[218] Fix | Delete
<div class="wf-pointer-footer">
[219] Fix | Delete
<ul class="wf-tour-pagination">
[220] Fix | Delete
<li>&bullet;</li>
[221] Fix | Delete
<li class="wf-active">&bullet;</li>
[222] Fix | Delete
</ul>
[223] Fix | Delete
<div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default" role="button"><?php esc_html_e('Previous', 'wordfence'); ?></a></div>
[224] Fix | Delete
<div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary" role="button"><?php esc_html_e('Got it', 'wordfence'); ?></a></div>
[225] Fix | Delete
</div>
[226] Fix | Delete
<div id="wf-tour-close"><a href="#" role="button"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div>
[227] Fix | Delete
</div>
[228] Fix | Delete
</script>
[229] Fix | Delete
<?php endif; ?>
[230] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function