include_once('/var/www/secure.php');
include_once('../slack.php');
$id = intval($_GET['id']);
+$name=$_GET['name'];
+$now = date('r');
+if ($id == 0 || $name == ''){
+ die("Error #".__LINE__);
+}
+$petition->query("update signatures set printed_status = '$name printed on $now' where id = '$id' ");
$q = "select * from signatures where id = '$id' ";
$r = $petition->query($q);
$d = mysqli_fetch_array($r);
$signed_name_as_circulator = $d['signed_name_as_circulator'];
$contact_phone = $d['contact_phone'];
-slack_general("$_COOKIE[name] printing petition $id",'md-petition');
+slack_general("$name printing petition $id",'md-petition');
$q2 = "select * from VoterList where VTRID = '$d[VTRID]' ";
$r2 = $petition->query($q2);
$d2 = mysqli_fetch_array($r2);
header('Content-type: image/jpeg');
// Create Image From Existing File -- going to have to make this a reqired size??? 2550x3300
-$jpg_image = imagecreatefromjpeg($dX['petition_jpg']);
+$jpg_image = imagecreatefromjpeg("../".$dX['petition_jpg']);
// Allocate A Color For The Text
$black = imagecolorallocate($jpg_image, 0, 0, 0);