Advertisement
Guest User

Untitled

a guest
Jul 5th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. 2010-12-14 00:11:13 Login attempt for user: ADMINS
  2. 2010-12-14 00:11:13 User login: ADMINS
  3. 2010-12-14 00:11:13 Recv error Connection reset by peer
  4. 2010-12-14 00:11:13 Closing connection
  5.  
  6.  
  7. public function auth($user = '', $password = '')
  8. {
  9. if(!isset($user) || !isset($password))
  10. {
  11. return "User or Password isn't specified.\n";
  12. }
  13.  
  14. if(!$this->handle)
  15. {
  16. return "AUTH: Not connected, connection failed or you are not connected.\n";
  17. }
  18.  
  19. fputs($this->handle, "$user\n");
  20. usleep(50);
  21. fputs($this->handle, "$password\n");
  22. usleep(300);
  23.  
  24. if(substr(trim(fgets($this->handle)), 0, 1) != "+") return
  25. "AUTH: Can't auth to MaNGOS with user $user.\n";
  26. else
  27. {
  28. $this->auth = true;
  29. return "AUTH: Authentication Succesfully.\n";
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement