diff options
author | Dries Buytaert <dries@buytaert.net> | 2000-09-11 07:45:22 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2000-09-11 07:45:22 +0000 |
commit | 1f0a87f4e704fff7f6c94191afbe7dc0fa9f031e (patch) | |
tree | 968ffbc61a794f7ec18b649273a86d42e4081050 /submit.php | |
parent | 17d8330e44fdd03429605d3131bd36c10fddf991 (diff) | |
download | brdo-1f0a87f4e704fff7f6c94191afbe7dc0fa9f031e.tar.gz brdo-1f0a87f4e704fff7f6c94191afbe7dc0fa9f031e.tar.bz2 |
Over the last 2 days I redid and reorganized an afwul lot of code and
made quite a lot of additions. The most remarkable addition is the
diary server, which I slapped together in less then 40 minutes. Most
of the other changes are however `unvisible' for the user but add much
value to a better maintainability from a developer's objective. Like
always, I fixed quite a number of small bugs that creeped into the code
so we should have a bigger, better and more stable drop.org.
Unfortunatly, some theme update _are_ required:
REQUIRED THEME UPDATES:
=======================
* use format_username() where usernames are used
* use format_date() where timestamps/dates are used
* use format_email() where e-mail addresses are displayed
* use format_url() where url are displayed
* replace 'formatTimestamp' with format_date
* replace 'morelink_*' with 'display_morelink'
[most of these functions are in function.inc or template.inc]
___PLEASE___ (<- this should get your attention ;) update your themes
as soon as possible - it only takes 30 min. to get in sync with the
other themes. Don't start whining about the fact you don't know what
to change ... either eat the source cookie, or ask me to elaborate on
a few changes. Just let me know what's puzzling you and I'll try to
help you out!
TODO LIST FOR NEXT WEEK
=======================
* Add checks for max. text length in textarea's? Is there an HMTL
attribute for this or ...?
* Comment moderation + mojo
* Edit/admin user accounts: block, delete, change permissions, ...
* E-mail password, change password, change e-mail address -> extra
checks and routines to validate such `special' changes.
* Input checking - input filter: bad words, html tags, ...
Diffstat (limited to 'submit.php')
-rw-r--r-- | submit.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/submit.php b/submit.php index e97c25537..45b8c1e41 100644 --- a/submit.php +++ b/submit.php @@ -18,7 +18,7 @@ function submit_enter() { $output .= "<P>\n"; $output .= " <B>Subject:</B><BR>\n"; - $output .= " <INPUT TYPE=\"text\" NAME=\"subject\" SIZE=\"50\"><BR>\n"; + $output .= " <INPUT TYPE=\"text\" NAME=\"subject\" SIZE=\"50\" MAXLENGTH=\"60\"><BR>\n"; $output .= " <SMALL><I>Bad subjects are 'Check this out!' or 'An article'. Be descriptive, clear and simple!</I></SMALL>\n"; $output .= "</P>\n"; @@ -34,7 +34,7 @@ function submit_enter() { $output .= "<P>\n"; $output .= " <B>Abstract:</B><BR>\n"; - $output .= " <TEXTAREA WRAP=\"virtual\" COLS=\"50\" ROWS=\"10\" NAME=\"abstract\"></TEXTAREA><BR>\n"; + $output .= " <TEXTAREA WRAP=\"virtual\" COLS=\"50\" ROWS=\"10\" NAME=\"abstract\" MAXLENGTH=\"20\"></TEXTAREA><BR>\n"; $output .= " <SMALL><I>HTML is nice and dandy, but double check those URLs and HTML tags!</I></SMALL>\n"; $output .= "</P>\n"; @@ -45,7 +45,8 @@ function submit_enter() { $output .= "</P>\n"; $output .= "<P>\n"; - $output .= " <INPUT TYPE=\"submit\" NAME=\"op\" VALUE=\"Preview submission\"> (You must preview at least once before you can submit.)\n"; + $output .= " You must preview at least once before you can submit:<BR>\n"; + $output .= " <INPUT TYPE=\"submit\" NAME=\"op\" VALUE=\"Preview submission\">\n"; $output .= "</P>\n"; $output .= "</FORM>\n"; @@ -68,7 +69,7 @@ function submit_preview($subject, $abstract, $article, $category) { $output .= "<P>\n"; $output .= " <B>Subject:</B><BR>\n"; - $output .= " <INPUT TYPE=\"text\" NAME=\"subject\" SIZE=\"50\" VALUE=\"". stripslashes($subject) ."\"><BR>\n"; + $output .= " <INPUT TYPE=\"text\" NAME=\"subject\" SIZE=\"50\" MAXLENGTH=\"60\" VALUE=\"". stripslashes($subject) ."\"><BR>\n"; $output .= " <SMALL><I>Bad subjects are 'Check this out!' or 'An article'. Be descriptive, clear and simple!</I></SMALL>\n"; $output .= "</P>\n"; @@ -145,7 +146,7 @@ function submit_submit($subject, $abstract, $article, $category) { watchdog(1, "added new submission with subject `$subject'."); } -include "functions.inc"; +include "function.inc"; include "theme.inc"; switch($op) { |