Subversion Repositories Applications.papyrus

Rev

Rev 1173 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1173 Rev 1713
Line 12... Line 12...
12
 * the PHP License and are unable to obtain it through the web, please
12
 * the PHP License and are unable to obtain it through the web, please
13
 * send a note to license@php.net so we can mail you a copy immediately.
13
 * send a note to license@php.net so we can mail you a copy immediately.
14
 *
14
 *
15
 * @category   Authentication
15
 * @category   Authentication
16
 * @package    Auth
16
 * @package    Auth
17
 * @author     Stanislav Grozev <tacho@orbitel.bg> 
17
 * @author     Stanislav Grozev <tacho@orbitel.bg>
18
 * @author     Adam Ashley <aashley@php.net>
18
 * @author     Adam Ashley <aashley@php.net>
19
 * @copyright  2001-2006 The PHP Group
19
 * @copyright  2001-2006 The PHP Group
20
 * @license    http://www.php.net/license/3_01.txt  PHP License 3.01
20
 * @license    http://www.php.net/license/3_01.txt  PHP License 3.01
21
 * @version    CVS: $Id: vpopmail.php,v 1.2 2006-12-14 15:04:28 jp_milcent Exp $
21
 * @version    CVS: $Id: vpopmail.php,v 1.3 2007-11-19 15:11:00 jp_milcent Exp $
22
 * @link       http://pear.php.net/package/Auth
22
 * @link       http://pear.php.net/package/Auth
23
 * @since      File available since Release 1.2.0
23
 * @since      File available since Release 1.2.0
24
 */
24
 */
Line 25... Line 25...
25
 
25
 
Line 39... Line 39...
39
 * @package    Auth
39
 * @package    Auth
40
 * @author     Stanislav Grozev <tacho@orbitel.bg>
40
 * @author     Stanislav Grozev <tacho@orbitel.bg>
41
 * @author     Adam Ashley <aashley@php.net>
41
 * @author     Adam Ashley <aashley@php.net>
42
 * @copyright  2001-2006 The PHP Group
42
 * @copyright  2001-2006 The PHP Group
43
 * @license    http://www.php.net/license/3_01.txt  PHP License 3.01
43
 * @license    http://www.php.net/license/3_01.txt  PHP License 3.01
44
 * @version    Release: 1.4.3  File: $Revision: 1.2 $
44
 * @version    Release: 1.5.4  File: $Revision: 1.3 $
45
 * @link       http://pear.php.net/package/Auth
45
 * @link       http://pear.php.net/package/Auth
46
 * @since      Class available since Release 1.2.0
46
 * @since      Class available since Release 1.2.0
47
 */
47
 */
48
class Auth_Container_vpopmail extends Auth_Container {
48
class Auth_Container_vpopmail extends Auth_Container {
Line 72... Line 72...
72
     * @param   string Password
72
     * @param   string Password
73
     * @return  boolean
73
     * @return  boolean
74
     */
74
     */
75
    function fetchData($username, $password)
75
    function fetchData($username, $password)
76
    {
76
    {
-
 
77
        $this->log('Auth_Container_vpopmail::fetchData() called.', AUTH_LOG_DEBUG);
77
        $userdata = array();
78
        $userdata = array();
78
        $userdata = preg_split("/@/", $username, 2);
79
        $userdata = preg_split("/@/", $username, 2);
79
        $result = @vpopmail_auth_user($userdata[0], $userdata[1], $password);
80
        $result = @vpopmail_auth_user($userdata[0], $userdata[1], $password);
Line 80... Line 81...
80
 
81