Advertisement
Guest User

Untitled

a guest
Mar 12th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. <?php
  2. session_start();
  3.  
  4. if (isset($_SESSION['humanverfication'])) {
  5. header("location:dashboard.php"); //redirect page name
  6. }
  7. ?>
  8.  
  9. <html>
  10. <head>
  11. <title>Verify Human verification</title>
  12. <script src='jquery.js'></script>
  13. <script src='api.js'></script>
  14. <script>
  15. function recaptchaCallback() {
  16. $.ajax({
  17. url: "verify.php",
  18. type: 'post',
  19. data: {
  20. verify: 'true'
  21. },
  22. success: function (data) {
  23. debugger
  24. if (data) {
  25. window.location.href = 'dashboard.php';//redirect page name
  26. }
  27. }
  28. });
  29. }
  30. </script>
  31. <style>
  32. body { text-align: center;padding: 150px; }
  33. .captcha { text-align: center;padding-left: 380px}
  34. h3 { font-size: 30px; }
  35. body { font: 20px Helvetica, sans-serif; color: #333; }
  36. article { display: block; text-align: left; width: 650px; margin: 0 auto; }
  37. a { color: #dc8100; text-decoration: none; }
  38. a:hover { color: #333; text-decoration: none; }
  39. </style>
  40. </head>
  41. <body>
  42.  
  43.  
  44. <div>
  45. <h3>Bots are harmfull<br>Human verification</h3>
  46. <!-- Replace you site key below-->
  47. <div data-sitekey="moj numer" class="g-recaptcha captcha" data-callback="recaptchaCallback"></div>
  48. <!-- more of your HTML content -->
  49. </div>
  50. </body>
  51. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement