Revision 250
Added by ryan almost 19 years ago
add.php | ||
---|---|---|
87 | 87 |
<br /><a href=\"[ADD_COMMENT_URL]\">Add Comment</a>'; |
88 | 88 |
$comments_page = '<h1>Comment</h1> |
89 | 89 |
<h2>[POST_TITLE]</h2> |
90 |
<br /> |
|
91 |
<form name=\"comment\" action=\"[ACTION_URL]\" method=\"post\"> |
|
92 |
Title: |
|
93 |
<br /> |
|
94 |
<input type=\"text\" name=\"title\" maxlength=\"255\" style=\"width: 90%;\" /> |
|
95 |
<br /><br /> |
|
96 |
Comment: |
|
97 |
<br /> |
|
98 |
<textarea name=\"comment\" style=\"width: 90%; height: 150px;\"></textarea> |
|
99 |
<br /><br /> |
|
100 |
<input type=\"submit\" name=\"submit\" value=\"Add Comment\" />'; |
|
90 |
<br />'; |
|
101 | 91 |
$commenting = 'none'; |
102 |
|
|
103 |
$database->query("INSERT INTO ".TABLE_PREFIX."mod_news_settings (section_id,page_id,header,post_loop,footer,post_header,post_footer,comments_header,comments_loop,comments_footer,comments_page,commenting) VALUES ('$section_id','$page_id','$header','$post_loop','$footer','$post_header','$post_footer','$comments_header','$comments_loop','$comments_footer','$comments_page','$commenting')");
|
|
92 |
$use_captcha = true; |
|
93 |
$database->query("INSERT INTO ".TABLE_PREFIX."mod_news_settings (section_id,page_id,header,post_loop,footer,post_header,post_footer,comments_header,comments_loop,comments_footer,comments_page,commenting,use_captcha) VALUES ('$section_id','$page_id','$header','$post_loop','$footer','$post_header','$post_footer','$comments_header','$comments_loop','$comments_footer','$comments_page','$commenting','$use_captcha')");
|
|
104 | 94 |
|
105 | 95 |
?> |
Also available in: Unified diff
Added Captcha to News module