Changeset 15118 for extensions/CryptograPHP/include/picture.inc.php
- Timestamp:
- May 19, 2012, 11:40:58 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CryptograPHP/include/picture.inc.php
r14527 r15118 39 39 $securimage = new Securimage(); 40 40 41 if ( $action == 'reject' or $action == $conf['cryptographp']['comments_action'] or !is_a_guest() ) 42 { 43 return $action; 44 } 41 if (!is_a_guest()) return $action; 45 42 46 43 if ($securimage->check($_POST['captcha_code']) == false) 47 44 { 48 45 if ($conf['cryptographp']['comments_action'] == 'reject') array_push($page['errors'], l10n('Invalid Captcha')); 49 return $conf['cryptographp']['comments_action'];46 return ($action != 'reject') ? $conf['cryptographp']['comments_action'] : 'reject'; 50 47 } 51 48
Note: See TracChangeset
for help on using the changeset viewer.