## EasyMod 0.0.7 compliant
############################################################## 
## MOD Title: 		Admin Voting Upgrade script 1.x.x to 1.1.5 
## MOD Version: 	From ANY previous version to 1.1.5 
## Author: 		ErDrRon < ErDrRon@aol.com > 
## Description: 	Allows forum administrators, via the Admin Control
##			Panel, to see who voted in a poll and, optionally,
##			HOW they voted. 
## 
############################################################## 
## This MOD is released under the GPL License. 
## Intellectual Property is retained by the MOD Author(s) listed above 
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/ 
############################################################## 
##
## Authors Notes:
##
## This MOD was brazenly adapted from Vote-Teilnehmer anzeigen, version 1.2.0
## Fabro < Fabro@gmx.net >
##
## Because of potential privacy issues, users of your forum should be notified
## of the installation of this MOD.
##
## To upgrade ANY previous version of Admin Voting MOD to version 1.1.5, just copy the following
## files to their appropriate directories:
##
##############################################################
##
## Revision History:
##
## v1.1.7 10/12/2002
##  - added language support for Dutch, French, German, Hebrew and Spanish.  Fixed error in istallation
##   script that was allowing users to vote in a poll more than once.
##
## v1.1.6	9/23/2002
##  - added script to automatically install database changes without the need of an external
##	database manager (i.e. phpMyAdmin).  This script only works with mySQL databases.
##
## v1.1.5	9/7/2002
##  - added Admin Voting icon to MOD.
##
## v1.1.4	9/6/2002
##  - incorporated language entries into uploadable file, no need to edit lang_admin anymore.
##
## v1.1.3	9/6/2002
##  - added pagination.
##
## v1.1.2	9/4/2002
##  - now EasyMod compliant.
##
## v1.1.1	9/4/2002
##  - fixed database queries to be DBAL-compliant.
##  - a few housekeeping and format changes in the code .. doesn't affect capabilities.
##
## v1.1.0	9/1/2002
##  - added vote duration (start date, end date, status [ongoing, completed, infinite]).
##  - added capability to sort by Poll #, Topic title, or Start date.
##  - added capability to sort any of the above in ascending or descending fashion.
##
## v1.0.2	9/1/2002
##  - changed L_USERNAME and $lang['Username'] to L_VOTE_USERNAME and $lang['Vote_username']
##   respectively to avoid conflict with previously declared language variables. 
##
## v1.0.1	8/29/2002
##  - fixed issue with username MySQL query having incorrect format.
##
## v1.0.0	8/27/2002
##  - initial Release
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
 
# 
#-----[ COPY ]--------------------------------------- 
# 
copy admin_voting.php to admin/admin_voting.php
copy admin_voting_body.tpl to /templates/subSilver/admin/admin_voting_body.tpl
copy lang_admin_voting.php to /language/lang_english/lang_admin_voting.php
copy admin_voting_icon.gif to /templates/subSilver/images/admin_voting_icon.gif

# Optionally, you may remove the following lines from /language/lang_english/lang_admin.php
# as they are no longer used by the MOD
#
# // Admin Voting MOD
# $lang['Admin_Vote_Explain'] = 'Poll Results (who voted and how they voted).';
# $lang['Admin_Vote_Title'] = 'Poll Administration';
# $lang['Vote_id'] = '#';
# $lang['Poll_topic'] = 'Poll Topic';
# $lang['Vote_username'] = 'Voter(s)';
# $lang['Vote_end_date'] = 'Vote Duration';
# $lang['Sort_vote_id'] = 'Poll Number';
# $lang['Sort_poll_topic'] = 'Poll Topic';
# $lang['Sort_vote_start'] = 'Start Date';
# $lang['Submit'] = 'Submit';
# $lang['Select_sort_field'] = 'Select sort field';
# $lang['Sort_order'] = 'Order';
# $lang['Sort_ascending'] = 'Ascending';
# $lang['Sort_descending'] = 'Descending';
# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM 