safesql($_SERVER['REMOTE_ADDR']);
if ($is_logged)
$log_id = intval($member_id['user_id']);
else
$log_id = $_IP;
$log = $db->super_query("SELECT COUNT(*) as count FROM " . PREFIX . "_forum_poll_log WHERE topic_id = '$topic_id' AND member ='{$log_id}'");
$row_topic['poll_title'] = stripslashes($row_topic['poll_title']);
$row_topic['frage'] = stripslashes($row_topic['frage']);
$body = explode("
", stripslashes($row_topic['poll_body']));
$tpl->load_template($tpl_dir.'poll.tpl');
$tpl->set('{vote_title}', $row_topic['poll_title']);
$tpl->set('{question}', $row_topic['frage']);
$tpl->set('{vote_count}', $row_topic['poll_count']);
$list = "