| 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> |
| 26 | <style> |
| 27 | h1 { text-align:center; } |
| 28 | h2 { text-align:center; } |
| 29 | h3 { text-align:center; } |
| 30 | </style> |
| 31 | </head> |
| 32 | <body> |
| 33 | <div class='container-fluid'> |
| 34 | |
| 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 | } |
| 44 | echo " |
| 45 | <div class='row'> |
| 46 | <div class='col-sm-12'> |
| 47 | <h1>$d2[petition_name]</h1> |
| 48 | </div> |
| 49 | </div> |
| 50 | |
| 51 | <div class='row'> |
| 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'> |
| 54 | </div> |
| 55 | </div> |
| 56 | |
| 57 | <div class='row'> |
| 58 | <div class='col-sm-12'> |
| 59 | <h3>https://www.md-petition.com/$link</h3> |
| 60 | </div> |
| 61 | </div> |
| 62 | "; |
| 63 | ?> |
| 64 | </div> |
| 65 | </body> |