| 1 | <?PHP |
| 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 | } |
| 12 | ?> |
| 13 | <!DOCTYPE html> |
| 14 | <html lang="en"> |
| 15 | <head> |
| 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" /> |
| 20 | <meta property="og:image" content="http://md-petition.com/files/maryland-flag-graphic.png" /> |
| 21 | |
| 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> |
| 31 | <?PHP |
| 32 | include_once('/var/www/secure.php'); //outside webserver |
| 33 | include_once('slack.php'); |
| 34 | ?> |
| 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> |
| 38 | <title>MEPS - Maryland Eletronic Petition Software</title> |
| 39 | <style> |
| 40 | input:focus { |
| 41 | background-color: lightblue; |
| 42 | } |
| 43 | .click_me{ |
| 44 | height:50px; |
| 45 | width:100px; |
| 46 | } |
| 47 | .not_me{ |
| 48 | height:72px; |
| 49 | } |
| 50 | </style> |
| 51 | </head> |
| 52 | <body> |
| 53 | <div class="container-fluid"> |
| 54 | <?PHP |
| 55 | if ($_COOKIE['invite'] != ''){ |
| 56 | $invite = $petition->real_escape_string($_COOKIE['invite']); |
| 57 | $q = "select petition_name, web_color from petitions where web_short_name = '$invite'"; |
| 58 | $r = $petition->query($q); |
| 59 | $d = mysqli_fetch_array($r); |
| 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>"; |
| 61 | } |
| 62 | ?> |