Commit graph

9 commits

Author SHA1 Message Date
Simon L. B. Nielsen
b2b866fde8 Try to find cgi-lib.pl in the current directory since the script cannot
find cgi-lib.pl otherwise on www.FreeBSD.org.
2005-12-04 23:20:42 +00:00
Simon L. B. Nielsen
451acb67a8 Move the sendpr verification "database" to a non world-writeable
directory.

OK'ed by:	ceri
2005-12-04 22:25:20 +00:00
Ceri Davies
e9f6345562 Use the strict pragma. 2005-12-04 16:36:51 +00:00
Ceri Davies
251299c4db Refactor the "confirmation code" stuff into a general purpose script.
confirm-code.cgi contains a preconfigured list of databases and their
parameters.  When a request comes in, the database in the request's 'db'
parameter is checked for validity, and a code is generated, stored in
the appropriate database and returned.

Use this new script in send-pr.sgml and remove sendpr-code.cgi which is
now superceded.
2005-12-04 16:18:40 +00:00
Ceri Davies
b63c7805f1 Forced commit to note that www/en/cgi/confirm-code.cgi was repocopied
from sendpr-code.cgi at the same path.

querypr-code.cgi and sendpr-code.cgi will be coalesced into the single
script confirm-code.cgi.
2005-11-11 08:58:06 +00:00
Ceri Davies
eafc1831a4 Add a "Pragma: no-cache" header to stop these images being cached.
Suggested by:	wosch
2004-12-13 22:43:05 +00:00
Ceri Davies
798c983fea Some people don't have 20/20 vision, so elide 'I' and '1' from the
characters in the confirmation image.

en/gifs/1.pnm and en/gifs/I.pnm will be safe to remove 45 minutes after
the next web build and not before, so I'll do that tomorrow.

PR:	www/69676
2004-07-27 20:34:40 +00:00
Ceri Davies
e107d98123 Up the length of time for which a code remains valid from 15 minutes to
45 minutes.  This was partially prompted by:

PR:		www/60668
Submitted by:	Kevin Ross <austusross@yahoo.com>
2004-01-03 21:24:51 +00:00
Ceri Davies
555cb01e5a Re-enable the web-based PR submission mechanism.
This code relies on the netpbm port being installed ; this is
already a dependency of the textproc/docproj port.

This comes courtesy of a collaboration with Eric Anderson
<anderson@centtech.com> who submitted both the idea and the vast
majority of the code to implement it; thank you very much, Eric - this
is a great Christmas present to us and our user community.
2003-12-14 17:28:13 +00:00