Location: PHPKode > scripts > Poll Engine > index.php
<?php

require_once('includes/ez_sql.php');
require_once('includes/tpleng.php');
require_once('includes/polleng.php');

$tpl = new tpleng('templates/', 'none');
$tpl->set_file('main', 'main.tpl');

$poll0 = new PollEng($db);
$hasVoted = $poll0->checkVote();

$poll1 = new PollEng($db);
$poll1->getPoll(200, 1);
$poll1->assignPoll($tpl, 'poll1', ($hasVoted == 1));

$poll2 = new PollEng($db);
$poll2->getPoll(200, 2);
$poll2->assignPoll($tpl, 'poll2', ($hasVoted == 2));

$tpl->parse('main');

?>
Return current item: Poll Engine