Lines Matching refs:poll
66 $poll = unserialize(@file_get_contents($pfile));
78 if (isset($poll['ips']) && in_array($ip, $poll['ips'])) {
81 $renderer->doc .= $this->_pollResults($poll);
90 $poll['results'][$opt] += 1;
91 $poll['votes'] += 1;
92 $poll['ips'][] = $ip;
93 } elseif (!isset($poll['results'][$opt])) {
94 $poll['results'][$opt] = 0;
98 fwrite($fh, serialize($poll));
102 $renderer->doc .= $this->_pollResults($poll);
112 $renderer->doc .= $this->_pollResults($poll);
122 function _pollResults($poll) { argument
123 $total = $poll['votes'];
127 $c = count($poll['results']);
128 $options = array_keys($poll['results']);
129 $votes = array_values($poll['results']);