Voting extension part two
From User talk:Tmtoulouse
Jump to navigation
Jump to search
Voting extension part two
See RationalWiki_talk:2010_board_of_trustees_election/Election_booth#Forging_votes.
To open the polls, uncomment the line:
#$wgElectionName = "2011board";
in LocalSettings.php. Votes are saved to a file called {$wgElectionName}.blt in public_html/w. I've made it inaccessible from the web in .htaccess (btw, the previous file is accessible from the web).
Candidates can be specified in LocalSettings using $wgElectionCandidates. The election name variable is used for the filename and to record who has already voted. There's a table in the database called rw_election_voted that contains the user id and the election name for anyone who has voted.
Eligibility is determined using $wgAutopromote (see w/extensions/Election/Election.php).