2 include_once('/var/www/secure.php');
3 include_once('slack.php');
4 $petition_id = $_COOKIE['pID'];
5 $VTRID = $_COOKIE['pVTRID'];
6 if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
7 $ip = $_SERVER['HTTP_CLIENT_IP'];
8 } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
9 $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
11 $ip = $_SERVER['REMOTE_ADDR'];
13 $signed_name_as = $petition->real_escape_string($_POST['signed_name_as']);
14 $date_of_birth = $petition->real_escape_string($_COOKIE['pDOB']);
15 $signed_name_as_circulator = $petition->real_escape_string($_POST['signed_name_as_circulator']);
16 $contact_phone = $petition->real_escape_string($_COOKIE['pPHONE']);
17 $signature_status = $petition->real_escape_string($_COOKIE['signature_status']);
18 $bot_check = $petition->real_escape_string($_SERVER['HTTP_USER_AGENT']);
20 $last = $_COOKIE['last'];
22 slack_general_admin("last petition cookie missing - directing to share",'md-petition-signed');
23 header('Location: share.php');
26 include_once('header.php');
27 $qX = "select * from website_text where id = '9'";
28 $rX = $petition->query($qX);
29 $dX = mysqli_fetch_array($rX);
32 document
.title
= "MEPS - Petition Signed";
33 alert("Petition Signed");
36 <div
class='col-sm-10' style
='text-align:center;'><h1
><?PHP
echo $dX['text_title'];?
></h1
></div
>
39 <div
class='col-sm-10' style
='text-align:center;'><h2
><?PHP
echo $dX['text_block'];?
></h2
></div
>
42 <div
class='col-sm-10' style
='text-align:center;'><br
><button type
="button" class="btn btn-success btn-lg btn-block" onclick
="window.open('printer.php?id=<?PHP echo $last;?>')">View
and/or Print</button
></div
>
45 <div
class='col-sm-10' style
='text-align:center;'><br
><button type
="button" class="btn btn-info btn-lg btn-block" onclick
="window.location.href='eligible.php'">More Petitions
</button
></div
>
48 <div
class='col-sm-10' style
='text-align:center;'><br
><button type
="button" class="btn btn-danger btn-lg btn-block" onclick
="window.location.href='reset.php'">Reset
/ Restart
</button
></div
>
51 include_once('footer.php');