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/onboardi...
File: registration-prompt.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* Prompts the user for a license key, directing to wordfence.com to register for a free license key
[3] Fix | Delete
*/
[4] Fix | Delete
[5] Fix | Delete
if (!isset($existing))
[6] Fix | Delete
$existing = false;
[7] Fix | Delete
if (!isset($email))
[8] Fix | Delete
$email = null;
[9] Fix | Delete
if (!isset($license))
[10] Fix | Delete
$license = null;
[11] Fix | Delete
$registrationLink = wfLicense::generateRegistrationLink();
[12] Fix | Delete
$populated = $existing && $email && $license;
[13] Fix | Delete
?>
[14] Fix | Delete
<div class="wf-onboarding-registration-prompt">
[15] Fix | Delete
<p>
[16] Fix | Delete
<?php if ($existing): ?>
[17] Fix | Delete
<?php esc_html_e('Install your license to finish activating Wordfence.', 'wordfence') ?>
[18] Fix | Delete
<?php else: ?>
[19] Fix | Delete
<?php esc_html_e('Register with Wordfence to secure your site with the latest threat intelligence.', 'wordfence') ?>
[20] Fix | Delete
<?php endif ?>
[21] Fix | Delete
</p>
[22] Fix | Delete
<div class="wf-onboarding-install-new wf-onboarding-install-type"<?php if ($existing): ?> style="display: none;"<?php endif ?>>
[23] Fix | Delete
<div>
[24] Fix | Delete
<a class="wf-btn wf-btn-primary wf-onboardng-register" href="<?php esc_attr_e($registrationLink) ?>" target="_blank"><?php esc_html_e('Get Your Wordfence License', 'wordfence') ?></a>
[25] Fix | Delete
</div>
[26] Fix | Delete
<div>
[27] Fix | Delete
<a class="wf-onboarding-install-type-toggle" href="#"><?php esc_html_e('Install an existing license', 'wordfence') ?></a>
[28] Fix | Delete
</div>
[29] Fix | Delete
</div>
[30] Fix | Delete
<div class="wf-onboarding-install-existing wf-onboarding-install-type" data-attempt="<?php echo esc_attr($attempt) ?>"
[31] Fix | Delete
data-option-value-emails="<?php esc_attr_e(wfOnboardingController::ONBOARDING_EMAILS) ?>"
[32] Fix | Delete
data-option-value-license="<?php esc_attr_e(wfOnboardingController::ONBOARDING_LICENSE) ?>"
[33] Fix | Delete
<?php if (!$existing): ?>style="display: none;"<?php endif ?>
[34] Fix | Delete
>
[35] Fix | Delete
<form class="wf-onboarding-form">
[36] Fix | Delete
<div class="wf-onboarding-form-group">
[37] Fix | Delete
<label for="wf-onboarding-email-input"><?php esc_html_e('Email', 'wordfence') ?></label>
[38] Fix | Delete
<input id="wf-onboarding-email-input" type="email" value="<?php echo esc_attr((string) $email) ?>" pattern="^[^@\s]+@[^@\s]+\.[^@\s]+$" title="<?php esc_html_e('Please enter a valid email address', 'wordfence') ?>" required>
[39] Fix | Delete
<small><?php esc_html_e('This is where future security alerts for your website will be sent. This can also be changed in Global Options.', 'wordfence') ?></small>
[40] Fix | Delete
</div>
[41] Fix | Delete
<div class="wf-onboarding-form-group">
[42] Fix | Delete
<label for="wf-onboarding-license-input"><?php esc_html_e('License Key', 'wordfence') ?></label>
[43] Fix | Delete
<textarea id="wf-onboarding-license-input" rows="3" required><?php echo esc_html((string) $license) ?></textarea>
[44] Fix | Delete
</div>
[45] Fix | Delete
<div class="wf-onboarding-form-group wf-onboarding-consent-group"<?php if ($populated): ?> style="display: none;"<?php endif ?>>
[46] Fix | Delete
<label id="wf-onboarding-subscription-options-label"><?php esc_html_e('Would you like WordPress security and vulnerability alerts sent to you via email?', 'wordfence') ?></label>
[47] Fix | Delete
<div class="wf-onboarding-subscription-options" role="radiogroup" aria-labelledby="wf-onboarding-subscription-options-label">
[48] Fix | Delete
<ul class="wf-switch">
[49] Fix | Delete
<li data-value="1" role="radio" tabindex="0"><?php esc_html_e('Yes', 'wordfence') ?></li>
[50] Fix | Delete
<li data-value="0" role="radio" tabindex="0"><?php esc_html_e('No', 'wordfence') ?></li>
[51] Fix | Delete
</ul>
[52] Fix | Delete
<small class="wf-onboarding-subscription-option-required" style="display: none;"><?php esc_html_e('You must select either "Yes" or "No"', 'wordfence') ?></small>
[53] Fix | Delete
</div>
[54] Fix | Delete
</div>
[55] Fix | Delete
<button class="wf-btn wf-btn-primary wf-onboarding-install-license" type="submit"><?php esc_html_e('Install License', 'wordfence') ?></button>
[56] Fix | Delete
</form>
[57] Fix | Delete
<?php if (!$populated): ?>
[58] Fix | Delete
<div>
[59] Fix | Delete
<a class="wf-onboarding-link" href="<?php esc_attr_e($registrationLink) ?>" target="_blank"><?php esc_html_e('Get a new license', 'wordfence') ?></a>
[60] Fix | Delete
</div>
[61] Fix | Delete
<?php endif ?>
[62] Fix | Delete
</div>
[63] Fix | Delete
</div>
[64] Fix | Delete
<div style="display: none;">
[65] Fix | Delete
<?php
[66] Fix | Delete
$licenseTypeModals = array(
[67] Fix | Delete
'response' => array(
[68] Fix | Delete
'title' => __('Response License Installed', 'wordfence'),
[69] Fix | Delete
'content' => __('Congratulations! Wordfence Response is now active on your website. Please note that some Response features are not enabled by default.', 'wordfence')
[70] Fix | Delete
),
[71] Fix | Delete
'care' => array(
[72] Fix | Delete
'title' => __('Care License Installed', 'wordfence'),
[73] Fix | Delete
'content' => __('Congratulations! Wordfence Care is now active on your website. Please note that some Care features are not enabled by default.', 'wordfence')
[74] Fix | Delete
),
[75] Fix | Delete
'premium' => array(
[76] Fix | Delete
'title' => __('Premium License Installed', 'wordfence'),
[77] Fix | Delete
'content' => __('Congratulations! Wordfence Premium is now active on your website. Please note that some Premium features are not enabled by default.', 'wordfence')
[78] Fix | Delete
),
[79] Fix | Delete
'free' => array(
[80] Fix | Delete
'title' => __('Free License Installed', 'wordfence'),
[81] Fix | Delete
'content' => __('Congratulations! Wordfence Free is now active on your website.', 'wordfence')
[82] Fix | Delete
),
[83] Fix | Delete
);
[84] Fix | Delete
?>
[85] Fix | Delete
<?php foreach ($licenseTypeModals as $key => $modal): ?>
[86] Fix | Delete
<div class="wf-modal wf-modal-success" id="<?php echo esc_attr("wf-onboarding-registration-success-$key-template") ?>">
[87] Fix | Delete
<div class="wf-model-success-wrapper">
[88] Fix | Delete
<div class="wf-modal-header">
[89] Fix | Delete
<div class="wf-modal-header-content">
[90] Fix | Delete
<div class="wf-modal-title"><?php echo esc_html($modal['title']) ?></div>
[91] Fix | Delete
</div>
[92] Fix | Delete
</div>
[93] Fix | Delete
<div class="wf-modal-content"><?php echo esc_html($modal['content']) ?></div>
[94] Fix | Delete
</div>
[95] Fix | Delete
<div class="wf-modal-footer">
[96] Fix | Delete
<ul class="wf-onboarding-flex-horizontal wf-onboarding-flex-align-right wf-onboarding-full-width">
[97] Fix | Delete
<li><a href="<?php echo esc_url(network_admin_url('admin.php?page=Wordfence')); ?>" class="wf-onboarding-btn wf-onboarding-btn-primary"><?php esc_html_e('Go To Dashboard', 'wordfence'); ?></a></li>
[98] Fix | Delete
</ul>
[99] Fix | Delete
</div>
[100] Fix | Delete
</div>
[101] Fix | Delete
<?php endforeach ?>
[102] Fix | Delete
<div class="wf-modal" id="wf-onboarding-registration-error-template">
[103] Fix | Delete
<div class="wf-modal-header">
[104] Fix | Delete
<div class="wf-modal-header-content">
[105] Fix | Delete
<div class="wf-modal-title"><strong><?php esc_html_e('Error Installing License', 'wordfence') ?></strong></div>
[106] Fix | Delete
</div>
[107] Fix | Delete
</div>
[108] Fix | Delete
<div class="wf-modal-content">
[109] Fix | Delete
<p class="message"><?php esc_html_e('An error occurred while installing your license key.', 'wordfence') ?></p>
[110] Fix | Delete
<p><?php echo wp_kses(__('Please try again. If the problem persists, please <a href="https://www.wordfence.com/help/api-key" target="_blank" rel="noopener noreferrer">contact Wordfence Support<span class="screen-reader-text">(opens in new tab)</span></a>', 'wordfence'), array('a' => array('href' => array(), 'target' => array(), 'rel' => array()), 'span' => array('class' => array()))) ?>
[111] Fix | Delete
</div>
[112] Fix | Delete
<div class="wf-modal-footer">
[113] Fix | Delete
<ul class="wf-onboarding-flex-horizontal wf-onboarding-flex-align-right wf-onboarding-full-width">
[114] Fix | Delete
<li><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary" onclick="jQuery.wfcolorbox.close(); return false;" role="button">Close</a></li>
[115] Fix | Delete
</ul>
[116] Fix | Delete
</div>
[117] Fix | Delete
</div>
[118] Fix | Delete
</div>
[119] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function