$advancedsecurity = false
[line 223]
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 146]
Is Login Allowed from this page
$authChecks = 0
[line 273]
How many times has checkAuth been called
$authdata =
[line 267]
A hash to hold various superglobals as reference
$checkAuthCallback = ''
[line 175]
checkAuth callback function name
$cookie =
[line 261]
Holds a reference to the global cookie variable
$enableLogging = false
[line 287]
Whether to enable logging of behaviour
$expire = 0
[line 87]
Auth lifetime in seconds
If this variable is set to 0, auth never expires
$expired = false
[line 95]
Has the auth session expired?
$idle = 0
[line 107]
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 115]
Is the maximum idletime over?
$logger = null
[line 280]
PEAR::Log object
$loginCallback = ''
[line 183]
Login callback function name
$loginFailedCallback = ''
[line 191]
Failed Login callback function name
$loginFunction = ''
[line 130]
User-defined function that creates the login screen
$logoutCallback = ''
[line 199]
Logout callback function name
$password = ''
[line 167]
Password
$post =
[line 255]
Holds a reference to the global post variable
$regenerateSessionId = false
[line 294]
Whether to regenerate session id everytime start is called
$server =
[line 249]
Holds a reference to the global server variable
$session =
[line 243]
Holds a reference to the session auth variable
$showLogin = true
[line 138]
Should the login form be displayed
$status = ''
[line 153]
Current authentication status
$storage = ''
[line 123]
Storage object
$username = ''
[line 160]
Username
$version = "@version@"
[line 213]
Package Version
Auth (Constructor) [line 313]
void Auth(
string
$storageDriver, [mixed
$options = ''], [string
$loginFunction = ''], [boolean
$showLogin = true])
|
|
Constructor
Set up the storage driver.
Parameters:
addUser [line 1174]
mixed addUser(
string
$username, string
$password, [mixed
$additional = ''])
|
|
Add user to the storage container
Parameters:
attachLogObserver [line 1276]
boolean attachLogObserver(
object Log_Observer
&$observer)
|
|
Attach an Observer to the Auth Log Source
Parameters:
changePassword [line 1211]
mixed changePassword(
string
$username, string
$password)
|
|
Change password for user in the storage container
Parameters:
checkAuth [line 871]
Checks if there is a session with valid auth information.
getAuth [line 1017]
Has the user been authenticated?
getAuthData [line 772]
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 1119]
string getPostPasswordField(
)
|
|
Gets the post varible used for the username
getPostUsernameField [line 1105]
string getPostUsernameField(
)
|
|
Gets the post varible used for the username
getStatus [line 1091]
getUsername [line 1074]
listUsers [line 1154]
List all users that are currently available in the storage container
log [line 1229]
boolean log(
string
$message, [string
$level = AUTH_LOG_DEBUG])
|
|
Log a message from the Auth system
Parameters:
logout [line 1036]
Logout function
This function clears any auth tokens in the currently active session and executes the logout callback function, if any
removeUser [line 1192]
mixed removeUser(
string
$username)
|
|
Remove user from the storage container
Parameters:
sessionValidThru [line 1133]
integer sessionValidThru(
)
|
|
Returns the time up to the session is valid
setAdvancedSecurity [line 857]
void setAdvancedSecurity(
[bool
$flag = true])
|
|
Enables advanced security checks
Currently only ip change and useragent change are detected
Parameters:
setAllowLogin [line 665]
void setAllowLogin(
[bool
$allowLogin = true])
|
|
Should the login form be displayed if neccessary?
Parameters:
setAuth [line 797]
void setAuth(
string
$username)
|
|
Register variable in a session telling that the user has logged in successfully
Parameters:
setAuthData [line 751]
void setAuthData(
string
$name, mixed
$value, [boolean
$overwrite = true])
|
|
Register additional information that is to be stored in the session.
Parameters:
setCheckAuthCallback [line 682]
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 597]
void setExpire(
integer
$time, [bool
$add = false])
|
|
Set the maximum expire time
Parameters:
setFailedLoginCallback [line 715]
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 613]
void setIdle(
integer
$time, [bool
$add = false])
|
|
Set the maximum idle time
Parameters:
setLoginCallback [line 699]
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 732]
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 634]
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 650]
void setShowLogin(
[bool
$showLogin = true])
|
|
Should the login form be displayed if neccessary?
Parameters:
start [line 496]
staticCheckAuth [line 998]
boolean staticCheckAuth(
[
$options = null])
|
|
Statically checks if there is a session with valid auth information.
Parameters: