PRESTO POLL 5.0
=-------------=

How to use it
-------------
. Open admin.php and set password
. Open poll.php and select kind of graph
. Upload every file to your server
. Open http://yourwebserver.com/admin.php and set general values

Special Notes
-------------
* You can't put special characters in general configuration
  and in options or question if you're using xml database
* When you change data base system you have to create the new data file
  to not have problems
* Expiration Time
   -1 = Forever (the poll never expired. It's my problem :?)
   another time in days.

How to make a nice template
---------------------------
You must put this tags where you want that specified thing appear:
{question} = question of poll
{totalvotes} = how much people have been voted
{button} = button to press and vote
{buttonresults} = button to show results

{option} AND {/option} = inside this tags you would put options html code you can use the next tags:
  {nameradio} = name of the command to input data
  {valueradio} = value
  {name} = option name

{results} AND {/results} = between {results} and {/results} you must put results html code, you can use the next tags:
  {name} = option name
  {votes} = amount of votes
  {average} = average of total
  {graph} = graph to show average

Please don't clean Presto Poll 5.0 link, I was thinking in to put a protection system as 4.0 version, but I think it's not needed
because I can trust you :)

How to translate language file
------------------------------
Create a backup of en.lng (lang folder) and rename it, to the name you want.
Open the new file and you'll see a lot of constants defined and English Text, you
should replace only the English message. Example:

define('LOGIN_TITLE', "Login");         <= English message
define('LOGIN_TITLE', "Identificarse"); <= Spanish message

Note: the first values remains unchanged, the second one can be translated.

After that, you have to go to line 53:
$language = array('lang/en.lng'=>'English', 'lang/es.lng'=>'Espaol');
and add you language:
$language = array('lang/en.lng'=>'English', 'lang/es.lng'=>'Espaol', 'lang/myfile.lng'=>'My Language');

How to show results in a PopUp
------------------------------
Open template.html file (templates folder) and add this lines:
<SCRIPT LANGUAGE="JavaScript">
<!--
myPopup = '';
  function openPopup(url) {
    myPopup = window.open(url,'prestopoll','width=300,height=300');
    if (!myPopup.opener)
         myPopup.opener = self;
  }
  //-->
</SCRIPT> 

(this info come as default in template.html but you can remove it, if
 you will use normal method)
Change Width and Height values (setted as 300) as you want. Then upload all the files
Open admin, and change method to show results: select pop-up.

Contact Info
------------
First Name: Csar
Last Name: Bernardini
Date of Birth: 16/10/1986
Location: Crdoba, Argentina
E-Mail: mesarpe at sourceforge dot net
        mesarpe at gmail dot com