web-ballot.pl: New script

This commit is contained in:
Petr Baudis 2014-10-08 22:51:33 +02:00
parent f068590866
commit a6101aa02a
2 changed files with 143 additions and 2 deletions

View file

@ -1,3 +1,15 @@
Example:
Generating Ballots
------------------
./gen-ballot.pl 15 <names-sample.txt
./gen-ballot.pl 15 <names-sample.txt
Web Ballot CGI Script
---------------------
Put `names-sample.txt` and `tokens.txt` to the same directory as
`web-ballot.pl` and make that directory available for CGI script execution.
If this directory is accessible over web, don't forget to remove read
permissions for all but the owner.
It should just work; you may need to adjust the `votes.txt` path currently
hardcoded in `web-ballot.pl`, where the cast votes are recorded.