Temporary location of Voting Software Source code.
Find a file
Bradley M. Kuhn 35e87c2c65 Don't refer back to a list; just tell the user they must have election_id.
This is probably not the right long-term solution.  Ideally, I think it'd be
useful if elections could be marked private or public, and elections that are
public would be listed automatically, and private ones wouldn't appear.

It seems there are some remnants in the code that make it look like someone
was going to make a step 0, which would list the elections from the database,
but that was never done.

So, I've hard-coded what I wanted here, in hopes someone else comes along and
does it up right.
2013-12-18 17:33:06 -05:00
bin Releasing the bin/ scripts under GPLv3+ 2013-12-18 15:44:26 -05:00
include Here too. 2013-07-25 11:32:35 +02:00
vote Don't refer back to a list; just tell the user they must have election_id. 2013-12-18 17:33:06 -05:00
.cvsignore Merge the new-template branch in to HEAD. The branch is now defunct, and 2003-11-02 05:06:55 +00:00
.gitignore Add .gitignore 2009-05-17 16:39:21 +02:00
autogen.sh Remove references to things other than the vote stuff in configure scripts. 2013-12-17 13:19:12 -05:00
configure.in No longer reference removed directories. 2013-12-18 13:14:03 -05:00
MAINTAINERS I'm the maintainer of this fork of the GNOME voting stuff. 2013-12-17 13:15:57 -05:00
Makefile.am Remove references to things other than the vote stuff in configure scripts. 2013-12-17 13:19:12 -05:00
README Begin details of GRANTs needed for proper operation here. 2013-12-18 17:09:49 -05:00
rules.common go back to evilsedhack for php files, since PHP is evil. Should fix this 2005-05-23 07:17:00 +00:00

Setting up an election:

0. vote/include/election-sql.php expects a secret config file that exists
   only on the server and is included as PHP code.  It's hard coded currently
   to: /home/admin/secret/anonvoting currently.

   The file should look something like this:

<?php
       $mysql_host = "localhost";
       $mysql_user = "someuser";
       $mysql_password = "somepassword";
       $mysql_db = "somedb";
?>

1. When I deploy, I create an account for the election, as the mysql root user:
   mysql -u root -p
   Password: <MYSQLROOTPW>
   mysql> CREATE USER 'someusername' identified by 'somepassword';
   mysql> CREATE DATABASE somedbname;
   mysql> quit
   msyql -u root -p -D somedbname < ..../vote/include/schema.sql
   mysql -u root -p
   Password: <MYSQLROOTPW>
   mysql> GRANT SELECT on somedb.elections TO someuser@localhost;