Update soft_copy.php
[clinton/MarylandElectronicPetitionSignature.git] / soft_copy.php
index 2d51724..0422463 100644 (file)
@@ -2,7 +2,7 @@
 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);
 
@@ -10,6 +10,10 @@ $DOB    = $d['date_of_birth'];
 $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);
@@ -23,6 +27,7 @@ $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