2 $copy = '© 2020 Patrick McGuire';
3 if ($_COOKIE['invite'] != ''){
4 $copy = '© 2020 Patrick McGuire - '.strtoupper($_COOKIE['invite']);
9 <div
class='col-sm-10' style
='text-align:center;'><button type
="button" class="btn btn-info btn-lg btn-block" onclick
="window.open('share.php')">Before you leave click here to share the petition
.</button
></div
>
13 <div
class='col-sm-10' style
='text-align:center;'><?PHP
echo $copy;?
></div
>
17 <div id
="fb-root"></div
>
18 <script
>(function(d
, s
, id
) {
19 var js
, fjs
= d
.getElementsByTagName(s
)[0];
20 if (d
.getElementById(id
)) return;
21 js
= d
.createElement(s
); js
.id
= id
;
22 js
.src
= "https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0";
23 fjs
.parentNode
.insertBefore(js
, fjs
);
24 }(document
, 'script', 'facebook-jssdk'));</script
>
27 <div
class='col-sm-10' style
='text-align:center;'>
28 <?PHP
if($_COOKIE['debug'] == 'on'){ ?
>
29 <pre
><?PHP
print_r($_GET); ?
></pre
>
30 <pre
><?PHP
print_r($_POST); ?
></pre
>
31 <pre
><?PHP
print_r($_COOKIE); ?
></pre
>
36 </div
><!-- close container
-->
40 <footer class="site-footer">
41 <center>© 2020 <?PHP echo $copy;
43 <table border="1" cellpadding="2" cellspacing="0"><tr>
45 $q2 = "SELECT * FROM petitions";
46 $r2 = $petition->query($q2);
47 while($d2 = mysqli_fetch_array($r2)){
48 echo "<td align='center'><small>$d2[petition_name]<small><br>
49 <div class=\"fb-share-button\"
50 data-href=\"http://md-petition.com/index.php?invite=$d2[web_short_name]\"
51 data-layout=\"button_count\">
62 <script type="text/javascript">
63 window.doorbellOptions = {
65 "appKey": "4wEnfKuAdj4WlHgKaxLMrAbYn8aKdFhtYVnpbRPkG4AbA7SH7KcgiRvdZyWmwxnw"
68 var hasLoaded = false;
69 function l() { if (hasLoaded) { return; } hasLoaded = true; window.doorbellOptions.windowLoaded = true; var g = d.createElement(t);g.id = 'doorbellScript';g.type = 'text/javascript';g.async = true;g.src = 'https://embed.doorbell.io/button/'+window.doorbellOptions['id']+'?t='+(new Date().getTime());(d.getElementsByTagName('head')[0]||d.getElementsByTagName('body')[0]).appendChild(g); }
70 if (w.attachEvent) { w.attachEvent('onload', l); } else if (w.addEventListener) { w.addEventListener('load', l, false); } else { l(); }
71 if (d.readyState == 'complete') { l(); }
72 }(window, document, 'script'));