Skip to main content Help Control Panel

Aubagne HipHop

Tout le Hip Hop d'Aubagne et des alentours

Home «   Server software «  

Documentation: overlays/polls/vote.php

overlays/polls/vote.php - Contribute to a poll

If the additional parameter 'next' is provided, this script will silently redirect to it, except on error. Else links are provided either to go to the permalink page, or to the front page.

Multiple votes are prevented though cookies. While this method is not bullet-proof, it is an adequate security scheme for most surfers. Each vote has its own cookie, with a reference to the poll id in its name. The cookie path is limited to the YACS instance. Voting cookies have a limited life cycle of one day.

On first vote a cookie is sent to the browser with following parameters:

Of course, the script rejects voting data if a cookie is presented by the browser, proving a vote has already taken place.

The script accepts polling data based of the following permission assessment:

Accept following invocations:

If the anchor for this item specifies a specific skin (option keyword 'skin_xyz'), or a specific variant (option keyword 'variant_xyz'), they are used instead default values.

This script is a reference file of this system.

Voir aussi:

Licence: GNU Lesser General Public License

Auteurs:

Testeurs:

Tools
Browse the source of this script
Server software