Project

General

Profile

« Previous | Next » 

Revision 649

Added by thorn almost 17 years ago

Improved ASP in news-module.

View differences:

comment_page.php
68 68
	<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']); } ?> />
69 69
	<br /><br />
70 70
	<?php echo $TEXT['COMMENT']; 
71
	// naming this field c0mment is part of ASP
72 71
	?>:
73 72
	<br />
74
	<textarea name="c0mment" style="width: 90%; height: 150px;"><?php if(isset($_SESSION['comment_body'])) { echo $_SESSION['comment_body']; unset($_SESSION['comment_body']); } ?></textarea>
73
	<?php if(ENABLED_ASP) { ?>
74
		<textarea name="c0mment_<?php echo date('W'); ?>" style="width: 90%; height: 150px;"><?php if(isset($_SESSION['comment_body'])) { echo $_SESSION['comment_body']; unset($_SESSION['comment_body']); } ?></textarea>
75
	<?php } else { ?>
76
		<textarea name="comment" style="width: 90%; height: 150px;"><?php if(isset($_SESSION['comment_body'])) { echo $_SESSION['comment_body']; unset($_SESSION['comment_body']); } ?></textarea>
77
	<?php } ?>
75 78
	<br /><br />
76 79
	<?php
77 80
	if(isset($_SESSION['captcha_error'])) {

Also available in: Unified diff