ILIAS
Release_4_0_x_branch Revision 61816
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
vpopmail.php
Go to the documentation of this file.
1
<?php
2
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
3
29
require_once
"Auth/Container.php"
;
33
require_once
"PEAR.php"
;
34
48
class
Auth_Container_vpopmail
extends
Auth_Container
{
49
50
// {{{ Constructor
51
57
function
Auth_Container_vpopmail
()
58
{
59
if
(!extension_loaded(
'vpopmail'
)) {
60
return
PEAR::raiseError
(
'Cannot use VPOPMail authentication, '
61
.
'VPOPMail extension not loaded!'
, 41,
PEAR_ERROR_DIE
);
62
}
63
}
64
65
// }}}
66
// {{{ fetchData()
67
75
function
fetchData
($username,
$password
)
76
{
77
$this->
log
(
'Auth_Container_vpopmail::fetchData() called.'
,
AUTH_LOG_DEBUG
);
78
$userdata = array();
79
$userdata = preg_split(
"/@/"
, $username, 2);
80
$result
= @vpopmail_auth_user($userdata[0], $userdata[1],
$password
);
81
82
return
$result
;
83
}
84
85
// }}}
86
87
}
88
?>
Services
PEAR
lib
Auth
Container
vpopmail.php
Generated on Wed Apr 27 2016 19:01:48 for ILIAS by
1.8.1.2 (using
Doxyfile
)