$advancedsecurity = false
[line 243]
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 159]
Is Login Allowed from this page
$authChecks = 0
[line 293]
How many times has checkAuth been called
$authdata =
[line 287]
A hash to hold various superglobals as reference
$checkAuthCallback = ''
[line 188]
checkAuth callback function name
$cookie =
[line 281]
Holds a reference to the global cookie variable
$enableLogging = false
[line 307]
Whether to enable logging of behaviour
$expire = 0
[line 100]
Auth lifetime in seconds
If this variable is set to 0, auth never expires
$expired = false
[line 108]
Has the auth session expired?
$idle = 0
[line 120]
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 128]
Is the maximum idletime over?
$logger = null
[line 300]
PEAR::Log object
$loginCallback = ''
[line 196]
Login callback function name
$loginFailedCallback = ''
[line 204]
Failed Login callback function name
$loginFunction = ''
[line 143]
User-defined function that creates the login screen
$logoutCallback = ''
[line 212]
Logout callback function name
$password = ''
[line 180]
Password
$post =
[line 275]
Holds a reference to the global post variable
$regenerateSessionId = false
[line 314]
Whether to regenerate session id everytime start is called
$server =
[line 269]
Holds a reference to the global server variable
$session =
[line 263]
Holds a reference to the session auth variable
$showLogin = true
[line 151]
Should the login form be displayed
$status = ''
[line 166]
Current authentication status
$storage = ''
[line 136]
Storage object
$username = ''
[line 173]
Username
$version = "@version@"
[line 226]
Package Version
Auth (Constructor) [line 333]
void Auth(
string
$storageDriver, [mixed
$options = ''], [string
$loginFunction = ''], [boolean
$showLogin = true])
|
|
Constructor
Set up the storage driver.
Parameters:
addUser [line 1209]
mixed addUser(
string
$username, string
$password, [mixed
$additional = ''])
|
|
Add user to the storage container
Parameters:
attachLogObserver [line 1311]
boolean attachLogObserver(
object Log_Observer
&$observer)
|
|
Attach an Observer to the Auth Log Source
Parameters:
changePassword [line 1246]
mixed changePassword(
string
$username, string
$password)
|
|
Change password for user in the storage container
Parameters:
checkAuth [line 895]
Checks if there is a session with valid auth information.
getAuth [line 1052]
Has the user been authenticated?
Is there a valid login session. Previously this was different from checkAuth() but now it is just an alias.
getAuthData [line 796]
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 1154]
string getPostPasswordField(
)
|
|
Gets the post varible used for the username
getPostUsernameField [line 1140]
string getPostUsernameField(
)
|
|
Gets the post varible used for the username
getStatus [line 1126]
getUsername [line 1109]
listUsers [line 1189]
List all users that are currently available in the storage container
log [line 1264]
boolean log(
string
$message, [string
$level = AUTH_LOG_DEBUG])
|
|
Log a message from the Auth system
Parameters:
logout [line 1071]
Logout function
This function clears any auth tokens in the currently active session and executes the logout callback function, if any
removeUser [line 1227]
mixed removeUser(
string
$username)
|
|
Remove user from the storage container
Parameters:
sessionValidThru [line 1168]
integer sessionValidThru(
)
|
|
Returns the time up to the session is valid
setAdvancedSecurity [line 881]
void setAdvancedSecurity(
[bool
$flag = true])
|
|
Enables advanced security checks
Currently only ip change and useragent change are detected
Parameters:
setAllowLogin [line 689]
void setAllowLogin(
[bool
$allowLogin = true])
|
|
Is Login Allowed from this page?
Parameters:
setAuth [line 821]
void setAuth(
string
$username)
|
|
Register variable in a session telling that the user has logged in successfully
Parameters:
setAuthData [line 775]
void setAuthData(
string
$name, mixed
$value, [boolean
$overwrite = true])
|
|
Register additional information that is to be stored in the session.
Parameters:
setCheckAuthCallback [line 706]
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 617]
void setExpire(
integer
$time, [bool
$add = false])
|
|
Set the maximum expire time
Parameters:
setFailedLoginCallback [line 739]
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 633]
void setIdle(
integer
$time, [bool
$add = false])
|
|
Set the maximum idle time
Parameters:
setLoginCallback [line 723]
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 756]
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 654]
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 674]
void setShowLogin(
[bool
$showLogin = true])
|
|
Should the login form be displayed if necessary?
Parameters:
start [line 516]
staticCheckAuth [line 1030]
boolean staticCheckAuth(
[
$options = null])
|
|
Statically checks if there is a session with valid auth information.
Parameters: