/[docman2]/auth/pop3.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /auth/pop3.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by dpavlin, Sat Jul 20 13:00:25 2002 UTC revision 1.2 by dpavlin, Wed Apr 9 15:55:15 2003 UTC
# Line 19  function auth_pop3($user) { Line 19  function auth_pop3($user) {
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    
# Line 121  class POP3 Line 123  class POP3
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);

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.26