Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- /*
- Invisible Char:[ ᠌᠌ ᠌᠌᠌]
- */
- @import url('https://fonts.googleapis.com/css?family=Roboto:300, 900');
- body{
- background: #4d4766;
- font-family: 'Roboto', sans-serif;
- }
- .X{
- max-width: 400px;
- margin: 2% auto;
- background: #fff;
- padding: 2%;
- box-shadow: 0 0 20px rgba(46, 59, 125, 0.23);
- border-radius: 5px;
- }
- label, input, textarea{
- font-size: 20px;
- box-sizing: border-box;
- }
- input, textarea{
- margin: 0 0 20px 0;
- padding: 15px;
- width: 100%;
- border: none;
- font-weight: 300;
- letter-spacing: 2px;
- box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16),0 0 0 1px rgba(0,0,0,0.08);
- font-family: 'Roboto', sans-serif;
- display: flex;
- }
- input:hover,textarea:focus{
- outline: none;
- box-shadow:0 2px 4px rgba(0,0,0,0.4);
- }
- textarea:focus, input:focus{
- color: #2440a7;
- border: 1px solid #4f8df5;
- }
- input[type=submit]{
- width: 100%;
- margin: auto;
- height: 75px;
- display: flex;
- justify-content: center;
- align-items: center;
- font-family: 'Roboto', sans-serif;
- padding: 8px 20px;
- font-size: 34px;
- }
- .g-recaptcha{
- margin: 4% auto;
- width: 75%;
- }
- .description{
- margin: 4% auto;
- width: 50%;
- }
- textarea{
- max-width: 100%;
- }
- grad {
- width: 100wh;
- height: 90vh;
- color: #fff;
- background: linear-gradient(-45deg, #42f498, #B6E73c, #23A6D5, #23D5AB);
- background-size: 400% 400%;
- -webkit-animation: Gradient 15s ease infinite;
- -moz-animation: Gradient 15s ease infinite;
- animation: Gradient 15s ease infinite;
- }
- @-webkit-keyframes Gradient {
- 0% {
- background-position: 0% 50%
- }
- 50% {
- background-position: 100% 50%
- }
- 100% {
- background-position: 0% 50%
- }
- }
- @-moz-keyframes Gradient {
- 0% {
- background-position: 0% 50%
- }
- 50% {
- background-position: 100% 50%
- }
- 100% {
- background-position: 0% 50%
- }
- }
- @keyframes Gradient {
- 0% {
- background-position: 0% 50%
- }
- 50% {
- background-position: 100% 50%
- }
- 100% {
- background-position: 0% 50%
- }
- }
- </style>
- <head>
- <title>Human Verification - Perina Electronic</title>
- <script src='https://www.google.com/recaptcha/api.js'></script>
- </head>
- <body>
- <div class="X">
- <h1 style="text-align: center;"><grad>Human Verification</grad></h1>
- <form action="" method="POST">
- <div class="description">
- Welcome to Perina Electronic. Plese resolve the reCaptcha before entering on our Site
- </div>
- <div class="g-recaptcha" data-sitekey="6LcQwV8UAAAAACuQFFKOuNr_ri-35Q7TdmpIsO19" id="x1"></div>
- <input type="submit" value="Send"/>
- </form>
- </div>
- <grad>
- Perina Electronic
- </grad>
- </body>
- <?php
- if (isset($_POST['g-recaptcha-response'])) {
- $captcha_data = $_POST['g-recaptcha-response'];
- }
- $resposta = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6LcQwV8UAAAAACx1zObBaPfl6ifnvHx2No1oAduN&response=".$captcha_data."&remoteip=".$_SERVER['REMOTE_ADDR']);
- if ($resposta.success) {
- echo "Obrigado por deixar sua mensagem!";
- } else {
- echo "Usuário mal intencionado detectado. A mensagem não foi enviada.";
- exit;
- }
- // Se nenhum valor foi recebido, o usuário não realizou o captcha
- if (!$captcha_data) {
- echo "Por favor, confirme o captcha.";
- exit;
- }
- echo $respsta;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment