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/wp-conte.../plugins/wordfenc.../views/common
File: unsubscribe.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
[2] Fix | Delete
/**
[3] Fix | Delete
* Presents an unsubscribe confirmation.
[4] Fix | Delete
*
[5] Fix | Delete
* Expects $jwt, $email, and $state to be defined when applicable.
[6] Fix | Delete
*
[7] Fix | Delete
* @var string $jwt The JWT for the unsubscribe request.
[8] Fix | Delete
* @var string $email The plaintext email address being unsubscribed.
[9] Fix | Delete
* @var string $state The state of the confirmation. 'bad' is the bad/expired token prompt. 'resent' is the confirmation that an unsubscribe email as re-sent. 'prompt' is the confirmation prompt. 'unsubscribed' is the completion view.
[10] Fix | Delete
*/
[11] Fix | Delete
[12] Fix | Delete
switch ($state) {
[13] Fix | Delete
case 'bad':
[14] Fix | Delete
$title = __('Unsubscribe from Security Alerts', 'wordfence');
[15] Fix | Delete
break;
[16] Fix | Delete
case 'resent':
[17] Fix | Delete
$title = __('Unsubscription Confirmation Sent', 'wordfence');
[18] Fix | Delete
break;
[19] Fix | Delete
case 'unsubscribed':
[20] Fix | Delete
$title = __('Unsubscribe Successful', 'wordfence');
[21] Fix | Delete
break;
[22] Fix | Delete
case 'prompt':
[23] Fix | Delete
$title = __('Confirm Unsubscribe', 'wordfence');
[24] Fix | Delete
break;
[25] Fix | Delete
}
[26] Fix | Delete
?>
[27] Fix | Delete
<!DOCTYPE html>
[28] Fix | Delete
<html>
[29] Fix | Delete
<head>
[30] Fix | Delete
<meta charset="UTF-8">
[31] Fix | Delete
<title><?php echo esc_html($title); ?></title>
[32] Fix | Delete
<style>
[33] Fix | Delete
html {
[34] Fix | Delete
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
[35] Fix | Delete
font-size: 14px;
[36] Fix | Delete
line-height: 1.42857143;
[37] Fix | Delete
color: #333;
[38] Fix | Delete
background-color: #fff;
[39] Fix | Delete
}
[40] Fix | Delete
[41] Fix | Delete
h1, h2, h3, h4, h45, h6 {
[42] Fix | Delete
font-weight: 500;
[43] Fix | Delete
line-height: 1.1;
[44] Fix | Delete
}
[45] Fix | Delete
[46] Fix | Delete
h1 { font-size: 36px; }
[47] Fix | Delete
h2 { font-size: 30px; }
[48] Fix | Delete
h3 { font-size: 24px; }
[49] Fix | Delete
h4 { font-size: 18px; }
[50] Fix | Delete
h5 { font-size: 14px; }
[51] Fix | Delete
h6 { font-size: 12px; }
[52] Fix | Delete
[53] Fix | Delete
h1, h2, h3 {
[54] Fix | Delete
margin-top: 20px;
[55] Fix | Delete
margin-bottom: 10px;
[56] Fix | Delete
}
[57] Fix | Delete
h4, h5, h6 {
[58] Fix | Delete
margin-top: 10px;
[59] Fix | Delete
margin-bottom: 10px;
[60] Fix | Delete
}
[61] Fix | Delete
[62] Fix | Delete
.btn {
[63] Fix | Delete
background-color: #00709e;
[64] Fix | Delete
border: 1px solid #09486C;
[65] Fix | Delete
border-radius: 4px;
[66] Fix | Delete
box-sizing: border-box;
[67] Fix | Delete
color: #ffffff;
[68] Fix | Delete
cursor: pointer;
[69] Fix | Delete
display: inline-block;
[70] Fix | Delete
font-size: 14px;
[71] Fix | Delete
font-weight: normal;
[72] Fix | Delete
letter-spacing: normal;
[73] Fix | Delete
line-height: 20px;
[74] Fix | Delete
margin: 5px 0px;
[75] Fix | Delete
padding: 12px 6px;
[76] Fix | Delete
text-align: center;
[77] Fix | Delete
text-decoration: none;
[78] Fix | Delete
vertical-align: middle;
[79] Fix | Delete
white-space: nowrap;
[80] Fix | Delete
word-spacing: 0px;
[81] Fix | Delete
}
[82] Fix | Delete
[83] Fix | Delete
hr {
[84] Fix | Delete
margin-top: 20px;
[85] Fix | Delete
margin-bottom: 20px;
[86] Fix | Delete
border: 0;
[87] Fix | Delete
border-top: 1px solid #eee
[88] Fix | Delete
}
[89] Fix | Delete
[90] Fix | Delete
.btn.disabled, .btn[disabled] {
[91] Fix | Delete
background-color: #9f9fa0;
[92] Fix | Delete
border: 1px solid #7E7E7F;
[93] Fix | Delete
cursor: not-allowed;
[94] Fix | Delete
filter: alpha(opacity=65);
[95] Fix | Delete
-webkit-box-shadow: none;
[96] Fix | Delete
box-shadow: none;
[97] Fix | Delete
opacity: .65;
[98] Fix | Delete
pointer-events: none;
[99] Fix | Delete
}
[100] Fix | Delete
</style>
[101] Fix | Delete
</head>
[102] Fix | Delete
<body>
[103] Fix | Delete
[104] Fix | Delete
<h3><?php echo esc_html($title); ?></h3>
[105] Fix | Delete
[106] Fix | Delete
<?php if ($state == 'unsubscribed'): ?>
[107] Fix | Delete
<p><?php esc_html_e('The email address provided has been unsubscribed from future alert emails.', 'wordfence'); ?></p>
[108] Fix | Delete
<?php elseif ($state == 'resent'): ?>
[109] Fix | Delete
<p><?php esc_html_e('If the email address provided was on the alert email list, it has been sent an unsubscribe link.', 'wordfence'); ?></p>
[110] Fix | Delete
<?php elseif ($state == 'bad'): ?>
[111] Fix | Delete
<p><?php esc_html_e('Please enter an email address to unsubscribe from alerts. If this email address exists on the alert email list, it will receive a confirmation link to unsubscribe.', 'wordfence'); ?></p>
[112] Fix | Delete
<form method="POST" action="<?php echo esc_attr(wfUtils::getSiteBaseURL() . '?_wfsf=removeAlertEmail'); ?>">
[113] Fix | Delete
<p><input type="email" name="email" id="email" placeholder="you@example.com"></p>
[114] Fix | Delete
<input type="hidden" name="resend" value="1">
[115] Fix | Delete
<p><input type="submit" class="btn" value="Unsubscribe"></p>
[116] Fix | Delete
</form>
[117] Fix | Delete
<?php elseif ($state == 'prompt'): ?>
[118] Fix | Delete
<p><?php echo esc_html(sprintf(/* translators: Email address. */ __('Please confirm the unsubscribe request for %s.', 'wordfence'), $email)); ?></p>
[119] Fix | Delete
<form method="POST" action="<?php echo esc_attr(wfUtils::getSiteBaseURL() . '?_wfsf=removeAlertEmail&jwt=' . $jwt); ?>">
[120] Fix | Delete
<input type="hidden" name="confirm" value="1">
[121] Fix | Delete
<p><input type="submit" class="btn" value="Unsubscribe"></p>
[122] Fix | Delete
</form>
[123] Fix | Delete
<?php endif; ?>
[124] Fix | Delete
[125] 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>
[126] Fix | Delete
[127] Fix | Delete
</body>
[128] Fix | Delete
</html>
[129] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function