From c31d035e1aec40f94637e74e03abd1c20ab4de67 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Mon, 13 Oct 2014 19:17:22 +0200 Subject: [PATCH] Work with names.txt instead of names-sample.txt --- README.md | 10 ++++++++-- web-ballot.pl | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cd5c4e8..87ea5a4 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,18 @@ +Initialization +-------------- + +Copy `names-sample.txt` to `names.txt` or create your own `names.txt`. +Clobber your `~/votes.txt` file. + Generating Ballots ------------------ - ./gen-ballot.pl 15 tokens.txt Web Ballot CGI Script --------------------- -Put `names-sample.txt` and `tokens.txt` to the same directory as +Put `names.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. diff --git a/web-ballot.pl b/web-ballot.pl index f19709a..639ac2d 100755 --- a/web-ballot.pl +++ b/web-ballot.pl @@ -7,7 +7,7 @@ use v5.10; use CGI; our @names; -open my $fh, "names-sample.txt" or die "$!"; +open my $fh, "names.txt" or die "$!"; while (<$fh>) { chomp; push @names, $_;