Version Description
- recaptcha domain can now be changed from settings.
- footer script hook priority changed.
- use same settings if network activated.
- for cf7, use this plugins captcha instead of cf7 captcha.
Download this release
Release Info
Developer | shamim51 |
Plugin | Advanced noCaptcha & invisible Captcha |
Version | 6.1.1 |
Comparing to | |
See all releases |
Code changes from version 5.7.1 to 6.1.1
- admin/settings.php +69 -11
- advanced-nocaptcha-recaptcha.php +10 -4
- anr-captcha-class.php +14 -10
- freemius/assets/img/advanced-nocaptcha-recaptcha.jpg +0 -0
- functions.php +18 -21
- languages/advanced-nocaptcha-recaptcha.pot +132 -124
- readme.txt +13 -3
admin/settings.php
CHANGED
@@ -17,13 +17,9 @@ class ANR_Settings {
|
|
17 |
add_filter( 'plugin_action_links_' . plugin_basename( ANR_PLUGIN_FILE ), array( $this, 'add_settings_link' ) );
|
18 |
add_action('admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
|
19 |
|
20 |
-
if (
|
21 |
-
|
22 |
-
|
23 |
-
$same_settings = false;
|
24 |
-
}
|
25 |
-
if ( $same_settings ) {
|
26 |
-
add_action( 'network_admin_menu', array( $this, 'menu_page' ) );
|
27 |
} else {
|
28 |
add_action( 'admin_menu', array( $this, 'menu_page' ) );
|
29 |
}
|
@@ -118,7 +114,7 @@ class ANR_Settings {
|
|
118 |
'bp_register' => __( 'BuddyPress register', 'advanced-nocaptcha-recaptcha' ),
|
119 |
'wc_checkout' => __( 'WooCommerce Checkout', 'advanced-nocaptcha-recaptcha' ),
|
120 |
),
|
121 |
-
'desc' => sprintf( __( 'For other forms see <a href="%s">Instruction</a>', 'advanced-nocaptcha-recaptcha' ), esc_url(
|
122 |
),
|
123 |
'error_message' => array(
|
124 |
'label' => __( 'Error Message', 'advanced-nocaptcha-recaptcha' ),
|
@@ -252,6 +248,18 @@ class ANR_Settings {
|
|
252 |
'class' => 'regular',
|
253 |
'desc' => __( 'One per line', 'advanced-nocaptcha-recaptcha' ),
|
254 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
'loggedin_hide' => array(
|
256 |
'label' => __( 'Logged in Hide', 'advanced-nocaptcha-recaptcha' ),
|
257 |
'section_id' => 'other',
|
@@ -404,16 +412,65 @@ class ANR_Settings {
|
|
404 |
foreach ( $value as $option_slug => $option_value ) {
|
405 |
if ( isset( $fields[ $option_slug ] ) && ! empty( $fields[ $option_slug ]['sanitize_callback'] ) ) {
|
406 |
$value[ $option_slug ] = call_user_func( $fields[ $option_slug ]['sanitize_callback'], $option_value );
|
|
|
|
|
407 |
}
|
408 |
}
|
409 |
return $value;
|
410 |
}
|
411 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
412 |
function menu_page() {
|
413 |
add_options_page( __( 'Advanced noCaptcha & invisible captcha Settings', 'advanced-nocaptcha-recaptcha' ), __( 'Advanced noCaptcha & invisible captcha', 'advanced-nocaptcha-recaptcha' ), 'manage_options', 'anr-admin-settings', array( $this, 'admin_settings' ) );
|
414 |
add_submenu_page( 'anr-non-exist-menu', 'Advanced noCaptcha reCaptcha - ' . __( 'Instruction', 'advanced-nocaptcha-recaptcha' ), __( 'Instruction', 'advanced-nocaptcha-recaptcha' ), 'manage_options', 'anr-instruction', array( $this, 'instruction_page' ) );
|
415 |
|
416 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
417 |
|
418 |
function settings_save() {
|
419 |
if ( current_user_can( 'manage_options' ) && isset( $_POST['anr_admin_options'] ) && isset( $_POST['action'] ) && 'update' === $_POST['action'] && isset( $_GET['page'] ) && 'anr-admin-settings' === $_GET['page'] ) {
|
@@ -425,7 +482,7 @@ class ANR_Settings {
|
|
425 |
}
|
426 |
anr_update_option( $value );
|
427 |
|
428 |
-
wp_safe_redirect(
|
429 |
exit;
|
430 |
}
|
431 |
}
|
@@ -440,7 +497,7 @@ class ANR_Settings {
|
|
440 |
<div id="post-body-content">
|
441 |
<div id="tab_container">
|
442 |
<?php settings_errors( 'anr_admin_options' ); ?>
|
443 |
-
<form method="post" action="
|
444 |
<?php
|
445 |
settings_fields( 'anr_admin_options' );
|
446 |
do_settings_sections( 'anr_admin_options' );
|
@@ -535,7 +592,8 @@ class ANR_Settings {
|
|
535 |
|
536 |
function add_settings_link( $links ) {
|
537 |
// add settings link in plugins page
|
538 |
-
$
|
|
|
539 |
array_unshift( $links, $settings_link );
|
540 |
return $links;
|
541 |
}
|
17 |
add_filter( 'plugin_action_links_' . plugin_basename( ANR_PLUGIN_FILE ), array( $this, 'add_settings_link' ) );
|
18 |
add_action('admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
|
19 |
|
20 |
+
if ( anr_same_settings_for_all_sites() ) {
|
21 |
+
add_action( 'network_admin_menu', array( $this, 'network_menu_page' ) );
|
22 |
+
add_filter( 'network_admin_plugin_action_links_' . plugin_basename( ANR_PLUGIN_FILE ), array( $this, 'add_settings_link' ) );
|
|
|
|
|
|
|
|
|
23 |
} else {
|
24 |
add_action( 'admin_menu', array( $this, 'menu_page' ) );
|
25 |
}
|
114 |
'bp_register' => __( 'BuddyPress register', 'advanced-nocaptcha-recaptcha' ),
|
115 |
'wc_checkout' => __( 'WooCommerce Checkout', 'advanced-nocaptcha-recaptcha' ),
|
116 |
),
|
117 |
+
'desc' => sprintf( __( 'For other forms see <a href="%s">Instruction</a>', 'advanced-nocaptcha-recaptcha' ), esc_url( network_admin_url( 'admin.php?page=anr-instruction' ) ) ),
|
118 |
),
|
119 |
'error_message' => array(
|
120 |
'label' => __( 'Error Message', 'advanced-nocaptcha-recaptcha' ),
|
248 |
'class' => 'regular',
|
249 |
'desc' => __( 'One per line', 'advanced-nocaptcha-recaptcha' ),
|
250 |
),
|
251 |
+
'recaptcha_domain' => array(
|
252 |
+
'label' => __( 'Recaptcha Domain', 'advanced-nocaptcha-recaptcha' ),
|
253 |
+
'section_id' => 'other',
|
254 |
+
'type' => 'select',
|
255 |
+
'class' => 'regular',
|
256 |
+
'std' => anr_recaptcha_domain(),
|
257 |
+
'options' => array(
|
258 |
+
'google.com' => 'google.com',
|
259 |
+
'google.net' => 'google.net',
|
260 |
+
),
|
261 |
+
'desc' => __( 'If any one is blocked in your country select other one.', 'advanced-nocaptcha-recaptcha' ),
|
262 |
+
),
|
263 |
'loggedin_hide' => array(
|
264 |
'label' => __( 'Logged in Hide', 'advanced-nocaptcha-recaptcha' ),
|
265 |
'section_id' => 'other',
|
412 |
foreach ( $value as $option_slug => $option_value ) {
|
413 |
if ( isset( $fields[ $option_slug ] ) && ! empty( $fields[ $option_slug ]['sanitize_callback'] ) ) {
|
414 |
$value[ $option_slug ] = call_user_func( $fields[ $option_slug ]['sanitize_callback'], $option_value );
|
415 |
+
} elseif ( isset( $fields[ $option_slug ] ) ) {
|
416 |
+
$value[ $option_slug ] = $this->posted_value_sanitize( $option_value, $fields[ $option_slug ] );
|
417 |
}
|
418 |
}
|
419 |
return $value;
|
420 |
}
|
421 |
|
422 |
+
function posted_value_sanitize( $value, $field ) {
|
423 |
+
$sanitized = $value;
|
424 |
+
switch ( $field['type'] ) {
|
425 |
+
case 'text':
|
426 |
+
case 'hidden':
|
427 |
+
$sanitized = sanitize_text_field( trim( $value ) );
|
428 |
+
break;
|
429 |
+
case 'url':
|
430 |
+
$sanitized = esc_url( $value );
|
431 |
+
break;
|
432 |
+
case 'number':
|
433 |
+
$sanitized = absint( $value );
|
434 |
+
break;
|
435 |
+
case 'textarea':
|
436 |
+
case 'wp_editor':
|
437 |
+
case 'teeny':
|
438 |
+
$sanitized = wp_kses_post( $value );
|
439 |
+
break;
|
440 |
+
case 'checkbox':
|
441 |
+
$sanitized = absint( $value );
|
442 |
+
break;
|
443 |
+
case 'multicheck':
|
444 |
+
$sanitized = is_array( $value ) ? array_filter( $value ) : array();
|
445 |
+
foreach( $sanitized as $key => $p_value ) {
|
446 |
+
if ( ! array_key_exists( $p_value, $field['options'] ) ) {
|
447 |
+
unset( $sanitized[ $key ] );
|
448 |
+
}
|
449 |
+
}
|
450 |
+
break;
|
451 |
+
case 'select':
|
452 |
+
if ( ! array_key_exists( $value, $field['options'] ) ) {
|
453 |
+
$sanitized = isset($field['std'])? $field['std'] : '';
|
454 |
+
}
|
455 |
+
break;
|
456 |
+
default:
|
457 |
+
$sanitized = apply_filters( 'anr_settings_field_sanitize_filter_' . $field['type'], $value, $field );
|
458 |
+
break;
|
459 |
+
}
|
460 |
+
return apply_filters( 'anr_settings_field_sanitize_filter', $sanitized, $field, $value );
|
461 |
+
}
|
462 |
+
|
463 |
function menu_page() {
|
464 |
add_options_page( __( 'Advanced noCaptcha & invisible captcha Settings', 'advanced-nocaptcha-recaptcha' ), __( 'Advanced noCaptcha & invisible captcha', 'advanced-nocaptcha-recaptcha' ), 'manage_options', 'anr-admin-settings', array( $this, 'admin_settings' ) );
|
465 |
add_submenu_page( 'anr-non-exist-menu', 'Advanced noCaptcha reCaptcha - ' . __( 'Instruction', 'advanced-nocaptcha-recaptcha' ), __( 'Instruction', 'advanced-nocaptcha-recaptcha' ), 'manage_options', 'anr-instruction', array( $this, 'instruction_page' ) );
|
466 |
|
467 |
}
|
468 |
+
|
469 |
+
function network_menu_page() {
|
470 |
+
add_submenu_page( 'settings.php', __( 'Advanced noCaptcha & invisible captcha Settings', 'advanced-nocaptcha-recaptcha' ), __( 'Advanced noCaptcha & invisible captcha', 'advanced-nocaptcha-recaptcha' ), 'manage_network_options', 'anr-admin-settings', array( $this, 'admin_settings' ) );
|
471 |
+
add_submenu_page( 'anr-non-exist-menu', 'Advanced noCaptcha reCaptcha - ' . __( 'Instruction', 'advanced-nocaptcha-recaptcha' ), __( 'Instruction', 'advanced-nocaptcha-recaptcha' ), 'manage_network_options', 'anr-instruction', array( $this, 'instruction_page' ) );
|
472 |
+
|
473 |
+
}
|
474 |
|
475 |
function settings_save() {
|
476 |
if ( current_user_can( 'manage_options' ) && isset( $_POST['anr_admin_options'] ) && isset( $_POST['action'] ) && 'update' === $_POST['action'] && isset( $_GET['page'] ) && 'anr-admin-settings' === $_GET['page'] ) {
|
482 |
}
|
483 |
anr_update_option( $value );
|
484 |
|
485 |
+
wp_safe_redirect( add_query_arg( 'updated', true ) );
|
486 |
exit;
|
487 |
}
|
488 |
}
|
497 |
<div id="post-body-content">
|
498 |
<div id="tab_container">
|
499 |
<?php settings_errors( 'anr_admin_options' ); ?>
|
500 |
+
<form method="post" action="">
|
501 |
<?php
|
502 |
settings_fields( 'anr_admin_options' );
|
503 |
do_settings_sections( 'anr_admin_options' );
|
592 |
|
593 |
function add_settings_link( $links ) {
|
594 |
// add settings link in plugins page
|
595 |
+
$url = anr_same_settings_for_all_sites() ? network_admin_url( 'settings.php?page=anr-admin-settings' ) : admin_url( 'options-general.php?page=anr-admin-settings' );
|
596 |
+
$settings_link = '<a href="' . $url . '">' . __( 'Settings', 'advanced-nocaptcha-recaptcha' ) . '</a>';
|
597 |
array_unshift( $links, $settings_link );
|
598 |
return $links;
|
599 |
}
|
advanced-nocaptcha-recaptcha.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Advanced noCaptcha & invisible Captcha
|
4 |
Plugin URI: https://www.shamimsplugins.com/contact-us/
|
5 |
Description: Show noCaptcha or invisible captcha in Comment Form, bbPress, BuddyPress, WooCommerce, CF7, Login, Register, Lost Password, Reset Password. Also can implement in any other form easily.
|
6 |
-
Version:
|
7 |
Author: Shamim Hasan
|
8 |
Author URI: https://www.shamimsplugins.com/contact-us/
|
9 |
Text Domain: advanced-nocaptcha-recaptcha
|
@@ -14,6 +14,7 @@ WC tested up to: 4.0.1
|
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
15 |
exit; // Exit if accessed directly.
|
16 |
}
|
|
|
17 |
|
18 |
class ANR {
|
19 |
|
@@ -41,7 +42,7 @@ class ANR {
|
|
41 |
}
|
42 |
|
43 |
private function constants() {
|
44 |
-
define( 'ANR_PLUGIN_VERSION', '
|
45 |
define( 'ANR_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
46 |
define( 'ANR_PLUGIN_URL', plugins_url( '/', __FILE__ ) );
|
47 |
define( 'ANR_PLUGIN_FILE', __FILE__ );
|
@@ -72,8 +73,13 @@ if ( function_exists( 'anr_fs' ) ) {
|
|
72 |
// Create a helper function for easy SDK access.
|
73 |
function anr_fs() {
|
74 |
global $anr_fs;
|
|
|
75 |
|
76 |
if ( ! isset( $anr_fs ) ) {
|
|
|
|
|
|
|
|
|
77 |
// Include Freemius SDK.
|
78 |
require_once dirname(__FILE__) . '/freemius/start.php';
|
79 |
|
@@ -94,9 +100,9 @@ if ( function_exists( 'anr_fs' ) ) {
|
|
94 |
'menu' => array(
|
95 |
'slug' => 'anr-admin-settings',
|
96 |
'contact' => false,
|
97 |
-
'network' =>
|
98 |
'parent' => array(
|
99 |
-
'slug' => 'options-general.php',
|
100 |
),
|
101 |
),
|
102 |
) );
|
3 |
Plugin Name: Advanced noCaptcha & invisible Captcha
|
4 |
Plugin URI: https://www.shamimsplugins.com/contact-us/
|
5 |
Description: Show noCaptcha or invisible captcha in Comment Form, bbPress, BuddyPress, WooCommerce, CF7, Login, Register, Lost Password, Reset Password. Also can implement in any other form easily.
|
6 |
+
Version: 6.1.1
|
7 |
Author: Shamim Hasan
|
8 |
Author URI: https://www.shamimsplugins.com/contact-us/
|
9 |
Text Domain: advanced-nocaptcha-recaptcha
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
15 |
exit; // Exit if accessed directly.
|
16 |
}
|
17 |
+
require_once ABSPATH . '/wp-admin/includes/plugin.php';
|
18 |
|
19 |
class ANR {
|
20 |
|
42 |
}
|
43 |
|
44 |
private function constants() {
|
45 |
+
define( 'ANR_PLUGIN_VERSION', '6.1.1' );
|
46 |
define( 'ANR_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
47 |
define( 'ANR_PLUGIN_URL', plugins_url( '/', __FILE__ ) );
|
48 |
define( 'ANR_PLUGIN_FILE', __FILE__ );
|
73 |
// Create a helper function for easy SDK access.
|
74 |
function anr_fs() {
|
75 |
global $anr_fs;
|
76 |
+
$for_network = is_plugin_active_for_network( plugin_basename( __FILE__ ) );
|
77 |
|
78 |
if ( ! isset( $anr_fs ) ) {
|
79 |
+
// Activate multisite network integration.
|
80 |
+
if ( $for_network && ! defined( 'WP_FS__PRODUCT_5860_MULTISITE' ) ) {
|
81 |
+
define( 'WP_FS__PRODUCT_5860_MULTISITE', true );
|
82 |
+
}
|
83 |
// Include Freemius SDK.
|
84 |
require_once dirname(__FILE__) . '/freemius/start.php';
|
85 |
|
100 |
'menu' => array(
|
101 |
'slug' => 'anr-admin-settings',
|
102 |
'contact' => false,
|
103 |
+
'network' => $for_network,
|
104 |
'parent' => array(
|
105 |
+
'slug' => $for_network ? 'settings.php' : 'options-general.php',
|
106 |
),
|
107 |
),
|
108 |
) );
|
anr-captcha-class.php
CHANGED
@@ -84,9 +84,13 @@ if ( ! class_exists( 'anr_captcha_class' ) ) {
|
|
84 |
}
|
85 |
|
86 |
if ( function_exists( 'wpcf7_add_form_tag' ) ) {
|
87 |
-
|
88 |
-
|
89 |
-
|
|
|
|
|
|
|
|
|
90 |
}
|
91 |
wpcf7_add_form_tag( 'anr_nocaptcha', array( $this, 'wpcf7_form_field' ), array( 'name-attr' => true ) );
|
92 |
add_filter( 'wpcf7_validate_anr_nocaptcha', array( $this, 'wpcf7_verify' ), 10, 2 );
|
@@ -131,11 +135,11 @@ if ( ! class_exists( 'anr_captcha_class' ) ) {
|
|
131 |
$field .= '</div></div>';
|
132 |
|
133 |
if ( 1 == $no_js && 'v2_checkbox' === $version ) {
|
134 |
-
$field .= '<noscript>
|
135 |
<div>
|
136 |
<div style="width: 302px; height: 422px; position: relative;">
|
137 |
<div style="width: 302px; height: 422px; position: absolute;">
|
138 |
-
<iframe src="https://www
|
139 |
frameborder="0" scrolling="no"
|
140 |
style="width: 302px; height:422px; border-style: none;">
|
141 |
</iframe>
|
@@ -150,7 +154,7 @@ if ( ! class_exists( 'anr_captcha_class' ) ) {
|
|
150 |
margin: 10px 25px; padding: 0px; resize: none;" ></textarea>
|
151 |
</div>
|
152 |
</div>
|
153 |
-
</noscript>';
|
154 |
}
|
155 |
|
156 |
return $field;
|
@@ -219,7 +223,7 @@ if ( ! class_exists( 'anr_captcha_class' ) ) {
|
|
219 |
if ( $language ) {
|
220 |
$lang = '&hl=' . $language;
|
221 |
}
|
222 |
-
$google_url = apply_filters( 'anr_v2_checkbox_script_api_src', 'https://www
|
223 |
?>
|
224 |
<script src="<?php echo esc_url( $google_url ); ?>"
|
225 |
async defer>
|
@@ -281,7 +285,7 @@ if ( ! class_exists( 'anr_captcha_class' ) ) {
|
|
281 |
if ( $language ) {
|
282 |
$lang = '&hl=' . $language;
|
283 |
}
|
284 |
-
$google_url = apply_filters( 'anr_v2_invisible_script_api_src', 'https://www
|
285 |
?>
|
286 |
<script src="<?php echo esc_url( $google_url ); ?>"
|
287 |
async defer>
|
@@ -301,7 +305,7 @@ if ( ! class_exists( 'anr_captcha_class' ) ) {
|
|
301 |
$lang = '&hl=' . $language;
|
302 |
}
|
303 |
|
304 |
-
$google_url = apply_filters( 'anr_v3_script_api_src', 'https://www
|
305 |
?>
|
306 |
<script src="<?php echo esc_url( $google_url ); ?>"></script>
|
307 |
<script type="text/javascript">
|
@@ -464,7 +468,7 @@ if ( ! class_exists( 'anr_captcha_class' ) ) {
|
|
464 |
return $last_verify;
|
465 |
}
|
466 |
|
467 |
-
$url = apply_filters( 'anr_google_verify_url', 'https://www
|
468 |
|
469 |
// make a POST request to the Google reCAPTCHA Server
|
470 |
$request = wp_remote_post(
|
84 |
}
|
85 |
|
86 |
if ( function_exists( 'wpcf7_add_form_tag' ) ) {
|
87 |
+
if( class_exists( 'WPCF7' ) && WPCF7::get_option( 'recaptcha' ) && apply_filters( 'anr_remove_cf7_recaptcha', true ) ) {
|
88 |
+
//remove recaptcha keys from CF7 which will disable CF7 recaptcha
|
89 |
+
WPCF7::update_option( 'recaptcha', null );
|
90 |
+
}
|
91 |
+
if( is_user_logged_in() && anr_get_option( 'loggedin_hide' ) ) {
|
92 |
+
//enable verify nonce otherwie is_user_logged_in() return false when validate recaptcha
|
93 |
+
add_filter( 'wpcf7_verify_nonce', '__return_true' );
|
94 |
}
|
95 |
wpcf7_add_form_tag( 'anr_nocaptcha', array( $this, 'wpcf7_form_field' ), array( 'name-attr' => true ) );
|
96 |
add_filter( 'wpcf7_validate_anr_nocaptcha', array( $this, 'wpcf7_verify' ), 10, 2 );
|
135 |
$field .= '</div></div>';
|
136 |
|
137 |
if ( 1 == $no_js && 'v2_checkbox' === $version ) {
|
138 |
+
$field .= sprintf( '<noscript>
|
139 |
<div>
|
140 |
<div style="width: 302px; height: 422px; position: relative;">
|
141 |
<div style="width: 302px; height: 422px; position: absolute;">
|
142 |
+
<iframe src="https://www.%s/recaptcha/api/fallback?k=' . $site_key . '"
|
143 |
frameborder="0" scrolling="no"
|
144 |
style="width: 302px; height:422px; border-style: none;">
|
145 |
</iframe>
|
154 |
margin: 10px 25px; padding: 0px; resize: none;" ></textarea>
|
155 |
</div>
|
156 |
</div>
|
157 |
+
</noscript>', anr_recaptcha_domain() );
|
158 |
}
|
159 |
|
160 |
return $field;
|
223 |
if ( $language ) {
|
224 |
$lang = '&hl=' . $language;
|
225 |
}
|
226 |
+
$google_url = apply_filters( 'anr_v2_checkbox_script_api_src', sprintf( 'https://www.%s/recaptcha/api.js?onload=anr_onloadCallback&render=explicit' . $lang, anr_recaptcha_domain() ), $lang );
|
227 |
?>
|
228 |
<script src="<?php echo esc_url( $google_url ); ?>"
|
229 |
async defer>
|
285 |
if ( $language ) {
|
286 |
$lang = '&hl=' . $language;
|
287 |
}
|
288 |
+
$google_url = apply_filters( 'anr_v2_invisible_script_api_src', sprintf( 'https://www.%s/recaptcha/api.js?onload=anr_onloadCallback&render=explicit' . $lang, anr_recaptcha_domain() ), $lang );
|
289 |
?>
|
290 |
<script src="<?php echo esc_url( $google_url ); ?>"
|
291 |
async defer>
|
305 |
$lang = '&hl=' . $language;
|
306 |
}
|
307 |
|
308 |
+
$google_url = apply_filters( 'anr_v3_script_api_src', sprintf( 'https://www.%s/recaptcha/api.js?render=' . $site_key . $lang, anr_recaptcha_domain() ), $site_key, $lang );
|
309 |
?>
|
310 |
<script src="<?php echo esc_url( $google_url ); ?>"></script>
|
311 |
<script type="text/javascript">
|
468 |
return $last_verify;
|
469 |
}
|
470 |
|
471 |
+
$url = apply_filters( 'anr_google_verify_url', sprintf( 'https://www.%s/recaptcha/api/siteverify', anr_recaptcha_domain() ) );
|
472 |
|
473 |
// make a POST request to the Google reCAPTCHA Server
|
474 |
$request = wp_remote_post(
|
freemius/assets/img/advanced-nocaptcha-recaptcha.jpg
ADDED
Binary file
|
functions.php
CHANGED
@@ -15,12 +15,7 @@ add_action( 'anr_plugin_update', 'anr_plugin_update_32' );
|
|
15 |
|
16 |
function anr_plugin_update_32( $prev_version ) {
|
17 |
if ( version_compare( $prev_version, '3.2', '<' ) ) {
|
18 |
-
if (
|
19 |
-
$same_settings = apply_filters( 'anr_same_settings_for_all_sites', false );
|
20 |
-
} else {
|
21 |
-
$same_settings = false;
|
22 |
-
}
|
23 |
-
if ( $same_settings ) {
|
24 |
$options = get_site_option( 'anr_admin_options' );
|
25 |
} else {
|
26 |
$options = get_option( 'anr_admin_options' );
|
@@ -82,12 +77,7 @@ function anr_plugin_update_51( $prev_version ) {
|
|
82 |
|
83 |
function anr_get_option( $option, $default = '', $section = 'anr_admin_options' ) {
|
84 |
|
85 |
-
if (
|
86 |
-
$same_settings = apply_filters( 'anr_same_settings_for_all_sites', false );
|
87 |
-
} else {
|
88 |
-
$same_settings = false;
|
89 |
-
}
|
90 |
-
if ( $same_settings ) {
|
91 |
$options = get_site_option( $section );
|
92 |
} else {
|
93 |
$options = get_option( $section );
|
@@ -113,13 +103,7 @@ function anr_update_option( $options, $value = '', $section = 'anr_admin_options
|
|
113 |
if ( ! is_array( $options ) ) {
|
114 |
return false;
|
115 |
}
|
116 |
-
|
117 |
-
if ( is_multisite() ) {
|
118 |
-
$same_settings = apply_filters( 'anr_same_settings_for_all_sites', false );
|
119 |
-
} else {
|
120 |
-
$same_settings = false;
|
121 |
-
}
|
122 |
-
if ( $same_settings ) {
|
123 |
update_site_option( $section, wp_parse_args( $options, get_site_option( $section ) ) );
|
124 |
} else {
|
125 |
update_option( $section, wp_parse_args( $options, get_option( $section ) ) );
|
@@ -165,8 +149,8 @@ function anr_include_require_files() {
|
|
165 |
require_once $fep_file;
|
166 |
}
|
167 |
}
|
168 |
-
add_action( 'wp_footer', 'anr_wp_footer' );
|
169 |
-
add_action( 'login_footer', 'anr_wp_footer' );
|
170 |
|
171 |
function anr_wp_footer() {
|
172 |
anr_captcha_class::init()->footer_script();
|
@@ -216,3 +200,16 @@ function anr_fs_uninstall_cleanup() {
|
|
216 |
function anr_fs_support_forum_url( $wp_org_support_forum_url ) {
|
217 |
return 'https://www.shamimsplugins.com/support/forum/advanced-nocaptcha-and-invisible-captcha-pro/';
|
218 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
function anr_plugin_update_32( $prev_version ) {
|
17 |
if ( version_compare( $prev_version, '3.2', '<' ) ) {
|
18 |
+
if ( anr_same_settings_for_all_sites() ) {
|
|
|
|
|
|
|
|
|
|
|
19 |
$options = get_site_option( 'anr_admin_options' );
|
20 |
} else {
|
21 |
$options = get_option( 'anr_admin_options' );
|
77 |
|
78 |
function anr_get_option( $option, $default = '', $section = 'anr_admin_options' ) {
|
79 |
|
80 |
+
if ( anr_same_settings_for_all_sites() ) {
|
|
|
|
|
|
|
|
|
|
|
81 |
$options = get_site_option( $section );
|
82 |
} else {
|
83 |
$options = get_option( $section );
|
103 |
if ( ! is_array( $options ) ) {
|
104 |
return false;
|
105 |
}
|
106 |
+
if ( anr_same_settings_for_all_sites() ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
update_site_option( $section, wp_parse_args( $options, get_site_option( $section ) ) );
|
108 |
} else {
|
109 |
update_option( $section, wp_parse_args( $options, get_option( $section ) ) );
|
149 |
require_once $fep_file;
|
150 |
}
|
151 |
}
|
152 |
+
add_action( 'wp_footer', 'anr_wp_footer', 999 );
|
153 |
+
add_action( 'login_footer', 'anr_wp_footer', 999 );
|
154 |
|
155 |
function anr_wp_footer() {
|
156 |
anr_captcha_class::init()->footer_script();
|
200 |
function anr_fs_support_forum_url( $wp_org_support_forum_url ) {
|
201 |
return 'https://www.shamimsplugins.com/support/forum/advanced-nocaptcha-and-invisible-captcha-pro/';
|
202 |
}
|
203 |
+
|
204 |
+
function anr_recaptcha_domain(){
|
205 |
+
$domain = anr_get_option( 'recaptcha_domain', 'google.com' );
|
206 |
+
return apply_filters( 'anr_recaptcha_domain', $domain );
|
207 |
+
}
|
208 |
+
|
209 |
+
function anr_same_settings_for_all_sites(){
|
210 |
+
// Makes sure the plugin is defined before trying to use it
|
211 |
+
if ( ! function_exists( 'is_plugin_active_for_network' ) ) {
|
212 |
+
require_once ABSPATH . '/wp-admin/includes/plugin.php';
|
213 |
+
}
|
214 |
+
return is_plugin_active_for_network( plugin_basename( ANR_PLUGIN_FILE ) );
|
215 |
+
}
|
languages/advanced-nocaptcha-recaptcha.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Advanced noCaptcha reCaptcha 5.4\n"
|
5 |
-
"POT-Creation-Date: 2020-
|
6 |
"PO-Revision-Date: 2018-04-12 17:20+0600\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: Shamim\n"
|
@@ -16,516 +16,524 @@ msgstr ""
|
|
16 |
"X-Poedit-KeywordsList: __;_e\n"
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
|
19 |
-
#: admin/settings.php:
|
20 |
msgid "Google Keys"
|
21 |
msgstr ""
|
22 |
|
23 |
-
#: admin/settings.php:
|
24 |
#, php-format
|
25 |
msgid ""
|
26 |
"Get reCaptcha keys from <a href=\"%s\">Google</a>. Make sure to get keys for "
|
27 |
"your selected captcha version."
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: admin/settings.php:
|
31 |
msgid "Forms"
|
32 |
msgstr ""
|
33 |
|
34 |
-
#: admin/settings.php:
|
35 |
msgid "Other Settings"
|
36 |
msgstr ""
|
37 |
|
38 |
-
#: admin/settings.php:
|
39 |
msgid "Version"
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: admin/settings.php:
|
43 |
msgid "V2 \"I'm not a robot\""
|
44 |
msgstr ""
|
45 |
|
46 |
-
#: admin/settings.php:
|
47 |
msgid "V2 Invisible"
|
48 |
msgstr ""
|
49 |
|
50 |
-
#: admin/settings.php:
|
51 |
msgid "V3"
|
52 |
msgstr ""
|
53 |
|
54 |
-
#: admin/settings.php:
|
55 |
msgid ""
|
56 |
"Select your reCaptcha version. Make sure to use site key and secret key for "
|
57 |
"your selected version."
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: admin/settings.php:
|
61 |
msgid "Site Key"
|
62 |
msgstr ""
|
63 |
|
64 |
-
#: admin/settings.php:
|
65 |
msgid "Secret Key"
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: admin/settings.php:
|
69 |
msgid "Enabled Forms"
|
70 |
msgstr ""
|
71 |
|
72 |
-
#: admin/settings.php:
|
73 |
msgid "Login Form"
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: admin/settings.php:
|
77 |
msgid "Registration Form"
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: admin/settings.php:
|
81 |
msgid "Multisite User Signup Form"
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: admin/settings.php:
|
85 |
msgid "Lost Password Form"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: admin/settings.php:
|
89 |
msgid "Reset Password Form"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: admin/settings.php:
|
93 |
msgid "Comment Form"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: admin/settings.php:
|
97 |
msgid "bbPress New topic"
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: admin/settings.php:
|
101 |
msgid "bbPress reply to topic"
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: admin/settings.php:
|
105 |
msgid "BuddyPress register"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: admin/settings.php:
|
109 |
msgid "WooCommerce Checkout"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: admin/settings.php:
|
113 |
#, php-format
|
114 |
msgid "For other forms see <a href=\"%s\">Instruction</a>"
|
115 |
msgstr ""
|
116 |
|
117 |
-
#: admin/settings.php:
|
118 |
msgid "Error Message"
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: admin/settings.php:
|
122 |
msgid "Please solve Captcha correctly"
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: admin/settings.php:
|
126 |
msgid "Captcha Language"
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: admin/settings.php:
|
130 |
msgid "Auto Detect"
|
131 |
msgstr ""
|
132 |
|
133 |
-
#: admin/settings.php:
|
134 |
msgid "Arabic"
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: admin/settings.php:
|
138 |
msgid "Bulgarian"
|
139 |
msgstr ""
|
140 |
|
141 |
-
#: admin/settings.php:
|
142 |
msgid "Catalan"
|
143 |
msgstr ""
|
144 |
|
145 |
-
#: admin/settings.php:
|
146 |
msgid "Chinese (Simplified)"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: admin/settings.php:
|
150 |
msgid "Chinese (Traditional)"
|
151 |
msgstr ""
|
152 |
|
153 |
-
#: admin/settings.php:
|
154 |
msgid "Croatian"
|
155 |
msgstr ""
|
156 |
|
157 |
-
#: admin/settings.php:
|
158 |
msgid "Czech"
|
159 |
msgstr ""
|
160 |
|
161 |
-
#: admin/settings.php:
|
162 |
msgid "Danish"
|
163 |
msgstr ""
|
164 |
|
165 |
-
#: admin/settings.php:
|
166 |
msgid "Dutch"
|
167 |
msgstr ""
|
168 |
|
169 |
-
#: admin/settings.php:
|
170 |
msgid "English (UK)"
|
171 |
msgstr ""
|
172 |
|
173 |
-
#: admin/settings.php:
|
174 |
msgid "English (US)"
|
175 |
msgstr ""
|
176 |
|
177 |
-
#: admin/settings.php:
|
178 |
msgid "Filipino"
|
179 |
msgstr ""
|
180 |
|
181 |
-
#: admin/settings.php:
|
182 |
msgid "Finnish"
|
183 |
msgstr ""
|
184 |
|
185 |
-
#: admin/settings.php:
|
186 |
msgid "French"
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: admin/settings.php:
|
190 |
msgid "French (Canadian)"
|
191 |
msgstr ""
|
192 |
|
193 |
-
#: admin/settings.php:
|
194 |
msgid "German"
|
195 |
msgstr ""
|
196 |
|
197 |
-
#: admin/settings.php:
|
198 |
msgid "German (Austria)"
|
199 |
msgstr ""
|
200 |
|
201 |
-
#: admin/settings.php:
|
202 |
msgid "German (Switzerland)"
|
203 |
msgstr ""
|
204 |
|
205 |
-
#: admin/settings.php:
|
206 |
msgid "Greek"
|
207 |
msgstr ""
|
208 |
|
209 |
-
#: admin/settings.php:
|
210 |
msgid "Hebrew"
|
211 |
msgstr ""
|
212 |
|
213 |
-
#: admin/settings.php:
|
214 |
msgid "Hindi"
|
215 |
msgstr ""
|
216 |
|
217 |
-
#: admin/settings.php:
|
218 |
msgid "Hungarain"
|
219 |
msgstr ""
|
220 |
|
221 |
-
#: admin/settings.php:
|
222 |
msgid "Indonesian"
|
223 |
msgstr ""
|
224 |
|
225 |
-
#: admin/settings.php:
|
226 |
msgid "Italian"
|
227 |
msgstr ""
|
228 |
|
229 |
-
#: admin/settings.php:
|
230 |
msgid "Japanese"
|
231 |
msgstr ""
|
232 |
|
233 |
-
#: admin/settings.php:
|
234 |
msgid "Korean"
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: admin/settings.php:
|
238 |
msgid "Latvian"
|
239 |
msgstr ""
|
240 |
|
241 |
-
#: admin/settings.php:
|
242 |
msgid "Lithuanian"
|
243 |
msgstr ""
|
244 |
|
245 |
-
#: admin/settings.php:
|
246 |
msgid "Norwegian"
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: admin/settings.php:
|
250 |
msgid "Persian"
|
251 |
msgstr ""
|
252 |
|
253 |
-
#: admin/settings.php:
|
254 |
msgid "Polish"
|
255 |
msgstr ""
|
256 |
|
257 |
-
#: admin/settings.php:
|
258 |
msgid "Portuguese"
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: admin/settings.php:
|
262 |
msgid "Portuguese (Brazil)"
|
263 |
msgstr ""
|
264 |
|
265 |
-
#: admin/settings.php:
|
266 |
msgid "Portuguese (Portugal)"
|
267 |
msgstr ""
|
268 |
|
269 |
-
#: admin/settings.php:
|
270 |
msgid "Romanian"
|
271 |
msgstr ""
|
272 |
|
273 |
-
#: admin/settings.php:
|
274 |
msgid "Russian"
|
275 |
msgstr ""
|
276 |
|
277 |
-
#: admin/settings.php:
|
278 |
msgid "Serbian"
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: admin/settings.php:
|
282 |
msgid "Slovak"
|
283 |
msgstr ""
|
284 |
|
285 |
-
#: admin/settings.php:
|
286 |
msgid "Slovenian"
|
287 |
msgstr ""
|
288 |
|
289 |
-
#: admin/settings.php:
|
290 |
msgid "Spanish"
|
291 |
msgstr ""
|
292 |
|
293 |
-
#: admin/settings.php:
|
294 |
msgid "Spanish (Latin America)"
|
295 |
msgstr ""
|
296 |
|
297 |
-
#: admin/settings.php:
|
298 |
msgid "Swedish"
|
299 |
msgstr ""
|
300 |
|
301 |
-
#: admin/settings.php:
|
302 |
msgid "Thai"
|
303 |
msgstr ""
|
304 |
|
305 |
-
#: admin/settings.php:
|
306 |
msgid "Turkish"
|
307 |
msgstr ""
|
308 |
|
309 |
-
#: admin/settings.php:
|
310 |
msgid "Ukrainian"
|
311 |
msgstr ""
|
312 |
|
313 |
-
#: admin/settings.php:
|
314 |
msgid "Vietnamese"
|
315 |
msgstr ""
|
316 |
|
317 |
-
#: admin/settings.php:
|
318 |
msgid "Theme"
|
319 |
msgstr ""
|
320 |
|
321 |
-
#: admin/settings.php:
|
322 |
msgid "Light"
|
323 |
msgstr ""
|
324 |
|
325 |
-
#: admin/settings.php:
|
326 |
msgid "Dark"
|
327 |
msgstr ""
|
328 |
|
329 |
-
#: admin/settings.php:
|
330 |
msgid "Size"
|
331 |
msgstr ""
|
332 |
|
333 |
-
#: admin/settings.php:
|
334 |
msgid "Normal"
|
335 |
msgstr ""
|
336 |
|
337 |
-
#: admin/settings.php:
|
338 |
msgid "Compact"
|
339 |
msgstr ""
|
340 |
|
341 |
-
#: admin/settings.php:
|
342 |
msgid "Badge"
|
343 |
msgstr ""
|
344 |
|
345 |
-
#: admin/settings.php:
|
346 |
msgid "Bottom Right"
|
347 |
msgstr ""
|
348 |
|
349 |
-
#: admin/settings.php:
|
350 |
msgid "Bottom Left"
|
351 |
msgstr ""
|
352 |
|
353 |
-
#: admin/settings.php:
|
354 |
msgid "Inline"
|
355 |
msgstr ""
|
356 |
|
357 |
-
#: admin/settings.php:
|
358 |
msgid "Badge shows for invisible captcha"
|
359 |
msgstr ""
|
360 |
|
361 |
-
#: admin/settings.php:
|
362 |
msgid "Failed login Captcha"
|
363 |
msgstr ""
|
364 |
|
365 |
-
#: admin/settings.php:
|
366 |
msgid "Show login Captcha after how many failed attempts? 0 = show always"
|
367 |
msgstr ""
|
368 |
|
369 |
-
#: admin/settings.php:
|
370 |
msgid "v3 Script Load"
|
371 |
msgstr ""
|
372 |
|
373 |
-
#: admin/settings.php:
|
374 |
msgid "All Pages"
|
375 |
msgstr ""
|
376 |
|
377 |
-
#: admin/settings.php:
|
378 |
msgid "Form Pages"
|
379 |
msgstr ""
|
380 |
|
381 |
-
#: admin/settings.php:
|
382 |
msgid "Loading in All Pages help google for analytics"
|
383 |
msgstr ""
|
384 |
|
385 |
-
#: admin/settings.php:
|
386 |
msgid "Captcha Score"
|
387 |
msgstr ""
|
388 |
|
389 |
-
#: admin/settings.php:
|
390 |
msgid "Higher means more sensitive"
|
391 |
msgstr ""
|
392 |
|
393 |
-
#: admin/settings.php:
|
394 |
msgid "Whitelisted IPs"
|
395 |
msgstr ""
|
396 |
|
397 |
-
#: admin/settings.php:
|
398 |
msgid "One per line"
|
399 |
msgstr ""
|
400 |
|
401 |
-
#: admin/settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
402 |
msgid "Logged in Hide"
|
403 |
msgstr ""
|
404 |
|
405 |
-
#: admin/settings.php:
|
406 |
msgid "Hide Captcha for logged in users?"
|
407 |
msgstr ""
|
408 |
|
409 |
-
#: admin/settings.php:
|
410 |
msgid "Remove CSS"
|
411 |
msgstr ""
|
412 |
|
413 |
-
#: admin/settings.php:
|
414 |
msgid "Remove this plugin's css from login page?"
|
415 |
msgstr ""
|
416 |
|
417 |
-
#: admin/settings.php:
|
418 |
msgid "This css increase login page width to adjust with Captcha width."
|
419 |
msgstr ""
|
420 |
|
421 |
-
#: admin/settings.php:
|
422 |
msgid "No JS Captcha"
|
423 |
msgstr ""
|
424 |
|
425 |
-
#: admin/settings.php:
|
426 |
msgid "Show captcha if javascript disabled?"
|
427 |
msgstr ""
|
428 |
|
429 |
-
#: admin/settings.php:
|
430 |
msgid ""
|
431 |
"If JavaScript is a requirement for your site, we advise that you do NOT "
|
432 |
"check this."
|
433 |
msgstr ""
|
434 |
|
435 |
-
#: admin/settings.php:
|
436 |
#, php-format
|
437 |
msgid "No hook defined for %s"
|
438 |
msgstr ""
|
439 |
|
440 |
-
#: admin/settings.php:
|
441 |
msgid "Advanced noCaptcha & invisible captcha Settings"
|
442 |
msgstr ""
|
443 |
|
444 |
-
#: admin/settings.php:
|
445 |
msgid "Advanced noCaptcha & invisible captcha"
|
446 |
msgstr ""
|
447 |
|
448 |
-
#: admin/settings.php:
|
449 |
msgid "Instruction"
|
450 |
msgstr ""
|
451 |
|
452 |
-
#: admin/settings.php:
|
453 |
msgid "Plugin Author"
|
454 |
msgstr ""
|
455 |
|
456 |
-
#: admin/settings.php:
|
457 |
msgid "Support Development"
|
458 |
msgstr ""
|
459 |
|
460 |
-
#: admin/settings.php:
|
461 |
msgid "Advanced noCaptcha reCaptcha Setup Instruction"
|
462 |
msgstr ""
|
463 |
|
464 |
-
#: admin/settings.php:
|
465 |
#, php-format
|
466 |
msgid ""
|
467 |
"Get your site key and secret key from <a href=\"%s\" target=\"_blank"
|
468 |
"\">GOOGLE</a> if you do not have already."
|
469 |
msgstr ""
|
470 |
|
471 |
-
#: admin/settings.php:
|
472 |
#, php-format
|
473 |
msgid "Goto %s page of this plugin and set up as you need. and ENJOY..."
|
474 |
msgstr ""
|
475 |
|
476 |
-
#: admin/settings.php:
|
477 |
msgid "Implement noCaptcha in Contact Form 7"
|
478 |
msgstr ""
|
479 |
|
480 |
-
#: admin/settings.php:
|
481 |
#, php-format
|
482 |
msgid "To show noCaptcha use %s"
|
483 |
msgstr ""
|
484 |
|
485 |
-
#: admin/settings.php:
|
486 |
msgid "Implement noCaptcha in WooCommerce"
|
487 |
msgstr ""
|
488 |
|
489 |
-
#: admin/settings.php:
|
490 |
msgid ""
|
491 |
"If Login Form, Registration Form, Lost Password Form, Reset Password Form is "
|
492 |
"selected in SETTINGS page of this plugin they will show and verify Captcha "
|
493 |
"in WooCommerce respective forms also."
|
494 |
msgstr ""
|
495 |
|
496 |
-
#: admin/settings.php:
|
497 |
msgid "If you want to implement noCaptcha in any other custom form"
|
498 |
msgstr ""
|
499 |
|
500 |
-
#: admin/settings.php:
|
501 |
#, php-format
|
502 |
msgid "To show noCaptcha in a form use %1$s OR %2$s"
|
503 |
msgstr ""
|
504 |
|
505 |
-
#: admin/settings.php:
|
506 |
#, php-format
|
507 |
msgid "To verify use %s. It will return true on success otherwise false."
|
508 |
msgstr ""
|
509 |
|
510 |
-
#: admin/settings.php:
|
511 |
#, php-format
|
512 |
msgid ""
|
513 |
"For paid support pleasse visit <a href=\"%s\" target=\"_blank\">Advanced "
|
514 |
"noCaptcha reCaptcha</a>"
|
515 |
msgstr ""
|
516 |
|
517 |
-
#: admin/settings.php:
|
518 |
msgid "Settings"
|
519 |
msgstr ""
|
520 |
|
521 |
-
#: anr-captcha-class.php:
|
522 |
msgid "ERROR"
|
523 |
msgstr ""
|
524 |
|
525 |
-
#: anr-captcha-class.php:
|
526 |
msgid "Comment Submission Failure"
|
527 |
msgstr ""
|
528 |
|
529 |
-
#: functions.php:
|
530 |
msgid "<strong>ERROR</strong>: "
|
531 |
msgstr ""
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Advanced noCaptcha reCaptcha 5.4\n"
|
5 |
+
"POT-Creation-Date: 2020-09-10 00:12+0600\n"
|
6 |
"PO-Revision-Date: 2018-04-12 17:20+0600\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: Shamim\n"
|
16 |
"X-Poedit-KeywordsList: __;_e\n"
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
|
19 |
+
#: admin/settings.php:58
|
20 |
msgid "Google Keys"
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: admin/settings.php:60
|
24 |
#, php-format
|
25 |
msgid ""
|
26 |
"Get reCaptcha keys from <a href=\"%s\">Google</a>. Make sure to get keys for "
|
27 |
"your selected captcha version."
|
28 |
msgstr ""
|
29 |
|
30 |
+
#: admin/settings.php:64
|
31 |
msgid "Forms"
|
32 |
msgstr ""
|
33 |
|
34 |
+
#: admin/settings.php:67
|
35 |
msgid "Other Settings"
|
36 |
msgstr ""
|
37 |
|
38 |
+
#: admin/settings.php:80
|
39 |
msgid "Version"
|
40 |
msgstr ""
|
41 |
|
42 |
+
#: admin/settings.php:86
|
43 |
msgid "V2 \"I'm not a robot\""
|
44 |
msgstr ""
|
45 |
|
46 |
+
#: admin/settings.php:87
|
47 |
msgid "V2 Invisible"
|
48 |
msgstr ""
|
49 |
|
50 |
+
#: admin/settings.php:88
|
51 |
msgid "V3"
|
52 |
msgstr ""
|
53 |
|
54 |
+
#: admin/settings.php:90
|
55 |
msgid ""
|
56 |
"Select your reCaptcha version. Make sure to use site key and secret key for "
|
57 |
"your selected version."
|
58 |
msgstr ""
|
59 |
|
60 |
+
#: admin/settings.php:93
|
61 |
msgid "Site Key"
|
62 |
msgstr ""
|
63 |
|
64 |
+
#: admin/settings.php:97
|
65 |
msgid "Secret Key"
|
66 |
msgstr ""
|
67 |
|
68 |
+
#: admin/settings.php:101
|
69 |
msgid "Enabled Forms"
|
70 |
msgstr ""
|
71 |
|
72 |
+
#: admin/settings.php:106
|
73 |
msgid "Login Form"
|
74 |
msgstr ""
|
75 |
|
76 |
+
#: admin/settings.php:107
|
77 |
msgid "Registration Form"
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: admin/settings.php:108
|
81 |
msgid "Multisite User Signup Form"
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: admin/settings.php:109
|
85 |
msgid "Lost Password Form"
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: admin/settings.php:110
|
89 |
msgid "Reset Password Form"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: admin/settings.php:111
|
93 |
msgid "Comment Form"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: admin/settings.php:112
|
97 |
msgid "bbPress New topic"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: admin/settings.php:113
|
101 |
msgid "bbPress reply to topic"
|
102 |
msgstr ""
|
103 |
|
104 |
+
#: admin/settings.php:114
|
105 |
msgid "BuddyPress register"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: admin/settings.php:115
|
109 |
msgid "WooCommerce Checkout"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: admin/settings.php:117
|
113 |
#, php-format
|
114 |
msgid "For other forms see <a href=\"%s\">Instruction</a>"
|
115 |
msgstr ""
|
116 |
|
117 |
+
#: admin/settings.php:120
|
118 |
msgid "Error Message"
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: admin/settings.php:122
|
122 |
msgid "Please solve Captcha correctly"
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: admin/settings.php:125
|
126 |
msgid "Captcha Language"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: admin/settings.php:130
|
130 |
msgid "Auto Detect"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: admin/settings.php:131
|
134 |
msgid "Arabic"
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: admin/settings.php:132
|
138 |
msgid "Bulgarian"
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: admin/settings.php:133
|
142 |
msgid "Catalan"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: admin/settings.php:134
|
146 |
msgid "Chinese (Simplified)"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: admin/settings.php:135
|
150 |
msgid "Chinese (Traditional)"
|
151 |
msgstr ""
|
152 |
|
153 |
+
#: admin/settings.php:136
|
154 |
msgid "Croatian"
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: admin/settings.php:137
|
158 |
msgid "Czech"
|
159 |
msgstr ""
|
160 |
|
161 |
+
#: admin/settings.php:138
|
162 |
msgid "Danish"
|
163 |
msgstr ""
|
164 |
|
165 |
+
#: admin/settings.php:139
|
166 |
msgid "Dutch"
|
167 |
msgstr ""
|
168 |
|
169 |
+
#: admin/settings.php:140
|
170 |
msgid "English (UK)"
|
171 |
msgstr ""
|
172 |
|
173 |
+
#: admin/settings.php:141
|
174 |
msgid "English (US)"
|
175 |
msgstr ""
|
176 |
|
177 |
+
#: admin/settings.php:142
|
178 |
msgid "Filipino"
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: admin/settings.php:143
|
182 |
msgid "Finnish"
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: admin/settings.php:144
|
186 |
msgid "French"
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: admin/settings.php:145
|
190 |
msgid "French (Canadian)"
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: admin/settings.php:146
|
194 |
msgid "German"
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: admin/settings.php:147
|
198 |
msgid "German (Austria)"
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: admin/settings.php:148
|
202 |
msgid "German (Switzerland)"
|
203 |
msgstr ""
|
204 |
|
205 |
+
#: admin/settings.php:149
|
206 |
msgid "Greek"
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: admin/settings.php:150
|
210 |
msgid "Hebrew"
|
211 |
msgstr ""
|
212 |
|
213 |
+
#: admin/settings.php:151
|
214 |
msgid "Hindi"
|
215 |
msgstr ""
|
216 |
|
217 |
+
#: admin/settings.php:152
|
218 |
msgid "Hungarain"
|
219 |
msgstr ""
|
220 |
|
221 |
+
#: admin/settings.php:153
|
222 |
msgid "Indonesian"
|
223 |
msgstr ""
|
224 |
|
225 |
+
#: admin/settings.php:154
|
226 |
msgid "Italian"
|
227 |
msgstr ""
|
228 |
|
229 |
+
#: admin/settings.php:155
|
230 |
msgid "Japanese"
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: admin/settings.php:156
|
234 |
msgid "Korean"
|
235 |
msgstr ""
|
236 |
|
237 |
+
#: admin/settings.php:157
|
238 |
msgid "Latvian"
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: admin/settings.php:158
|
242 |
msgid "Lithuanian"
|
243 |
msgstr ""
|
244 |
|
245 |
+
#: admin/settings.php:159
|
246 |
msgid "Norwegian"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: admin/settings.php:160
|
250 |
msgid "Persian"
|
251 |
msgstr ""
|
252 |
|
253 |
+
#: admin/settings.php:161
|
254 |
msgid "Polish"
|
255 |
msgstr ""
|
256 |
|
257 |
+
#: admin/settings.php:162
|
258 |
msgid "Portuguese"
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: admin/settings.php:163
|
262 |
msgid "Portuguese (Brazil)"
|
263 |
msgstr ""
|
264 |
|
265 |
+
#: admin/settings.php:164
|
266 |
msgid "Portuguese (Portugal)"
|
267 |
msgstr ""
|
268 |
|
269 |
+
#: admin/settings.php:165
|
270 |
msgid "Romanian"
|
271 |
msgstr ""
|
272 |
|
273 |
+
#: admin/settings.php:166
|
274 |
msgid "Russian"
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: admin/settings.php:167
|
278 |
msgid "Serbian"
|
279 |
msgstr ""
|
280 |
|
281 |
+
#: admin/settings.php:168
|
282 |
msgid "Slovak"
|
283 |
msgstr ""
|
284 |
|
285 |
+
#: admin/settings.php:169
|
286 |
msgid "Slovenian"
|
287 |
msgstr ""
|
288 |
|
289 |
+
#: admin/settings.php:170
|
290 |
msgid "Spanish"
|
291 |
msgstr ""
|
292 |
|
293 |
+
#: admin/settings.php:171
|
294 |
msgid "Spanish (Latin America)"
|
295 |
msgstr ""
|
296 |
|
297 |
+
#: admin/settings.php:172
|
298 |
msgid "Swedish"
|
299 |
msgstr ""
|
300 |
|
301 |
+
#: admin/settings.php:173
|
302 |
msgid "Thai"
|
303 |
msgstr ""
|
304 |
|
305 |
+
#: admin/settings.php:174
|
306 |
msgid "Turkish"
|
307 |
msgstr ""
|
308 |
|
309 |
+
#: admin/settings.php:175
|
310 |
msgid "Ukrainian"
|
311 |
msgstr ""
|
312 |
|
313 |
+
#: admin/settings.php:176
|
314 |
msgid "Vietnamese"
|
315 |
msgstr ""
|
316 |
|
317 |
+
#: admin/settings.php:180
|
318 |
msgid "Theme"
|
319 |
msgstr ""
|
320 |
|
321 |
+
#: admin/settings.php:186
|
322 |
msgid "Light"
|
323 |
msgstr ""
|
324 |
|
325 |
+
#: admin/settings.php:187
|
326 |
msgid "Dark"
|
327 |
msgstr ""
|
328 |
|
329 |
+
#: admin/settings.php:191
|
330 |
msgid "Size"
|
331 |
msgstr ""
|
332 |
|
333 |
+
#: admin/settings.php:197
|
334 |
msgid "Normal"
|
335 |
msgstr ""
|
336 |
|
337 |
+
#: admin/settings.php:198
|
338 |
msgid "Compact"
|
339 |
msgstr ""
|
340 |
|
341 |
+
#: admin/settings.php:202
|
342 |
msgid "Badge"
|
343 |
msgstr ""
|
344 |
|
345 |
+
#: admin/settings.php:208
|
346 |
msgid "Bottom Right"
|
347 |
msgstr ""
|
348 |
|
349 |
+
#: admin/settings.php:209
|
350 |
msgid "Bottom Left"
|
351 |
msgstr ""
|
352 |
|
353 |
+
#: admin/settings.php:210
|
354 |
msgid "Inline"
|
355 |
msgstr ""
|
356 |
|
357 |
+
#: admin/settings.php:212
|
358 |
msgid "Badge shows for invisible captcha"
|
359 |
msgstr ""
|
360 |
|
361 |
+
#: admin/settings.php:215
|
362 |
msgid "Failed login Captcha"
|
363 |
msgstr ""
|
364 |
|
365 |
+
#: admin/settings.php:221
|
366 |
msgid "Show login Captcha after how many failed attempts? 0 = show always"
|
367 |
msgstr ""
|
368 |
|
369 |
+
#: admin/settings.php:224
|
370 |
msgid "v3 Script Load"
|
371 |
msgstr ""
|
372 |
|
373 |
+
#: admin/settings.php:230
|
374 |
msgid "All Pages"
|
375 |
msgstr ""
|
376 |
|
377 |
+
#: admin/settings.php:231
|
378 |
msgid "Form Pages"
|
379 |
msgstr ""
|
380 |
|
381 |
+
#: admin/settings.php:233
|
382 |
msgid "Loading in All Pages help google for analytics"
|
383 |
msgstr ""
|
384 |
|
385 |
+
#: admin/settings.php:236
|
386 |
msgid "Captcha Score"
|
387 |
msgstr ""
|
388 |
|
389 |
+
#: admin/settings.php:242
|
390 |
msgid "Higher means more sensitive"
|
391 |
msgstr ""
|
392 |
|
393 |
+
#: admin/settings.php:245
|
394 |
msgid "Whitelisted IPs"
|
395 |
msgstr ""
|
396 |
|
397 |
+
#: admin/settings.php:249
|
398 |
msgid "One per line"
|
399 |
msgstr ""
|
400 |
|
401 |
+
#: admin/settings.php:252
|
402 |
+
msgid "Recaptcha Domain"
|
403 |
+
msgstr ""
|
404 |
+
|
405 |
+
#: admin/settings.php:261
|
406 |
+
msgid "If any one is blocked in your country select other one."
|
407 |
+
msgstr ""
|
408 |
+
|
409 |
+
#: admin/settings.php:264
|
410 |
msgid "Logged in Hide"
|
411 |
msgstr ""
|
412 |
|
413 |
+
#: admin/settings.php:268
|
414 |
msgid "Hide Captcha for logged in users?"
|
415 |
msgstr ""
|
416 |
|
417 |
+
#: admin/settings.php:271
|
418 |
msgid "Remove CSS"
|
419 |
msgstr ""
|
420 |
|
421 |
+
#: admin/settings.php:275
|
422 |
msgid "Remove this plugin's css from login page?"
|
423 |
msgstr ""
|
424 |
|
425 |
+
#: admin/settings.php:276
|
426 |
msgid "This css increase login page width to adjust with Captcha width."
|
427 |
msgstr ""
|
428 |
|
429 |
+
#: admin/settings.php:279
|
430 |
msgid "No JS Captcha"
|
431 |
msgstr ""
|
432 |
|
433 |
+
#: admin/settings.php:283
|
434 |
msgid "Show captcha if javascript disabled?"
|
435 |
msgstr ""
|
436 |
|
437 |
+
#: admin/settings.php:284
|
438 |
msgid ""
|
439 |
"If JavaScript is a requirement for your site, we advise that you do NOT "
|
440 |
"check this."
|
441 |
msgstr ""
|
442 |
|
443 |
+
#: admin/settings.php:398
|
444 |
#, php-format
|
445 |
msgid "No hook defined for %s"
|
446 |
msgstr ""
|
447 |
|
448 |
+
#: admin/settings.php:464 admin/settings.php:470 admin/settings.php:495
|
449 |
msgid "Advanced noCaptcha & invisible captcha Settings"
|
450 |
msgstr ""
|
451 |
|
452 |
+
#: admin/settings.php:464 admin/settings.php:470
|
453 |
msgid "Advanced noCaptcha & invisible captcha"
|
454 |
msgstr ""
|
455 |
|
456 |
+
#: admin/settings.php:465 admin/settings.php:471
|
457 |
msgid "Instruction"
|
458 |
msgstr ""
|
459 |
|
460 |
+
#: admin/settings.php:523
|
461 |
msgid "Plugin Author"
|
462 |
msgstr ""
|
463 |
|
464 |
+
#: admin/settings.php:539
|
465 |
msgid "Support Development"
|
466 |
msgstr ""
|
467 |
|
468 |
+
#: admin/settings.php:560
|
469 |
msgid "Advanced noCaptcha reCaptcha Setup Instruction"
|
470 |
msgstr ""
|
471 |
|
472 |
+
#: admin/settings.php:565
|
473 |
#, php-format
|
474 |
msgid ""
|
475 |
"Get your site key and secret key from <a href=\"%s\" target=\"_blank"
|
476 |
"\">GOOGLE</a> if you do not have already."
|
477 |
msgstr ""
|
478 |
|
479 |
+
#: admin/settings.php:566
|
480 |
#, php-format
|
481 |
msgid "Goto %s page of this plugin and set up as you need. and ENJOY..."
|
482 |
msgstr ""
|
483 |
|
484 |
+
#: admin/settings.php:568
|
485 |
msgid "Implement noCaptcha in Contact Form 7"
|
486 |
msgstr ""
|
487 |
|
488 |
+
#: admin/settings.php:569
|
489 |
#, php-format
|
490 |
msgid "To show noCaptcha use %s"
|
491 |
msgstr ""
|
492 |
|
493 |
+
#: admin/settings.php:571
|
494 |
msgid "Implement noCaptcha in WooCommerce"
|
495 |
msgstr ""
|
496 |
|
497 |
+
#: admin/settings.php:572
|
498 |
msgid ""
|
499 |
"If Login Form, Registration Form, Lost Password Form, Reset Password Form is "
|
500 |
"selected in SETTINGS page of this plugin they will show and verify Captcha "
|
501 |
"in WooCommerce respective forms also."
|
502 |
msgstr ""
|
503 |
|
504 |
+
#: admin/settings.php:574
|
505 |
msgid "If you want to implement noCaptcha in any other custom form"
|
506 |
msgstr ""
|
507 |
|
508 |
+
#: admin/settings.php:575
|
509 |
#, php-format
|
510 |
msgid "To show noCaptcha in a form use %1$s OR %2$s"
|
511 |
msgstr ""
|
512 |
|
513 |
+
#: admin/settings.php:576
|
514 |
#, php-format
|
515 |
msgid "To verify use %s. It will return true on success otherwise false."
|
516 |
msgstr ""
|
517 |
|
518 |
+
#: admin/settings.php:577
|
519 |
#, php-format
|
520 |
msgid ""
|
521 |
"For paid support pleasse visit <a href=\"%s\" target=\"_blank\">Advanced "
|
522 |
"noCaptcha reCaptcha</a>"
|
523 |
msgstr ""
|
524 |
|
525 |
+
#: admin/settings.php:596
|
526 |
msgid "Settings"
|
527 |
msgstr ""
|
528 |
|
529 |
+
#: anr-captcha-class.php:117
|
530 |
msgid "ERROR"
|
531 |
msgstr ""
|
532 |
|
533 |
+
#: anr-captcha-class.php:625
|
534 |
msgid "Comment Submission Failure"
|
535 |
msgstr ""
|
536 |
|
537 |
+
#: functions.php:26
|
538 |
msgid "<strong>ERROR</strong>: "
|
539 |
msgstr ""
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Advanced noCaptcha & invisible Captcha (v2 & v3) ===
|
2 |
Contributors: shamim51
|
3 |
-
Tags: recaptcha,nocaptcha,invisible,bot,spam
|
4 |
Donate link: https://www.shamimsplugins.com/products/advanced-nocaptcha-and-invisible-captcha-pro/
|
5 |
Requires at least: 4.4
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag:
|
8 |
Requires PHP: 5.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -72,6 +72,9 @@ If you are not using v3 then script will only load when there is form in that pa
|
|
72 |
= How to set captcha in contact form 7? =
|
73 |
To show noCaptcha use [anr_nocaptcha g-recaptcha-response]
|
74 |
|
|
|
|
|
|
|
75 |
= How to login if i am locked out? =
|
76 |
You can access your file via FTP or file manager and rename "advanced-nocaptcha-recaptcha" folder to something else. Then login as normal. Then rename back this folder.
|
77 |
|
@@ -88,6 +91,13 @@ You can access your file via FTP or file manager and rename "advanced-nocaptcha-
|
|
88 |
|
89 |
== Changelog ==
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
= 5.7.1 =
|
92 |
|
93 |
* Minor bug fixed.
|
1 |
=== Advanced noCaptcha & invisible Captcha (v2 & v3) ===
|
2 |
Contributors: shamim51
|
3 |
+
Tags: recaptcha,nocaptcha,invisible,bot,spam
|
4 |
Donate link: https://www.shamimsplugins.com/products/advanced-nocaptcha-and-invisible-captcha-pro/
|
5 |
Requires at least: 4.4
|
6 |
+
Tested up to: 5.5
|
7 |
+
Stable tag: 6.1.1
|
8 |
Requires PHP: 5.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
72 |
= How to set captcha in contact form 7? =
|
73 |
To show noCaptcha use [anr_nocaptcha g-recaptcha-response]
|
74 |
|
75 |
+
= How to set captcha in WooCommerce? =
|
76 |
+
If Login Form, Registration Form, Lost Password Form, Reset Password Form is selected in SETTINGS page of this plugin, they will show and verify Captcha in WooCommerce respective forms as well.
|
77 |
+
|
78 |
= How to login if i am locked out? =
|
79 |
You can access your file via FTP or file manager and rename "advanced-nocaptcha-recaptcha" folder to something else. Then login as normal. Then rename back this folder.
|
80 |
|
91 |
|
92 |
== Changelog ==
|
93 |
|
94 |
+
= 6.1.1 =
|
95 |
+
|
96 |
+
* recaptcha domain can now be changed from settings.
|
97 |
+
* footer script hook priority changed.
|
98 |
+
* use same settings if network activated.
|
99 |
+
* for cf7, use this plugins captcha instead of cf7 captcha.
|
100 |
+
|
101 |
= 5.7.1 =
|
102 |
|
103 |
* Minor bug fixed.
|