Git Product home page Git Product logo

itpol_valg's Introduction

itpol_valg

Meeting application: Lets the audience ask questions and keeps track of individual speaker times.

System Requerements

The time keeper (tidstager.html) is a simple HTML page with JavaScript. It can be put on a web server, or be used directly from the local disk. Just open it in a browser.

The question application has to use a web server. It has been tested on Apache on Linux, but it should be possible to run on other webservers, too (perhaps with minor adjustments). It also requires MySQL and Perl with the CGI, DBI, and DBD::mysql modules.

Security

This application is quite insecure:

  • Anyone can ask questions. Spambots will do this eventually if the application is publically available.
  • Users can vote several times simply by changing their UID.
  • Everyone can become moderator simply by guessing the moderator's UID.

How to use

Simply put all files in a directory on your web server.

To configure the time keeper, edit the tidstager.html file: Replace the "Navn Navnsen" entries with the names of the different speakers. If you add or delete speaker rows, remember to change in "function all_bars()" accordingly.

For the question application, start by creating a MySQL database. Then run the create.sql script in mysql. To do this, run "mysql -u root -p" and give the following commands:

create database my_database;
create user 'my_user'@'localhost' identified by 'my_password';
grant all privileges on my_database.* to my_user;
use my_database;
\. /path/to/create.sql

Edit the files ask.cgi, index.cgi, and moderate.cgi and edit the lines containing "DBI->connect" to include the correct connection details for your database.

Edit the files index.cgi and moderate.cgi and set the moderator UIDs in the "%admins" section. You should choose some random UIDs for that. The moderator logs in by setting his UID to one of the UIDs in the %admin section in the browser, i.g. by opening http://server.name/path/to/va/?force_uid=1234 in his browser.

You might need to add the lines

AddHandler cgi-script .cgi
Options +ExecCgi

to your Apache configuration - either in a .htaccess file or in the Apache site configuration.

License

The meeting application (everything in the "va" directory) is licensed under the GNU General Public License v3.

The time keeper application (tidstager.html) is licensed under a CC-By license.

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.