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/password.../includes/views/external
File: view-ppw-general.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* PPWP General Settings
[2] Fix | Delete
*/
[3] Fix | Delete
$using_recaptcha = PPW_Recaptcha::get_instance()->using_recaptcha() ? 'checked' : '';
[4] Fix | Delete
$recaptcha_type = PPW_Recaptcha::get_instance()->get_recaptcha_type();
[5] Fix | Delete
$password_types = PPW_Recaptcha::get_instance()->get_password_types();
[6] Fix | Delete
$type_options = array(
[7] Fix | Delete
PPW_Recaptcha::RECAPTCHA_V3_TYPE => __( 'reCAPTCHA v3', PPW_Constants::DOMAIN ),
[8] Fix | Delete
PPW_Recaptcha::RECAPTCHA_V2_CHECKBOX_TYPE => __( 'reCAPTCHA v2 - Checkbox', PPW_Constants::DOMAIN ),
[9] Fix | Delete
);
[10] Fix | Delete
$password_type_options = array(
[11] Fix | Delete
PPW_Recaptcha::SINGLE_PASSWORD => __( 'Single password form', PPW_Constants::DOMAIN ),
[12] Fix | Delete
PPW_Recaptcha::SITEWIDE_PASSWORD => __( 'Sitewide login form', PPW_Constants::DOMAIN ),
[13] Fix | Delete
PPW_Recaptcha::PCP_PASSWORD => __( 'PCP password form', PPW_Constants::DOMAIN ),
[14] Fix | Delete
);
[15] Fix | Delete
[16] Fix | Delete
?>
[17] Fix | Delete
<div class="ppw_main_container" id="ppw_shortcodes_form">
[18] Fix | Delete
<form id="wpp_external_form" method="post">
[19] Fix | Delete
<input type="hidden" id="ppw_general_form_nonce"
[20] Fix | Delete
value="<?php echo esc_attr( wp_create_nonce( PPW_Constants::GENERAL_FORM_NONCE ) ); ?>"/>
[21] Fix | Delete
<table class="ppwp_settings_table" cellpadding="4">
[22] Fix | Delete
<tr>
[23] Fix | Delete
<td>
[24] Fix | Delete
<label class="pda_switch" for="<?php echo esc_attr( PPW_Constants::USING_RECAPTCHA ); ?>">
[25] Fix | Delete
<input type="checkbox"
[26] Fix | Delete
id="<?php echo esc_attr( PPW_Constants::USING_RECAPTCHA ); ?>" <?php echo esc_html( $using_recaptcha ); ?>>
[27] Fix | Delete
<span class="pda-slider round"></span>
[28] Fix | Delete
</label>
[29] Fix | Delete
</td>
[30] Fix | Delete
<td>
[31] Fix | Delete
<p style="margin-bottom: 6px;">
[32] Fix | Delete
<label><?php esc_attr_e( 'Enable Google reCAPTCHA Protection', PPW_Constants::DOMAIN ) ?></label>
[33] Fix | Delete
<a rel="noopener" target="_blank" href="https://passwordprotectwp.com/docs/add-google-recaptcha-wordpress-password-form/?utm_source=user-website&utm_medium=integration-recaptcha&utm_campaign=ppwp-free"><?php echo esc_html__('Protect
[34] Fix | Delete
your password form',PPW_Constants::DOMAIN)?></a>
[35] Fix | Delete
<?php echo esc_html__('from abuse and spam while allowing real user access only',PPW_Constants::DOMAIN);?>
[36] Fix | Delete
</p>
[37] Fix | Delete
<div
[38] Fix | Delete
<?php echo $using_recaptcha ? '' : 'style="display: none"'; ?>
[39] Fix | Delete
id="wpp_recaptcha_options">
[40] Fix | Delete
<div>
[41] Fix | Delete
<p><?php esc_attr_e( 'Choose reCAPTCHA type', PPW_Constants::DOMAIN ); ?></p>
[42] Fix | Delete
<select
[43] Fix | Delete
class="ppw_main_container select"
[44] Fix | Delete
id="wpp_recaptcha_type">
[45] Fix | Delete
<?php
[46] Fix | Delete
foreach ( $type_options as $key => $value ) {
[47] Fix | Delete
$selected = $key === $recaptcha_type ? 'selected="selected"' : '';
[48] Fix | Delete
echo '<option value="' . esc_attr( $key ) . '" ' . esc_html( $selected ) . '>' . esc_html( $value ) . '</option>';
[49] Fix | Delete
}
[50] Fix | Delete
?>
[51] Fix | Delete
<option value="recaptcha_v2_invisible"
[52] Fix | Delete
disabled><?php echo esc_html__( 'reCAPTCHA v2 - Invisible', PPW_Constants::DOMAIN ); ?></option>
[53] Fix | Delete
</select>
[54] Fix | Delete
</div>
[55] Fix | Delete
<div style="max-width: 25rem;">
[56] Fix | Delete
<p><?php esc_attr_e( 'Choose which password form to apply reCAPTCHA', PPW_Constants::DOMAIN ); ?></p>
[57] Fix | Delete
<select id="wpp_recaptcha_password_types" class="ppw_main_container select ppw_select_types" required multiple="multiple">
[58] Fix | Delete
<?php
[59] Fix | Delete
foreach ( $password_type_options as $key => $value ) {
[60] Fix | Delete
$selected = in_array( $key, $password_types) ? 'selected="selected"' : '';
[61] Fix | Delete
echo '<option value="' . esc_attr( $key ) . '" ' . esc_html( $selected ) . '>' . esc_html( $value ) . '</option>';
[62] Fix | Delete
}
[63] Fix | Delete
?>
[64] Fix | Delete
</select>
[65] Fix | Delete
</div>
[66] Fix | Delete
</div>
[67] Fix | Delete
</td>
[68] Fix | Delete
</tr>
[69] Fix | Delete
<tr>
[70] Fix | Delete
<td>
[71] Fix | Delete
</td>
[72] Fix | Delete
<td>
[73] Fix | Delete
<input type="submit" name="submit" id="submit" class="button button-primary" value="Save Changes">
[74] Fix | Delete
</td>
[75] Fix | Delete
</tr>
[76] Fix | Delete
</table>
[77] Fix | Delete
</form>
[78] Fix | Delete
</div>
[79] Fix | Delete
[80] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function