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