Commit | Line | Data |
---|---|---|
b208f391 PM |
1 | <?PHP |
2 | include_once('/var/www/secure.php'); | |
b66e2577 | 3 | include_once('slack.php'); |
b208f391 PM |
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']; | |
10 | } else { | |
11 | $ip = $_SERVER['REMOTE_ADDR']; | |
12 | } | |
4319d4ba PM |
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']); | |
c43717cb | 18 | $bot_check = $petition->real_escape_string($_SERVER['HTTP_USER_AGENT']); |
4319d4ba | 19 | |
fad0bc02 PM |
20 | if (isset($_GET['s'])){ |
21 | $last = $_GET['s']; | |
22 | }elseif($_COOKIE['last']){ | |
23 | $last = $_COOKIE['last']; // fall back on cookie | |
24 | }else{ | |
25 | slack_general_admin("last petition cookie or get missing - directing to share",'md-petition-signed'); | |
26 | header('Location: share.php'); | |
d6181b02 | 27 | } |
b66e2577 | 28 | |
4319d4ba | 29 | include_once('header.php'); |
681bb530 | 30 | $qX = "select * from website_text where id = '9'"; |
4319d4ba PM |
31 | $rX = $petition->query($qX); |
32 | $dX = mysqli_fetch_array($rX); | |
33 | ?> | |
9e0f5668 PM |
34 | <script> |
35 | document.title = "MEPS - Petition Signed"; | |
1c9f9cea | 36 | alert("Petition Signed"); |
9e0f5668 | 37 | </script> |
4319d4ba PM |
38 | <div class='row'> |
39 | <div class='col-sm-10' style='text-align:center;'><h1><?PHP echo $dX['text_title'];?></h1></div> | |
40 | </div> | |
41 | <div class='row'> | |
42 | <div class='col-sm-10' style='text-align:center;'><h2><?PHP echo $dX['text_block'];?></h2></div> | |
43 | </div> | |
44 | <div class='row'> | |
4397618f | 45 | <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> |
4319d4ba PM |
46 | </div> |
47 | <div class='row'> | |
4397618f | 48 | <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> |
4319d4ba PM |
49 | </div> |
50 | <div class='row'> | |
4397618f | 51 | <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> |
4319d4ba PM |
52 | </div> |
53 | <?PHP | |
54 | include_once('footer.php'); |