Changeset 28344
- Timestamp:
- May 4, 2014, 4:23:36 PM (10 years ago)
- Location:
- extensions/CryptograPHP
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CryptograPHP/admin.php
r26554 r28344 28 28 ), 29 29 'comments_action' => $_POST['comments_action'], 30 'guest_only' => isset($_POST['guest_only']), 30 31 'theme' => $_POST['theme'], 31 32 'captcha_type' => $_POST['captcha_type'], -
extensions/CryptograPHP/include/category.inc.php
r27040 r28344 27 27 $securimage = new Securimage(); 28 28 29 if (!is_a_guest()) return $action;30 31 29 if ($securimage->check($_POST['captcha_code']) == false) 32 30 { -
extensions/CryptograPHP/include/contactform.inc.php
r26072 r28344 14 14 $securimage = new Securimage(); 15 15 16 if (!is_a_guest()) return $action;17 18 16 if ($securimage->check($_POST['captcha_code']) == false) 19 17 { -
extensions/CryptograPHP/include/guestbook.inc.php
r26072 r28344 14 14 $securimage = new Securimage(); 15 15 16 if (!is_a_guest()) return $action;17 18 16 if ($securimage->check($_POST['captcha_code']) == false) 19 17 { -
extensions/CryptograPHP/include/picture.inc.php
r26072 r28344 27 27 $securimage = new Securimage(); 28 28 29 if (!is_a_guest()) return $action;30 31 29 if ($securimage->check($_POST['captcha_code']) == false) 32 30 { -
extensions/CryptograPHP/language/en_UK/plugin.lang.php
r26554 r28344 37 37 $lang['Tip: type "random" on a color field to have a random color'] = 'Tip: type "random" on a color field to have a random color'; 38 38 $lang['We detected that EasyCaptcha 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 EasyCaptcha 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.'; 39 40 ?> 39 $lang['Only for unauthenticated users'] = 'Only for unauthenticated users'; -
extensions/CryptograPHP/language/fr_FR/plugin.lang.php
r26554 r28344 37 37 $lang['Tip: type "random" on a color field to have a random color'] = 'Astuce: inscrivez "random" dans un champs de couleur pour avoir une couleur aléatoire'; 38 38 $lang['We detected that EasyCaptcha 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 EasyCaptcha 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.'; 39 40 ?> 39 $lang['Only for unauthenticated users'] = 'Seulement pour les utilisateurs non connectés'; -
extensions/CryptograPHP/main.inc.php
r26072 r28344 61 61 global $conf, $pwg_loaded_plugins, $page; 62 62 63 if (!is_a_guest() )63 if (!is_a_guest() && $conf['cryptographp']['guest_only']) 64 64 { 65 65 return; … … 94 94 { 95 95 global $conf; 96 97 if (!is_a_guest())98 {99 return;100 }101 96 102 97 if ($conf['cryptographp']['activate_on']['register']) -
extensions/CryptograPHP/maintain.inc.php
r26554 r28344 19 19 $default_config = array( 20 20 'activate_on' => array( 21 22 23 24 25 26 21 'picture' => true, 22 'category' => true, 23 'register' => true, 24 'contactform' => true, 25 'guestbook' => true, 26 ), 27 27 'comments_action' => 'reject', 28 'guest_only' => true, 28 29 'theme' => 'gray', 29 30 'captcha_type' => 'string', … … 73 74 unset($old_conf['image_bg_color']); 74 75 } 76 if (!isset($old_conf['guest_only'])) 77 { 78 $old_conf['guest_only'] = true; 79 } 75 80 76 81 $conf['cryptographp'] = serialize($old_conf); -
extensions/CryptograPHP/template/admin.tpl
r26554 r28344 173 173 <ul> 174 174 <li> 175 <b><label for="guest_only">{'Only for unauthenticated users'|translate}</label></b> 176 <input type="checkbox" name="guest_only" id="guest_only" {if $crypto.guest_only}checked{/if}> 177 </li> 178 <li> 175 179 <b>{'Activate on'|translate}</b> 176 180 <select name="activate_on[]" multiple>
Note: See TracChangeset
for help on using the changeset viewer.