2 include_once('header.php');
3 setcookie("invite", "mlp", 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 = '2'";
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/LPMD.php" />
26 <meta property
="og:type" content
="website" />
27 <meta property
="og:title" content
="Libertarian Party of Maryland" />
28 <meta property
="og:description" content
="Calling all Maryland Registered Voters!" />
29 <meta property
="og:image" content
="https://lpmaryland.org/wp-content/uploads/2014/03/lpmd_logo_v2.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
>Libertarian Party of Maryland
</title
>
35 <body style
='background-color:<?PHP echo $d['web_color
'];?>;'>
36 <div
class="container-fluid">
38 slack_general('MLP 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-5' style
='text-align:center;'><h3
>If you need assistance
, please contact
:</h3
></div
>
46 <div
class='col-sm-5' style
='text-align:center;'><img
class="img-responsive" alt
="<?PHP echo $d['text_title'];?>" src
="<?PHP echo $d['logo_url'];?>"></div
>
49 .social
{ font
-size
: large
; font
-weight
:bold
; }
51 <?PHP
if ($d['social_phone'] != ''){ ?
>
53 <div
class='col-sm-5 social' style
='text-align:right;'>Phone
</div
>
54 <div
class='col-sm-5 social' style
='text-align:left;'><a href
='tel:<?PHP echo $d['social_phone
'];?>'><?PHP
echo $d['social_phone'];?
></a
></div
>
57 <?PHP
if ($d['social_email'] != ''){ ?
>
59 <div
class='col-sm-5 social' style
='text-align:right;'>E
-Mail
</div
>
60 <div
class='col-sm-5 social' style
='text-align:left;'><a href
='mailto:<?PHP echo $d['social_email
'];?>'><?PHP
echo $d['social_email'];?
></a
></div
>
63 <?PHP
if ($d['social_website'] != ''){ ?
>
65 <div
class='col-sm-5 social' style
='text-align:right;'>Website
</div
>
66 <div
class='col-sm-5 social' style
='text-align:left;'><a href
='<?PHP echo $d['social_website
'];?>'><?PHP
echo $d['social_website'];?
></a
></div
>
69 <?PHP
if ($d['social_facebook'] != ''){ ?
>
71 <div
class='col-sm-5 social' style
='text-align:right;'>Facebook
</div
>
72 <div
class='col-sm-5 social' style
='text-align:left;'><?PHP
echo $d['social_facebook'];?
></div
>
75 <?PHP
if ($d['social_twitter'] != ''){ ?
>
77 <div
class='col-sm-5 social' style
='text-align:right;'>Twitter
</div
>
78 <div
class='col-sm-5 social' style
='text-align:left;'><?PHP
echo $d['social_twitter'];?
></div
>
82 <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'"><img alt
='Click here to continue' class='click_me' src
="../files/click_here.gif"> CLICK HERE TO BEGIN
- SIGN
<?PHP
echo $d['petition_name'];?
></button
></div
>
86 <div id
="fb-root"></div
>
87 <script
>(function(d
, s
, id
) {
88 var js
, fjs
= d
.getElementsByTagName(s
)[0];
89 if (d
.getElementById(id
)) return;
90 js
= d
.createElement(s
); js
.id
= id
;
91 js
.src
= "https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0";
92 fjs
.parentNode
.insertBefore(js
, fjs
);
93 }(document
, 'script', 'facebook-jssdk'));</script
>
95 <script
>window
.twttr
= (function(d
, s
, id
) {
96 var js
, fjs
= d
.getElementsByTagName(s
)[0],
97 t
= window
.twttr ||
{};
98 if (d
.getElementById(id
)) return t
;
99 js
= d
.createElement(s
);
101 js
.src
= "https://platform.twitter.com/widgets.js";
102 fjs
.parentNode
.insertBefore(js
, fjs
);
105 t
.ready
= function(f
) {
110 }(document
, "script", "twitter-wjs"));</script
>
112 function myFunction(short_code
) {
113 /* Get the text field */
114 var copyText
= document
.getElementById(short_code
);
116 /* Select the text field */
118 copyText
.setSelectionRange(0, 99999); /*For mobile devices*/
120 /* Copy the text inside the text field */
121 document
.execCommand("copy");
123 /* Alert the copied text */
124 alert("Copied the Link: " + copyText
.value
);
129 <table border
="1" cellpadding
="2" cellspacing
="0">
131 <td
><div
class="fb-share-button"
132 data
-href
="https://www.md-petition.com/invite/LPMD.php"
133 data
-layout
="box_count" data
-size
="large">
136 <a
class="twitter-share-button"
137 href
="https://twitter.com/intent/tweet"
139 data
-text
="Can you spare a minute to sign <?PHP echo $d['petition_name'];?>"
140 data
-url
="https://www.md-petition.com/invite/LPMD.php">
142 <td
><input type
='text' size
='50' value
='http://md-petition.com/invite/LPMD.php' id
='LPMD'><button onclick
='myFunction("LPMD")'>Copy Link
</button
></td
>
143 <td
><a href
='../printable_qr_code.php?short=<?PHP echo $d['web_short_name
'];?>'><img src
='https://www.md-petition.com/qrcode.php?s=qrl&d=https://www.md-petition.com/invite/LPMD.php'></a
></td
>
151 $copy = '© 2020 Patrick McGuire';
154 <div
class='col-sm-10' style
='text-align:center;'><?PHP
echo $copy;?
></div
>
158 <div
class='col-sm-10' style
='text-align:center;'>
159 <?PHP
if($_COOKIE['debug'] == 'on'){ ?
>
160 <pre
><?PHP
print_r($_GET); ?
></pre
>
161 <pre
><?PHP
print_r($_POST); ?
></pre
>
162 <pre
><?PHP
print_r($_COOKIE); ?
></pre
>