PluginProbe ʕ •ᴥ•ʔ
reCaptcha by BestWebSoft / trunk
reCaptcha by BestWebSoft vtrunk
1.79 1.80 1.82 1.83 1.84 1.85 1.86 1.87 trunk 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.20 1.21 1.22 1.23 1.24 1.25 1.26 1.27 1.28 1.29 1.30 1.31 1.32 1.33 1.34 1.35 1.36 1.37 1.38 1.39 1.40 1.41 1.42 1.43 1.44 1.45 1.46 1.47 1.48 1.49 1.50 1.51 1.52 1.53 1.54 1.55 1.56 1.57 1.58 1.59 1.60 1.61 1.62 1.63 1.64 1.65 1.66 1.67 1.68 1.70 1.71 1.72 1.73 1.74 1.75 1.78
google-captcha / includes / pro_banners.php
google-captcha / includes Last commit date
allowlist.php 2 years ago captcha-for-formidable.php 1 year ago class-gglcptch-settings-tabs.php 2 months ago forms.php 4 months ago pro_banners.php 4 months ago
pro_banners.php
317 lines
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) exit;
3
4 /**
5 * Display banners on settings page
6 *
7 * @package reCaptcha by BestWebSoft
8 * @since 1.27
9 */
10
11 /**
12 * Show ads for PRO
13 *
14 * @param string $func function to call
15 * @return void
16 */
17 if ( ! function_exists( 'gglcptch_pro_block' ) ) {
18 function gglcptch_pro_block( $func, $show_cross = true, $display_always = false ) {
19 global $gglcptch_plugin_info, $wp_version, $gglcptch_options;
20 if ( $display_always || ! bws_hide_premium_options_check( $gglcptch_options ) ) { ?>
21 <div class="bws_pro_version_bloc gglcptch_pro_block <?php echo esc_attr( $func ); ?>" title="<?php esc_html_e( 'This options is available in Pro version of plugin', 'google-captcha' ); ?>">
22 <div class="bws_pro_version_table_bloc">
23 <?php if ( $show_cross ) { ?>
24 <button type="submit" name="bws_hide_premium_options" class="notice-dismiss bws_hide_premium_options" title="<?php esc_html_e( 'Close', 'google-captcha' ); ?>" value="1"></button>
25 <?php } ?>
26 <div class="bws_table_bg"></div>
27 <div class="bws_pro_version">
28 <?php call_user_func( $func ); ?>
29 </div>
30 </div>
31 <div class="bws_pro_version_tooltip">
32 <a class="bws_button" href="https://bestwebsoft.com/products/wordpress/plugins/google-captcha/?k=b850d949ccc1239cab0da315c3c822ab&pn=109&v=<?php echo esc_attr( $gglcptch_plugin_info['Version'] ); ?>&wp_v=<?php echo esc_attr( $wp_version ); ?>" target="_blank" title="reCaptcha Pro">
33 <?php esc_html_e( 'Upgrade to Pro', 'google-captcha' ); ?>
34 </a>
35 <div class="clear"></div>
36 </div>
37 </div>
38 <?php
39 }
40 }
41 }
42
43 if ( ! function_exists( 'gglcptch_allowlist_banner' ) ) {
44 function gglcptch_allowlist_banner() {
45 ?>
46 <div class="bws_info" style="line-height: 2;"><?php esc_html_e( 'Allowed formats', 'google-captcha' ); ?>:&nbsp;<code>192.168.0.1, 192.168.0., 192.168., 192., 192.168.0.1/8, 123.126.12.243-185.239.34.54</code></div>
47 <div class="bws_info" style="line-height: 2;"><?php esc_html_e( 'Allowed separators for IPs: a comma', 'google-captcha' ); ?> (<code>,</code>), <?php esc_html_e( 'semicolon', 'google-captcha' ); ?> (<code>;</code>), <?php esc_html_e( 'ordinary space, tab, new line or carriage return.', 'google-captcha' ); ?></div>
48 <?php esc_html_e( 'Reason', 'google-captcha' ); ?><br>
49 <textarea disabled></textarea>
50 <div class="bws_info" style="line-height: 2;"><?php esc_html_e( 'Allowed separators for reasons: a comma', 'google-captcha' ); ?> (<code>,</code>), <?php esc_html_e( 'semicolon', 'google-captcha' ); ?> (<code>;</code>), <?php esc_html_e( 'tab, new line or carriage return.', 'google-captcha' ); ?></div>
51 <?php
52 }
53 }
54
55 if ( ! function_exists( 'gglcptch_supported_plugins_banner' ) ) {
56 function gglcptch_supported_plugins_banner() {
57 $pro_forms = array(
58 'cf7' => array( 'form_name' => 'Contact Form 7' ),
59 'si_contact_form' => array( 'form_name' => 'Fast Secure Contact Form' ),
60 'jetpack_contact_form' => array( 'form_name' => __( 'Jetpack Contact Form', 'google-captcha' ) ),
61 'sbscrbr' => array( 'form_name' => 'Subscriber' ),
62 'mailchimp' => array( 'form_name' => 'MailChimp for Wordpress' ),
63 'bbpress_new_topic_form' => array( 'form_name' => __( 'bbPress New Topic form', 'google-captcha' ) ),
64 'bbpress_reply_form' => array( 'form_name' => __( 'bbPress Reply form', 'google-captcha' ) ),
65 'buddypress_register' => array( 'form_name' => __( 'BuddyPress Registration form', 'google-captcha' ) ),
66 'buddypress_comments' => array( 'form_name' => __( 'BuddyPress Comments form', 'google-captcha' ) ),
67 'buddypress_group' => array( 'form_name' => __( 'BuddyPress Add New Group form', 'google-captcha' ) ),
68 'woocommerce_login' => array( 'form_name' => __( 'WooCommerce Login form', 'google-captcha' ) ),
69 'woocommerce_register' => array( 'form_name' => __( 'WooCommerce Registration form', 'google-captcha' ) ),
70 'woocommerce_lost_password' => array( 'form_name' => __( 'WooCommerce Reset password form', 'google-captcha' ) ),
71 'woocommerce_checkout' => array( 'form_name' => __( 'WooCommerce Checkout form', 'google-captcha' ) ),
72 'wpforo_login_form' => array( 'form_name' => __( 'wpForo Login form', 'google-captcha' ) ),
73 'wpforo_register_form' => array( 'form_name' => __( 'wpForo Registration form', 'google-captcha' ) ),
74 'wpforo_new_topic_form' => array( 'form_name' => __( 'wpForo New Topic form', 'google-captcha' ) ),
75 'wpforo_reply_form' => array( 'form_name' => __( 'wpForo Reply form', 'google-captcha' ) ),
76 'ninja_form' => array( 'form_name' => __( 'Ninja Forms', 'google-captcha' ) ),
77 'divi_contact_form' => array( 'form_name' => __( 'Divi Contact Form', 'google-captcha' ) ),
78 'divi_login' => array( 'form_name' => __( 'Divi Login Form', 'google-captcha' ) ),
79 'gravity_forms' => array( 'form_name' => __( 'Gravity Forms', 'google-captcha' ) ),
80 'wpforms' => array( 'form_name' => __( 'WPForms', 'google-captcha' ) ),
81 'ultimate_member_login' => array( 'form_name' => __( 'Ultimate Member Login form', 'google-captcha' ) ),
82 'ultimate_member_register' => array( 'form_name' => __( 'Ultimate Member Registration form', 'google-captcha' ) ),
83 'ultimate_member_profile' => array( 'form_name' => __( 'Ultimate Member Profile form', 'google-captcha' ) ),
84 'caldera_forms' => array( 'form_name' => 'Caldera Forms' ),
85 'elementor_contact_form' => array( 'form_name' => __( 'Elementor Contact Form', 'google-captcha' ) ),
86 'memberpress_checkout' => array( 'form_name' => __( 'MemberPress checkout form', 'google-captcha' ) ),
87 'memberpress_login' => array( 'form_name' => __( 'MemberPress login form', 'google-captcha' ) ),
88 'memberpress_forgot_password' => array( 'form_name' => __( 'MemberPress forgot password form', 'google-captcha' ) ),
89 'learndash_login_form' => array( 'form_name' => __( 'LearnDash login form', 'google-captcha' ) ),
90 'learndash_registration_form' => array( 'form_name' => __( 'LearnDash registration form', 'google-captcha' ) ),
91 'bboss_registration_form' => array( 'form_name' => __( 'BuddyBoss registration form', 'google-captcha' ) ),
92 'edd_login_form' => array( 'form_name' => __( 'Easy Digital Downloads login form', 'google-captcha' ) ),
93 'edd_register_form' => array( 'form_name' => __( 'Easy Digital Downloads registration form', 'google-captcha' ) ),
94 'edd_lost_password_form' => array( 'form_name' => __( 'Easy Digital Downloads lostpassword form', 'google-captcha' ) ),
95 );
96 $pro_sections = array(
97 'external' => array(
98 'name' => __( 'External Plugins', 'google-captcha' ),
99 'forms' => array(
100 'gravity_forms',
101 'ninja_form',
102 'jetpack_contact_form',
103 'mailchimp',
104 'sbscrbr',
105 'wpforms',
106 'cf7',
107 'si_contact_form',
108 'caldera_forms',
109 'elementor_contact_form',
110 ),
111 ),
112 'woocommerce' => array(
113 'name' => 'WooCommerce',
114 'forms' => array(
115 'woocommerce_login',
116 'woocommerce_register',
117 'woocommerce_lost_password',
118 'woocommerce_checkout',
119 ),
120 ),
121 'buddypress' => array(
122 'name' => 'BuddyPress',
123 'forms' => array(
124 'buddypress_register',
125 'buddypress_comments',
126 'buddypress_group',
127 ),
128 ),
129 'divi' => array(
130 'name' => 'Divi',
131 'forms' => array(
132 'divi_contact_form',
133 'divi_login',
134 ),
135 ),
136 'bbpress' => array(
137 'name' => 'bbPress',
138 'forms' => array(
139 'bbpress_new_topic_form',
140 'bbpress_reply_form',
141 ),
142 ),
143 'wpforo' => array(
144 'name' => 'Forums - wpForo',
145 'forms' => array(
146 'wpforo_login_form',
147 'wpforo_register_form',
148 'wpforo_new_topic_form',
149 'wpforo_reply_form',
150 ),
151 ),
152 'ultimate_member' => array(
153 'name' => 'Ultimate Member',
154 'forms' => array(
155 'ultimate_member_login',
156 'ultimate_member_register',
157 'ultimate_member_profile',
158 ),
159 ),
160 'memberpress' => array(
161 'name' => 'MemberPress',
162 'forms' => array(
163 'memberpress_checkout',
164 'memberpress_login',
165 'memberpress_forgot_password',
166 ),
167 ),
168 'learndash' => array(
169 'name' => 'LearnDash',
170 'forms' => array(
171 'learndash_login_form',
172 'learndash_registration_form',
173 ),
174 ),
175 'buddyboss' => array(
176 'name' => 'BuddyBoss',
177 'forms' => array(
178 'bboss_registration_form',
179 ),
180 ),
181 'edd_forms' => array(
182 'name' => 'Easy Digital Downloads',
183 'forms' => array(
184 'edd_login_form',
185 'edd_register_form',
186 'edd_lost_password_form',
187 ),
188 ),
189 );
190 ?>
191 <table class="form-table bws_pro_version" style="margin-right: 10px; width: calc( 100% - 10px );">
192 <tbody style="display: table-row-group;">
193 <tr valign="top">
194 <th scope="row"></th>
195 <td style="padding-top: 30px;">
196 <?php
197 foreach ( $pro_sections as $section_slug => $section ) {
198
199 if ( empty( $section['name'] ) || empty( $section['forms'] ) || ! is_array( $section['forms'] ) ) {
200 continue;
201 }
202 ?>
203 <!--[if !IE]> -->
204 <div class="gglcptch-settings-accordion">
205 <!-- <![endif]-->
206 <p class="gglcptch_section_header">
207 <i><?php echo esc_html( $section['name'] ); ?></i><br />
208 </p>
209 <fieldset class="gglcptch_section_forms">
210 <?php foreach ( $section['forms'] as $form_slug ) { ?>
211 <label>
212 <input type="checkbox" <?php disabled( true ); ?> /> <?php echo esc_html( $pro_forms[ $form_slug ]['form_name'] ); ?>
213 </label>
214 <br />
215 <?php } ?>
216 <hr />
217 </fieldset>
218 <!--[if !IE]> -->
219 </div> <!-- .gglcptch-settings-accordion -->
220 <!-- <![endif]-->
221 <?php } ?>
222 </td>
223 </tr>
224 </tbody>
225 </table>
226 <?php
227 }
228 }
229
230 if ( ! function_exists( 'gglcptch_additional_settings_banner_general' ) ) {
231 function gglcptch_additional_settings_banner_general() {
232 ?>
233 <table class="form-table bws_pro_version">
234 <tr valign="top">
235 <th scope="row"><?php esc_html_e( 'Language', 'google-captcha' ); ?></th>
236 <td>
237 <select disabled="disabled">
238 <option selected="selected">English</option>
239 </select>
240 </td>
241 </tr>
242 <tr valign="top">
243 <th scope="row"><?php esc_html_e( 'Multilanguage', 'google-captcha' ); ?></th>
244 <td>
245 <input disabled="disabled" type="checkbox" />
246 <span class="bws_info"><?php esc_html_e( 'Enable to switch language automatically on multilingual website using the Multilanguage plugin.', 'google-captcha' ); ?></span>
247 </td>
248 </tr>
249 <tr valign="top">
250 <th scope="row"><?php esc_html_e( 'Block disposable emails', 'google-captcha' ); ?></th>
251 <td>
252 <label><input id="gglcptch_block_disposable_emails" type="checkbox" disabled="disabled" />
253 <span class="bws_info">
254 <?php esc_html_e( 'Please make sure reCAPTCHA is active for this form in order for the disposable email check to function.', 'google-captcha' ); ?>
255 </span></label><br /><br />
256
257 <div class="gglcptch_block_disposable_emails">
258 <label><input type="submit" class="button button-primary button-large" disabled="disabled" value="<?php esc_html_e( 'Download file with disposable domains', 'google-captcha' ); ?>" /></label><br />
259 <p><b><?php esc_html_e( 'WordPress forms', 'google-captcha' ); ?>:</b></p>
260 <label><input type="checkbox" disabled="disabled"><?php esc_html_e( 'Registration form', 'google-captcha' ); ?></label><br />
261 <label><input type="checkbox" disabled="disabled"><?php esc_html_e( 'Comments form', 'google-captcha' ); ?></label><br />
262 <label><input type="checkbox" disabled="disabled"><?php esc_html_e( 'Contact Form by BestWebSoft', 'google-captcha' ); ?></label><br />
263 <label><input type="checkbox" disabled="disabled"><?php esc_html_e( 'Subscriber by BestWebSoft', 'google-captcha' ); ?></label><br />
264 <label><input type="checkbox" disabled="disabled"><?php esc_html_e( 'WooCommerce Registration form', 'google-captcha' ); ?></label><br />
265 <label><input type="checkbox" disabled="disabled"><?php esc_html_e( 'WooCommerce Checkout form', 'google-captcha' ); ?></label><br />
266 <label><input type="checkbox" disabled="disabled"><?php esc_html_e( 'LearnDash registration form', 'google-captcha' ); ?></label><br />
267 <label><input type="checkbox" disabled="disabled"><?php esc_html_e( 'MemberPress checkout form', 'google-captcha' ); ?></label><br />
268 <label><input type="checkbox" disabled="disabled"><?php esc_html_e( 'BuddyBoss registration form', 'google-captcha' ); ?></label><br />
269 <label><input type="checkbox" disabled="disabled"><?php esc_html_e( 'BWS Register form', 'google-captcha' ); ?></label><br />
270 </div>
271 </td>
272 </tr>
273 </table>
274 <?php
275 }
276 }
277
278 if ( ! function_exists( 'gglcptch_additional_settings_banner_appearance' ) ) {
279 function gglcptch_additional_settings_banner_appearance() {
280 ?>
281 <table class="form-table bws_pro_version">
282 <tr class="" valign="top">
283 <th scope="row">
284 <?php esc_html_e( 'Size', 'google-captcha' ); ?>
285 </th>
286 <td>
287 <fieldset>
288 <label><input disabled="disabled" type="radio" checked><?php esc_html_e( 'Normal', 'google-captcha' ); ?></label><br />
289 <label><input disabled="disabled" type="radio"><?php esc_html_e( 'Compact', 'google-captcha' ); ?></label>
290 </fieldset>
291 </td>
292 </tr>
293 </table>
294 <?php
295 }
296 }
297
298 if ( ! function_exists( 'gglcptch_additional_settings_banner_display' ) ) {
299 function gglcptch_additional_settings_banner_display() {
300 ?>
301 <table class="form-table bws_pro_version">
302 <tr class="gglcptch_score_v3" valign="top">
303 <th scope="row">
304 <?php esc_html_e( 'Display for', 'google-captcha' ); ?>
305 </th>
306 <td>
307 <fieldset>
308 <label><input disabled="disabled" type="radio" checked><?php esc_html_e( 'Only form', 'google-captcha' ); ?></label><br />
309 <label><input disabled="disabled" type="radio"><?php esc_html_e( 'All pages', 'google-captcha' ); ?></label>
310 </fieldset>
311 </td>
312 </tr>
313 </table>
314 <?php
315 }
316 }
317