PluginProbe
Loginizer / 1.8.1
Loginizer v1.8.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 1.3.4 All 74 releases
loginizer / main / settings / recaptcha.php

recaptcha.php in Loginizer 1.8.1, at main/settings/recaptcha.php

488 lines 20.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if(!defined('ABSPATH')){
4 die('Hacking Attempt!');
5 }
6
7 //---------------------
8 // Admin Menu Pro Pages
9 //---------------------
10
11 // Loginizer - reCaptcha Page
12 function loginizer_page_recaptcha(){
13
14 global $loginizer, $lz_error, $lz_env;
15
16 if(!current_user_can('manage_options')){
17 wp_die('Sorry, but you do not have permissions to change settings.');
18 }
19
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');
22 return loginizer_page_recaptcha_T();
23 }
24
25 /* Make sure post was from this page */
26 if(count($_POST) > 0){
27 check_admin_referer('loginizer-options');
28 }
29
30 // Themes
31 $lz_env['theme']['light'] = 'Light';
32 $lz_env['theme']['dark'] = 'Dark';
33
34 // Langs
35 $lz_env['lang'][''] = 'Auto Detect';
36 $lz_env['lang']['ar'] = 'Arabic';
37 $lz_env['lang']['bg'] = 'Bulgarian';
38 $lz_env['lang']['ca'] = 'Catalan';
39 $lz_env['lang']['zh-CN'] = 'Chinese (Simplified)';
40 $lz_env['lang']['zh-TW'] = 'Chinese (Traditional)';
41 $lz_env['lang']['hr'] = 'Croatian';
42 $lz_env['lang']['cs'] = 'Czech';
43 $lz_env['lang']['da'] = 'Danish';
44 $lz_env['lang']['nl'] = 'Dutch';
45 $lz_env['lang']['en-GB'] = 'English (UK)';
46 $lz_env['lang']['en'] = 'English (US)';
47 $lz_env['lang']['fil'] = 'Filipino';
48 $lz_env['lang']['fi'] = 'Finnish';
49 $lz_env['lang']['fr'] = 'French';
50 $lz_env['lang']['fr-CA'] = 'French (Canadian)';
51 $lz_env['lang']['de'] = 'German';
52 $lz_env['lang']['de-AT'] = 'German (Austria)';
53 $lz_env['lang']['de-CH'] = 'German (Switzerland)';
54 $lz_env['lang']['el'] = 'Greek';
55 $lz_env['lang']['iw'] = 'Hebrew';
56 $lz_env['lang']['hi'] = 'Hindi';
57 $lz_env['lang']['hu'] = 'Hungarain';
58 $lz_env['lang']['id'] = 'Indonesian';
59 $lz_env['lang']['it'] = 'Italian';
60 $lz_env['lang']['ja'] = 'Japanese';
61 $lz_env['lang']['ko'] = 'Korean';
62 $lz_env['lang']['lv'] = 'Latvian';
63 $lz_env['lang']['lt'] = 'Lithuanian';
64 $lz_env['lang']['no'] = 'Norwegian';
65 $lz_env['lang']['fa'] = 'Persian';
66 $lz_env['lang']['pl'] = 'Polish';
67 $lz_env['lang']['pt'] = 'Portuguese';
68 $lz_env['lang']['pt-BR'] = 'Portuguese (Brazil)';
69 $lz_env['lang']['pt-PT'] = 'Portuguese (Portugal)';
70 $lz_env['lang']['ro'] = 'Romanian';
71 $lz_env['lang']['ru'] = 'Russian';
72 $lz_env['lang']['sr'] = 'Serbian';
73 $lz_env['lang']['sk'] = 'Slovak';
74 $lz_env['lang']['sl'] = 'Slovenian';
75 $lz_env['lang']['es'] = 'Spanish';
76 $lz_env['lang']['es-419'] = 'Spanish (Latin America)';
77 $lz_env['lang']['sv'] = 'Swedish';
78 $lz_env['lang']['th'] = 'Thai';
79 $lz_env['lang']['tr'] = 'Turkish';
80 $lz_env['lang']['uk'] = 'Ukrainian';
81 $lz_env['lang']['vi'] = 'Vietnamese';
82
83 // Sizes
84 $lz_env['size']['normal'] = 'Normal';
85 $lz_env['size']['compact'] = 'Compact';
86
87 // reCAPTCHA Domains
88 $lz_env['captcha_domains']['www.google.com'] = 'google.com';
89 $lz_env['captcha_domains']['www.recaptcha.net'] = 'recaptcha.net';
90
91 if(isset($_POST['save_lz'])){
92
93 // Clear captcha
94 if(empty($_POST['captcha_status'])){
95
96 // Save the options
97 update_option('loginizer_captcha', '');
98
99 // Mark as saved
100 $GLOBALS['lz_cleared'] = true;
101
102 }else{
103
104 // Google Captcha
105 $option['captcha_type'] = lz_optpost('captcha_type');
106 $option['captcha_key'] = lz_optpost('captcha_key');
107 $option['captcha_secret'] = lz_optpost('captcha_secret');
108 $option['captcha_theme'] = lz_optpost('captcha_theme');
109 $option['captcha_size'] = lz_optpost('captcha_size');
110 $option['captcha_lang'] = lz_optpost('captcha_lang');
111 $option['captcha_domain'] = lz_optpost('captcha_domain');
112
113 // No Google Captcha
114 $option['captcha_text'] = lz_optpost('captcha_text');
115 $option['captcha_time'] = (int) lz_optpost('captcha_time');
116 $option['captcha_words'] = (int) lz_optpost('captcha_words');
117 $option['captcha_add'] = (int) lz_optpost('captcha_add');
118 $option['captcha_subtract'] = (int) lz_optpost('captcha_subtract');
119 $option['captcha_multiply'] = (int) lz_optpost('captcha_multiply');
120 $option['captcha_divide'] = (int) lz_optpost('captcha_divide');
121
122 // Checkboxes
123 $option['captcha_user_hide'] = (int) lz_optpost('captcha_user_hide');
124 $option['captcha_no_css_login'] = (int) lz_optpost('captcha_no_css_login');
125 $option['captcha_login'] = (int) lz_optpost('captcha_login');
126 $option['captcha_lostpass'] = (int) lz_optpost('captcha_lostpass');
127 $option['captcha_resetpass'] = (int) lz_optpost('captcha_resetpass');
128 $option['captcha_register'] = (int) lz_optpost('captcha_register');
129 $option['captcha_comment'] = (int) lz_optpost('captcha_comment');
130 $option['captcha_wc_checkout'] = (int) lz_optpost('captcha_wc_checkout');
131
132 // Are we to use Math Captcha ?
133 if(!empty($_POST['captcha_status']) && $_POST['captcha_status'] == 2){
134
135 $option['captcha_no_google'] = 1;
136
137 // Make the checks
138 if(strlen($option['captcha_text']) < 1){
139 $lz_error['captcha_text'] = __('The Captcha key was not submitted', 'loginizer');
140 }
141
142 }else{
143
144 // Make the checks
145 if(strlen($option['captcha_key']) < 32 || strlen($option['captcha_key']) > 50){
146 $lz_error['captcha_key'] = __('The reCAPTCHA key is invalid', 'loginizer');
147 }
148
149 // Is secret valid ?
150 if(strlen($option['captcha_secret']) < 32 || strlen($option['captcha_secret']) > 50){
151 $lz_error['captcha_secret'] = __('The reCAPTCHA secret is invalid', 'loginizer');
152 }
153
154 // Is theme valid ?
155 if(empty($lz_env['theme'][$option['captcha_theme']])){
156 $lz_error['captcha_theme'] = __('The reCAPTCHA theme is invalid', 'loginizer');
157 }
158
159 // Is size valid ?
160 if(empty($lz_env['size'][$option['captcha_size']])){
161 $lz_error['captcha_size'] = __('The reCAPTCHA size is invalid', 'loginizer');
162 }
163
164 // Is lang valid ?
165 if(empty($lz_env['lang'][$option['captcha_lang']])){
166 $lz_error['captcha_lang'] = __('The reCAPTCHA language is invalid', 'loginizer');
167 }
168
169 if(empty($lz_env['captcha_domains'][$option['captcha_domain']])){
170 $lz_error['captcha_domain'] = __('The reCAPTCHA domain is invalid', 'loginizer');
171 }
172
173 }
174
175 // Is there an error ?
176 if(!empty($lz_error)){
177 return loginizer_page_recaptcha_T();
178 }
179
180 // Save the options
181 update_option('loginizer_captcha', $option);
182
183 // Mark as saved
184 $GLOBALS['lz_saved'] = true;
185 }
186
187 }
188
189 // Call the theme
190 loginizer_page_recaptcha_T();
191
192 }
193
194 // Loginizer - reCaptcha Page Theme
195 function loginizer_page_recaptcha_T(){
196
197 global $loginizer, $lz_error, $lz_env;
198
199 // Universal header
200 loginizer_page_header('reCAPTCHA Settings');
201
202 loginizer_feature_available('reCAPTCHA');
203
204 // Saved ?
205 if(!empty($GLOBALS['lz_saved'])){
206 echo '<div id="message" class="updated"><p>'. __('The settings were saved successfully', 'loginizer'). '</p></div><br />';
207 }
208
209 // Cleared ?
210 if(!empty($GLOBALS['lz_cleared'])){
211 echo '<div id="message" class="updated"><p>'. __('reCAPTCHA has been disabled !', 'loginizer'). '</p></div><br />';
212 }
213
214 // Any errors ?
215 if(!empty($lz_error)){
216 lz_report_error($lz_error);echo '<br />';
217 }
218
219 ?>
220
221 <style>
222 input[type="text"], textarea, select {
223 width: 70%;
224 }
225 </style>
226
227 <div id="" class="postbox">
228
229 <div class="postbox-header">
230 <h2 class="hndle ui-sortable-handle">
231 <span><?php echo __('reCAPTCHA Settings', 'loginizer'); ?></span>
232 </h2>
233 </div>
234
235 <div class="inside">
236
237 <form action="" method="post" enctype="multipart/form-data" loginizer-premium-only="1">
238 <?php wp_nonce_field('loginizer-options'); ?>
239 <table class="form-table">
240 <tr>
241 <td scope="row" valign="top" style="width:400px !important;"><label for="captcha_status"><b><?php echo __('Captcha Status', 'loginizer'); ?></b></label></td>
242 <td>
243 <select name="captcha_status" id="captcha_status" onchange="lz_captcha_status();">
244 <?php
245 echo '<option '.lz_POSTselect('captcha_status', 0, (empty($loginizer['captcha_key']) && empty($loginizer['captcha_no_google']) ? true : false)).' value="0">'.__('Disabled', 'loginizer').'</value>
246 <option '.lz_POSTselect('captcha_status', 1, (!empty($loginizer['captcha_key']) ? true : false)).' value="1">'.__('Google reCAPTCHA', 'loginizer').'</value>
247 <option '.lz_POSTselect('captcha_status', 2, (!empty($loginizer['captcha_no_google']) ? true : false)).' value="2">'.__('Math Captcha', 'loginizer').'</value>';
248 ?>
249 </select>
250 </td>
251 </tr>
252 <tr class="lz_google_cap">
253 <td scope="row" valign="top"><label><b><?php echo __('reCAPTCHA type', 'loginizer'); ?></b></label><br>
254 <?php echo __('Choose the type of reCAPTCHA', 'loginizer'); ?><br />
255 <?php echo __('<a href="https://g.co/recaptcha/sitetypes/" target="_blank">See Site Types for more details</a>', 'loginizer'); ?>
256 </td>
257 <td>
258 <input type="radio" value="v3" onchange="google_recaptcha_type()" <?php echo lz_POSTradio('captcha_type', 'v3', $loginizer['captcha_type']); ?> name="captcha_type" id="captcha_type_v3" /> <label for="captcha_type_v3"><?php echo __('reCAPTCHA v3', 'loginizer'); ?></label><br /><br />
259 <input type="radio" value="" onchange="google_recaptcha_type()" <?php echo lz_POSTradio('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 />
260 <input type="radio" value="v2_invisible" onchange="google_recaptcha_type()" <?php echo lz_POSTradio('captcha_type', 'v2_invisible', $loginizer['captcha_type']); ?> name="captcha_type" id="captcha_type_v2_invisible" /> <label for="captcha_type_v2_invisible"><?php echo __('reCAPTCHA v2 - Invisible', 'loginizer'); ?></label><br />
261 </td>
262 </tr>
263 <tr class="lz_google_cap">
264 <td scope="row" valign="top"><label for="captcha_key"><b><?php echo __('Site Key', 'loginizer'); ?></b></label><br>
265 <?php echo __('Make sure you enter the correct keys as per the reCAPTCHA type selected above', 'loginizer'); ?>
266 </td>
267 <td>
268 <input type="text" size="50" value="<?php echo lz_optpost('captcha_key', $loginizer['captcha_key']); ?>" name="captcha_key" id="captcha_key" /><br />
269 <?php echo __('Get the Site Key and Secret Key from <a href="https://www.google.com/recaptcha/admin/" target="_blank">Google</a>', 'loginizer'); ?>
270 </td>
271 </tr>
272 <tr class="lz_google_cap">
273 <td scope="row" valign="top"><label for="captcha_secret"><b><?php echo __('Secret Key', 'loginizer'); ?></b></label></td>
274 <td>
275 <input type="text" size="50" value="<?php echo lz_optpost('captcha_secret', $loginizer['captcha_secret']); ?>" name="captcha_secret" id="captcha_secret" />
276 </td>
277 </tr>
278 <tr class="lz_google_cap">
279 <td scope="row" valign="top"><label for="captcha_theme"><b><?php echo __('Theme', 'loginizer'); ?></b></label></td>
280 <td>
281 <select name="captcha_theme" id="captcha_theme">
282 <?php
283 foreach($lz_env['theme'] as $k => $v){
284 echo '<option '.lz_POSTselect('captcha_theme', $k, ($loginizer['captcha_theme'] == $k ? true : false)).' value="'.$k.'">'.$v.'</value>';
285 }
286 ?>
287 </select>
288 </td>
289 </tr>
290 <tr class="lz_google_cap">
291 <td scope="row" valign="top"><label for="captcha_lang"><b><?php echo __('Language', 'loginizer'); ?></b></label></td>
292 <td>
293 <select name="captcha_lang" id="captcha_lang">
294 <?php
295 foreach($lz_env['lang'] as $k => $v){
296 echo '<option '.lz_POSTselect('captcha_lang', $k, ($loginizer['captcha_lang'] == $k ? true : false)).' value="'.$k.'">'.$v.'</value>';
297 }
298 ?>
299 </select>
300 </td>
301 </tr>
302 <tr class="lz_google_cap lz_google_cap_size">
303 <td scope="row" valign="top"><label for="captcha_size"><b><?php echo __('Size', 'loginizer'); ?></b></label></td>
304 <td>
305 <select name="captcha_size" id="captcha_size">
306 <?php
307 foreach($lz_env['size'] as $k => $v){
308 echo '<option '.lz_POSTselect('captcha_size', $k, ($loginizer['captcha_size'] == $k ? true : false)).' value="'.$k.'">'.$v.'</value>';
309 }
310 ?>
311 </select>
312 </td>
313 </tr>
314 <tr class="lz_google_cap">
315 <td scope="row" valign="top">
316 <label for="captcha_domain"><b><?php echo __('reCAPTCHA Domain', 'loginizer'); ?></b></label><br>
317 <?php echo __('If Google is not accessible or blocked in your country select other one', 'loginizer'); ?>
318 </td>
319 <td>
320 <select name="captcha_domain" id="captcha_domain">
321 <?php
322 foreach($lz_env['captcha_domains'] as $k => $v){
323 echo '<option '.lz_POSTselect('captcha_domain', $k, ($loginizer['captcha_domain'] == $k ? true : false)).' value="'.$k.'">'.$v.($k == 'www.google.com' ? ' '.__('(Default)', 'loginizer') : '').'</value>';
324 }
325 ?>
326 </select>
327 </td>
328 </tr>
329 <tr class="lz_math_cap">
330 <td scope="row" valign="top">
331 <label for="captcha_text"><b><?php echo __('Captcha Text', 'loginizer'); ?></b></label><br>
332 <?php echo __('The text to be shown for the Captcha Field', 'loginizer'); ?>
333 </td>
334 <td>
335 <input type="text" size="30" value="<?php echo lz_optpost('captcha_text', @$loginizer['captcha_text']); ?>" name="captcha_text" id="captcha_text" />
336 </td>
337 </tr>
338 <tr class="lz_math_cap">
339 <td scope="row" valign="top">
340 <label for="captcha_time"><b><?php echo __('Captcha Time', 'loginizer'); ?></b></label><br>
341 <?php echo __('Enter the number of seconds, a user has to enter captcha value.', 'loginizer'); ?>
342 </td>
343 <td>
344 <input type="text" size="30" value="<?php echo lz_optpost('captcha_time', @$loginizer['captcha_time']); ?>" name="captcha_time" id="captcha_time" />
345 </td>
346 </tr>
347 <tr class="lz_math_cap">
348 <td scope="row" valign="top">
349 <label for="captcha_words"><b><?php echo __('Display Captcha in Words', 'loginizer'); ?></b></label><br>
350 <?php echo __('If selected the Captcha will be displayed in words rather than numbers', 'loginizer'); ?>
351 </td>
352 <td>
353 <input type="checkbox" value="1" name="captcha_words" id="captcha_words" <?php echo lz_POSTchecked('captcha_words', (empty($loginizer['captcha_words']) ? false : true));?> />
354 </td>
355 </tr>
356 <tr class="lz_math_cap">
357 <td scope="row" valign="top" style="vertical-align: top !important;">
358 <label><b><?php echo __('Mathematical operations', 'loginizer'); ?></b></label><br>
359 <?php echo __('The Mathematical operations to use for Captcha', 'loginizer'); ?>
360 </td>
361 <td valign="top">
362 <table class="wp-list-table fixed users" cellpadding="8" cellspacing="1">
363 <?php echo '
364 <tr>
365 <td><label for="captcha_add">'.__('Addition (+)', 'loginizer').'</label></td>
366 <td><input type="checkbox" value="1" name="captcha_add" id="captcha_add" '.lz_POSTchecked('captcha_add', (empty($loginizer['captcha_add']) ? false : true)).' /></td>
367 </tr>
368 <tr>
369 <td><label for="captcha_subtract">'.__('Subtraction (-)', 'loginizer').'</label></td>
370 <td><input type="checkbox" value="1" name="captcha_subtract" id="captcha_subtract" '.lz_POSTchecked('captcha_subtract', (empty($loginizer['captcha_subtract']) ? false : true)).' /></td>
371 </tr>
372 <tr>
373 <td><label for="captcha_multiply">'.__('Multiplication (x)', 'loginizer').'</label></td>
374 <td><input type="checkbox" value="1" name="captcha_multiply" id="captcha_multiply" '.lz_POSTchecked('captcha_multiply', (empty($loginizer['captcha_multiply']) ? false : true)).' /></td>
375 </tr>
376 <tr>
377 <td><label for="captcha_divide">'.__('Division (÷)', 'loginizer').'</label></td>
378 <td><input type="checkbox" value="1" name="captcha_divide" id="captcha_divide" '.lz_POSTchecked('captcha_divide', (empty($loginizer['captcha_divide']) ? false : true)).' /></td>
379 </tr>';
380 ?>
381 </table>
382 </td>
383 </tr>
384 <tr class="lz_cap">
385 <td scope="row" valign="top"><label><b><?php echo __('Show Captcha On', 'loginizer'); ?></b></label></td>
386 <td valign="top">
387 <table class="wp-list-table fixed users" cellpadding="8" cellspacing="1">
388 <?php echo '
389 <tr>
390 <td><label for="captcha_login">'.__('Login Form', 'loginizer').'</label></td>
391 <td><input type="checkbox" value="1" name="captcha_login" id="captcha_login" '.lz_POSTchecked('captcha_login', (empty($loginizer['captcha_login']) ? false : true)).' /></td>
392 </tr>
393 <tr>
394 <td><label for="captcha_lostpass">'.__('Lost Password Form', 'loginizer').'</label></td>
395 <td><input type="checkbox" value="1" name="captcha_lostpass" id="captcha_lostpass" '.lz_POSTchecked('captcha_lostpass', (empty($loginizer['captcha_lostpass']) ? false : true)).' /></td>
396 </tr>
397 <tr>
398 <td><label for="captcha_resetpass">'.__('Reset Password Form', 'loginizer').'</label></td>
399 <td><input type="checkbox" value="1" name="captcha_resetpass" id="captcha_resetpass" '.lz_POSTchecked('captcha_resetpass', (empty($loginizer['captcha_resetpass']) ? false : true)).' /></td>
400 </tr>
401 <tr>
402 <td><label for="captcha_register">'.__('Registration Form', 'loginizer').'</label></td>
403 <td><input type="checkbox" value="1" name="captcha_register" id="captcha_register" '.lz_POSTchecked('captcha_register', (empty($loginizer['captcha_register']) ? false : true)).' /></td>
404 </tr>
405 <tr>
406 <td><label for="captcha_comment">'.__('Comment Form', 'loginizer').'</label></td>
407 <td><input type="checkbox" value="1" name="captcha_comment" id="captcha_comment" '.lz_POSTchecked('captcha_comment', (empty($loginizer['captcha_comment']) ? false : true)).' /></td>
408 </tr>';
409
410 if(!defined('SITEPAD')){
411
412 echo '<tr>
413 <td><label for="captcha_wc_checkout">'.__('WooCommerce Checkout', 'loginizer').'</label></td>
414 <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>
415 </tr>';
416
417 }
418
419 ?>
420 </table>
421 </td>
422 </tr>
423 <tr class="lz_cap">
424 <td scope="row" valign="top"><label for="captcha_user_hide"><b><?php echo __('Hide CAPTCHA for logged in Users', 'loginizer'); ?></b></label></td>
425 <td>
426 <input type="checkbox" value="1" name="captcha_user_hide" id="captcha_user_hide" <?php echo lz_POSTchecked('captcha_user_hide', (empty($loginizer['captcha_user_hide']) ? false : true)); ?> />
427 </td>
428 </tr>
429 <tr class="lz_google_cap">
430 <td scope="row" valign="top"><label for="captcha_no_css_login"><b><?php echo __('Disable CSS inserted on Login Page', 'loginizer'); ?></b></label></td>
431 <td>
432 <input type="checkbox" value="1" name="captcha_no_css_login" id="captcha_no_css_login" <?php echo lz_POSTchecked('captcha_no_css_login', (empty($loginizer['captcha_no_css_login']) ? false : true)); ?> />
433 </td>
434 </tr>
435 </table><br />
436 <center><input name="save_lz" class="button button-primary action" value="<?php echo __('Save Settings','loginizer'); ?>" type="submit" /></center>
437 </form>
438
439 </div>
440 </div>
441 <br />
442
443 <script type="text/javascript">
444
445 function lz_captcha_status(){
446
447 var cur_captcha_status = jQuery("#captcha_status option:selected").val();
448
449 if(cur_captcha_status == 1){
450 jQuery(".lz_google_cap").show();
451 jQuery(".lz_math_cap").hide();
452 jQuery(".lz_cap").show();
453 google_recaptcha_type();
454
455 }else if(cur_captcha_status == 2){
456 jQuery(".lz_google_cap").hide();
457 jQuery(".lz_math_cap").show();
458 jQuery(".lz_cap").show();
459 }else{
460 jQuery(".lz_google_cap").hide();
461 jQuery(".lz_math_cap").hide();
462 jQuery(".lz_cap").hide();
463 }
464
465 }
466
467 function google_recaptcha_type(){
468
469 var cur_captcha_type = jQuery("input:radio[name='captcha_type']:checked").val();
470
471 if(cur_captcha_type == 'v3' || cur_captcha_type == 'v2_invisible'){
472 jQuery(".lz_google_cap_size").hide();
473 }else{
474 jQuery(".lz_google_cap_size").show();
475 }
476
477 }
478
479 jQuery(document).ready(function(){
480 lz_captcha_status();
481 });
482
483 </script>
484
485 <?php
486 loginizer_page_footer();
487
488 }