# 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. require_once "db.inc"; $db = new DB(); $db2 = new DB(); # standard decoding functions for the url attributes require_once "decodeids.inc"; require_once "tablemake.inc"; require_once "tableoth.inc"; require_once "dream.inc"; require_once "tablepeop.inc"; require_once "wiki.inc"; # the main mp list # against a dreammp, another mp, or the party $voter2attr = get_dreammpid_attr_decode($db, ""); if ($voter2attr != null) { $voter2type = "dreammp"; $voter2 = $voter2attr['dreammpid']; } # decode the parameters. # first is the two voting objects which get compared together. # First is an mp (arranged by person or by constituency) # Second is another mp (by person), a dream mp, or a/the party $voter1attr = get_mpid_attr_decode($db, $db2, "", $voter2type == "dreammp" ? $voter2attr : null); if ($voter1attr == null) { print "<p>No MP or Lord found. If you entered a postcode, please make\n sure it is correct. Or you can <a href=\"/mps.php\">browse\n all MPs</a> or <a href=\"/mps.php?house=lords\">browse all Lords</a>."; exit; } $voter1type = "mp"; # shorthand to get at the designated MP for this class of MP holders
# 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. require_once "db.inc"; require_once "database.inc"; # standard decoding functions for the url attributes require_once "decodeids.inc"; require_once "tablemake.inc"; require_once "tableoth.inc"; require_once "dream.inc"; require_once "tablepeop.inc"; require_once "DifferenceEngine.inc"; $db = new DB(); $db2 = new DB(); # this replaces a lot of the work just below $voter = get_dreammpid_attr_decode($db, "id"); # for pulling a dreammpid from id= rather than the more standard dmp= $policyname = html_scrub($voter["name"]); if (isset($_GET['party'])) { $party_comp = db_scrub($_GET["party"]); } else { $party_comp = ''; } $dreamid = intval($voter["dreammpid"]); // all private dreams will be aggregate $bAggregate = $voter["private"] == 1; $bAggregate = false; // disabled for now // should be available only to the owner $bAggregateEditable = false; //(($_GET["editable"] == "yes") || ($_POST["submit"] != ""));