include_once('/var/www/secure.php');
$id = $_GET['id'];
-$q = "select * from signatures where id = 'id' ";
+$q = "select * from signatures where id = '$id' ";
$r = $petition->query($q);
$d = mysqli_fetch_array($r);
$SIGNED = $d['date_time_signed'];
$PETITION_ID = $d['petition_id'];
+if ($_COOKIE['pVTRID'] != $d['VTRID']){
+ die('Error #294');
+}
+
$q2 = "select * from VoterList where VTRID = '$d[VTRID]' ";
$r2 = $petition->query($q2);
$d2 = mysqli_fetch_array($r2);
$address = "$ADDRESS $RESIDENTIALCITY $RESIDENTIALZIP5";
+
// imagettftext ( resource $image , float $size , float $angle , int $x , int $y , int $color , string $fontfile , string $text )
// x how far from left
// y how far from top