diff options
author | Dries Buytaert <dries@buytaert.net> | 2000-06-05 15:59:06 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2000-06-05 15:59:06 +0000 |
commit | 595316b0045d6452a791ba1c3c3b4bad010b66a1 (patch) | |
tree | 7ec25b464d860eec28281c3e70bd032d53bb8a12 /submit.php | |
parent | 50fc563bff9ed03b495fbe6c7fe007a357b2beb9 (diff) | |
download | brdo-595316b0045d6452a791ba1c3c3b4bad010b66a1.tar.gz brdo-595316b0045d6452a791ba1c3c3b4bad010b66a1.tar.bz2 |
* Bugfix: the `story submission'-form is no longer toasted due to the new
user system.
Diffstat (limited to 'submit.php')
-rw-r--r-- | submit.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/submit.php b/submit.php index 869d4570a..8f95140a6 100644 --- a/submit.php +++ b/submit.php @@ -6,13 +6,11 @@ function defaultDisplay() { $theme->header(); global $user; - if (isset($user)) getusrinfo($user); print "<FORM ACTION=\"submit.php\" METHOD=\"post\">"; print "<P>\n <B>Your name:</B><BR>"; if ($user) { - cookiedecode($user); echo " <A HREF=\"account.php\">$user->userid</A> <FONT SIZE=\"2\">[ <A HREF=\"account.php?op=logout\">logout</A> ]</FONT>"; } else { echo "$anonymous <FONT SIZE=\"2\">[ <A HREF=\"account.php\">login</A> | <A HREF=\"account.php\">create an account</A> ]</FONT>"; @@ -66,13 +64,14 @@ function PreviewStory($name, $address, $subject, $abstract, $story, $category) { include "theme.inc"; $theme->header(); + print "<B>Preview:</B><BR>"; $theme->preview("", $user->userid, date("l, F d, Y - H:i A", time()), stripslashes($subject), "we-hate-typoes", stripslashes($abstract), "", stripslashes($story)); + print "<FORM ACTION=\"submit.php\" METHOD=\"post\">"; print "<P>\n <B>Your name:</B><BR>"; if ($user) { - cookiedecode($user); echo " <A HREF=\"account.php\">$user->userid</A> <FONT SIZE=\"2\"> [ <A HREF=\"account.php?op=logout\">logout</A> ]</FONT>"; } else { echo "$anonymous <FONT SIZE=\"2\">[ <A HREF=\"$account.php\">login</A> | <A HREF=\"account.php\">create an account</A> ]</FONT>"; @@ -135,7 +134,6 @@ function submitStory($name, $address, $subject, $abstract, $article, $category) ### Add submission to queue: dbconnect(); if ($user) { - cookiedecode($user); $uid = $user->id; $name = $user->userid; } |