Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2010-12-14 00:11:13 Login attempt for user: ADMINS
- 2010-12-14 00:11:13 User login: ADMINS
- 2010-12-14 00:11:13 Recv error Connection reset by peer
- 2010-12-14 00:11:13 Closing connection
- public function auth($user = '', $password = '')
- {
- if(!isset($user) || !isset($password))
- {
- return "User or Password isn't specified.\n";
- }
- if(!$this->handle)
- {
- return "AUTH: Not connected, connection failed or you are not connected.\n";
- }
- fputs($this->handle, "$user\n");
- usleep(50);
- fputs($this->handle, "$password\n");
- usleep(300);
- if(substr(trim(fgets($this->handle)), 0, 1) != "+") return
- "AUTH: Can't auth to MaNGOS with user $user.\n";
- else
- {
- $this->auth = true;
- return "AUTH: Authentication Succesfully.\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement