Commit graph

34 commits

Author SHA1 Message Date
Tobias Mueller
909be1127d Updated references pointing to /referenda/
grep -r referenda * doesn't show any other relevant references to referenda/.
2010-10-01 17:10:14 +03:00
Tobias Mueller
15e2716b4a Bug 629334: Move referenda page into the election page
This is accompanied by the following MySQL commands:
INSERT INTO elections ( type, name, voting_start, voting_end, choices_nb, question) VALUES (
'referendum', 'Anonymous Voting Referendum', '2004-09-27', '2004-10-08 25:59:59', 1, 'Do you agree with an anonymous voting process for any future GNOME Foundation elections and referenda?'
);

INSERT INTO election_results (election_id, result) VALUES (
LAST_INSERT_ID(), '<p><strong>Yes</strong>: all future GNOME Foundation elections and referenda will use
an anonymous voting process.</p><p>Please see the original <a href="2004-10/">referendum site</a> for more information on the results.</p>'
);

This commit will be followed by some cleaning up actions like fixing old references and finally removing the referenda directory.
2010-10-01 17:10:08 +03:00
Tobias Mueller
5a05013072 Voting: License the code under GPLv2+
As per discussion on foundation-list: <http://mail.gnome.org/archives/foundation-list/2010-June/msg00107.html>
this code is now licensed under the terms of GPLv2+.
2010-06-15 13:46:34 +02:00
Tobias Mueller
116081ba31 React on the "id" parameter as if it was the "election_id" parameter
This additional code path should be removed, if the current elections
are over. I just added that path because I messed up the announcement
mail.
2009-06-08 12:25:21 +02:00
Tobias Mueller
3f9c7b1df9 Remove a htmlspecialchars() on the results
Because we want to have the result stored as markup in the database.
2009-06-06 17:53:27 +02:00
Tobias Mueller
ac50b1afb4 Use explicit column name in elec_get_results 2009-06-06 17:43:24 +02:00
Tobias Mueller
ddbdac895e Make the body in step2 more explicit
Right now, the script doesn't echo <body onLoad="populateList()"> for an
unkown reason. I assume that this change makes it more explicit und thus
more readable.
2009-06-06 16:35:52 +02:00
Tobias Mueller
8250547bf0 Include a space between method="post" and onsubmit= 2009-06-06 16:31:25 +02:00
Tobias Mueller
b2727e6e9b Feed the to-be-escaped variable to escape_js_var
So it won't return an empty string anymore. The signature of
escape_js_var is:
 mixed str_replace  ( mixed $search  , mixed $replace  , mixed $subject [, int &$count  ] )
So we have to give at least three parameters. I wonder why it doesn't
complain right now...
2009-06-06 16:14:33 +02:00
Tobias Mueller
f3b14cd472 Use explicit column names in elec_choices_get 2009-06-06 16:14:33 +02:00
Olav Vitters
f8b0d3d4ef Add hack to avoid the default HTML in blt.php/wml 2009-06-06 15:48:12 +02:00
Olav Vitters
bc342f9fbf Make $error safe for HTML output purposes 2009-06-06 15:00:37 +02:00
Olav Vitters
7bbef59c9e Add blt.wml to the Makefile 2009-06-06 14:53:57 +02:00
Olav Vitters
44e48def1d Ensure MySQL returns things in UTF-8 2009-06-06 14:33:05 +02:00
Olav Vitters
26d33af6e2 Prevent XSS by escaping the output 2009-06-06 13:54:24 +02:00
Tobias Mueller
57f9634ecb Replaced reference to Maemo with GNOME in the BLT script 2009-06-04 21:33:36 +02:00
Tobias Mueller
62926e5b1b Deleting the .cvsignore file
I highly doubt, that there is any use for this file.
2009-06-04 21:28:09 +02:00
Tobias Mueller
c99af90993 Adding the BLT script
This file seems to produce a format for a special program to view the
results. I'm adding it, as it's referenced from one of the voting pages.
2009-06-04 21:23:59 +02:00
Tobias Mueller
78387ca5e5 Porting the maemo changes
I copied the maemo PHP files over the wml files and cherrypicked the
necessary changes, i.e. I didn't update the Elections name and left the
old elections@gnome.org address in place.
2009-06-04 21:18:37 +02:00
Tobias Mueller
31fd299c8c Import changes from the maemo preferential voting scripts
The changes come from the SVN repository at
https://garage.maemo.org/svn/maemo2midgard/maemo-elections/vote,
revision 1433.

This commit only ports changes in the include/ subdirectory.
2009-06-04 20:15:43 +02:00
Vincent Untz
7bb5acc37c removed <?xml version="1.0" encoding="UTF-8"?> line which breaks the php
2007-04-02  Vincent Untz  <vuntz@gnome.org>

	* foundation.gnome.org/membership/application.wml:
	* foundation.gnome.org/membership/members.wml:
	* foundation.gnome.org/vote/results.wml:
	* foundation.gnome.org/vote/index.wml:
	* foundation.gnome.org/vote/vote.wml:
	* foundation.gnome.org/vote/votes.wml: removed <?xml version="1.0"
	encoding="UTF-8"?> line which breaks the php scripts after RHEL
	migration

svn path=/trunk/; revision=401
2007-04-02 19:46:40 +00:00
Thomas James Alexander Thurman
f536c38dc6 Content-Type header added to all .wml files (okayed with jdub) 2006-07-03 18:31:02 +00:00
Vincent Untz
aca24c3983 display tokens in monospace so that there's no ambiguity
2006-01-07  Vincent Untz  <vuntz@gnome.org>

	* foundation.gnome.org/vote/vote.css:
	* foundation.gnome.org/vote/votes.wml:
	* foundation.gnome.org/vote/include/step4-commit.php: display tokens
	in monospace so that there's no ambiguity
2006-01-07 14:58:27 +00:00
Vincent Untz
3062d7b29f Make the membership list dynamic.
2005-11-13  Vincent Untz  <vuntz@gnome.org>

	Make the membership list dynamic.

	* foundation.gnome.org/htaccess: updated for the move of the list
	* foundation.gnome.org/membership/.cvsignore: updated
	* foundation.gnome.org/membership/Makefile.am: updated
	* foundation.gnome.org/membership/index.wml: fix link
	* foundation.gnome.org/membership/members.wml: use some PHP magic

	* foundation.gnome.org/vote/vote.wml: fix some tags for xhtml
2005-11-13 15:05:03 +00:00
Vincent Untz
0a1cf78837 I think I have the correct query now.
2005-11-07  Vincent Untz  <vuntz@gnome.org>

	* foundation.gnome.org/vote/include/election-sql.php:
	(elec_get_blank_votes_election): I think I have the correct query now.
2005-11-07 08:26:05 +00:00
Vincent Untz
d3f8ff0a3e temporary workaround to get the right value
2005-11-07  Vincent Untz  <vuntz@gnome.org>

	* foundation.gnome.org/vote/include/election-sql.php:
	(elec_get_blank_votes_election): temporary workaround to get the right
	value
2005-11-07 08:10:57 +00:00
Vincent Untz
0ead7be6c7 add links to the results display the number of blank votes if not null new
2005-11-07  Vincent Untz  <vuntz@gnome.org>

	* foundation.gnome.org/referenda/2005-10/index.wml: add links to the
	results
	* foundation.gnome.org/vote/results.wml: display the number of blank
	votes if not null
	* foundation.gnome.org/vote/include/election-sql.php:
	(elec_get_blank_votes_election): new
2005-11-07 07:49:10 +00:00
Vincent Untz
d1ba4ff8fd add news item about preliminary results of referendum ditto don't select
2005-11-07  Vincent Untz  <vuntz@gnome.org>

	* foundation.gnome.org/index.wml: add news item about preliminary
	results of referendum
	* foundation.gnome.org/news/index.wml: ditto
	* foundation.gnome.org/vote/include/election-sql.php:
	(elec_get_results_election): don't select choice with id = -1 (it's a
	blank vote for referenda and we don't need to have it there to know it
	exists)
	(elec_get_votes_for_anon_token): ditto
	* foundation.gnome.org/vote/include/step4-commit.php: (step4_do): no
	need to insert the -1 vote for referenda.
	Add FIXME
2005-11-07 07:34:18 +00:00
Vincent Untz
adf62b2a7b fix code so that it works in MySQL 4.1 (but won't work in MySQL 4.0...)
2005-10-25  Vincent Untz  <vuntz@gnome.org>

	* foundation.gnome.org/vote/include/election-sql.php: fix code so that
	it works in MySQL 4.1 (but won't work in MySQL 4.0...)
2005-10-25 22:05:51 +00:00
Vincent Untz
69d83e26cb updated the timeline ditto final list add some mysql_error()...
2005-10-25  Vincent Untz  <vuntz@gnome.org>

	* foundation.gnome.org/referenda/2005-10/rules.wml: updated the
	timeline
	* foundation.gnome.org/referenda/2005-10/timeline.ics: ditto
	* foundation.gnome.org/referenda/2005-10/voters.wml: final list
	* foundation.gnome.org/vote/include/step4-commit.php: add some
	mysql_error()...
2005-10-25 21:53:16 +00:00
Vincent Untz
9a7638fe41 updated for SQL change fix grammar accept votes :-)
2005-10-25  Vincent Untz  <vuntz@gnome.org>

	* foundation.gnome.org/vote/include/election-sql.php: updated for SQL
	change
	* foundation.gnome.org/vote/include/step1-login.php: fix grammar
	* foundation.gnome.org/vote/include/step3-confirm.php: accept votes
	:-)
2005-10-25 12:43:11 +00:00
Vincent Untz
0658cd7f63 use correct name to connect to the db
2005-10-25  Vincent Untz  <vuntz@gnome.org>

	* foundation.gnome.org/vote/include/election-sql.php: use correct name
	to connect to the db
2005-10-25 11:18:49 +00:00
Vincent Untz
6810d2ffbd s/option/choice/, also rename the variable for the temporary token to
2005-10-24  Vincent Untz  <vuntz@gnome.org>

	* foundation.gnome.org/vote/*: s/option/choice/, also rename the
	variable for the temporary token to tmp_token
	* foundation.gnome.org/vote/include/election-sql.php: make it possible
	to use a local configuration for testing
2005-10-24 18:25:43 +00:00
Vincent Untz
d49c1a02f2 add anonymous voting scripts
2005-10-24  Vincent Untz  <vuntz@gnome.org>

	* configure.in:
	* foundation.gnome.org/Makefile.am:
	* foundation.gnome.org/vote/*: add anonymous voting scripts
2005-10-24 17:59:15 +00:00