| 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 = ""; |
| 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 |
} |
} |