# This is free software, and you are welcome to redistribute it under # certain conditions. However, it comes with ABSOLUTELY NO WARRANTY. # For details see the file LICENSE.html in the top level of the source. $title = "Counting votes on your behalf"; pw_header_notitle(); ?> <?php require_once "db.inc"; $db = new DB(); require_once "decodeids.inc"; require_once "tablemake.inc"; require_once "tablepeop.inc"; require_once "tableoth.inc"; require_once "dream.inc"; update_dreammp_votemeasures($db, null, 0); # for all $random_mp = searchtip_random_mp($db, "commons"); $random_lord = searchtip_random_mp($db, "lords"); $random_topic = searchtip_random_topic($db); $random_topic2 = searchtip_random_topic($db); $random_topic3 = searchtip_random_topic($db); ?> <div class="homeintro"> <h1>Forums unavailable</h1></div> <div class="homevideo"> <p>As a security measure we have removed the forum software from the server. We are currently considering whether to replace it with a more secure version of the software, or to close down the forums and replace it with a simplified changelog for divisions and policies.</p> <p>For more details please see the blog post <a href="http://blog.publicwhip.org.uk/2011/09/weekend-work-security-patches-and-forum-access/">Security patches and forum access</a>.</p> <p>If you have an view on the future of the forum, please let us know via email to <a href="mailto:team@publicwhip.org.uk">team@publicwhip.org.uk</a>, or tweet us <a href="http://twitter.com/publicwhip">@PublicWhip</a>.</p> </div>
if ($row["mabstain"]) { $vote = "both"; } else { $vote = "cant happen"; } } } } // illegal value # vote enum("aye", "no", "both", "aye3", "no3") not null, $query = "REPLACE INTO pw_dyn_dreamvote\n\t\t\t\t\t\t(vote, dream_id, division_date, division_number)\n\t\t\t\t\t VALUES\n\t\t\t\t\t ('{$vote}', {$dreamid}, '" . $row["division_date"] . "', " . $row["division_number"] . ")"; #print "<h5>$query</h5>\n"; $db2->query($query); } # reset where there are disagreed value (not sure how this works) update_dreammp_votemeasures($db, $dreamid, 0); } if ($dismode["definition"]) { print "<p class=\"whatisflash\">This is the votes by vote definition of Public Whip "; print "policy #{$dreamid}: \"{$policyname}\"."; print " You may want to <a href=\"/faq.php#policies\">read an introduction to policies</a>, "; print "or <a href=\"/faq.php\">read more about Public Whip</a>."; print "</p>"; print "<p>Someone who believes that "; print "<span class=\"policytext\">" . str_replace("\n", "<br>", html_scrub($voter["description"])) . "</span>"; if ($dismode["divisionlist"] == "selected") { print " would have voted like this..."; } print "<br>"; print "<div align=\"right\">"; //if ($voter["private"] == 1) {