2 if (isset($_GET['debug'])){
3 if ($_GET['debug'] == 'on'){
4 setcookie("debug", 'on');
5 header('Location: index.php');
7 if ($_GET['debug'] == 'off'){
8 setcookie("debug", 'off');
9 header('Location: index.php');
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" />
22 <!-- Global site
tag (gtag
.js
) - Google Analytics
-->
23 <script async src
="https://www.googletagmanager.com/gtag/js?id=UA-165887820-1"></script
>
25 window
.dataLayer
= window
.dataLayer ||
[];
26 function gtag(){dataLayer
.push(arguments
);}
27 gtag('js', new Date());
29 gtag('config', 'UA-165887820-1');
32 include_once('/var/www/secure.php'); //outside webserver
33 include_once('slack.php');
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
>
41 background
-color
: lightblue
;
53 <div
class="container-fluid">
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>";