GithubHelp home page GithubHelp logo

secret-vote's Introduction

Secret Vote

This is a a damn simple secret voting site. The admin has one password that is hardcoded (for now) and can open and close polls. The users can vote one time. This is enforced using PHP sessions, so they could get around the one vote by using different devices or opening and using and closing incognito.

This came out of my Chapter of Alpha Phi Omega needing an easy secret voting system.

How to setup

  1. Setup a webserver with mysql and php by yourself or some hosted service
  2. Run the SETUP_DATABASE.sql script
  3. Place the .php files wherever your webserver is looking for files (/var/www/html for apache)
  4. Login as an admin by going to [whatever your ip is]/admin.php
  5. Start and stop polls as needed
  6. Refresh to view results

secret-vote's People

Contributors

hjarrell avatar

Stargazers

 avatar

Watchers

 avatar

secret-vote's Issues

Add different voting types

Add different voting types that the admin can choose when creating a poll.

These should include:

  • Voting once using browser cookies
  • Voting as many times as you want
  • Having a password to access the poll

Voting Intergrity

Voting result should go to third party website that webmaster should not be able to access in order prevent peoples votes from being known or the exact amount of votes known.

Need to add compatibility for PHP 5.2

Our very old hosting site uses PHP 5.2. Upgrading the server is not feasible so downgrading the simple voting site would probably be the best option.

Ensure people only vote once.

Currently people can get around the session block with incognito, clearing cookies, sending requests directly, or using different devices.

Possibly fixes:

  • Having n unique keys to give out to n people and have them type it in.
  • Having a login system but trusting not to track

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.