Advertisement
Guest User

Untitled

a guest
Jun 15th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. <?php
  2. include 'dbconnect.php';
  3.  
  4. $username = strip_tags($_POST['username']);
  5. $password = md5(strip_tags($_POST['password']));
  6. $email = strip_tags($_POST['email']);
  7. $bd = $_POST['birthday'];
  8.  
  9.  
  10. if (isset($_POST["register"]));
  11. {
  12. $dbCon->query("INSERT INTO users(username, password, email, birthday) Values('{$username}','{$password}','{$email}','{$bd}')");
  13. }
  14.  
  15. $key = '6LfjXCITAAAAALsTlmkF2yUBM4dzr7SSsD3wPhNf';
  16. $url = 'https://www.google.com/recaptcha/api/siteverify';
  17.  
  18. $response = file_get_contents($url . "?secret=" . $key . "&response=" . $_POST['g-recaptcha-response'] . "&remoteip=" . $_SERVER['REMOTE_ADDR']);
  19.  
  20. $data = json_decode($response);
  21.  
  22. if(isset($data->success) AND $data->success==true) {
  23.  
  24. }
  25.  
  26. ?>
  27.  
  28.  
  29.  
  30.  
  31.  
  32. <html lang="he">
  33.  
  34. <script src='https://www.google.com/recaptcha/api.js'></script>
  35. <meta charset="utf-8" />
  36.  
  37. <body background="https://srv214.gif.co.il/images/79713274H.jpg" dir="rtl">
  38. <title>הרשמה</title>
  39. <center>
  40. <a href="http://mworld.pe.hu/index.php">
  41. <img src="https://srv214.gif.co.il/images/606805logo.png">
  42. </a>
  43. <font face="segoe ui" size="5" color="black">
  44. <h6>טופס הרשמה לאתר</h6>
  45.  
  46. <form method="post" action="success.php">
  47.  
  48. <table border="0">
  49.  
  50. <td>
  51. <center>
  52. &nbsp;<font size=5>
  53. &nbsp;שם משתמש:<input type="text" name="username" required='required'>
  54. <br />
  55. &nbsp;סיסמת כניסה:<input type="password" name="password" required='required'>
  56. <br />
  57. &nbsp;כתובת דוא''ל:<input type="text" name="email" required='required'>
  58. <br />
  59. תאריך הלידה:<input type="text" name="birthday" required='required'>
  60.  
  61. <br /></font><br />
  62. <font size=3>
  63. <input type="checkbox" name="agree" value="agree"> אני מאשר כי קראתי את תנאי השימוש ואני מעל לגיל 12.<br /></font>
  64.  
  65. <div class="g-recaptcha" data-sitekey="6LfjXCITAAAAALsTlmkF2yUBM4dzr7SSsD3wPhNf"></div>
  66. <p>
  67. <button type="submit" name="register" style="background-color: #4CAF50; /* darkred */
  68. border: none;
  69. color: white;
  70. padding: 8px 15px;
  71. text-align: center;
  72. text-decoration: none;
  73. display: inline-block;
  74. font-size: 16px;
  75. box-shadow: 3px 5px 5px #888888;
  76. ">הירשם</button>
  77.  
  78. </form></td></table>
  79. </font>
  80. <img src="https://srv214.gif.co.il/images/433331warning.png" style="width: 1000px;
  81. height: 105px;"></img>
  82.  
  83. </body>
  84. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement