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/common
File: license.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
[2] Fix | Delete
/**
[3] Fix | Delete
* Presents an install license prompt.
[4] Fix | Delete
*
[5] Fix | Delete
* Expects $state to be defined when applicable.
[6] Fix | Delete
*
[7] Fix | Delete
* @var string $error The error message. Optional.
[8] Fix | Delete
* @var string $state The state of the installation. 'prompt' is the installation prompt. 'installed' is the completion view. 'bad' is if an error is encountered.
[9] Fix | Delete
*/
[10] Fix | Delete
[11] Fix | Delete
switch ($state) {
[12] Fix | Delete
case 'installed':
[13] Fix | Delete
$title = __('Wordfence License Installation Successful', 'wordfence');
[14] Fix | Delete
break;
[15] Fix | Delete
case 'bad':
[16] Fix | Delete
$title = __('Wordfence License Installation Failed', 'wordfence');
[17] Fix | Delete
break;
[18] Fix | Delete
case 'prompt':
[19] Fix | Delete
$title = __('Install Wordfence License', 'wordfence');
[20] Fix | Delete
break;
[21] Fix | Delete
}
[22] Fix | Delete
?>
[23] Fix | Delete
<!DOCTYPE html>
[24] Fix | Delete
<html>
[25] Fix | Delete
<head>
[26] Fix | Delete
<meta charset="UTF-8">
[27] Fix | Delete
<title><?php echo esc_html($title); ?></title>
[28] Fix | Delete
<style>
[29] Fix | Delete
html {
[30] Fix | Delete
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
[31] Fix | Delete
font-size: 14px;
[32] Fix | Delete
line-height: 1.42857143;
[33] Fix | Delete
color: #333;
[34] Fix | Delete
background-color: #fff;
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
h1, h2, h3, h4, h45, h6 {
[38] Fix | Delete
font-weight: 500;
[39] Fix | Delete
line-height: 1.1;
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
h1 { font-size: 36px; }
[43] Fix | Delete
h2 { font-size: 30px; }
[44] Fix | Delete
h3 { font-size: 24px; }
[45] Fix | Delete
h4 { font-size: 18px; }
[46] Fix | Delete
h5 { font-size: 14px; }
[47] Fix | Delete
h6 { font-size: 12px; }
[48] Fix | Delete
[49] Fix | Delete
h1, h2, h3 {
[50] Fix | Delete
margin-top: 20px;
[51] Fix | Delete
margin-bottom: 10px;
[52] Fix | Delete
}
[53] Fix | Delete
h4, h5, h6 {
[54] Fix | Delete
margin-top: 10px;
[55] Fix | Delete
margin-bottom: 10px;
[56] Fix | Delete
}
[57] Fix | Delete
[58] Fix | Delete
.btn {
[59] Fix | Delete
background-color: #00709e;
[60] Fix | Delete
border: 1px solid #09486C;
[61] Fix | Delete
border-radius: 4px;
[62] Fix | Delete
box-sizing: border-box;
[63] Fix | Delete
color: #ffffff;
[64] Fix | Delete
cursor: pointer;
[65] Fix | Delete
display: inline-block;
[66] Fix | Delete
font-size: 14px;
[67] Fix | Delete
font-weight: normal;
[68] Fix | Delete
letter-spacing: normal;
[69] Fix | Delete
line-height: 20px;
[70] Fix | Delete
margin: 5px 0px;
[71] Fix | Delete
padding: 12px 6px;
[72] Fix | Delete
text-align: center;
[73] Fix | Delete
text-decoration: none;
[74] Fix | Delete
vertical-align: middle;
[75] Fix | Delete
white-space: nowrap;
[76] Fix | Delete
word-spacing: 0px;
[77] Fix | Delete
}
[78] Fix | Delete
[79] Fix | Delete
hr {
[80] Fix | Delete
margin-top: 20px;
[81] Fix | Delete
margin-bottom: 20px;
[82] Fix | Delete
border: 0;
[83] Fix | Delete
border-top: 1px solid #eee
[84] Fix | Delete
}
[85] Fix | Delete
[86] Fix | Delete
.btn.disabled, .btn[disabled] {
[87] Fix | Delete
background-color: #9f9fa0;
[88] Fix | Delete
border: 1px solid #7E7E7F;
[89] Fix | Delete
cursor: not-allowed;
[90] Fix | Delete
filter: alpha(opacity=65);
[91] Fix | Delete
-webkit-box-shadow: none;
[92] Fix | Delete
box-shadow: none;
[93] Fix | Delete
opacity: .65;
[94] Fix | Delete
pointer-events: none;
[95] Fix | Delete
}
[96] Fix | Delete
</style>
[97] Fix | Delete
</head>
[98] Fix | Delete
<body>
[99] Fix | Delete
[100] Fix | Delete
<h3><?php echo esc_html($title); ?></h3>
[101] Fix | Delete
[102] Fix | Delete
<?php if ($state == 'installed'): ?>
[103] Fix | Delete
<p><?php esc_html_e('The Wordfence license provided has been installed.', 'wordfence'); ?></p>
[104] Fix | Delete
<p><?php echo wp_kses(printf(/* translators: WordPress admin URL */ __('Return to the <a href="%s">Wordfence Admin Page</a>', 'wordfence'), network_admin_url('admin.php?page=Wordfence')), array('a'=>array('href'=>array()))); ?></p>
[105] Fix | Delete
<?php elseif ($state == 'bad'): ?>
[106] Fix | Delete
<p><?php esc_html_e('The Wordfence license could not be installed.', 'wordfence'); echo ' ' . esc_html($error); ?></p>
[107] Fix | Delete
<?php elseif ($state == 'prompt'): ?>
[108] Fix | Delete
<p><?php esc_html_e('Please enter the license to install.', 'wordfence'); ?></p>
[109] Fix | Delete
<form method="POST" action="<?php echo esc_attr(wfUtils::getSiteBaseURL() . '?_wfsf=installLicense'); ?>">
[110] Fix | Delete
<p><input type="text" name="license"></p>
[111] Fix | Delete
<?php wp_nonce_field('wf-form', 'nonce'); ?>
[112] Fix | Delete
<p><input type="submit" class="btn" value="Install"></p>
[113] Fix | Delete
</form>
[114] Fix | Delete
<?php endif; ?>
[115] Fix | Delete
[116] Fix | Delete
<p style="color: #999999;margin-top: 2rem;"><em><?php esc_html_e('Generated by Wordfence at ', 'wordfence'); ?><?php echo gmdate('D, j M Y G:i:s T', wfWAFUtils::normalizedTime()); ?>.<br><?php esc_html_e('Your computer\'s time: ', 'wordfence'); ?><script type="application/javascript">document.write(new Date().toUTCString());</script>.</em></p>
[117] Fix | Delete
[118] Fix | Delete
</body>
[119] Fix | Delete
</html>
[120] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function