/[drupal]/contributions/modules/captcha/captcha.module
ViewVC logotype

Diff of /contributions/modules/captcha/captcha.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.18, Thu Jan 12 23:34:58 2006 UTC revision 1.19, Sun Jan 15 18:51:40 2006 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: captcha.module,v 1.17 2006/01/11 17:41:40 arnabdotorg Exp $  // $Id: captcha.module,v 1.18 2006/01/12 23:34:58 arnabdotorg Exp $
3    
4  function captcha_help($section = "admin/help#captcha") {  function captcha_help($section = "admin/help#captcha") {
5    $output = "";    $output = "";
# Line 211  function captcha_form_alter($formid, &$f Line 211  function captcha_form_alter($formid, &$f
211        // include logic to remove captcha if the current entry is a valid captcha        // include logic to remove captcha if the current entry is a valid captcha
212        if (!$_SESSION['captcha_comment_correct'] && !($_POST['edit']['captcha_word'] != '' && _captcha_validate($_POST['edit']['captcha_word']))) {        if (!$_SESSION['captcha_comment_correct'] && !($_POST['edit']['captcha_word'] != '' && _captcha_validate($_POST['edit']['captcha_word']))) {
213          $form['captcha'] = _captcha_form();          $form['captcha'] = _captcha_form();
214        } else {        }
215          else {
216          $_SESSION['captcha']='';          $_SESSION['captcha']='';
217          unset($form['captcha']);          unset($form['captcha']);
218        }        }

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

  ViewVC Help
Powered by ViewVC 1.1.2