Yanko-PT

Human Verification - Perina Electronic 2018

Jul 8th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.29 KB | None | 0 0
  1. <style>
  2. /*
  3. Invisible Char:[ ᠌᠌ ᠌᠌᠌]
  4. */
  5.  
  6. @import url('https://fonts.googleapis.com/css?family=Roboto:300, 900');
  7.  
  8.  
  9. body{
  10.   background: #4d4766;
  11.   font-family: 'Roboto', sans-serif;
  12. }
  13. .X{
  14.   max-width: 400px;
  15.   margin: 2% auto;
  16.   background: #fff;
  17.   padding: 2%;
  18.   box-shadow: 0 0 20px rgba(46, 59, 125, 0.23);
  19.   border-radius: 5px;
  20. }
  21. label, input, textarea{
  22.   font-size: 20px;
  23.   box-sizing: border-box;
  24. }
  25. input, textarea{
  26.   margin: 0 0 20px 0;
  27.   padding: 15px;
  28.   width: 100%;
  29.   border: none;
  30.   font-weight: 300;
  31.   letter-spacing: 2px;
  32.   box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16),0 0 0 1px rgba(0,0,0,0.08);
  33.   font-family: 'Roboto', sans-serif;
  34.   display: flex;
  35. }
  36. input:hover,textarea:focus{
  37.   outline: none;
  38.   box-shadow:0 2px 4px rgba(0,0,0,0.4);
  39. }
  40. textarea:focus, input:focus{
  41.   color: #2440a7;
  42.   border: 1px solid #4f8df5;
  43. }
  44. input[type=submit]{
  45.   width: 100%;
  46.   margin: auto;
  47.   height: 75px;
  48.   display: flex;
  49.   justify-content: center;
  50.   align-items: center;
  51.   font-family: 'Roboto', sans-serif;
  52.   padding: 8px 20px;
  53.   font-size: 34px;
  54. }
  55.  
  56. .g-recaptcha{
  57.   margin: 4% auto;
  58.   width: 75%;
  59. }
  60.  
  61. .description{
  62.   margin: 4% auto;
  63.   width: 50%;
  64. }
  65.  
  66. textarea{
  67.   max-width: 100%;
  68. }
  69.  
  70. grad {
  71.     width: 100wh;
  72.     height: 90vh;
  73.     color: #fff;
  74.     background: linear-gradient(-45deg, #42f498, #B6E73c, #23A6D5, #23D5AB);
  75.     background-size: 400% 400%;
  76.     -webkit-animation: Gradient 15s ease infinite;
  77.     -moz-animation: Gradient 15s ease infinite;
  78.     animation: Gradient 15s ease infinite;
  79. }
  80.  
  81. @-webkit-keyframes Gradient {
  82.     0% {
  83.         background-position: 0% 50%
  84.     }
  85.     50% {
  86.         background-position: 100% 50%
  87.     }
  88.     100% {
  89.         background-position: 0% 50%
  90.     }
  91. }
  92.  
  93. @-moz-keyframes Gradient {
  94.     0% {
  95.         background-position: 0% 50%
  96.     }
  97.     50% {
  98.         background-position: 100% 50%
  99.     }
  100.     100% {
  101.         background-position: 0% 50%
  102.     }
  103. }
  104.  
  105. @keyframes Gradient {
  106.     0% {
  107.         background-position: 0% 50%
  108.     }
  109.     50% {
  110.         background-position: 100% 50%
  111.     }
  112.     100% {
  113.         background-position: 0% 50%
  114.     }
  115. }
  116.  
  117.  
  118.  
  119.    
  120. </style>
  121.  
  122.   <head>
  123.     <title>Human Verification - Perina Electronic</title>
  124.     <script src='https://www.google.com/recaptcha/api.js'></script>
  125.   </head>
  126.  
  127. <body>
  128.   <div class="X">
  129.     <h1 style="text-align: center;"><grad>Human Verification</grad></h1>
  130.  <form action="" method="POST">
  131. <div class="description">
  132.    Welcome to Perina Electronic. Plese resolve the reCaptcha before entering on our Site
  133.    </div>
  134.    
  135. <div class="g-recaptcha" data-sitekey="6LcQwV8UAAAAACuQFFKOuNr_ri-35Q7TdmpIsO19" id="x1"></div>
  136.  
  137.    <input type="submit" value="Send"/>
  138.  
  139.  </form>
  140. </div>
  141.  
  142.   <grad>
  143.    Perina Electronic
  144.   </grad>
  145. </body>
  146.  
  147. <?php
  148.  
  149. if (isset($_POST['g-recaptcha-response'])) {
  150.    $captcha_data = $_POST['g-recaptcha-response'];
  151. }
  152.  
  153.    $resposta = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6LcQwV8UAAAAACx1zObBaPfl6ifnvHx2No1oAduN&response=".$captcha_data."&remoteip=".$_SERVER['REMOTE_ADDR']);
  154.  
  155. if ($resposta.success) {
  156.    echo "Obrigado por deixar sua mensagem!";
  157. } else {
  158.    echo "Usuário mal intencionado detectado. A mensagem não foi enviada.";
  159.    exit;
  160. }
  161.  
  162.  
  163. // Se nenhum valor foi recebido, o usuário não realizou o captcha
  164. if (!$captcha_data) {
  165.    echo "Por favor, confirme o captcha.";
  166.    exit;
  167. }
  168.    echo $respsta;
  169. ?>
Advertisement
Add Comment
Please, Sign In to add comment