Security Class
Collection of static methods for handling security within a website running on PICKLES. Requires sessions to be enabled.
Located in /classes/Security.php (line 27)
Between Level
Checks the user's access level against the passed range.
Generate Hash
Generates an SHA1 hash from the provided string. Optionally can be salted.
Has Level
Checks the user's access level against the passed level.
Is Level
Checks the user's access level is exactly the passed level
Login
Creates a session variable containing the user ID and generated token. The token is also assigned to a cookie to be used when validating the security level. When the level value is present, the class will by pass the database look up and simply use that value when validating (the less paranoid scenario).
Logout
Clears out the security information in the session and the cookie.
Documentation generated on Wed, 03 Oct 2012 17:46:06 -0400 by phpDocumentor 1.4.4