Commit | Line | Data |
---|---|---|
08d08f29 PM |
1 | <html lang="en"> |
2 | <head> | |
3 | <meta property="og:url" content="https://www.md-petition.com/printable_qr_code.php" /> | |
4 | <meta property="og:type" content="website" /> | |
5 | <meta property="og:title" content="Maryland Electronic Petition Software" /> | |
6 | <meta property="og:description" content="Socially Distant Petitions" /> | |
7 | <meta property="og:image" content="http://md-petition.com/files/maryland-flag-graphic.png" /> | |
8 | ||
9 | <!-- Global site tag (gtag.js) - Google Analytics --> | |
10 | <script async src="https://www.googletagmanager.com/gtag/js?id=UA-165887820-1"></script> | |
11 | <script> | |
12 | window.dataLayer = window.dataLayer || []; | |
13 | function gtag(){dataLayer.push(arguments);} | |
14 | gtag('js', new Date()); | |
15 | ||
16 | gtag('config', 'UA-165887820-1'); | |
17 | </script> | |
18 | <?PHP | |
19 | include_once('/var/www/secure.php'); //outside webserver | |
20 | include_once('slack.php'); | |
21 | ?> | |
22 | <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> | |
23 | <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> | |
24 | <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> | |
25 | <title>Printable QR Code Invite</title> | |
7231f555 PM |
26 | <style> |
27 | h1 { text-align:center; } | |
dfa21a83 PM |
28 | h2 { text-align:center; } |
29 | h3 { text-align:center; } | |
7231f555 | 30 | </style> |
5a777269 PM |
31 | </head> |
32 | <body> | |
33 | <div class='container-fluid'> | |
34 | ||
08d08f29 PM |
35 | <?PHP |
36 | $short = $_GET['short']; | |
37 | $q2 = "SELECT * FROM petitions where web_short_name = '$short'"; | |
38 | $r2 = $petition->query($q2); | |
39 | $d2 = mysqli_fetch_array($r2); | |
40 | $link = "?invite=$d2[web_short_name]"; | |
41 | if ($d2['landing_page'] != ''){ | |
42 | $link = $d2['landing_page']; | |
43 | } | |
5a777269 | 44 | echo " |
0287e56b | 45 | <div class='row'> |
a6eb76bc | 46 | <div class='col-sm-12'> |
4cae5bf4 PM |
47 | <h1>$d2[petition_name]</h1> |
48 | </div> | |
49 | </div> | |
50 | ||
0287e56b | 51 | <div class='row'> |
a6eb76bc PM |
52 | <div class='col-sm-12'> |
53 | <img class='img-responsive' style='width:100%;' src='https://www.md-petition.com/qrcode.php?s=qrl&d=https://www.md-petition.com/$link'> | |
4cae5bf4 PM |
54 | </div> |
55 | </div> | |
c3a60ab9 PM |
56 | |
57 | <div class='row'> | |
58 | <div class='col-sm-12'> | |
59 | <h3>https://www.md-petition.com/$link</h3> | |
60 | </div> | |
61 | </div> | |
5a777269 | 62 | "; |
08d08f29 | 63 | ?> |
5a777269 PM |
64 | </div> |
65 | </body> |