There is no RationalWiki without you. We are a small non-profit with no staff—we are hundreds of volunteers who document pseudoscience and crankery around the world every day. We will never allow ads because we must remain independent. We cannot rely on big donors with corresponding big agendas. We are not the largest website around, but we believe we play an important role in defending truth and objectivity. |
Fighting pseudoscience isn't free. We are 100% user-supported! Help and donate $5, $10, $20 or whatever you can today with ![]() ![]() |
Voting extension part two
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).