Revision 620
Added by thorn almost 17 years ago
trunk/wb/modules/news/comment_page.php | ||
---|---|---|
31 | 31 |
|
32 | 32 |
require_once(WB_PATH.'/include/captcha/captcha.php'); |
33 | 33 |
require_once(WB_PATH.'/include/captcha/asp.php'); |
34 |
if(isset($_SESSION['captcha_retry_news'])) unset($_SESSION['captcha_retry_news']); |
|
35 | 34 |
|
36 | 35 |
// Get comments page template details from db |
37 | 36 |
$query_settings = $database->query("SELECT comments_page,use_captcha,commenting FROM ".TABLE_PREFIX."mod_news_settings WHERE section_id = '".SECTION_ID."'"); |
trunk/wb/modules/news/submit_comment.php | ||
---|---|---|
51 | 51 |
)) { |
52 | 52 |
exit(header("Location: ".WB_URL.PAGES_DIRECTORY."")); |
53 | 53 |
} |
54 |
if(ENABLED_ASP) { |
|
55 |
if(isset($_SESSION['captcha_retry_news'])) unset($_SESSION['captcha_retry_news']); |
|
56 |
} |
|
54 | 57 |
if($settings['use_captcha']) { |
55 | 58 |
if(isset($_POST['captcha']) AND $_POST['captcha'] != '') { |
56 | 59 |
// Check for a mismatch |
Also available in: Unified diff
some cleanup in news-module (ASP related).