Commit graph

53 commits

Author SHA1 Message Date
Tobias Mueller
969824cdfd elections/2012: Fixed up dates and links in voting instructions 2012-03-26 18:55:21 +02:00
Tobias Mueller
e3337198b6 elections/2012: Fixed up the links to not link to 2011 elections
But rather 2012 elections. I don't imagine us having another referendum,
hence the next election id will be 16+1 = 17.
2012-03-26 18:55:21 +02:00
Tobias Mueller
9a4b49d928 Added files for election 2012 2012-03-26 18:55:17 +02:00
Andrea Veri
72f7373065 Fixed a few broken links. 2012-02-16 18:26:39 +01:00
Tobias Mueller
f37d5055a2 vote: Add a COPYING file to indicate the license
This is for bug 658045 which has the following references of the authors
stating their license:
https://mail.gnome.org/archives/foundation-list/2010-June/msg00111.html
and
https://mail.gnome.org/archives/foundation-list/2010-June/msg00112.html

I basically took the text from
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html#howto and added a
few words reg. the functionality.
2011-09-12 20:46:51 +02:00
Tobias Mueller
d77211630c elections/2011: Archived the ballot file 2011-08-03 11:47:20 +02:00
Tobias Mueller
786f6f1793 vote: Removed the masculin article in step2 voting page 2011-07-04 15:31:08 +02:00
Andrea Veri
795ff6ccb8 Making Election results publicly available. 2011-06-14 21:25:08 +02:00
Andrea Veri
d674732848 Elections now take place in June 2011-06-03 13:59:15 +02:00
Tobias Mueller
c30ed0b905 elections2011: Made the voting interface accesible via the index page 2011-05-27 00:12:15 +02:00
Tobias Mueller
3249f1bc94 Updated voting instructions for elections 2011 2011-05-26 23:48:51 +02:00
Tobias Mueller
e11872cd57 elections2011: Made the candidates page available from the index 2011-05-25 17:24:33 +02:00
Tobias Mueller
a7c66ed66b Added the candidates for elections 2011 2011-05-25 15:21:39 +02:00
Tobias Mueller
a711f8589f Minor cosmetic update in voting page reg the membership link
It doesn't work anyway hence we might as well just drop it. But for now, I'll update it.
2011-05-18 14:14:42 +02:00
Tobias Mueller
633ff73ee0 Added a warning to the footer of the voting page to not close </BODY> or </HTML> 2011-05-18 14:14:41 +02:00
Tobias Mueller
1aa88b832b Linked 2011 elections from the voting page to make it accessible 2011-05-18 14:14:41 +02:00
Tobias Mueller
7699a7a720 Added 2011 to the vote/ Makefile to have the directory built 2011-05-04 17:18:31 +02:00
Tobias Mueller
9bb2b4ac5b Added election material for 2011 2011-05-04 17:15:32 +02:00
Tobias Mueller
75909de3ed Merged everything from elections/ into vote/
To fix bug 629334. On the way, some old .cvsignore files were deleted.
Also, Makefiles and headers were adapted to show the new URL. Calendars
have not been updated.
2011-05-04 15:20:21 +02:00
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