19 |
$email = explode("@",$user[3]); |
$email = explode("@",$user[3]); |
20 |
$pop3 = new POP3(); |
$pop3 = new POP3(); |
21 |
$pop3->connect($email[1]); |
$pop3->connect($email[1]); |
22 |
if ($pop3->checklogin($email[0],stripslashes($GLOBALS[gblPasswd]))) { |
|
23 |
|
if ($pop3->checklogin($email[0],stripslashes($GLOBALS['gblPasswd']))) { |
24 |
$pop3->quit(); |
$pop3->quit(); |
25 |
return true; |
return true; |
26 |
} |
} |
27 |
$pop3->quit(); |
$pop3->quit(); |
28 |
|
error_log("docman: user $email[0] on $email[1] typed wrong password"); |
29 |
return false; |
return false; |
30 |
} |
} |
31 |
|
|
123 |
return false; |
return false; |
124 |
} |
} |
125 |
|
|
126 |
set_socket_blocking($fp,-1); |
#set_socket_blocking($fp,-1); |
127 |
|
socket_set_blocking($fp,-1); # fix for php 4.2.x |
128 |
|
|
129 |
$this->update_timer(); |
$this->update_timer(); |
130 |
$reply = fgets($fp,$this->BUFFER); |
$reply = fgets($fp,$this->BUFFER); |
131 |
$reply = $this->strip_clf($reply); |
$reply = $this->strip_clf($reply); |