Revision 605
Added by thorn over 17 years ago
| 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']); |
|
| 34 | 35 |
|
| 35 | 36 |
// Get comments page template details from db |
| 36 | 37 |
$query_settings = $database->query("SELECT comments_page,use_captcha,commenting FROM ".TABLE_PREFIX."mod_news_settings WHERE section_id = '".SECTION_ID."'");
|
| ... | ... | |
| 57 | 58 |
URL: |
| 58 | 59 |
<label for="url">Don't write anything in this url field:</label> |
| 59 | 60 |
<input id="url" name="url" size="60" value="" /><br /> |
| 61 |
Comment: |
|
| 62 |
<label for="comment">Leave not your comment here:</label> |
|
| 63 |
<input id="comment" name="comment" size="60" value="" /><br /> |
|
| 60 | 64 |
</p> |
| 61 | 65 |
<?php } |
| 62 | 66 |
?> |
| ... | ... | |
| 64 | 68 |
<br /> |
| 65 | 69 |
<input type="text" name="title" maxlength="255" style="width: 90%;"<?php if(isset($_SESSION['comment_title'])) { echo ' value="'.$_SESSION['comment_title'].'"'; unset($_SESSION['comment_title']); } ?> />
|
| 66 | 70 |
<br /><br /> |
| 67 |
<?php echo $TEXT['COMMENT']; ?>: |
|
| 71 |
<?php echo $TEXT['COMMENT']; |
|
| 72 |
// naming this field c0mment is part of ASP |
|
| 73 |
?>: |
|
| 68 | 74 |
<br /> |
| 69 |
<textarea name="comment" style="width: 90%; height: 150px;"><?php if(isset($_SESSION['comment_body'])) { echo $_SESSION['comment_body']; unset($_SESSION['comment_body']); } ?></textarea>
|
|
| 75 |
<textarea name="c0mment" style="width: 90%; height: 150px;"><?php if(isset($_SESSION['comment_body'])) { echo $_SESSION['comment_body']; unset($_SESSION['comment_body']); } ?></textarea>
|
|
| 70 | 76 |
<br /><br /> |
| 71 | 77 |
<?php |
| 72 | 78 |
if(isset($_SESSION['captcha_error'])) {
|
| 73 | 79 |
echo '<font color="#FF0000">'.$_SESSION['captcha_error'].'</font><br />'; |
| 74 | 80 |
unset($_SESSION['captcha_error']); |
| 81 |
$_SESSION['captcha_retry_news'] = true; |
|
| 75 | 82 |
} |
| 76 | 83 |
// Captcha |
| 77 | 84 |
if($settings['use_captcha']) {
|
Also available in: Unified diff
fixed some issues with CAPTCHA and ASP: Adjusted baseline of '*' in supplyed fonts to meet baseline of numbers. Added counter to ttf_image generation-loop. Removed now unneeded GD-lib checks. Improved ASP in news-module.