X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=inc%2Fsmarty%2Fnode_methodz%2Ffunction.get_poll.php;fp=inc%2Fsmarty%2Fnode_methodz%2Ffunction.get_poll.php;h=0000000000000000000000000000000000000000;hb=f9b322cc7cb38f9d23168c291ebc3e49040a4999;hp=e19b77f99eeb5b070b9d56bab7bb825747594411;hpb=673e23209e2e3b9782c037e70156a1a20154a5b9;p=mirrors%2FKyberia-bloodline.git diff --git a/inc/smarty/node_methodz/function.get_poll.php b/inc/smarty/node_methodz/function.get_poll.php deleted file mode 100644 index e19b77f..0000000 --- a/inc/smarty/node_methodz/function.get_poll.php +++ /dev/null @@ -1,31 +0,0 @@ -query("select nodes.*,node_access.node_permission from nodes left join node_access on (nodes.node_id=node_access.node_id and node_access.user_id='$user_id') where node_parent='$poll_id' and template_id='1549834' order by node_id desc limit 1"); - -$set->next(); -$array=$set->getRecord(); -if ($array['node_permission']=='ban') $voted='yes'; -else $voted='no'; -} - -$option_array=unserialize($array['node_content']); -$permission=$array['node_permission']; - -$poll=Array("voted"=>$voted,"node_id"=>$array['node_id'],"question"=>$array['node_name'],"total"=>$array['node_views'],"options"=>$option_array); -$smarty->assign('get_poll',$poll); - -} -?>