Advertisement
Guest User

Untitled

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