Changeset 28345 for extensions/EasyCaptcha
- Timestamp:
- May 4, 2014, 4:23:56 PM (10 years ago)
- Location:
- extensions/EasyCaptcha
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/EasyCaptcha/admin.php
r26831 r28345 28 28 ), 29 29 'comments_action' => $_POST['comments_action'], 30 'guest_only' => isset($_POST['guest_only']), 30 31 'challenge' => $_POST['challenge'], 31 32 'drag' => array( -
extensions/EasyCaptcha/include/category.inc.php
r27041 r28345 24 24 global $conf, $page; 25 25 26 if (!is_a_guest()) return $action;27 28 26 if (!easycaptcha_check()) 29 27 { -
extensions/EasyCaptcha/include/contactform.inc.php
r26069 r28345 11 11 global $conf, $page; 12 12 13 if (!is_a_guest()) return $action;14 15 13 if (!easycaptcha_check()) 16 14 { -
extensions/EasyCaptcha/include/guestbook.inc.php
r26069 r28345 11 11 global $conf, $page; 12 12 13 if (!is_a_guest()) return $action;14 15 13 if (!easycaptcha_check()) 16 14 { -
extensions/EasyCaptcha/include/picture.inc.php
r26069 r28345 24 24 global $conf, $page; 25 25 26 if (!is_a_guest()) return $action;27 28 26 if (!easycaptcha_check()) 29 27 { -
extensions/EasyCaptcha/language/en_UK/plugin.lang.php
r26536 r28345 36 36 $lang['We detected that Crypto Captcha plugin is available on your gallery. Both plugins can be used at the same time, but you should not under any circumstances activate both of them on the same page.'] = 'We detected that Crypto Captcha plugin is available in your gallery. Both plugins can be used at the same time, but you should not under any circumstances activate both of them on the same page.'; 37 37 $lang['Nowhere'] = 'Nowhere'; 38 ?> 38 $lang['Only for unauthenticated users'] = 'Only for unauthenticated users'; -
extensions/EasyCaptcha/language/fr_FR/plugin.lang.php
r26536 r28345 36 36 $lang['We detected that Crypto Captcha plugin is available on your gallery. Both plugins can be used at the same time, but you should not under any circumstances activate both of them on the same page.'] = 'Nous avons détecté que Crypto Captcha est activé sur votre galerie. Les deux plugins peuvent fonctionner en même temps, mais sous aucun prétexte ils ne doivent être activés sur les mêmes pages.'; 37 37 $lang['Nowhere'] = 'Nulle part'; 38 ?> 38 $lang['Only for unauthenticated users'] = 'Seulement pour les utilisateurs non connectés'; -
extensions/EasyCaptcha/main.inc.php
r26069 r28345 55 55 global $conf, $pwg_loaded_plugins, $page; 56 56 57 if (!is_a_guest() )57 if (!is_a_guest() && $conf['cryptographp']['guest_only']) 58 58 { 59 59 return; … … 89 89 global $conf; 90 90 91 if (!is_a_guest())92 {93 return;94 }95 96 91 if ($conf['EasyCaptcha']['activate_on']['register']) 97 92 { -
extensions/EasyCaptcha/maintain.inc.php
r26025 r28345 21 21 ), 22 22 'comments_action' => 'reject', 23 'guest_only' => true, 23 24 'challenge' => 'random', 24 25 'drag' => array( … … 56 57 $old_conf['lastmod'] = time(); 57 58 } 59 if (!isset($old_conf['guest_only'])) 60 { 61 $old_conf['guest_only'] = true; 62 } 58 63 59 64 $conf['EasyCaptcha'] = serialize($old_conf); -
extensions/EasyCaptcha/template/admin.tpl
r26068 r28345 119 119 <ul> 120 120 <li> 121 <b><label for="guest_only">{'Only for unauthenticated users'|translate}</label></b> 122 <input type="checkbox" name="guest_only" id="guest_only" {if $easycaptcha.guest_only}checked{/if}> 123 </li> 124 <li> 121 125 <b>{'Activate on'|translate}</b> 122 126 <select name="activate_on[]" multiple>
Note: See TracChangeset
for help on using the changeset viewer.