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.../modules/login-se.../views/page
File: manage.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_LS_VERSION')) { exit; }
[1] Fix | Delete
[2] Fix | Delete
/**
[3] Fix | Delete
* @var \WP_User $user The user being edited. Required.
[4] Fix | Delete
* @var bool $canEditUsers Whether or not the viewer of the page can edit other users. Optional, defaults to false.
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
if (!isset($canEditUsers)) {
[8] Fix | Delete
$canEditUsers = false;
[9] Fix | Delete
}
[10] Fix | Delete
[11] Fix | Delete
$ownAccount = false;
[12] Fix | Delete
$ownUser = wp_get_current_user();
[13] Fix | Delete
if ($ownUser->ID == $user->ID) {
[14] Fix | Delete
$ownAccount = true;
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
$enabled = \WordfenceLS\Controller_Users::shared()->has_2fa_active($user);
[18] Fix | Delete
$requires2fa = \WordfenceLS\Controller_Users::shared()->requires_2fa($user, $inGracePeriod, $requiredAt);
[19] Fix | Delete
$lockedOut = $requires2fa && !$enabled;
[20] Fix | Delete
[21] Fix | Delete
?>
[22] Fix | Delete
<p><?php echo wp_kses(sprintf(__('Two-Factor Authentication, or 2FA, significantly improves login security for your website. Wordfence 2FA works with a number of TOTP-based apps like Google Authenticator, FreeOTP, and Authy. For a full list of tested TOTP-based apps, <a href="%s" target="_blank" rel="noopener noreferrer">click here</a>.', 'wordfence'), \WordfenceLS\Controller_Support::esc_supportURL(\WordfenceLS\Controller_Support::ITEM_MODULE_LOGIN_SECURITY_2FA)), array('a'=>array('href'=>array(), 'target'=>array(), 'rel'=>array()))); ?></p>
[23] Fix | Delete
<?php if ($canEditUsers): ?>
[24] Fix | Delete
<div id="wfls-editing-display" class="wfls-flex-row wfls-flex-row-xs-wrappable wfls-flex-row-equal-heights">
[25] Fix | Delete
<div class="wfls-block wfls-always-active wfls-flex-item-full-width wfls-add-bottom">
[26] Fix | Delete
<div class="wfls-block-header wfls-block-header-border-bottom">
[27] Fix | Delete
<div class="wfls-block-header-content">
[28] Fix | Delete
<div class="wfls-block-title">
[29] Fix | Delete
<strong><?php echo wp_kses(sprintf(__('Editing User:&nbsp;&nbsp;%s <span class="wfls-text-plain">%s</span>', 'wordfence'), get_avatar($user->ID, 16, '', $user->user_login), \WordfenceLS\Text\Model_HTML::esc_html($user->user_login) . ($ownAccount ? ' ' . __('(you)', 'wordfence') : '')), array('span'=>array('class'=>array()))); ?></strong>
[30] Fix | Delete
</div>
[31] Fix | Delete
</div>
[32] Fix | Delete
</div>
[33] Fix | Delete
</div>
[34] Fix | Delete
</div>
[35] Fix | Delete
<?php endif; ?>
[36] Fix | Delete
<div id="wfls-deactivation-controls" class="wfls-flex-row wfls-flex-row-wrappable wfls-flex-row-equal-heights"<?php if (!$enabled) { echo ' style="display: none;"'; } ?>>
[37] Fix | Delete
<!-- begin status content -->
[38] Fix | Delete
<div class="wfls-flex-row wfls-flex-row-equal-heights wfls-flex-item-xs-100">
[39] Fix | Delete
<?php
[40] Fix | Delete
echo \WordfenceLS\Model_View::create('manage/deactivate', array(
[41] Fix | Delete
'user' => $user,
[42] Fix | Delete
))->render();
[43] Fix | Delete
?>
[44] Fix | Delete
</div>
[45] Fix | Delete
<!-- end status content -->
[46] Fix | Delete
<!-- begin regenerate codes -->
[47] Fix | Delete
<div class="wfls-flex-row wfls-flex-row-equal-heights wfls-flex-item-xs-100">
[48] Fix | Delete
<?php
[49] Fix | Delete
echo \WordfenceLS\Model_View::create('manage/regenerate', array(
[50] Fix | Delete
'user' => $user,
[51] Fix | Delete
'remaining' => \WordfenceLS\Controller_Users::shared()->recovery_code_count($user),
[52] Fix | Delete
))->render();
[53] Fix | Delete
?>
[54] Fix | Delete
</div>
[55] Fix | Delete
<!-- end regenerate codes -->
[56] Fix | Delete
</div>
[57] Fix | Delete
<div id="wfls-activation-controls" class="wfls-flex-row wfls-flex-row-xs-wrappable wfls-flex-row-equal-heights"<?php if ($enabled) { echo ' style="display: none;"'; } ?>>
[58] Fix | Delete
<?php
[59] Fix | Delete
$initializationData = new \WordfenceLS\Model_2faInitializationData($user);
[60] Fix | Delete
?>
[61] Fix | Delete
<!-- begin qr code -->
[62] Fix | Delete
<div class="wfls-flex-row wfls-flex-row-equal-heights wfls-col-sm-half-padding-right wfls-flex-item-xs-100 wfls-flex-item-sm-50">
[63] Fix | Delete
<?php
[64] Fix | Delete
echo \WordfenceLS\Model_View::create('manage/code', array(
[65] Fix | Delete
'initializationData' => $initializationData
[66] Fix | Delete
))->render();
[67] Fix | Delete
?>
[68] Fix | Delete
</div>
[69] Fix | Delete
<!-- end qr code -->
[70] Fix | Delete
<!-- begin activation -->
[71] Fix | Delete
<div class="wfls-flex-row wfls-flex-row-equal-heights wfls-col-sm-half-padding-left wfls-flex-item-xs-100 wfls-flex-item-sm-50">
[72] Fix | Delete
<?php
[73] Fix | Delete
echo \WordfenceLS\Model_View::create('manage/activate', array(
[74] Fix | Delete
'initializationData' => $initializationData
[75] Fix | Delete
))->render();
[76] Fix | Delete
?>
[77] Fix | Delete
</div>
[78] Fix | Delete
<!-- end activation -->
[79] Fix | Delete
</div>
[80] Fix | Delete
<div id="wfls-grace-period-controls" class="wfls-flex-row wfls-flex-row-xs-wrappable wfls-flex-row-equal-heights"<?php if ($enabled || !($lockedOut || $inGracePeriod)) { echo ' style="display: none;"'; } ?>>
[81] Fix | Delete
<div class="wfls-flex-row wfls-flex-row-equal-heights wfls-flex-item-xs-100 wfls-add-top">
[82] Fix | Delete
<?php
[83] Fix | Delete
echo \WordfenceLS\Model_View::create('manage/grace-period', array(
[84] Fix | Delete
'user' => $user,
[85] Fix | Delete
'lockedOut' => $lockedOut,
[86] Fix | Delete
'gracePeriod' => $inGracePeriod,
[87] Fix | Delete
'requiredAt' => $requiredAt
[88] Fix | Delete
))->render();
[89] Fix | Delete
?>
[90] Fix | Delete
</div>
[91] Fix | Delete
</div>
[92] Fix | Delete
<?php
[93] Fix | Delete
/**
[94] Fix | Delete
* Fires after the main content of the activation page has been output.
[95] Fix | Delete
*/
[96] Fix | Delete
do_action('wfls_activation_page_footer');
[97] Fix | Delete
$time = time();
[98] Fix | Delete
$correctedTime = \WordfenceLS\Controller_Time::time($time);
[99] Fix | Delete
$tz = get_option('timezone_string');
[100] Fix | Delete
if (empty($tz)) {
[101] Fix | Delete
$offset = get_option('gmt_offset');
[102] Fix | Delete
$tz = 'UTC' . ($offset >= 0 ? '+' . $offset : $offset);
[103] Fix | Delete
}
[104] Fix | Delete
?>
[105] Fix | Delete
<?php if (\WordfenceLS\Controller_Permissions::shared()->can_manage_settings()): ?>
[106] Fix | Delete
<p><?php esc_html_e('Server Time:', 'wordfence'); ?> <?php echo date('Y-m-d H:i:s', $time); ?> UTC (<?php echo \WordfenceLS\Controller_Time::format_local_time('Y-m-d H:i:s', $time) . ' ' . $tz; ?>)<br>
[107] Fix | Delete
<?php esc_html_e('Browser Time:', 'wordfence'); ?> <script type="application/javascript">var date = new Date(); document.write(date.toUTCString() + ' (' + date.toString() + ')');</script><br>
[108] Fix | Delete
<?php
[109] Fix | Delete
if (\WordfenceLS\Controller_Settings::shared()->is_ntp_enabled()) {
[110] Fix | Delete
echo esc_html__('Corrected Time (NTP):', 'wordfence') . ' ' . date('Y-m-d H:i:s', $correctedTime) . ' UTC (' . \WordfenceLS\Controller_Time::format_local_time('Y-m-d H:i:s', $correctedTime) . ' ' . $tz . ')<br>';
[111] Fix | Delete
}
[112] Fix | Delete
else if (WORDFENCE_LS_FROM_CORE && $correctedTime != $time) {
[113] Fix | Delete
echo esc_html__('Corrected Time (WF):', 'wordfence') . ' ' . date('Y-m-d H:i:s', $correctedTime) . ' UTC (' . \WordfenceLS\Controller_Time::format_local_time('Y-m-d H:i:s', $correctedTime) . ' ' . $tz . ')<br>';
[114] Fix | Delete
}
[115] Fix | Delete
?>
[116] Fix | Delete
<?php esc_html_e('Detected IP:', 'wordfence'); ?> <?php echo \WordfenceLS\Text\Model_HTML::esc_html(\WordfenceLS\Model_Request::current()->ip()); if (\WordfenceLS\Controller_Whitelist::shared()->is_whitelisted(\WordfenceLS\Model_Request::current()->ip())) { echo ' (' . esc_html__('allowlisted', 'wordfence') . ')'; } ?></p>
[117] Fix | Delete
<?php endif; ?>
[118] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function