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