Index: /extensions/CryptograPHP/admin.php =================================================================== --- /extensions/CryptograPHP/admin.php (revision 28343) +++ /extensions/CryptograPHP/admin.php (revision 28344) @@ -28,4 +28,5 @@ ), 'comments_action' => $_POST['comments_action'], + 'guest_only' => isset($_POST['guest_only']), 'theme' => $_POST['theme'], 'captcha_type' => $_POST['captcha_type'], Index: /extensions/CryptograPHP/include/category.inc.php =================================================================== --- /extensions/CryptograPHP/include/category.inc.php (revision 28343) +++ /extensions/CryptograPHP/include/category.inc.php (revision 28344) @@ -27,6 +27,4 @@ $securimage = new Securimage(); - if (!is_a_guest()) return $action; - if ($securimage->check($_POST['captcha_code']) == false) { Index: /extensions/CryptograPHP/include/contactform.inc.php =================================================================== --- /extensions/CryptograPHP/include/contactform.inc.php (revision 28343) +++ /extensions/CryptograPHP/include/contactform.inc.php (revision 28344) @@ -14,6 +14,4 @@ $securimage = new Securimage(); - if (!is_a_guest()) return $action; - if ($securimage->check($_POST['captcha_code']) == false) { Index: /extensions/CryptograPHP/include/guestbook.inc.php =================================================================== --- /extensions/CryptograPHP/include/guestbook.inc.php (revision 28343) +++ /extensions/CryptograPHP/include/guestbook.inc.php (revision 28344) @@ -14,6 +14,4 @@ $securimage = new Securimage(); - if (!is_a_guest()) return $action; - if ($securimage->check($_POST['captcha_code']) == false) { Index: /extensions/CryptograPHP/include/picture.inc.php =================================================================== --- /extensions/CryptograPHP/include/picture.inc.php (revision 28343) +++ /extensions/CryptograPHP/include/picture.inc.php (revision 28344) @@ -27,6 +27,4 @@ $securimage = new Securimage(); - if (!is_a_guest()) return $action; - if ($securimage->check($_POST['captcha_code']) == false) { Index: /extensions/CryptograPHP/language/en_UK/plugin.lang.php =================================================================== --- /extensions/CryptograPHP/language/en_UK/plugin.lang.php (revision 28343) +++ /extensions/CryptograPHP/language/en_UK/plugin.lang.php (revision 28344) @@ -37,4 +37,3 @@ $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'; $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.'; - -?> +$lang['Only for unauthenticated users'] = 'Only for unauthenticated users'; Index: /extensions/CryptograPHP/language/fr_FR/plugin.lang.php =================================================================== --- /extensions/CryptograPHP/language/fr_FR/plugin.lang.php (revision 28343) +++ /extensions/CryptograPHP/language/fr_FR/plugin.lang.php (revision 28344) @@ -37,4 +37,3 @@ $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'; $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.'; - -?> +$lang['Only for unauthenticated users'] = 'Seulement pour les utilisateurs non connectés'; Index: /extensions/CryptograPHP/main.inc.php =================================================================== --- /extensions/CryptograPHP/main.inc.php (revision 28343) +++ /extensions/CryptograPHP/main.inc.php (revision 28344) @@ -61,5 +61,5 @@ global $conf, $pwg_loaded_plugins, $page; - if (!is_a_guest()) + if (!is_a_guest() && $conf['cryptographp']['guest_only']) { return; @@ -94,9 +94,4 @@ { global $conf; - - if (!is_a_guest()) - { - return; - } if ($conf['cryptographp']['activate_on']['register']) Index: /extensions/CryptograPHP/maintain.inc.php =================================================================== --- /extensions/CryptograPHP/maintain.inc.php (revision 28343) +++ /extensions/CryptograPHP/maintain.inc.php (revision 28344) @@ -19,11 +19,12 @@ $default_config = array( 'activate_on' => array( - 'picture' => true, - 'category' => true, - 'register' => true, - 'contactform' => true, - 'guestbook' => true, - ), + 'picture' => true, + 'category' => true, + 'register' => true, + 'contactform' => true, + 'guestbook' => true, + ), 'comments_action' => 'reject', + 'guest_only' => true, 'theme' => 'gray', 'captcha_type' => 'string', @@ -73,4 +74,8 @@ unset($old_conf['image_bg_color']); } + if (!isset($old_conf['guest_only'])) + { + $old_conf['guest_only'] = true; + } $conf['cryptographp'] = serialize($old_conf); Index: /extensions/CryptograPHP/template/admin.tpl =================================================================== --- /extensions/CryptograPHP/template/admin.tpl (revision 28343) +++ /extensions/CryptograPHP/template/admin.tpl (revision 28344) @@ -173,4 +173,8 @@