function PollNewest($id = '') { global $NPDS_Prefix; // snipe : multi-poll evolution if ($id != 0) { settype($id, "integer"); list($ibid, $pollClose) = pollSecur($id); if ($ibid) { pollMain($ibid, $pollClose); } } elseif ($result = sql_query("SELECT pollID FROM " . $NPDS_Prefix . "poll_data ORDER BY pollID DESC LIMIT 1")) { list($pollID) = sql_fetch_row($result); list($ibid, $pollClose) = pollSecur($pollID); if ($ibid) { pollMain($ibid, $pollClose); } } }
echo $boxContent; } if (!isset($pollID)) { include 'header.php'; pollList(); include 'footer.php'; } settype($pollID, 'integer'); if (isset($forwarder)) { if (isset($voteID)) { pollCollector($pollID, $voteID, $forwarder); } else { Header("Location: {$forwarder}"); } } elseif ($op == 'results') { list($ibid, $pollClose) = pollSecur($pollID); if ($pollID == $ibid) { include "header.php"; echo '<h2>' . translate("Survey") . '</h2><hr />'; if (!$pollClose) { $block_title = '<h3>' . translate("Vote") . '</h3>'; echo $block_title; pollboxbooth($pollID, $pollClose); echo ''; } else { echo ''; PollMain_aff($pollID); } pollResults($pollID); echo ''; if ($pollcomm) {