2 include_once('header.php');
3 setcookie("invite", "Ivey", 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 = '8'";
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/Ivey.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/ai.jpg" />
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($d['tab_name'].' Home Page Loaded ('.$_COOKIE['invite'].')','md-petition');
41 <div
class='col-sm-12' style
='text-align:center;'><h1
><?PHP
echo $d['text_title'];?
></h1
></div
>
45 <?PHP
if ($d['petition_jpg_page2'] != ''){ ?
>
47 <div
class='col-sm-6'><center
><img
class="img-responsive" alt
="<?PHP echo $d['text_title'];?>" src
="<?PHP echo $d['logo_url'];?>"><h2
><?PHP
echo $d['text_block'];?
></h2
></center
></div
>
48 <div
class='col-sm-4'><img
class="img-responsive" src
='../<?PHP echo $d['petition_jpg_page2
'];?>'></div
>
51 <div
class='col-sm-3'><center
><img
class="img-responsive" alt
="<?PHP echo $d['text_title'];?>" src
="<?PHP echo $d['logo_url'];?>"></center
></div
>
52 <div
class='col-sm-8'><?PHP
echo $d['text_block'];?
></div
>
57 <div
class='col-sm-12' style
='text-align:center;'><button type
="button" class="btn btn-success btn-lg btn-block" onclick
="window.location.href='../enter_information.php'"><img style
='height:50px; width:100px;' src
="../files/click_here.gif"> SIGN
<?PHP
echo $d['petition_name'];?
></button
></div
>
61 <?PHP
if ($d['social_phone'] != ''){ ?
>
63 <div
class='col-sm-6' style
='text-align:right;'>Phone
</div
>
64 <div
class='col-sm-6' style
='text-align:left;'><?PHP
echo $d['social_phone'];?
></div
>
67 <?PHP
if ($d['social_email'] != ''){ ?
>
69 <div
class='col-sm-6' style
='text-align:right;'>E
-Mail
</div
>
70 <div
class='col-sm-6' style
='text-align:left;'><?PHP
echo $d['social_email'];?
></div
>
74 <div
class='col-sm-6' style
='text-align:right;'>Website
</div
>
75 <div
class='col-sm-6' style
='text-align:left;'><?PHP
echo $d['social_website'];?
></div
>
78 <div
class='col-sm-6' style
='text-align:right;'>Facebook
</div
>
79 <div
class='col-sm-6' style
='text-align:left;'><?PHP
echo $d['social_facebook'];?
></div
>
82 <div
class='col-sm-6' style
='text-align:right;'>Twitter
</div
>
83 <div
class='col-sm-6' style
='text-align:left;'><?PHP
echo $d['social_twitter'];?
></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
>
96 function myFunction(short_code
) {
97 /* Get the text field */
98 var copyText
= document
.getElementById(short_code
);
100 /* Select the text field */
102 copyText
.setSelectionRange(0, 99999); /*For mobile devices*/
104 /* Copy the text inside the text field */
105 document
.execCommand("copy");
107 /* Alert the copied text */
108 alert("Copied the Link: " + copyText
.value
);
113 <div
class='col-sm-12' style
='text-align:center;'><center
>
114 <table border
="1" cellpadding
="2" cellspacing
="0">
116 <td
><div
class="fb-share-button"
117 data
-href
="https://www.md-petition.com/invite/Ivey.php"
118 data
-layout
="box_count" data
-size
="large">
120 <td
><input type
='text' size
='50' value
='https://www.md-petition.com/invite/Ivey.php' id
='Ivey'><button onclick
='myFunction("Ivey")'>Copy Link
</button
></td
>
129 $copy = '© 2020 Patrick McGuire';
132 <div
class='col-sm-10' style
='text-align:center;'><?PHP
echo $copy;?
></div
>
136 <div
class='col-sm-10' style
='text-align:center;'>
137 <?PHP
if($_COOKIE['debug'] == 'on'){ ?
>
138 <pre
><?PHP
print_r($_GET); ?
></pre
>
139 <pre
><?PHP
print_r($_POST); ?
></pre
>
140 <pre
><?PHP
print_r($_COOKIE); ?
></pre
>