summaryrefslogtreecommitdiff
path: root/submit.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2000-06-22 20:21:07 +0000
committerDries Buytaert <dries@buytaert.net>2000-06-22 20:21:07 +0000
commitde707b67970fd7e99ec6a70c67ce76309cfec0d5 (patch)
tree8197c13047a32809b260bbd637e3635fc460b4dc /submit.php
parent3e4e873f211b94c15516a462ea30cdb0af4b6bdd (diff)
downloadbrdo-de707b67970fd7e99ec6a70c67ce76309cfec0d5.tar.gz
brdo-de707b67970fd7e99ec6a70c67ce76309cfec0d5.tar.bz2
* Various small bugfixes and enhancements: I think I fixed all bugs I
knew about. * The code generated by my theme `Dries' is now 90% of the time aligned correctly. :o)
Diffstat (limited to 'submit.php')
-rw-r--r--submit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/submit.php b/submit.php
index f77c908d2..87c369207 100644
--- a/submit.php
+++ b/submit.php
@@ -125,7 +125,7 @@ function submit_preview($subject, $abstract, $story, $category) {
$output .= "</FORM>\n";
$theme->header();
- $theme->preview("", $user->userid, date("l, F d, Y - H:i A", time()), stripslashes($subject), "we-hate-typoes", stripslashes($abstract), "", stripslashes($story));
+ $theme->preview($user->userid, stripslashes($subject), stripslashes($abstract), "", stripslashes($story), date("l, F d, Y - H:i A", time()), stripslashes($category), "we-hate-typoes");
$theme->box("Submit a story", $output);
$theme->footer();
}
@@ -137,7 +137,7 @@ function submit_submit($subject, $abstract, $article, $category) {
include "theme.inc";
### Add submission to SQL table:
- db_query("INSERT INTO stories (author, subject, abstract, article, category, timestamp) VALUES ('$user->id', '$subject', '$abstract', '$article', '$category', '". time() ."')");
+ db_query("INSERT INTO stories (author, subject, abstract, article, category, timestamp) VALUES ('$user->id', '". addslashes($subject) ."', '". addslashes($abstract) ."', '". addslashes($article) ."', '". addslashes($category) ."', '". time() ."')");
### Display confirmation message:
$theme->header();