PluginProbe ʕ •ᴥ•ʔ
reCaptcha by BestWebSoft / 1.85
reCaptcha by BestWebSoft v1.85
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 6 months ago captcha-for-formidable.php 6 months ago class-gglcptch-settings-tabs.php 6 months ago forms.php 6 months ago pro_banners.php 6 months ago
pro_banners.php
306 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 );
93 $pro_sections = array(
94 'external' => array(
95 'name' => __( 'External Plugins', 'google-captcha' ),
96 'forms' => array(
97 'gravity_forms',
98 'ninja_form',
99 'jetpack_contact_form',
100 'mailchimp',
101 'sbscrbr',
102 'wpforms',
103 'cf7',
104 'si_contact_form',
105 'caldera_forms',
106 'elementor_contact_form',
107 ),
108 ),
109 'woocommerce' => array(
110 'name' => 'WooCommerce',
111 'forms' => array(
112 'woocommerce_login',
113 'woocommerce_register',
114 'woocommerce_lost_password',
115 'woocommerce_checkout',
116 ),
117 ),
118 'buddypress' => array(
119 'name' => 'BuddyPress',
120 'forms' => array(
121 'buddypress_register',
122 'buddypress_comments',
123 'buddypress_group',
124 ),
125 ),
126 'divi' => array(
127 'name' => 'Divi',
128 'forms' => array(
129 'divi_contact_form',
130 'divi_login',
131 ),
132 ),
133 'bbpress' => array(
134 'name' => 'bbPress',
135 'forms' => array(
136 'bbpress_new_topic_form',
137 'bbpress_reply_form',
138 ),
139 ),
140 'wpforo' => array(
141 'name' => 'Forums - wpForo',
142 'forms' => array(
143 'wpforo_login_form',
144 'wpforo_register_form',
145 'wpforo_new_topic_form',
146 'wpforo_reply_form',
147 ),
148 ),
149 'ultimate_member' => array(
150 'name' => 'Ultimate Member',
151 'forms' => array(
152 'ultimate_member_login',
153 'ultimate_member_register',
154 'ultimate_member_profile',
155 ),
156 ),
157 'memberpress' => array(
158 'name' => 'MemberPress',
159 'forms' => array(
160 'memberpress_checkout',
161 'memberpress_login',
162 'memberpress_forgot_password',
163 ),
164 ),
165 'learndash' => array(
166 'name' => 'LearnDash',
167 'forms' => array(
168 'learndash_login_form',
169 'learndash_registration_form',
170 ),
171 ),
172 'buddyboss' => array(
173 'name' => 'BuddyBoss',
174 'forms' => array(
175 'bboss_registration_form',
176 ),
177 ),
178 );
179 ?>
180 <table class="form-table bws_pro_version" style="margin-right: 10px; width: calc( 100% - 10px );">
181 <tbody style="display: table-row-group;">
182 <tr valign="top">
183 <th scope="row"></th>
184 <td style="padding-top: 30px;">
185 <?php
186 foreach ( $pro_sections as $section_slug => $section ) {
187
188 if ( empty( $section['name'] ) || empty( $section['forms'] ) || ! is_array( $section['forms'] ) ) {
189 continue;
190 }
191 ?>
192 <!--[if !IE]> -->
193 <div class="gglcptch-settings-accordion">
194 <!-- <![endif]-->
195 <p class="gglcptch_section_header">
196 <i><?php echo esc_html( $section['name'] ); ?></i><br />
197 </p>
198 <fieldset class="gglcptch_section_forms">
199 <?php foreach ( $section['forms'] as $form_slug ) { ?>
200 <label>
201 <input type="checkbox" <?php disabled( true ); ?> /> <?php echo esc_html( $pro_forms[ $form_slug ]['form_name'] ); ?>
202 </label>
203 <br />
204 <?php } ?>
205 <hr />
206 </fieldset>
207 <!--[if !IE]> -->
208 </div> <!-- .gglcptch-settings-accordion -->
209 <!-- <![endif]-->
210 <?php } ?>
211 </td>
212 </tr>
213 </tbody>
214 </table>
215 <?php
216 }
217 }
218
219 if ( ! function_exists( 'gglcptch_additional_settings_banner_general' ) ) {
220 function gglcptch_additional_settings_banner_general() {
221 ?>
222 <table class="form-table bws_pro_version">
223 <tr valign="top">
224 <th scope="row"><?php esc_html_e( 'Language', 'google-captcha' ); ?></th>
225 <td>
226 <select disabled="disabled">
227 <option selected="selected">English</option>
228 </select>
229 </td>
230 </tr>
231 <tr valign="top">
232 <th scope="row"><?php esc_html_e( 'Multilanguage', 'google-captcha' ); ?></th>
233 <td>
234 <input disabled="disabled" type="checkbox" />
235 <span class="bws_info"><?php esc_html_e( 'Enable to switch language automatically on multilingual website using the Multilanguage plugin.', 'google-captcha' ); ?></span>
236 </td>
237 </tr>
238 <tr valign="top">
239 <th scope="row"><?php esc_html_e( 'Block disposable emails', 'google-captcha' ); ?></th>
240 <td>
241 <label><input id="gglcptch_block_disposable_emails" type="checkbox" disabled="disabled" />
242 <span class="bws_info">
243 <?php esc_html_e( 'Please make sure reCAPTCHA is active for this form in order for the disposable email check to function.', 'google-captcha' ); ?>
244 </span></label><br /><br />
245
246 <div class="gglcptch_block_disposable_emails">
247 <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 />
248 <p><b><?php esc_html_e( 'WordPress forms', 'google-captcha' ); ?>:</b></p>
249 <label><input type="checkbox" disabled="disabled"><?php esc_html_e( 'Registration form', 'google-captcha' ); ?></label><br />
250 <label><input type="checkbox" disabled="disabled"><?php esc_html_e( 'Comments form', 'google-captcha' ); ?></label><br />
251 <label><input type="checkbox" disabled="disabled"><?php esc_html_e( 'Contact Form by BestWebSoft', 'google-captcha' ); ?></label><br />
252 <label><input type="checkbox" disabled="disabled"><?php esc_html_e( 'Subscriber by BestWebSoft', 'google-captcha' ); ?></label><br />
253 <label><input type="checkbox" disabled="disabled"><?php esc_html_e( 'WooCommerce Registration form', 'google-captcha' ); ?></label><br />
254 <label><input type="checkbox" disabled="disabled"><?php esc_html_e( 'WooCommerce Checkout form', 'google-captcha' ); ?></label><br />
255 <label><input type="checkbox" disabled="disabled"><?php esc_html_e( 'LearnDash registration form', 'google-captcha' ); ?></label><br />
256 <label><input type="checkbox" disabled="disabled"><?php esc_html_e( 'MemberPress checkout form', 'google-captcha' ); ?></label><br />
257 <label><input type="checkbox" disabled="disabled"><?php esc_html_e( 'BuddyBoss registration form', 'google-captcha' ); ?></label><br />
258 <label><input type="checkbox" disabled="disabled"><?php esc_html_e( 'BWS Register form', 'google-captcha' ); ?></label><br />
259 </div>
260 </td>
261 </tr>
262 </table>
263 <?php
264 }
265 }
266
267 if ( ! function_exists( 'gglcptch_additional_settings_banner_appearance' ) ) {
268 function gglcptch_additional_settings_banner_appearance() {
269 ?>
270 <table class="form-table bws_pro_version">
271 <tr class="" valign="top">
272 <th scope="row">
273 <?php esc_html_e( 'Size', 'google-captcha' ); ?>
274 </th>
275 <td>
276 <fieldset>
277 <label><input disabled="disabled" type="radio" checked><?php esc_html_e( 'Normal', 'google-captcha' ); ?></label><br />
278 <label><input disabled="disabled" type="radio"><?php esc_html_e( 'Compact', 'google-captcha' ); ?></label>
279 </fieldset>
280 </td>
281 </tr>
282 </table>
283 <?php
284 }
285 }
286
287 if ( ! function_exists( 'gglcptch_additional_settings_banner_display' ) ) {
288 function gglcptch_additional_settings_banner_display() {
289 ?>
290 <table class="form-table bws_pro_version">
291 <tr class="gglcptch_score_v3" valign="top">
292 <th scope="row">
293 <?php esc_html_e( 'Display for', 'google-captcha' ); ?>
294 </th>
295 <td>
296 <fieldset>
297 <label><input disabled="disabled" type="radio" checked><?php esc_html_e( 'Only form', 'google-captcha' ); ?></label><br />
298 <label><input disabled="disabled" type="radio"><?php esc_html_e( 'All pages', 'google-captcha' ); ?></label>
299 </fieldset>
300 </td>
301 </tr>
302 </table>
303 <?php
304 }
305 }
306