<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "How I make to show resulted in columns?"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "How I make to show resulted in columns?"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>How I make to show resulted in columns?</title>
				<description><![CDATA[ Como faço para exibir resultados em colunas ?<br /> <br /> How I make to show resulted in columns?<br /> <br /> [img]http://img476.imageshack.us/img476/6526/poll9lj.th.jpg[/img]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/20782.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/20782.php</link>
				<pubDate><![CDATA[Sat, 17 Jun 2006 11:38:53]]> GMT</pubDate>
				<author><![CDATA[ hugosenna]]></author>
			</item>
			<item>
				<title>respostas em colunas</title>
				<description><![CDATA[ [url]http://img476.imageshack.us/img476/6526/poll9lj.jpg[/url]<br /> <br /> how to show opçoes of answers in columns? <br /> <br /> como mostrar opçoes de respostas em colunas ?<br /> <br /> [img]http://img476.imageshack.us/img476/6526/poll9lj.jpg[/img]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/20796.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/20796.php</link>
				<pubDate><![CDATA[Wed, 21 Jun 2006 11:32:09]]> GMT</pubDate>
				<author><![CDATA[ hugosenna]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Hi Carbz,<br /> <br /> Gud pm.. HOw to do this?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22079.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22079.php</link>
				<pubDate><![CDATA[Sun, 4 Feb 2007 23:52:41]]> GMT</pubDate>
				<author><![CDATA[ jalmz]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Carbz,<br /> How I make to show resulted in columns? <br /> <br /> [img]http://img476.imageshack.us/img476/6526/poll9lj.jpg[/img]<br /> <br /> thanks...<br /> <br /> -jalmz]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22080.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22080.php</link>
				<pubDate><![CDATA[Sun, 4 Feb 2007 23:54:32]]> GMT</pubDate>
				<author><![CDATA[ jalmz]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Can you do me an example of what you mean? the results or the options?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22081.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22081.php</link>
				<pubDate><![CDATA[Mon, 5 Feb 2007 00:21:51]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ the options.. where the user will vote.. thanks carbz]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22088.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22088.php</link>
				<pubDate><![CDATA[Mon, 5 Feb 2007 15:12:14]]> GMT</pubDate>
				<author><![CDATA[ jalmz]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ here is it carbz...<br /> <br /> [img]http://img157.imageshack.us/img157/5061/samplejj3.jpg[/img]<br /> <br /> like this one....]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22090.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22090.php</link>
				<pubDate><![CDATA[Mon, 5 Feb 2007 15:31:43]]> GMT</pubDate>
				<author><![CDATA[ jalmz]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Would require some recoding of the script or the use of a div I think.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22091.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22091.php</link>
				<pubDate><![CDATA[Mon, 5 Feb 2007 15:42:16]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ how? <img src="https://proxy2.de/forum//images/smilies/0a4d7238daa496a758252d0a2b1a1384.gif" />  <img src="https://proxy2.de/forum//images/smilies/c30b4198e0907b23b8246bdd52aa1c3c.gif" /> i have the idea how to put the picture.<br /> the problem is that, how to make that one in 4 coloumn.. huhuhu <img src="https://proxy2.de/forum//images/smilies/c30b4198e0907b23b8246bdd52aa1c3c.gif" />  <img src="https://proxy2.de/forum//images/smilies/c30b4198e0907b23b8246bdd52aa1c3c.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22092.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22092.php</link>
				<pubDate><![CDATA[Mon, 5 Feb 2007 15:45:13]]> GMT</pubDate>
				<author><![CDATA[ jalmz]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ The pictures are easy as you can use HTML when making the poll <img src="https://proxy2.de/forum//images/smilies/8a80c6485cd926be453217d59a84a888.gif" />) and that is possibly a way to achieve what you want.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22093.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22093.php</link>
				<pubDate><![CDATA[Mon, 5 Feb 2007 15:53:57]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote="Carbonize"]The pictures are easy as you can use HTML when making the poll <img src="https://proxy2.de/forum//images/smilies/8a80c6485cd926be453217d59a84a888.gif" />) and that is possibly a way to achieve what you want.[/quote]<br /> <br /> then how can i make my poll in 4 columns..? pls.. carbz.. help]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22095.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22095.php</link>
				<pubDate><![CDATA[Mon, 5 Feb 2007 16:09:08]]> GMT</pubDate>
				<author><![CDATA[ jalmz]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ carbz?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22110.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22110.php</link>
				<pubDate><![CDATA[Thu, 8 Feb 2007 12:43:56]]> GMT</pubDate>
				<author><![CDATA[ jalmz]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Sorry have been tied up with work due to impending audit. Do the options appear in the order you enter them?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22111.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22111.php</link>
				<pubDate><![CDATA[Thu, 8 Feb 2007 12:46:33]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote="Carbonize"]Sorry have been tied up with work due to impending audit. Do the options appear in the order you enter them?[/quote]<br /> <br /> what do you mean?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22121.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22121.php</link>
				<pubDate><![CDATA[Fri, 9 Feb 2007 00:38:42]]> GMT</pubDate>
				<author><![CDATA[ jalmz]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Might be worth you dropping Auron a PM as he's more familiar with AP.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22124.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22124.php</link>
				<pubDate><![CDATA[Fri, 9 Feb 2007 07:37:34]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote="Carbonize"]Might be worth you dropping Auron a PM as he's more familiar with AP.[/quote]<br /> <br /> thanks carbz]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22126.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22126.php</link>
				<pubDate><![CDATA[Fri, 9 Feb 2007 09:04:36]]> GMT</pubDate>
				<author><![CDATA[ jalmz]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ go to the poll admin panel then the templates section.<br /> <br /> edit the templates to how you want the results to appear.<br /> <br /> for more info on templates check my sig.<br /> <br /> Auron]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22136.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22136.php</link>
				<pubDate><![CDATA[Fri, 9 Feb 2007 21:41:19]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ thanks auron.. =)]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22142.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22142.php</link>
				<pubDate><![CDATA[Sat, 10 Feb 2007 00:49:38]]> GMT</pubDate>
				<author><![CDATA[ jalmz]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Hi auron,<br /> <br /> i want to have like this one...<br /> <br /> [img]http://img157.imageshack.us/img157/5061/samplejj3.jpg[/img]<br /> <br /> i downloaded already the guide. but i cant find the solution.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22144.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22144.php</link>
				<pubDate><![CDATA[Sat, 10 Feb 2007 01:01:04]]> GMT</pubDate>
				<author><![CDATA[ jalmz]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Yes I'm not sure that can be achieved using the templates. Would need a loop. eg<br /> <br /> [code]$theDisplay = '&lt;table border=&quot;0&quot; width=&quot;500&quot;&gt;';<br /> $theCount = 0;<br /> while &#40;fetch results stuff&#41;<br /> &#123;<br />   $theCount++;<br />   if &#40;$theCount == 5&#41;<br />   &#123;<br />      $theDisplay .= &quot;&lt;/tr&gt;\n&lt;tr&gt;\n&lt;td align=\&quot;center\&quot;&gt;&#123;POLL STUFF&#125;&lt;/td&gt;\n&quot;;<br />      $theCount = 0;<br />   &#125;<br />   else<br />   &#123;<br />      $theDisplay .= &quot;&lt;td align=\&quot;center\&quot;&gt;&#123;POLL STUFF&#125;&lt;/td&gt;\n&quot;;<br />   &#125;<br /> &#125;<br /> if &#40;$theCount != 0&#41;<br /> &#123;<br />    for&#40;$i = $theCount; $i &lt; 5; $i++&#41;<br />    &#123;<br />       $theDisplay .= &quot;&lt;td&gt; &amp;nbsp; &lt;/td&gt;\n&quot;;<br />    &#125;<br />    $theDisplay .= &quot;&lt;/tr&gt;\n&quot;;<br /> &#125;<br /> $theDisplay .= '&lt;/table&gt;';[/code]<br /> <br /> Only a quick idea probably has bugs and I know the vriables aer not correct.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22152.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22152.php</link>
				<pubDate><![CDATA[Sat, 10 Feb 2007 09:01:19]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ afaik, the poll loops round using the same bit of html for each option.<br /> so you'd have to modify the template yourself and whatever file calls the template.<br /> <br /> the poll is designed to start the table -&gt; echo each option with the html from the template -&gt; then end the table.<br /> In the admin panel when editing the template it is only possible to display one option at a time, if you doubled up the code for the options you would most likely get each option twice resulting in two columns.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22167.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22167.php</link>
				<pubDate><![CDATA[Sun, 11 Feb 2007 01:58:42]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote="Carbonize"]Yes I'm not sure that can be achieved using the templates. Would need a loop. eg<br /> <br /> [code]$theDisplay = '&lt;table border=&quot;0&quot; width=&quot;500&quot;&gt;';<br /> $theCount = 0;<br /> while &#40;fetch results stuff&#41;<br /> &#123;<br />   $theCount++;<br />   if &#40;$theCount == 5&#41;<br />   &#123;<br />      $theDisplay .= &quot;&lt;/tr&gt;\n&lt;tr&gt;\n&lt;td align=\&quot;center\&quot;&gt;&#123;POLL STUFF&#125;&lt;/td&gt;\n&quot;;<br />      $theCount = 0;<br />   &#125;<br />   else<br />   &#123;<br />      $theDisplay .= &quot;&lt;td align=\&quot;center\&quot;&gt;&#123;POLL STUFF&#125;&lt;/td&gt;\n&quot;;<br />   &#125;<br /> &#125;<br /> if &#40;$theCount != 0&#41;<br /> &#123;<br />    for&#40;$i = $theCount; $i &lt; 5; $i++&#41;<br />    &#123;<br />       $theDisplay .= &quot;&lt;td&gt; &amp;nbsp; &lt;/td&gt;\n&quot;;<br />    &#125;<br />    $theDisplay .= &quot;&lt;/tr&gt;\n&quot;;<br /> &#125;<br /> $theDisplay .= '&lt;/table&gt;';[/code]<br /> <br /> Only a quick idea probably has bugs and I know the vriables aer not correct.[/quote]<br /> <br /> what is the correct variable carbz?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22171.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22171.php</link>
				<pubDate><![CDATA[Sun, 11 Feb 2007 13:22:48]]> GMT</pubDate>
				<author><![CDATA[ jalmz]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Don't know as I don't use AP and I cannot download zip files whilst at work.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22172.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22172.php</link>
				<pubDate><![CDATA[Sun, 11 Feb 2007 13:25:43]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote="Auron"]afaik, the poll loops round using the same bit of html for each option.<br /> so you'd have to modify the template yourself and whatever file calls the template.<br /> <br /> the poll is designed to start the table -&gt; echo each option with the html from the template -&gt; then end the table.<br /> In the admin panel when editing the template it is only possible to display one option at a time, if you doubled up the code for the options you would most likely get each option twice resulting in two columns.[/quote]<br /> <br /> its hard to do.....]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22173.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22173.php</link>
				<pubDate><![CDATA[Sun, 11 Feb 2007 13:25:58]]> GMT</pubDate>
				<author><![CDATA[ jalmz]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote="Carbonize"]Don't know as I don't use AP and I cannot download zip files whilst at work.[/quote]<br /> <br /> Hi carbz,<br /> <br /> in display_loop.html<br /> <br /> this is the code<br /> <br /> [code] &lt;tr&gt; <br />    &lt;td width=&quot;15%&quot;&gt;&lt;input type=&quot;radio&quot; name=&quot;option_id&quot; value=&quot;$data&#91;option_id&#93;&quot;&gt;&lt;/td&gt;<br />    &lt;td width=&quot;85%&quot;&gt;&lt;font face=&quot;$pollvars&#91;font_face&#93;&quot; size=&quot;1&quot; color=&quot;$pollvars&#91;font_color&#93;&quot;&gt;$data&#91;option_text&#93;&lt;/font&gt;&lt;/td&gt;<br />  &lt;/tr&gt;[/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22174.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22174.php</link>
				<pubDate><![CDATA[Sun, 11 Feb 2007 13:27:52]]> GMT</pubDate>
				<author><![CDATA[ jalmz]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ It would be the code in the poll that calls the templates I would need to look at.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22175.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22175.php</link>
				<pubDate><![CDATA[Sun, 11 Feb 2007 13:35:55]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ what about this one..<br /> <br /> INCLUDE<br /> class_poll.php<br /> <br /> [code]&lt;?php<br /> /**<br />  * ----------------------------------------------<br />  * Advanced Poll 2.0.7 &#40;PHP/MySQL&#41;<br />  * Copyright &#40;c&#41; Chi Kien Uong<br />  * URL&#58; http&#58;//www.proxy2.de<br />  * ----------------------------------------------<br />  */<br /> <br /> class poll &#123;<br /> <br />     var $db;<br />     var $tbl;<br />     var $pollvars;<br />     var $poll_view_html;<br />     var $poll_result_html;<br />     var $options;<br />     var $options_text;<br />     var $poll_question;<br />     var $form_forward;<br />     var $template_set;<br />     var $ip;<br /> <br />     function poll&#40;&#41; &#123;<br />         global $POLLTBL, $CLASS;<br />         $this-&gt;tbl = $POLLTBL;<br />         $this-&gt;poll_view_html = array&#40;&#41;;<br />         $this-&gt;poll_result_html = array&#40;&#41;;<br />         $this-&gt;options = array&#40;&#41;;<br />         $this-&gt;options_text = array&#40;&#41;;<br />         $this-&gt;poll_question = array&#40;&#41;;<br />         $this-&gt;form_forward = basename&#40;$_SERVER&#91;'PHP_SELF'&#93;&#41;;<br /> <br />         $this-&gt;ip = getenv&#40;&quot;REMOTE_ADDR&quot;&#41;;<br />         $this-&gt;db = &amp;$CLASS&#91;&quot;db&quot;&#93;;<br />         $this-&gt;pollvars = $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;query&#40;&quot;SELECT * FROM &quot;.$this-&gt;tbl&#91;'poll_config'&#93;&#41;&#41;;<br />         $this-&gt;template_set = &quot;default&quot;;<br />         <br />         if &#40;$this-&gt;pollvars&#91;'result_order'&#93; == &quot;asc&quot;&#41; &#123;<br />             $this-&gt;pollvars&#91;'result_order'&#93; = &quot;ORDER BY votes ASC&quot;;<br />         &#125; elseif &#40;$this-&gt;pollvars&#91;'result_order'&#93; == &quot;desc&quot;&#41; &#123;<br />             $this-&gt;pollvars&#91;'result_order'&#93; = &quot;ORDER BY votes DESC&quot;;<br />         &#125; else &#123;<br />             $this-&gt;pollvars&#91;'result_order'&#93; = '';<br />         &#125;<br />     &#125;<br /> <br />     function set_template_set&#40;$template_set=''&#41; &#123;<br />         if &#40;!empty&#40;$template_set&#41;&#41; &#123;<br />             $template_set = addslashes&#40;$template_set&#41;;<br />             $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;query&#40;&quot;SELECT * FROM &quot;.$this-&gt;tbl&#91;'poll_tplset'&#93;.&quot; WHERE tplset_name='$template_set'&quot;&#41;&#41;;<br />             if &#40;$this-&gt;db-&gt;record&#41; &#123;<br />                 $this-&gt;template_set = $template_set;<br />             &#125; else &#123;<br />                 $this-&gt;template_set = &quot;default&quot;;<br />             &#125;<br />         &#125; else &#123;<br />             $this-&gt;template_set = &quot;default&quot;;<br />         &#125;<br />         return $this-&gt;template_set;<br />     &#125;<br /> <br />     function set_display_order&#40;$order=''&#41; &#123;<br />         switch &#40;$order&#41; &#123;<br />             case &quot;asc&quot;&#58;<br />                 $this-&gt;pollvars&#91;'result_order'&#93; = &quot;ORDER BY votes ASC&quot;;<br />                 break;<br />             case &quot;desc&quot;&#58;<br />                 $this-&gt;pollvars&#91;'result_order'&#93; = &quot;ORDER BY votes DESC&quot;;<br />                 break;<br />             default&#58;<br />                 $this-&gt;pollvars&#91;'result_order'&#93; = &quot;&quot;;<br />                 return false;<br />         &#125;<br />         return true;<br />     &#125;<br /> <br />     function set_display_result&#40;$result=''&#41; &#123;<br />         switch &#40;$result&#41; &#123;<br />             case &quot;votes&quot;&#58;<br />                 $this-&gt;pollvars&#91;'type'&#93; = &quot;votes&quot;;<br />                 break;<br />             case &quot;percent&quot;&#58;<br />                 $this-&gt;pollvars&#91;'type'&#93; = &quot;percent&quot;;<br />                 break;<br />             default&#58;<br />                 return false;<br />         &#125;<br />         return true;<br />     &#125;<br /> <br />     function set_max_bar_length&#40;$max_bar_length=0&#41; &#123;<br />         if &#40;$max_bar_length &amp;&amp; $max_bar_length&gt;0&#41; &#123;<br />             $this-&gt;pollvars&#91;'img_length'&#93; = $max_bar_length;<br />             return true;<br />         &#125; else &#123;<br />             return false;<br />         &#125;<br />     &#125;<br /> <br />     function set_max_bar_height&#40;$max_bar_height=0&#41; &#123;<br />         if &#40;$max_bar_height &amp;&amp; $max_bar_height&gt;0&#41; &#123;<br />             $this-&gt;pollvars&#91;'img_height'&#93; = $max_bar_height;<br />             return true;<br />         &#125; else &#123;<br />             return false;<br />         &#125;<br />     &#125;<br /> <br />     function get_poll_tpl&#40;$tpl&#41; &#123;<br />         $tpl = addslashes&#40;$tpl&#41;;<br />         $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;query&#40;&quot;SELECT x.*, y.* from &quot;.$this-&gt;tbl&#91;'poll_tplset'&#93;.&quot; x, &quot;.$this-&gt;tbl&#91;'poll_tpl'&#93;.&quot; y where x.tplset_name='$this-&gt;template_set' and x.tplset_id=y.tplset_id AND y.title='$tpl'&quot;&#41;&#41;;<br />         if &#40;$this-&gt;db-&gt;record&#91;'template'&#93;&#41; &#123;<br />             $this-&gt;db-&gt;record&#91;'template'&#93; = ereg_replace&#40;&quot;\&quot;&quot;, &quot;\\\&quot;&quot;, $this-&gt;db-&gt;record&#91;'template'&#93;&#41;;<br />             return $this-&gt;db-&gt;record&#91;'template'&#93;;<br />         &#125; else &#123;<br />             return false;<br />         &#125;<br />     &#125;<br /> <br />     function get_poll_data&#40;$poll_id&#41; &#123;<br />         $poll_id = intval&#40;$poll_id&#41;;<br />         if &#40;!isset&#40;$this-&gt;options&#91;$poll_id&#93;&#41;&#41; &#123;           <br />             $this-&gt;db-&gt;query&#40;&quot;SELECT SUM&#40;votes&#41; as total FROM &quot;.$this-&gt;tbl&#91;'poll_data'&#93;.&quot; WHERE &#40;poll_id = '$poll_id'&#41;&quot;&#41;;<br />             $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;result&#41;;<br />             $this-&gt;options&#91;$poll_id&#93;&#91;'total'&#93; = $this-&gt;db-&gt;record&#91;'total'&#93;;<br />             $this-&gt;db-&gt;query&#40;&quot;SELECT * FROM &quot;.$this-&gt;tbl&#91;'poll_data'&#93;.&quot; WHERE &#40;poll_id = '$poll_id'&#41; &quot;.$this-&gt;pollvars&#91;'result_order'&#93;&#41;;<br />             while &#40;$this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;result&#41;&#41; &#123;<br />                 $option_id_arr&#91;&#93; = $this-&gt;db-&gt;record&#91;'option_id'&#93;;<br />                 $option_text_arr&#91;&#93; = $this-&gt;db-&gt;record&#91;'option_text'&#93;;<br />                 $option_votes_arr&#91;&#93; = $this-&gt;db-&gt;record&#91;'votes'&#93;;<br />                 $option_color_arr&#91;&#93; = $this-&gt;db-&gt;record&#91;'color'&#93;;<br />             &#125;<br />             $this-&gt;options&#91;$poll_id&#93;&#91;'option_id'&#93; = $option_id_arr;<br />             $this-&gt;options&#91;$poll_id&#93;&#91;'option_text'&#93; = $option_text_arr;<br />             $this-&gt;options&#91;$poll_id&#93;&#91;'votes'&#93; = $option_votes_arr;<br />             $this-&gt;options&#91;$poll_id&#93;&#91;'color'&#93; = $option_color_arr;<br />             for &#40;$i=0,$maxvote=0; $i&lt;sizeof&#40;$option_votes_arr&#41;; $i++&#41; &#123;<br />                 $maxvote = &#40;$option_votes_arr&#91;$i&#93;&gt;$maxvote&#41; ? $option_votes_arr&#91;$i&#93; &#58; $maxvote;<br />             &#125;<br />             $this-&gt;options&#91;$poll_id&#93;&#91;'maxvote'&#93; = $maxvote;<br />         &#125;<br />         return $this-&gt;options&#91;$poll_id&#93;;<br />     &#125;<br /> <br />     function get_poll_option&#40;$poll_id&#41; &#123;<br />         $poll_id = intval&#40;$poll_id&#41;;<br />         if &#40;!isset&#40;$this-&gt;options_text&#91;$poll_id&#93;&#41;&#41; &#123;           <br />             $query = $this-&gt;db-&gt;query&#40;&quot;SELECT option_id, option_text FROM &quot;.$this-&gt;tbl&#91;'poll_data'&#93;.&quot; WHERE &#40;poll_id = '$poll_id'&#41; order by option_id asc&quot;&#41;;<br />             while &#40;$data = $this-&gt;db-&gt;fetch_array&#40;$query&#41;&#41; &#123;<br />                 $option_id_arr&#91;&#93; = $this-&gt;db-&gt;record&#91;'option_id'&#93;;<br />                 $option_text_arr&#91;&#93; = $this-&gt;db-&gt;record&#91;'option_text'&#93;;<br />             &#125;<br />             $this-&gt;options_text&#91;$poll_id&#93;&#91;'option_id'&#93; = $option_id_arr;<br />             $this-&gt;options_text&#91;$poll_id&#93;&#91;'option_text'&#93; = $option_text_arr;<br />         &#125;<br />         return $this-&gt;options_text&#91;$poll_id&#93;;<br />     &#125;<br /> <br />     function get_poll_question&#40;$poll_id&#41; &#123;<br />         $poll_id = intval&#40;$poll_id&#41;;<br />         if &#40;!isset&#40;$this-&gt;poll_question&#91;$poll_id&#93;&#41;&#41; &#123;           <br />             $row = $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;query&#40;&quot;SELECT question FROM &quot;.$this-&gt;tbl&#91;'poll_index'&#93;.&quot; WHERE &#40;poll_id = '$poll_id'&#41;&quot;&#41;&#41;;<br />             $this-&gt;poll_question&#91;$poll_id&#93; = $row&#91;'question'&#93;;<br />         &#125;<br />         return $this-&gt;poll_question&#91;$poll_id&#93;;<br />     &#125;<br /> <br />     function display_poll&#40;$poll_id&#41; &#123;<br />         $poll_id = intval&#40;$poll_id&#41;;<br />         if &#40;!isset&#40;$this-&gt;poll_view_html&#91;$poll_id&#93;&#41; || !isset&#40;$this-&gt;poll_view_html&#91;$poll_id&#93;&#91;$this-&gt;template_set&#93;&#41;&#41; &#123;            <br />             $pollvars = $this-&gt;pollvars;<br />             if &#40;!isset&#40;$this-&gt;options_text&#91;$poll_id&#93;&#41;&#41; &#123;<br />                 $this-&gt;get_poll_option&#40;$poll_id&#41;;<br />             &#125;<br />             $question = $this-&gt;get_poll_question&#40;$poll_id&#41;;<br />             eval&#40;&quot;\$display_html = \&quot;&quot;.$this-&gt;get_poll_tpl&#40;&quot;display_head&quot;&#41;.&quot;\&quot;;&quot;&#41;;<br />             $loop_html = $this-&gt;get_poll_tpl&#40;&quot;display_loop&quot;&#41;;<br />             for &#40;$i=0;$i&lt;sizeof&#40;$this-&gt;options_text&#91;$poll_id&#93;&#91;'option_id'&#93;&#41;;$i++&#41; &#123;<br />                 $data&#91;'option_text'&#93; = $this-&gt;options_text&#91;$poll_id&#93;&#91;'option_text'&#93;&#91;$i&#93;;<br />                 $data&#91;'option_id'&#93; = $this-&gt;options_text&#91;$poll_id&#93;&#91;'option_id'&#93;&#91;$i&#93;;<br />                 eval&#40;&quot;\$display_html .= \&quot;$loop_html\&quot;;&quot;&#41;;<br />             &#125;<br />             eval&#40;&quot;\$display_html .= \&quot;&quot;.$this-&gt;get_poll_tpl&#40;&quot;display_foot&quot;&#41;.&quot;\&quot;;&quot;&#41;;<br />             $this-&gt;poll_view_html&#91;$poll_id&#93;&#91;$this-&gt;template_set&#93; = $display_html;<br />         &#125;<br />         return $this-&gt;poll_view_html&#91;$poll_id&#93;&#91;$this-&gt;template_set&#93;;<br />     &#125;<br /> <br />     function view_poll_result&#40;$poll_id,$vote_stat=0&#41; &#123;<br />         $poll_id = intval&#40;$poll_id&#41;;<br />         if &#40;!isset&#40;$this-&gt;poll_result_html&#91;$poll_id&#93;&#41; || !isset&#40;$this-&gt;poll_result_html&#91;$poll_id&#93;&#91;$this-&gt;template_set&#93;&#41;&#41; &#123;           <br />             $pollvars = $this-&gt;pollvars;<br />             $row = $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;query&#40;&quot;SELECT * FROM &quot;.$this-&gt;tbl&#91;'poll_index'&#93;.&quot; WHERE &#40;poll_id = '$poll_id'&#41;&quot;&#41;&#41;;<br />             if &#40;!$row&#41; &#123;<br />             	return &quot;&quot;;<br />         	&#125;<br />             $question = $row&#91;'question'&#93;;<br />             $VOTE = &#40;$vote_stat==1&#41; ? $this-&gt;pollvars&#91;'voted'&#93; &#58; '';<br />             $COMMENT = &#40;$row&#91;'comments'&#93;==1&#41; ? &quot;&lt;a href=\&quot;javascript&#58;void&#40;window.open&#40;'$pollvars&#91;base_url&#93;/comments.php?action=send&amp;amp;id=$poll_id&amp;amp;template_set=$this-&gt;template_set','$poll_id','width=230,height=320,toolbar=no,statusbar=no'&#41;&#41;\&quot;&gt;&quot;.$this-&gt;pollvars&#91;'send_com'&#93;.&quot;&lt;/a&gt;&quot; &#58; '';<br />             eval&#40;&quot;\$result_html = \&quot;&quot;.$this-&gt;get_poll_tpl&#40;&quot;result_head&quot;&#41;.&quot;\&quot;;&quot;&#41;;<br />             $i=0;<br />             $loop_html = $this-&gt;get_poll_tpl&#40;&quot;result_loop&quot;&#41;;<br />             if &#40;!isset&#40;$this-&gt;options&#91;$poll_id&#93;&#41;&#41; &#123;<br />                 $this-&gt;get_poll_data&#40;$poll_id&#41;;<br />             &#125;<br />             $maxvote = &#40;$this-&gt;options&#91;$poll_id&#93;&#91;'maxvote'&#93; == 0&#41; ? 1 &#58; $this-&gt;options&#91;$poll_id&#93;&#91;'maxvote'&#93;;<br />             $totalvotes = &#40;$this-&gt;options&#91;$poll_id&#93;&#91;'total'&#93; == 0&#41; ? 1 &#58; $this-&gt;options&#91;$poll_id&#93;&#91;'total'&#93;;<br />             for &#40;$i=0;$i&lt;sizeof&#40;$this-&gt;options&#91;$poll_id&#93;&#91;'option_id'&#93;&#41;;$i++&#41; &#123;<br />                 $img_width = &#40;int&#41; &#40;$this-&gt;options&#91;$poll_id&#93;&#91;'votes'&#93;&#91;$i&#93;*$this-&gt;pollvars&#91;'img_length'&#93;/$maxvote&#41;;<br />                 $vote_count = $this-&gt;options&#91;$poll_id&#93;&#91;'votes'&#93;&#91;$i&#93;;<br />                 $vote_percent = sprintf&#40;&quot;%.2f&quot;,&#40;$this-&gt;options&#91;$poll_id&#93;&#91;'votes'&#93;&#91;$i&#93;*100/$totalvotes&#41;&#41;;<br />                 $vote_val = &#40;$this-&gt;pollvars&#91;'type'&#93; == &quot;percent&quot;&#41; ? sprintf&#40;&quot;%.1f&quot;,&#40;$this-&gt;options&#91;$poll_id&#93;&#91;'votes'&#93;&#91;$i&#93;*100/$totalvotes&#41;&#41;.&quot;%&quot; &#58; $vote_count;<br />                 $option_text = $this-&gt;options&#91;$poll_id&#93;&#91;'option_text'&#93;&#91;$i&#93;;<br />                 $option_votes = $this-&gt;options&#91;$poll_id&#93;&#91;'votes'&#93;&#91;$i&#93;;<br />                 $poll_color = $this-&gt;options&#91;$poll_id&#93;&#91;'color'&#93;&#91;$i&#93;;<br />                 eval&#40;&quot;\$result_html .= \&quot;$loop_html\&quot;;&quot;&#41;;<br />             &#125;<br />             $total_votes = $this-&gt;options&#91;$poll_id&#93;&#91;'total'&#93;;<br />             eval&#40;&quot;\$result_html .= \&quot;&quot;.$this-&gt;get_poll_tpl&#40;&quot;result_foot&quot;&#41;.&quot;\&quot;;&quot;&#41;;<br />             $this-&gt;poll_result_html&#91;$poll_id&#93;&#91;$this-&gt;template_set&#93; = $result_html;<br />         &#125;<br />         return $this-&gt;poll_result_html&#91;$poll_id&#93;&#91;$this-&gt;template_set&#93;;<br />     &#125;<br /> <br />     function update_poll&#40;$poll_id,$option_id&#41; &#123;<br />         $poll_id = intval&#40;$poll_id&#41;;<br />         $option_id = intval&#40;$option_id&#41;;<br />         $this-&gt;db-&gt;query&#40;&quot;UPDATE &quot;.$this-&gt;tbl&#91;'poll_data'&#93;.&quot; SET votes=votes+1 WHERE &#40;poll_id='$poll_id'&#41; AND &#40;option_id='$option_id'&#41;&quot;&#41;;<br />         $row = $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;query&#40;&quot;SELECT logging as logging FROM &quot;.$this-&gt;tbl&#91;'poll_index'&#93;.&quot; WHERE &#40;poll_id = '$poll_id'&#41;&quot;&#41;&#41;;<br />         $timestamp = time&#40;&#41;;<br />         if &#40;$this-&gt;pollvars&#91;'check_ip'&#93; == 2&#41; &#123;<br />             $this-&gt;db-&gt;query&#40;&quot;INSERT INTO &quot;.$this-&gt;tbl&#91;'poll_ip'&#93;.&quot; &#40;poll_id,ip_addr,timestamp&#41; VALUES &#40;'$poll_id','$this-&gt;ip','$timestamp'&#41;&quot;&#41;;<br />         &#125;<br />         if &#40;$row&#91;'logging'&#93; == 1&#41; &#123;<br />             $host = @gethostbyaddr&#40;$this-&gt;ip&#41;;<br />             $agent = addslashes&#40;getenv&#40;&quot;HTTP_USER_AGENT&quot;&#41;&#41;;<br />             $this-&gt;db-&gt;query&#40;&quot;INSERT INTO &quot;.$this-&gt;tbl&#91;'poll_log'&#93;.&quot; &#40;poll_id,option_id,timestamp,ip_addr,host,agent&#41; VALUES &#40;'$poll_id','$option_id','$timestamp','$this-&gt;ip','$host','$agent'&#41;&quot;&#41;;<br />         &#125;<br />     &#125;<br /> <br />     function get_latest_poll_id&#40;&#41; &#123;<br />         $this-&gt;db-&gt;query&#40;&quot;SELECT poll_id FROM &quot;.$this-&gt;tbl&#91;'poll_index'&#93;.&quot; WHERE &#40;status &lt; '2'&#41; ORDER BY TIMESTAMP DESC LIMIT 1&quot;&#41;;<br />         $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;result&#41;;<br />         return &#40;!isset&#40;$this-&gt;db-&gt;record&#91;'poll_id'&#93;&#41;&#41; ? 0 &#58; $this-&gt;db-&gt;record&#91;'poll_id'&#93;;<br />     &#125;<br /> <br />     function get_random_poll_id&#40;&#41; &#123;<br />         $timestamp = time&#40;&#41;;<br />         $this-&gt;db-&gt;query&#40;&quot;SELECT poll_id FROM &quot;.$this-&gt;tbl&#91;'poll_index'&#93;.&quot; WHERE &#40;status=1 AND exp_time&gt;$timestamp&#41; OR &#40;status=1 AND expire=0&#41;&quot;&#41;;<br />         while &#40;$this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;result&#41;&#41; &#123;<br />             $poll_id_arr&#91;&#93; = $this-&gt;db-&gt;record&#91;'poll_id'&#93;;<br />         &#125;<br />         if &#40;!isset&#40;$poll_id_arr&#41;&#41; &#123;<br />             return 0;<br />         &#125;<br />         $available = sizeof&#40;$poll_id_arr&#41;-1;<br />         srand&#40;&#40;double&#41; microtime&#40;&#41; * 1000000&#41;;<br />         $random_id = &#40;$available&gt;0&#41; ? rand&#40;0,$available&#41; &#58; 0;<br />         return $poll_id_arr&#91;$random_id&#93;;<br />     &#125;<br /> <br />     function is_active_poll_id&#40;$poll_id&#41; &#123;<br />         $poll_id = intval&#40;$poll_id&#41;;<br />         $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;query&#40;&quot;SELECT * FROM &quot;.$this-&gt;tbl&#91;'poll_index'&#93;.&quot; WHERE &#40;poll_id='$poll_id' AND status=1&#41;&quot;&#41;&#41;;<br />         if &#40;!$this-&gt;db-&gt;record&#41; &#123;<br />             return false;<br />         &#125; elseif &#40;$this-&gt;db-&gt;record&#91;'expire'&#93;==0&#41; &#123;<br />             return true;<br />         &#125;<br />         return &#40;$this-&gt;db-&gt;record&#91;'exp_time'&#93;&lt;time&#40;&#41;&#41; ? false &#58; true;<br />     &#125;<br /> <br />     function is_valid_poll_id&#40;$poll_id&#41; &#123;<br />         $poll_id = intval&#40;$poll_id&#41;;<br />         if &#40;$poll_id&gt;0&#41; &#123;<br />             $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;query&#40;&quot;SELECT poll_id FROM &quot;.$this-&gt;tbl&#91;'poll_index'&#93;.&quot; WHERE poll_id=$poll_id AND status&lt;'2'&quot;&#41;&#41;;<br />             return &#40;$this-&gt;db-&gt;record&#91;'poll_id'&#93;&#41; ? true &#58; false;<br />         &#125; else &#123;<br />             return false;<br />         &#125;<br />     &#125;<br /> <br />     function has_voted&#40;$poll_id&#41; &#123;<br />         $poll_id = intval&#40;$poll_id&#41;;<br />         $pollcookie = $poll_id;<br />         if &#40;isset&#40;$_COOKIE&#91;'AdvancedPoll'&#93;&#91;$pollcookie&#93;&#41;&#41; &#123;<br />             return true;<br />         &#125;<br />         if &#40;$this-&gt;pollvars&#91;'check_ip'&#93;==2&#41; &#123;<br />             $today = time&#40;&#41;-$this-&gt;pollvars&#91;'lock_timeout'&#93;*3600;<br />             $this-&gt;db-&gt;query&#40;&quot;DELETE FROM &quot;.$this-&gt;tbl&#91;'poll_ip'&#93;.&quot; WHERE &#40;timestamp &lt; $today&#41;&quot;&#41;;<br />             $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;query&#40;&quot;SELECT * FROM &quot;.$this-&gt;tbl&#91;'poll_ip'&#93;.&quot; WHERE &#40;ip_addr = '$this-&gt;ip' and poll_id='$poll_id'&#41;&quot;&#41;&#41;;<br />             return &#40;$this-&gt;db-&gt;record&#41; ? true &#58; false;<br />         &#125;<br />     &#125;<br /> <br />     function get_query_strg&#40;$self&#41; &#123;<br />         if &#40;isset&#40;$_SERVER&#91;'QUERY_STRING'&#93;&#41; &amp;&amp; !empty&#40;$_SERVER&#91;'QUERY_STRING'&#93;&#41;&#41; &#123;<br />             if &#40;ereg&#40;&quot;&#40;$self=&#91;0-9&#93;+&#41;&quot;,$_SERVER&#91;'QUERY_STRING'&#93;,$regs&#41;&#41; &#123;<br />                 $_SERVER&#91;'QUERY_STRING'&#93; = str_replace&#40;$regs&#91;1&#93;, &quot;&quot;, $_SERVER&#91;'QUERY_STRING'&#93;&#41;;<br />             &#125;<br />             $_SERVER&#91;'QUERY_STRING'&#93; = str_replace&#40;&quot;$self=&quot;, &quot;&quot;, $_SERVER&#91;'QUERY_STRING'&#93;&#41;;<br />             if &#40;empty&#40;$_SERVER&#91;'QUERY_STRING'&#93;&#41;&#41; &#123;<br />                 $append = $_SERVER&#91;'PHP_SELF'&#93;.&quot;?&quot;;<br />             &#125; else &#123;<br />                 $query_vars = explode&#40;&quot;&amp;&quot;,$_SERVER&#91;'QUERY_STRING'&#93;&#41;;<br />                 $append = $_SERVER&#91;'PHP_SELF'&#93;.&quot;?&quot;;<br />                 for &#40;$i=0; $i&lt;sizeof&#40;$query_vars&#41;; $i++&#41; &#123;<br />                     if &#40;!empty&#40;$query_vars&#91;$i&#93;&#41;&#41; &#123;<br />                         $append .= $query_vars&#91;$i&#93;.&quot;&amp;amp;&quot;;<br />                     &#125;<br />                 &#125;<br />             &#125;<br />         &#125; else &#123;<br />             $append = $_SERVER&#91;'PHP_SELF'&#93;.&quot;?&quot;;<br />         &#125;<br />         return $append;<br />     &#125;<br /> <br />     function poll_process&#40;$poll_id=''&#41; &#123;<br />         $poll_ident = &#40;isset&#40;$_POST&#91;'poll_ident'&#93;&#41;&#41; ? intval&#40;$_POST&#91;'poll_ident'&#93;&#41; &#58; &quot;&quot;;<br />         if &#40;$poll_ident == &quot;&quot;&#41; &#123;<br />         	if &#40;isset&#40;$_GET&#91;'poll_ident'&#93;&#41;&#41; &#123;<br />         		$poll_ident = intval&#40;$_GET&#91;'poll_ident'&#93;&#41;;<br />         	&#125;<br />         &#125;<br /> <br />         $option_id = &#40;isset&#40;$_POST&#91;'option_id'&#93;&#41;&#41; ? intval&#40;$_POST&#91;'option_id'&#93;&#41; &#58; &quot;&quot;;<br />         if &#40;$option_id == &quot;&quot;&#41; &#123;<br />         	if &#40;isset&#40;$_GET&#91;'option_id'&#93;&#41;&#41; &#123;<br />         		$option_id = intval&#40;$_GET&#91;'option_id'&#93;&#41;;<br />         	&#125;<br />         &#125;<br /> <br />         $action = &#40;isset&#40;$_POST&#91;'action'&#93;&#41;&#41; ? trim&#40;$_POST&#91;'action'&#93;&#41; &#58; &quot;&quot;;<br />         if &#40;$action == &quot;&quot;&#41; &#123;<br />         	if &#40;isset&#40;$_GET&#91;'action'&#93;&#41;&#41; &#123;<br />         		$action = trim&#40;$_GET&#91;'action'&#93;&#41;;<br />         	&#125;<br />         &#125;<br /> <br />         if &#40;$poll_id==&quot;random&quot;&#41; &#123;<br />             $poll_id = &#40;empty&#40;$poll_ident&#41;&#41; ? $this-&gt;get_random_poll_id&#40;&#41; &#58; $poll_ident;<br />         &#125; elseif &#40;$poll_id==&quot;newest&quot;&#41; &#123;<br />             $poll_id = $this-&gt;get_latest_poll_id&#40;&#41;;<br />         &#125;<br />         if &#40;$this-&gt;is_valid_poll_id&#40;$poll_id&#41;&#41; &#123;<br />             $voted = $this-&gt;has_voted&#40;$poll_id&#41;;<br />             $is_active = $this-&gt;is_active_poll_id&#40;$poll_id&#41;;<br />             if &#40;$action==&quot;results&quot; &amp;&amp; $poll_id==$poll_ident&#41; &#123;<br />                 return $this-&gt;view_poll_result&#40;$poll_id,0&#41;;<br />             &#125; elseif &#40;!$is_active&#41; &#123;<br />                 return $this-&gt;view_poll_result&#40;$poll_id,0&#41;;<br />             &#125; elseif &#40;$is_active &amp;&amp; $voted&#41; &#123;<br />                 return $this-&gt;view_poll_result&#40;$poll_id,1&#41;;<br />             &#125; elseif &#40;!$voted &amp;&amp; isset&#40;$option_id&#41; &amp;&amp; $action==&quot;vote&quot; &amp;&amp; $poll_id==$poll_ident&#41; &#123;<br />                 $this-&gt;update_poll&#40;$poll_id,$option_id&#41;;<br />                 return $this-&gt;view_poll_result&#40;$poll_id,0&#41;;<br />             &#125; else &#123;<br />                 return $this-&gt;display_poll&#40;$poll_id&#41;;<br />             &#125;<br />         &#125; else &#123;<br />             $error = &quot;&lt;b&gt;Poll ID &lt;font color=red&gt;&quot;.intval&#40;$poll_id&#41;.&quot;&lt;/font&gt; does not exist.&lt;/b&gt;&quot;;<br />             return $error;<br />         &#125;<br />     &#125;<br /> <br /> &#125;  ?&gt; [/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22176.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22176.php</link>
				<pubDate><![CDATA[Sun, 11 Feb 2007 13:38:20]]> GMT</pubDate>
				<author><![CDATA[ jalmz]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ carbz? <img src="https://proxy2.de/forum//images/smilies/9d71f0541cff0a302a0309c5079e8dee.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22215.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22215.php</link>
				<pubDate><![CDATA[Thu, 15 Feb 2007 15:11:04]]> GMT</pubDate>
				<author><![CDATA[ jalmz]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Sorry I'm a tad busy at present. I will download it to my laptop for when I get some free time.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22219.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22219.php</link>
				<pubDate><![CDATA[Thu, 15 Feb 2007 15:26:03]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote="Carbonize"]Sorry I'm a tad busy at present. I will download it to my laptop for when I get some free time.[/quote]<br /> <br /> Thanks Carbz. =)]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22238.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22238.php</link>
				<pubDate><![CDATA[Fri, 16 Feb 2007 00:17:41]]> GMT</pubDate>
				<author><![CDATA[ jalmz]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Auron can you help me??]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5715/22340.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5715/22340.php</link>
				<pubDate><![CDATA[Thu, 1 Mar 2007 05:27:04]]> GMT</pubDate>
				<author><![CDATA[ jalmz]]></author>
			</item>
	</channel>
</rss>