X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Fbackend%2Fmysql%2Fbackend.inc;h=971bb104bd3a7aba4f2f97bbfcd87c67b6789d00;hb=91b49c827b74b7c432b1fced7fc93df5121becbf;hp=deacb13a808a0d367d1a47ff158b26fbddb6ee3f;hpb=40428f53bc0696319dd9cbdbd2c0ab6ac37a887b;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/backend/mysql/backend.inc b/wwwroot/backend/mysql/backend.inc index deacb13..971bb10 100644 --- a/wwwroot/backend/mysql/backend.inc +++ b/wwwroot/backend/mysql/backend.inc @@ -683,6 +683,22 @@ public static function getThreadedChildren($node_id,$node_vector,$offset,$limit, return $get_children_array; } +// XXX + +public static function getPoll($user_id,$poll_id) { + global $db; + + $set=$db->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(); + + return $array; +} + + } ?>