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_tools_whois.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
?>
[2] Fix | Delete
<script type="application/javascript">
[3] Fix | Delete
(function($) {
[4] Fix | Delete
$(function() {
[5] Fix | Delete
document.title = "<?php esc_attr_e('Whois Lookup', 'wordfence'); ?>" + " \u2039 " + WFAD.basePageName;
[6] Fix | Delete
});
[7] Fix | Delete
})(jQuery);
[8] Fix | Delete
</script>
[9] Fix | Delete
[10] Fix | Delete
<div class="wordfenceModeElem" id="wordfenceMode_whois"></div>
[11] Fix | Delete
[12] Fix | Delete
<div id="wf-tools-whois">
[13] Fix | Delete
<div class="wf-section-title">
[14] Fix | Delete
<h2><?php esc_html_e('Whois Lookup', 'wordfence') ?></h2>
[15] Fix | Delete
<span><?php echo wp_kses(sprintf(
[16] Fix | Delete
/* translators: URL to support page. */
[17] Fix | Delete
__('<a href="%s" target="_blank" rel="noopener noreferrer" class="wf-help-link">Learn more<span class="wf-hidden-xs"> about Whois Lookup</span><span class="screen-reader-text"> (opens in new tab)</span></a>', 'wordfence'), wfSupportController::esc_supportURL(wfSupportController::ITEM_TOOLS_WHOIS_LOOKUP)), array('a'=>array('href'=>array(), 'target'=>array(), 'rel'=>array(), 'class'=>array()), 'span'=>array('class'=>array()))); ?>
[18] Fix | Delete
<i class="wf-fa wf-fa-external-link" aria-hidden="true"></i></span>
[19] Fix | Delete
</div>
[20] Fix | Delete
[21] Fix | Delete
<p><?php esc_html_e("The whois service gives you a way to look up who owns an IP address or domain name that is visiting your website or is engaging in malicious activity on your website.", 'wordfence') ?></p>
[22] Fix | Delete
[23] Fix | Delete
<div>
[24] Fix | Delete
[25] Fix | Delete
<div class="wf-form wf-flex-row">
[26] Fix | Delete
<div class="wf-flex-row-1">
[27] Fix | Delete
<input type="text" class="wf-form-control" name="whois" id="wfwhois" value="" maxlength="255" onkeydown="if(event.keyCode == 13){ whois(jQuery('#wfwhois').val()) }"/>
[28] Fix | Delete
</div>
[29] Fix | Delete
<div class="wf-flex-row-0 wf-padding-add-left">
[30] Fix | Delete
<input type="button" name="whoisbutton" id="whoisbutton" class="wf-btn wf-btn-primary" value="Look up IP or Domain" onclick="whois(jQuery('#wfwhois').val());">
[31] Fix | Delete
</div>
[32] Fix | Delete
</div>
[33] Fix | Delete
<?php if (isset($_GET['wfnetworkblock']) && $_GET['wfnetworkblock']) { ?>
[34] Fix | Delete
<h2><?php esc_html_e('How to block a network', 'wordfence') ?></h2>
[35] Fix | Delete
<p style="width: 600px;">
[36] Fix | Delete
<?php echo wp_kses(sprintf(
[37] Fix | Delete
/* translators: Hostname or IP address. */
[38] Fix | Delete
__("You've chosen to block the network that <span style=\"color: #F00;\">%s</span> is part of. We've marked the networks we found that this IP address belongs to in red below. Make sure you read all the WHOIS information so that you see all networks this IP belongs to. We recommend blocking the network with the lowest number of addresses. You may find this is listed at the end as part of the 'rWHOIS' query which contacts the local WHOIS server that is run by the network administrator.", 'wordfence'), esc_html($_GET['whoisval'])), array('span'=>array('style'=>array()))); ?>
[39] Fix | Delete
</p>
[40] Fix | Delete
<?php } ?>
[41] Fix | Delete
<div id="wfrawhtml" class="wf-padding-add-top"></div>
[42] Fix | Delete
</div>
[43] Fix | Delete
<script type="text/x-jquery-template" id="wfBlockedRangesTmpl">
[44] Fix | Delete
<div>
[45] Fix | Delete
<div style="border-bottom: 1px solid #CCC; padding-bottom: 10px; margin-bottom: 10px;">
[46] Fix | Delete
<table border="0" style="width: 100%">
[47] Fix | Delete
{{each(idx, elem) results}}
[48] Fix | Delete
<tr>
[49] Fix | Delete
<td></td>
[50] Fix | Delete
</tr>
[51] Fix | Delete
{{/each}}
[52] Fix | Delete
</table>
[53] Fix | Delete
</div>
[54] Fix | Delete
</div>
[55] Fix | Delete
</script>
[56] Fix | Delete
<script type="text/javascript">
[57] Fix | Delete
var whoisval = "<?php if (isset($_GET['whoisval'])) {
[58] Fix | Delete
echo esc_js($_GET['whoisval']);
[59] Fix | Delete
} ?>";
[60] Fix | Delete
if (whoisval) {
[61] Fix | Delete
jQuery(function() {
[62] Fix | Delete
jQuery('#wfwhois').val(whoisval);
[63] Fix | Delete
whois(whoisval);
[64] Fix | Delete
});
[65] Fix | Delete
}
[66] Fix | Delete
</script>
[67] Fix | Delete
[68] Fix | Delete
<script type="text/x-jquery-template" id="wfWhoisBlock">
[69] Fix | Delete
<div class="wf-block wf-active">
[70] Fix | Delete
<div class="wf-block-header">
[71] Fix | Delete
<div class="wf-block-header-content">
[72] Fix | Delete
<div class="wf-block-title">
[73] Fix | Delete
<strong><?php esc_html_e('Whois Lookup', 'wordfence') ?> <a>${ip}</a></strong>
[74] Fix | Delete
</div>
[75] Fix | Delete
</div>
[76] Fix | Delete
</div>
[77] Fix | Delete
<div class="wf-block-content wf-clearfix">
[78] Fix | Delete
<ul class="wf-block-list">
[79] Fix | Delete
<li>
[80] Fix | Delete
<div class="wf-padding-add-top">{{html whois}}</div>
[81] Fix | Delete
</li>
[82] Fix | Delete
</ul>
[83] Fix | Delete
</div>
[84] Fix | Delete
</div>
[85] Fix | Delete
</script>
[86] Fix | Delete
[87] Fix | Delete
</div>
[88] Fix | Delete
[89] Fix | Delete
<script type="text/javascript">
[90] Fix | Delete
function whois(ip) {
[91] Fix | Delete
var val = ip.replace(' ', '');
[92] Fix | Delete
if (!/\w+/.test(val)) {
[93] Fix | Delete
WFAD.colorboxModal('300px', <?php echo json_encode(__("Enter a valid IP or domain", 'wordfence')) ?>, <?php echo json_encode(__("Please enter a valid IP address or domain name for your whois lookup.", 'wordfence')) ?>);
[94] Fix | Delete
return;
[95] Fix | Delete
}
[96] Fix | Delete
var whoisButton = jQuery('#whoisbutton').attr('disabled', 'disabled')
[97] Fix | Delete
.attr('value', <?php echo json_encode(__('Loading...', 'wordfence')) ?>);
[98] Fix | Delete
WFAD.ajax('wordfence_whois', {
[99] Fix | Delete
val: val
[100] Fix | Delete
}, function(res) {
[101] Fix | Delete
whoisButton.removeAttr('disabled')
[102] Fix | Delete
.attr('value', <?php echo json_encode(__('Look up IP or Domain', 'wordfence')) ?>);
[103] Fix | Delete
var whoisHTML = WFAD.completeWhois(res, true);
[104] Fix | Delete
var content = jQuery('#wfWhoisBlock').tmpl({
[105] Fix | Delete
ip: val,
[106] Fix | Delete
whois: whoisHTML
[107] Fix | Delete
});
[108] Fix | Delete
if (!res.ok)
[109] Fix | Delete
content.addClass('failed');
[110] Fix | Delete
jQuery('#wfrawhtml').html(content);
[111] Fix | Delete
});
[112] Fix | Delete
}
[113] Fix | Delete
</script>
[114] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function