$advancedsecurity = false
[line 213]
Flag to use advanced security When set extra checks will be made to see if the user's IP or useragent have changed across requests.
Turned off by default to preserve BC.
$allowLogin = true
[line 136]
Is Login Allowed from this page
$authChecks = 0
[line 263]
How many times has checkAuth been called
$authdata =
[line 257]
A hash to hold various superglobals as reference
$checkAuthCallback = ''
[line 165]
checkAuth callback function name
$cookie =
[line 251]
Holds a reference to the global cookie variable
$enableLogging = false
[line 277]
Whether to enable logging of behaviour
$expire = 0
[line 77]
Auth lifetime in seconds
If this variable is set to 0, auth never expires
$expired = false
[line 85]
Has the auth session expired?
$idle = 0
[line 97]
Maximum idletime in seconds
The difference to $expire is, that the idletime gets refreshed each time checkAuth() is called. If this variable is set to 0, idletime is never checked.
$idled = false
[line 105]
Is the maximum idletime over?
$logger = null
[line 270]
PEAR::Log object
$loginCallback = ''
[line 173]
Login callback function name
$loginFailedCallback = ''
[line 181]
Failed Login callback function name
$loginFunction = ''
[line 120]
User-defined function that creates the login screen
$logoutCallback = ''
[line 189]
Logout callback function name
$password = ''
[line 157]
Password
$post =
[line 245]
Holds a reference to the global post variable
$server =
[line 239]
Holds a reference to the global server variable
$session =
[line 233]
Holds a reference to the session auth variable
$showLogin = true
[line 128]
Should the login form be displayed
$status = ''
[line 143]
Current authentication status
$storage = ''
[line 113]
Storage object
$username = ''
[line 150]
Username
$version = "@version@"
[line 203]
Package Version
Auth (Constructor) [line 296]
void Auth(
string
$storageDriver, [mixed
$options = ''], [string
$loginFunction = ''], [boolean
$showLogin = true])
|
|
Constructor
Set up the storage driver.
Parameters:
addUser [line 1143]
mixed addUser(
string
$username, string
$password, [mixed
$additional = ''])
|
|
Add user to the storage container
Parameters:
attachLogObserver [line 1245]
boolean attachLogObserver(
object Log_Observer
&$observer)
|
|
Attach an Observer to the Auth Log Source
Parameters:
changePassword [line 1180]
mixed changePassword(
string
$username, string
$password)
|
|
Change password for user in the storage container
Parameters:
checkAuth [line 840]
Checks if there is a session with valid auth information.
getAuth [line 986]
Has the user been authenticated?
getAuthData [line 746]
mixed getAuthData(
[string
$name = null])
|
|
Get additional information that is stored in the session.
If no value for the first parameter is passed, the method will return all data that is currently stored.
Parameters:
getPostPasswordField [line 1088]
string getPostPasswordField(
)
|
|
Gets the post varible used for the username
getPostUsernameField [line 1074]
string getPostUsernameField(
)
|
|
Gets the post varible used for the username
getStatus [line 1060]
getUsername [line 1043]
listUsers [line 1123]
List all users that are currently available in the storage container
log [line 1198]
boolean log(
string
$message, [string
$level = PEAR_LOG_DEBUG])
|
|
Log a message from the Auth system
Parameters:
logout [line 1005]
Logout function
This function clears any auth tokens in the currently active session and executes the logout callback function, if any
removeUser [line 1161]
mixed removeUser(
string
$username)
|
|
Remove user from the storage container
Parameters:
sessionValidThru [line 1102]
integer sessionValidThru(
)
|
|
Returns the time up to the session is valid
setAdvancedSecurity [line 826]
void setAdvancedSecurity(
[bool
$flag = true])
|
|
Enables advanced security checks
Currently only ip change and useragent change are detected
Parameters:
setAllowLogin [line 639]
void setAllowLogin(
[bool
$allowLogin = true])
|
|
Should the login form be displayed if neccessary?
Parameters:
setAuth [line 771]
void setAuth(
string
$username)
|
|
Register variable in a session telling that the user has logged in successfully
Parameters:
setAuthData [line 725]
void setAuthData(
string
$name, mixed
$value, [boolean
$overwrite = true])
|
|
Register additional information that is to be stored in the session.
Parameters:
setCheckAuthCallback [line 656]
void setCheckAuthCallback(
string
$checkAuthCallback)
|
|
Register a callback function to be called whenever the validity of the login is checked The function will receive two parameters, the username and a reference to the auth object.
Parameters:
setExpire [line 571]
void setExpire(
integer
$time, [bool
$add = false])
|
|
Set the maximum expire time
Parameters:
setFailedLoginCallback [line 689]
void setFailedLoginCallback(
string
$loginFailedCallback)
|
|
Register a callback function to be called on failed user login.
The function will receive two parameters, the username and a reference to the auth object.
Parameters:
setIdle [line 587]
void setIdle(
integer
$time, [bool
$add = false])
|
|
Set the maximum idle time
Parameters:
setLoginCallback [line 673]
void setLoginCallback(
string
$loginCallback)
|
|
Register a callback function to be called on user login.
The function will receive two parameters, the username and a reference to the auth object.
Parameters:
setLogoutCallback [line 706]
void setLogoutCallback(
string
$logoutCallback)
|
|
Register a callback function to be called on user logout.
The function will receive three parameters, the username and a reference to the auth object.
Parameters:
setSessionName [line 608]
void setSessionName(
[string
$name = 'session'])
|
|
Set name of the session to a customized value.
If you are using multiple instances of PEAR::Auth on the same domain, you can change the name of session per application via this function. This will chnage the name of the session variable auth uses to store it's data in the session
Parameters:
setShowLogin [line 624]
void setShowLogin(
[bool
$showLogin = true])
|
|
Should the login form be displayed if neccessary?
Parameters:
start [line 476]
staticCheckAuth [line 967]
boolean staticCheckAuth(
[
$options = null])
|
|
Statically checks if there is a session with valid auth information.
Parameters: