2 setcookie("invite", "BTEC", time()+
3600, "/"); // we use this later
7 <!-- Global site
tag (gtag
.js
) - Google Analytics
-->
8 <script async src
="https://www.googletagmanager.com/gtag/js?id=UA-165887820-1"></script
>
10 window
.dataLayer
= window
.dataLayer ||
[];
11 function gtag(){dataLayer
.push(arguments
);}
12 gtag('js', new Date());
14 gtag('config', 'UA-165887820-1');
17 include_once('/var/www/secure.php'); //outside webserver
18 $q = "select * from petitions where petition_id = '3'";
19 $r = $petition->query($q);
20 $d = mysqli_fetch_array($r);
21 include_once('../slack.php');
23 <meta property
="og:url" content
="https://www.md-petition.com/invite/BTEC.php" />
24 <meta property
="og:type" content
="website" />
25 <meta property
="og:title" content
="<?PHP echo $d['tab_name'];?>" />
26 <meta property
="og:description" content
="Maryland Electronic Petition Software - Socially Distant Petitions" />
27 <meta property
="og:image" content
="https://www.md-petition.com/files/BTEC.png" />
28 <link rel
="stylesheet" href
="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
29 <script src
="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script
>
30 <script src
="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script
>
31 <title
><?PHP
echo $d['tab_name'];?
></title
>
33 <body style
='background-color:<?PHP echo $d['web_color
'];?>;'>
34 <div
class="container-fluid">
36 slack_general('BTEC Home Page Loaded ('.$_COOKIE['invite'].')','md-petition');
39 <div
class='col-sm-12' style
='text-align:center;'><h1
><?PHP
echo $d['text_title'];?
></h1
></div
>
43 <?PHP
if ($d['petition_jpg_page2'] != ''){ ?
>
45 <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
>
46 <div
class='col-sm-4'><img
class="img-responsive" src
='../<?PHP echo $d['petition_jpg_page2
'];?>'></div
>
49 <div
class='col-sm-12'><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
>
55 <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 <div
class='col-sm-6' style
='text-align:right;'>Phone
</div
>
62 <div
class='col-sm-6' style
='text-align:left;'><?PHP
echo $d['social_phone'];?
></div
>
65 <div
class='col-sm-6' style
='text-align:right;'>E
-Mail
</div
>
66 <div
class='col-sm-6' style
='text-align:left;'><?PHP
echo $d['social_email'];?
></div
>
69 <div
class='col-sm-6' style
='text-align:right;'>Website
</div
>
70 <div
class='col-sm-6' style
='text-align:left;'><?PHP
echo $d['social_website'];?
></div
>
73 <div
class='col-sm-6' style
='text-align:right;'>Facebook
</div
>
74 <div
class='col-sm-6' style
='text-align:left;'><?PHP
echo $d['social_facebook'];?
></div
>
77 <div
class='col-sm-6' style
='text-align:right;'>Twitter
</div
>
78 <div
class='col-sm-6' style
='text-align:left;'><?PHP
echo $d['social_twitter'];?
></div
>
81 <div id
="fb-root"></div
>
82 <script
>(function(d
, s
, id
) {
83 var js
, fjs
= d
.getElementsByTagName(s
)[0];
84 if (d
.getElementById(id
)) return;
85 js
= d
.createElement(s
); js
.id
= id
;
86 js
.src
= "https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0";
87 fjs
.parentNode
.insertBefore(js
, fjs
);
88 }(document
, 'script', 'facebook-jssdk'));</script
>
91 function myFunction(short_code
) {
92 /* Get the text field */
93 var copyText
= document
.getElementById(short_code
);
95 /* Select the text field */
97 copyText
.setSelectionRange(0, 99999); /*For mobile devices*/
99 /* Copy the text inside the text field */
100 document
.execCommand("copy");
102 /* Alert the copied text */
103 alert("Copied the Link: " + copyText
.value
);
108 <div
class='col-sm-12' style
='text-align:center;'><center
>
109 <table border
="1" cellpadding
="2" cellspacing
="0">
111 <td
><div
class="fb-share-button"
112 data
-href
="https://www.md-petition.com/invite/BTEC.php"
113 data
-layout
="box_count" data
-size
="large">
115 <td
><input type
='text' size
='50' value
='https://www.md-petition.com/invite/BTEC.php' id
='BTEC'><button onclick
='myFunction("BTEC")'>Copy Link
</button
></td
>
124 $copy = '© 2020 Patrick McGuire';
127 <div
class='col-sm-10' style
='text-align:center;'><?PHP
echo $copy;?
></div
>
131 <div
class='col-sm-10' style
='text-align:center;'>
132 <?PHP
if($_COOKIE['debug'] == 'on'){ ?
>
133 <pre
><?PHP
print_r($_GET); ?
></pre
>
134 <pre
><?PHP
print_r($_POST); ?
></pre
>
135 <pre
><?PHP
print_r($_COOKIE); ?
></pre
>