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-configuration.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* General Configuration Settings
[2] Fix | Delete
*/
[3] Fix | Delete
$api_key = PPW_Recaptcha::get_instance()->get_recaptcha_v3_api_key();
[4] Fix | Delete
$api_key_v2 = PPW_Recaptcha::get_instance()->get_recaptcha_v2_api_key();
[5] Fix | Delete
$api_secret = PPW_Recaptcha::get_instance()->get_recaptcha_v3_api_secret();
[6] Fix | Delete
$api_secret_v2 = PPW_Recaptcha::get_instance()->get_recaptcha_v2_api_secret();
[7] Fix | Delete
$score = PPW_Recaptcha::get_instance()->get_limit_score();
[8] Fix | Delete
[9] Fix | Delete
?>
[10] Fix | Delete
<div class="ppw_main_container" id="ppw_shortcodes_form">
[11] Fix | Delete
<table class="ppwp_settings_table" cellpadding="4">
[12] Fix | Delete
<td colspan="2">
[13] Fix | Delete
<div style="margin-bottom: 1rem">
[14] Fix | Delete
<h3 style="text-transform: none; margin-bottom: 0.5rem">
[15] Fix | Delete
<?php echo esc_html__('Configure reCAPTCHA key',PPW_Constants::DOMAIN); ?></h3>
[16] Fix | Delete
<a rel="noopener" target="_blank" href="https://g.co/recaptcha/v3"><?php echo esc_html__('Get the Site Key and Secret Key',PPW_Constants::DOMAIN);?></a><?php echo esc_html__('from Google',PPW_Constants::DOMAIN)?>
[17] Fix | Delete
</div>
[18] Fix | Delete
</td>
[19] Fix | Delete
</table>
[20] Fix | Delete
<form id="wpp_external_v3_form" method="post">
[21] Fix | Delete
<input type="hidden" id="ppw_general_form_nonce"
[22] Fix | Delete
value="<?php echo esc_attr( wp_create_nonce( PPW_Constants::GENERAL_FORM_NONCE ) ); ?>"/>
[23] Fix | Delete
<table class="ppwp_settings_table" cellpadding="4">
[24] Fix | Delete
<tr id="wpp_recaptcha_configs">
[25] Fix | Delete
<td class="feature-input">
[26] Fix | Delete
<span class="feature-input"></span>
[27] Fix | Delete
</td>
[28] Fix | Delete
<td>
[29] Fix | Delete
<p>
[30] Fix | Delete
<label><?php echo esc_html__( 'reCAPTCHA v3', PPW_Constants::DOMAIN ) ?></label>
[31] Fix | Delete
</p>
[32] Fix | Delete
<span>
[33] Fix | Delete
<p>
[34] Fix | Delete
<label><?php echo esc_html__( 'Site Key', PPW_Constants::DOMAIN ) ?></label>
[35] Fix | Delete
</p>
[36] Fix | Delete
<span class="ppwp-recaptcha-input">
[37] Fix | Delete
<input id="<?php echo esc_attr( PPW_Constants::RECAPTCHA_API_KEY ); ?>" type="text"
[38] Fix | Delete
value="<?php echo esc_attr( $api_key ); ?>"/>
[39] Fix | Delete
<div id="ppwp-error-require-v3-key" style="display: none; color: red; position: absolute; font-size: 12px;">This field is required.</div>
[40] Fix | Delete
</span>
[41] Fix | Delete
<p>
[42] Fix | Delete
<label class="ppwp-title"><?php echo esc_html__( 'Secret Key', PPW_Constants::DOMAIN ) ?></label>
[43] Fix | Delete
</p>
[44] Fix | Delete
<span class="ppwp-recaptcha-input">
[45] Fix | Delete
<input id="<?php echo esc_attr( PPW_Constants::RECAPTCHA_API_SECRET ); ?>" type="text"
[46] Fix | Delete
value="<?php echo esc_attr( $api_secret ); ?>"/>
[47] Fix | Delete
</span>
[48] Fix | Delete
<div id="ppwp-error-require-v3-secret" style="display: none; color: red; position: absolute; font-size: 12px;">This field is required.</div>
[49] Fix | Delete
<p id="recaptcha-score-container">
[50] Fix | Delete
<label class="ppwp-title"><?php echo esc_html__( 'Threshold', PPW_Constants::DOMAIN ) ?></label>
[51] Fix | Delete
Define users' score that will pass reCAPTCHA protection
[52] Fix | Delete
<span class="ppw-recaptcha-score">
[53] Fix | Delete
<select class="ppw_main_container select"
[54] Fix | Delete
id="<?php echo esc_attr( PPW_Constants::RECAPTCHA_SCORE ); ?>">
[55] Fix | Delete
<?php
[56] Fix | Delete
for ( $i = 0; $i <= 10; $i ++ ) {
[57] Fix | Delete
$s = number_format( ( $i / 10 ), 1 );
[58] Fix | Delete
$selected = (double) $s === $score ? 'selected="selected"' : '';
[59] Fix | Delete
echo '<option value="' . esc_attr( $s ) . '"' . esc_html( $selected ) . '>' . esc_html( $s ) . '</option>';
[60] Fix | Delete
}
[61] Fix | Delete
?>
[62] Fix | Delete
</select>
[63] Fix | Delete
</span>
[64] Fix | Delete
</p>
[65] Fix | Delete
</td>
[66] Fix | Delete
</tr>
[67] Fix | Delete
<tr>
[68] Fix | Delete
<td>
[69] Fix | Delete
</td>
[70] Fix | Delete
<td>
[71] Fix | Delete
<input type="submit" name="v3_submit_btn" id="submit" class="button button-primary v3_submit_btn" value="Save Changes">
[72] Fix | Delete
</td>
[73] Fix | Delete
</tr>
[74] Fix | Delete
</table>
[75] Fix | Delete
</form>
[76] Fix | Delete
<form id="wpp_external_v2_form" method="post">
[77] Fix | Delete
<table class="ppwp_settings_table" cellpadding="4">
[78] Fix | Delete
<tr id="wpp_recaptcha_configs">
[79] Fix | Delete
<td class="feature-input">
[80] Fix | Delete
<span class="feature-input"></span>
[81] Fix | Delete
</td>
[82] Fix | Delete
<td>
[83] Fix | Delete
<p>
[84] Fix | Delete
<label><?php echo esc_html__( 'reCAPTCHA v2 - Checkbox', PPW_Constants::DOMAIN ); ?></label>
[85] Fix | Delete
</p>
[86] Fix | Delete
<span>
[87] Fix | Delete
<p>
[88] Fix | Delete
<label><?php echo esc_html__( 'Site Key', PPW_Constants::DOMAIN ) ?></label>
[89] Fix | Delete
</p>
[90] Fix | Delete
<span class="ppwp-recaptcha-input">
[91] Fix | Delete
<input id="<?php echo esc_attr( PPW_Constants::RECAPTCHA_V2_CHECKBOX_API_KEY ); ?>" type="text"
[92] Fix | Delete
value="<?php echo esc_attr( $api_key_v2 ); ?>"/>
[93] Fix | Delete
</span>
[94] Fix | Delete
<div id="ppwp-error-require-v2-key" style="display: none; color: red; position: absolute; font-size: 12px;"><?php echo esc_html__('This field is required.',PPW_Constants::DOMAIN);?> </div>
[95] Fix | Delete
<p>
[96] Fix | Delete
<label class="ppwp-title"><?php echo esc_html__( 'Secret Key', PPW_Constants::DOMAIN ) ?></label>
[97] Fix | Delete
</p>
[98] Fix | Delete
<span class="ppwp-recaptcha-input">
[99] Fix | Delete
<input id="<?php echo esc_attr( PPW_Constants::RECAPTCHA_V2_CHECKBOX_API_SECRET ); ?>" type="text"
[100] Fix | Delete
value="<?php echo esc_attr( $api_secret_v2 ); ?>"/>
[101] Fix | Delete
</span>
[102] Fix | Delete
<div id="ppwp-error-require-v2-secret" style="display: none; color: red; position: absolute; font-size: 12px;"><?php echo esc_html__('This field is required.',PPW_Constants::DOMAIN);?></div>
[103] Fix | Delete
</td>
[104] Fix | Delete
</tr>
[105] Fix | Delete
<tr>
[106] Fix | Delete
<td>
[107] Fix | Delete
</td>
[108] Fix | Delete
<td>
[109] Fix | Delete
<input type="submit" name="v2_submit_btn" id="submit" class="button button-primary recaptcha-btn" value="Save Changes">
[110] Fix | Delete
</td>
[111] Fix | Delete
</tr>
[112] Fix | Delete
</table>
[113] Fix | Delete
</form>
[114] Fix | Delete
</div>
[115] Fix | Delete
[116] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function