User library
Properties
- logged_in (r): Tells if the current visitor is a logged in user or not.
- is_admin (r): Tells if the current user is an administrator or not.
- client_ip (r): Contains the IP address of the current visitor.
Methods
- logout():
Logs out the current user. - access_allowed($page):
Tells if the current visitor has access to $page. - has_role($role):
Tells if the current user has the role $role. - log_action($action):
Logs a string for the current visitor.