PluginProbe
Loginizer / 2.1.1
Loginizer v2.1.1
2.1.1 2.1.0 2.0.9 2.0.8 1.9.8 1.9.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 All 75 releases
← All changes | main/settings/recaptcha.php +22 -4 2.0.3 → 2.1.1 View file →
@@ -17,9 +17,9 @@
17 17 wp_die('Sorry, but you do not have permissions to change settings.');
18 18 }
19 19
20 20 if(!loginizer_is_premium() && count($_POST) > 0){
21 - $lz_error['not_in_free'] = __('This feature is not available in the Free version. <a href="'.LOGINIZER_PRICING_URL.'" target="_blank" style="text-decoration:none; color:green;"><b>Upgrade to Pro</b></a>', 'loginizer');
21 + $lz_error['not_in_free'] = __('This feature is not available in the Free version.', 'loginizer').' <a href="'.LOGINIZER_PRICING_URL.'" target="_blank" style="text-decoration:none; color:green;"><b>'.esc_html__('Upgrade to Pro', 'loginizer').'</b></a>';
22 22 return loginizer_page_recaptcha_T();
23 23 }
24 24
25 25 /* Make sure post was from this page */
@@ -153,9 +153,12 @@
153 153 $option['captcha_resetpass'] = (int) lz_optpost('captcha_resetpass');
154 154 $option['captcha_register'] = (int) lz_optpost('captcha_register');
155 155 $option['captcha_comment'] = (int) lz_optpost('captcha_comment');
156 156 $option['captcha_wc_checkout'] = (int) lz_optpost('captcha_wc_checkout');
157 + $option['captcha_wc_block_checkout'] = isset($_POST['captcha_wc_block_checkout']);
157 158 $option['captcha_wc_checkout_pos'] = lz_optpost('captcha_wc_checkout_pos');
159 + $option['captcha_wpforms'] = (int) lz_optpost('captcha_wpforms');
160 + $option['captcha_contactform7'] = (int) lz_optpost('captcha_contactform7');
158 161
159 162 // Are we to use Math Captcha ?
160 163 if(!empty($_POST['captcha_status']) && $_POST['captcha_status'] == 2){
161 164
@@ -388,9 +391,9 @@
388 391
389 392 <tr class="lz_google_cap">
390 393 <td scope="row" valign="top"><label><b><?php echo __('reCAPTCHA type', 'loginizer'); ?></b></label><br>
391 394 <?php echo __('Choose the type of reCAPTCHA', 'loginizer'); ?><br />
392 - <?php echo __('<a href="https://g.co/recaptcha/sitetypes/" target="_blank">See Site Types for more details</a>', 'loginizer'); ?>
395 + <?php echo '<a href="https://developers.google.com/recaptcha/docs/versions" target="_blank">'.__('See Site Types for more details', 'loginizer').'</a>'; ?>
393 396 </td>
394 397 <td>
395 398 <input type="radio" value="v3" onchange="google_recaptcha_type()" <?php echo lz_POSTradio('captcha_type', 'v3', (!empty($loginizer['captcha_type']) ? $loginizer['captcha_type'] : '')); ?> name="captcha_type" id="captcha_type_v3" /> <label for="captcha_type_v3"><?php echo __('reCAPTCHA v3', 'loginizer'); ?></label><br /><br />
396 399 <input type="radio" value="" onchange="google_recaptcha_type()" <?php echo lz_POSTradio('captcha_type', '', (!empty($loginizer['captcha_type']) ? $loginizer['captcha_type'] : '')); ?> name="captcha_type" id="captcha_type_v2" /> <label for="captcha_type_v2"><?php echo __('reCAPTCHA v2 - Checkbox', 'loginizer'); ?></label><br /><br />
@@ -402,9 +405,9 @@
402 405 <?php echo __('Make sure you enter the correct keys as per the reCAPTCHA type selected above', 'loginizer'); ?>
403 406 </td>
404 407 <td>
405 408 <input type="text" size="50" value="<?php echo lz_optpost('captcha_key', (!empty($loginizer['captcha_key']) ? $loginizer['captcha_key'] : '')); ?>" name="captcha_key" id="captcha_key" /><br />
406 - <?php echo __('Get the Site Key and Secret Key from <a href="https://www.google.com/recaptcha/admin/" target="_blank">Google</a>', 'loginizer'); ?>
409 + <?php echo __('Get the Site Key and Secret Key from', 'loginizer'). ' <a href="https://www.google.com/recaptcha/admin/" target="_blank">Google</a>'; ?>
407 410 </td>
408 411 </tr>
409 412 <tr class="lz_google_cap">
410 413 <td scope="row" valign="top"><label for="captcha_secret"><b><?php echo __('Secret Key', 'loginizer'); ?></b></label></td>
@@ -479,9 +482,9 @@
479 482 <td scope="row" valign="top"><label for="turn_captcha_key"><b><?php echo __('Site Key', 'loginizer'); ?></b></label><br>
480 483 </td>
481 484 <td>
482 485 <input type="text" size="50" value="<?php echo lz_optpost('turn_captcha_key', (!empty($loginizer['turn_captcha_key']) ? $loginizer['turn_captcha_key'] : '')); ?>" name="turn_captcha_key" id="turn_captcha_key" /><br />
483 - <?php echo __('Get the Site Key and Secret Key from <a href="https://dash.cloudflare.com/sign-up?to=/:account/turnstile" target="_blank">Cloudflare Turnstile</a>', 'loginizer'); ?>
486 + <?php echo __('Get the Site Key and Secret Key from', 'loginizer').' <a href="https://dash.cloudflare.com/sign-up?to=/:account/turnstile" target="_blank">Cloudflare Turnstile</a>'; ?>
484 487 </td>
485 488 </tr>
486 489 <tr class="lz_turnstile_cap">
487 490 <td scope="row" valign="top"><label for="turn_captcha_secret"><b><?php echo __('Secret Key', 'loginizer'); ?></b></label></td>
@@ -613,8 +616,12 @@
613 616 echo '<tr>
614 617 <td><label for="captcha_wc_checkout">'.__('WooCommerce Checkout', 'loginizer').'</label></td>
615 618 <td><input type="checkbox" value="1" name="captcha_wc_checkout" id="captcha_wc_checkout" '.lz_POSTchecked('captcha_wc_checkout', (empty($loginizer['captcha_wc_checkout']) ? false : true)).' /></td>
616 619 </tr>
620 + <tr>
621 + <td><label for="captcha_wc_block_checkout">'.__('WooCommerce Block based Checkout', 'loginizer').'</label></td>
622 + <td><input type="checkbox" value="1" name="captcha_wc_block_checkout" id="captcha_wc_block_checkout" '.lz_POSTchecked('captcha_wc_block_checkout', (!empty($loginizer['captcha_wc_block_checkout']))).' /></td>
623 + </tr>
617 624
618 625 <tr>
619 626 <td><label for="captcha_wc_checkout_pos">'.__('WooCommerce Checkout Position', 'loginizer').'</label></td>
620 627 <td>
@@ -622,8 +629,19 @@
622 629 <option value="" '.(isset($loginizer['captcha_wc_checkout_pos']) ? selected($loginizer['captcha_wc_checkout_pos'], '', false) : '').'>'.__('Before Payment', 'loginizer').'</option>
623 630 <option value="before_submit" '.(isset($loginizer['captcha_wc_checkout_pos']) ? selected($loginizer['captcha_wc_checkout_pos'], 'before_submit', false) : '').'>'.__('Before Order Button', 'loginizer').'</option>
624 631 </select>
625 632 </td>
633 + </tr>
634 + <tr>
635 + <td><label for="captcha_wpforms">'.__('WPForms', 'loginizer').'</label></td>
636 + <td><input type="checkbox" value="1" name="captcha_wpforms" id="captcha_wpforms" '.lz_POSTchecked('captcha_wpforms', (empty($loginizer['captcha_wpforms']) ? false : true)).' /></td>
637 + </tr>
638 + <tr>
639 + <td><label for="captcha_contactform7">'.__('ContactForm7', 'loginizer').'</label></td>
640 + <td><input type="checkbox" value="1" name="captcha_contactform7" id="captcha_contactform7" '.lz_POSTchecked('captcha_contactform7', (empty($loginizer['captcha_contactform7']) ? false : true)).' /></td>
641 + </tr>
642 + <tr>
643 + <td>'.__('To use the Loginizer reCAPTCHA on Contact Form 7 please enable the above checkbox add the shortcode: [loginizer_pro_recaptcha]', 'loginizer').'</td>
626 644 </tr>';
627 645 }
628 646
629 647 ?>