Jeff PHP framework
0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
|
Class used to check user login/logout actions. More...
Static Public Member Functions | |
static | check () |
Cheks for user login/logout actions. | |
static | checkUser ($user) |
Checks if user may access the system (main or admin area) |
Class used to check user login/logout actions.
Definition at line 21 of file authentication.class.php.
static authentication::check | ( | ) | [static] |
Cheks for user login/logout actions.
If the user is logging in checks its credentials. Exits with error if the authentication fails, sets the userid session variable and redirects the user if it has success.
If the user is logging out destroies the session and redirects to the home page.
If the user is already logged in is associated with the property 'user' of the register singleton instance, otherwise that property is associated with a user of type 'free user' with id equal to 0
Definition at line 34 of file authentication.class.php.
static authentication::checkUser | ( | $ | user | ) | [static] |
Checks if user may access the system (main or admin area)
user | $user | public |
Definition at line 87 of file authentication.class.php.