ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
x
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
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
?>
Auth_Container
Definition:
Container.php:39
Auth_Container_vpopmail\fetchData
fetchData($username, $password)
Get user information from vpopmail.
Definition:
vpopmail.php:75
$result
$result
Definition:
CleanUpTest.php:407
AUTH_LOG_DEBUG
const AUTH_LOG_DEBUG
Auth Log level - DEBUG.
Definition:
Auth.php:59
Auth_Container_vpopmail\Auth_Container_vpopmail
Auth_Container_vpopmail()
Constructor of the container class.
Definition:
vpopmail.php:57
Auth_Container_vpopmail
Definition:
vpopmail.php:48
PEAR_ERROR_DIE
const PEAR_ERROR_DIE
Definition:
PEAR.php:34
PEAR\raiseError
& raiseError($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false)
This method is a wrapper that returns an instance of the configured error class with this object's de...
Definition:
PEAR.php:524
Auth_Container\log
log($message, $level=AUTH_LOG_DEBUG)
Log a message to the Auth log.
Definition:
Container.php:246
Services
PEAR
lib
Auth
Container
vpopmail.php
Generated on Mon Apr 7 2025 19:00:55 for ILIAS by
1.8.13 (using
Doxyfile
)