Commit | Line | Data |
---|---|---|
f71d99ec PM |
1 | <?PHP |
2 | if ($_GET['debug'] == 'on'){ | |
3 | setcookie("debug", 'on'); | |
4 | header('Location: index.php'); | |
5 | } | |
6 | if ($_GET['debug'] == 'off'){ | |
7 | setcookie("debug", 'off'); | |
8 | header('Location: index.php'); | |
9 | } | |
10 | ?> | |
4fdccf60 | 11 | <!DOCTYPE html> |
4d0af031 | 12 | <html lang="en"> |
0b056f39 | 13 | <head> |
3c5a427c PM |
14 | <meta property="og:url" content="http://md-petition.com/index.php" /> |
15 | <meta property="og:type" content="website" /> | |
16 | <meta property="og:title" content="Maryland Electronic Petition Software" /> | |
17 | <meta property="og:description" content="Socially Distant Petitions" /> | |
f81ce1eb | 18 | <meta property="og:image" content="http://md-petition.com/files/maryland-flag-graphic.png" /> |
3c5a427c | 19 | |
1264618f PM |
20 | <!-- Global site tag (gtag.js) - Google Analytics --> |
21 | <script async src="https://www.googletagmanager.com/gtag/js?id=UA-165887820-1"></script> | |
22 | <script> | |
23 | window.dataLayer = window.dataLayer || []; | |
24 | function gtag(){dataLayer.push(arguments);} | |
25 | gtag('js', new Date()); | |
26 | ||
27 | gtag('config', 'UA-165887820-1'); | |
28 | </script> | |
4a113be1 PM |
29 | <?PHP |
30 | include_once('/var/www/secure.php'); //outside webserver | |
31 | include_once('slack.php'); | |
32 | ?> | |
3005470c PM |
33 | <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> |
34 | <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> | |
35 | <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> | |
39e01dd9 | 36 | <title>MEPS - Maryland Eletronic Petition Software</title> |
d1044b70 PM |
37 | <style> |
38 | input:focus { | |
39 | background-color: lightblue; | |
5ecdde8f | 40 | } |
9311cfc1 PM |
41 | .click_here{ |
42 | height:50px; | |
43 | width:100px; | |
44 | } | |
5ecdde8f | 45 | </style> |
0b056f39 PM |
46 | </head> |
47 | <body> | |
578cb72f | 48 | <div class="container-fluid"> |
d1044b70 | 49 | <?PHP |
4bb337ae | 50 | if ($_COOKIE['invite'] != ''){ |
2fbe37f3 | 51 | $invite = $petition->real_escape_string($_COOKIE['invite']); |
650a35a6 | 52 | $q = "select petition_name, web_color from petitions where web_short_name = '$invite'"; |
4bb337ae PM |
53 | $r = $petition->query($q); |
54 | $d = mysqli_fetch_array($r); | |
2a929c5a | 55 | echo "<div class='row'><div class='col-sm-10' style='text-align:center;'><h1 style='text-align:center; background-color:$d[web_color];'>$d[petition_name]</h1></div></div>"; |
4bb337ae PM |
56 | } |
57 | ?> |