2 include_once('header.php');
3 setcookie("invite", "RestorePGTermLimits", time()+
3600, "/"); // we use this later
8 <!-- Global site
tag (gtag
.js
) - Google Analytics
-->
9 <script async src
="https://www.googletagmanager.com/gtag/js?id=UA-165887820-1"></script
>
11 window
.dataLayer
= window
.dataLayer ||
[];
12 function gtag(){dataLayer
.push(arguments
);}
13 gtag('js', new Date());
15 gtag('config', 'UA-165887820-1');
18 include_once('/var/www/secure.php'); //outside webserver
19 presign(); // requires db connection
20 $q = "select * from petitions where petition_id = '7'";
21 $r = $petition->query($q);
22 $d = mysqli_fetch_array($r);
23 include_once('../slack.php');
25 <meta property
="og:url" content
="https://www.md-petition.com/invite/RestorePGTermLimits.php" />
26 <meta property
="og:type" content
="website" />
27 <meta property
="og:title" content
="<?PHP echo $d['tab_name'];?>" />
28 <meta property
="og:description" content
="Maryland Electronic Petition Software - Socially Distant Petitions" />
29 <meta property
="og:image" content
="https://www.md-petition.com/files/RTL.png" />
30 <link rel
="stylesheet" href
="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
31 <script src
="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script
>
32 <script src
="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script
>
33 <title
><?PHP
echo $d['tab_name'];?
></title
>
35 <body style
='background-color:<?PHP echo $d['web_color
'];?>;'>
36 <div
class="container-fluid">
38 slack_general('RestorePGTermLimits Home Page Loaded ('.$_COOKIE['invite'].')','md-petition');
42 <div
class='col-sm-10' style
='text-align:center;'><h1
><?PHP
echo $d['text_title'];?
></h1
><h2 style
='text-align:left;'><?PHP
echo $d['text_block'];?
></h2
></div
>
45 <div
class='col-sm-10' style
='text-align:center;'><button type
="button" class="btn btn-success btn-lg btn-block" onclick
="window.location.href='../enter_information.php'">SIGN
<?PHP
echo $d['petition_name'];?
></button
></div
>
49 <div
class='col-sm-10' style
='text-align:center;'> <img
class="img-responsive" alt
="<?PHP echo $d['text_title'];?>" src
="<?PHP echo $d['logo_url'];?>"></div
>
52 <div id
="fb-root"></div
>
53 <script
>(function(d
, s
, id
) {
54 var js
, fjs
= d
.getElementsByTagName(s
)[0];
55 if (d
.getElementById(id
)) return;
56 js
= d
.createElement(s
); js
.id
= id
;
57 js
.src
= "https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0";
58 fjs
.parentNode
.insertBefore(js
, fjs
);
59 }(document
, 'script', 'facebook-jssdk'));</script
>
62 function myFunction(short_code
) {
63 /* Get the text field */
64 var copyText
= document
.getElementById(short_code
);
66 /* Select the text field */
68 copyText
.setSelectionRange(0, 99999); /*For mobile devices*/
70 /* Copy the text inside the text field */
71 document
.execCommand("copy");
73 /* Alert the copied text */
74 alert("Copied the Link: " + copyText
.value
);
79 <table border
="1" cellpadding
="2" cellspacing
="0">
81 <td
><div
class="fb-share-button"
82 data
-href
="http://md-petition.com/invite/RestorePGTermLimits.php"
83 data
-layout
="box_count" data
-size
="large">
85 <td
><input type
='text' size
='50' value
='http://md-petition.com/invite/RestorePGTermLimits.php' id
='mgp'><button onclick
='myFunction("RestorePGTermLimits")'>Copy Link
</button
></td
>
93 $copy = '© 2020 Patrick McGuire';
96 <div
class='col-sm-10' style
='text-align:center;'><?PHP
echo $copy;?
></div
>
100 <div
class='col-sm-10' style
='text-align:center;'>
101 <?PHP
if($_COOKIE['debug'] == 'on'){ ?
>
102 <pre
><?PHP
print_r($_GET); ?
></pre
>
103 <pre
><?PHP
print_r($_POST); ?
></pre
>
104 <pre
><?PHP
print_r($_COOKIE); ?
></pre
>