auth
public class auth
| Field Summary | |
|---|---|
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| Method Summary | |
|---|---|
| void | acl(mixed userdata) Init permissions |
| void | acl_cache(mixed userdata) Cache data to user_permissions row |
| void | acl_clear_prefetch(bool user_id) Clear one or all users cached permission settings |
| void | acl_get(mixed opt, int f) Look up an option if the option is prefixed with !, then the result becomes negatedIf a forum id is specified the local option will be combined with a global option if one exist. |
| void | acl_get_list(bool user_id, bool opts, bool forum_id) Get permission listing based on user_id/options/forum_ids |
| void | acl_getf(mixed opt, bool clean) Get forums with the specified permission setting if the option is prefixed with !, then the result becomes nagated |
| void | acl_getf_global(mixed opt) Get local permission state for any forum. |
| void | acl_gets() Get permission settings (more than one) |
| void | acl_group_raw_data(bool group_id, bool opts, bool forum_id) Get raw group based permission settings |
| void | acl_raw_data(bool user_id, bool opts, bool forum_id) Get raw acl data based on user/option/forum |
| void | acl_raw_data_single_user(mixed user_id) Get raw acl data based on user for caching user_permissions This function returns the same data as acl_raw_data(), but without the user id as the first key within the array. |
| void | acl_role_data(mixed user_type, mixed role_type, bool ug_id, bool forum_id) Get assigned roles |
| void | acl_user_raw_data(bool user_id, bool opts, bool forum_id) Get raw user based permission settings |
| void | build_auth_option_statement(mixed key, mixed auth_options, mixed sql_opts) Fill auth_option statement for later querying based on the supplied options |
| void | build_bitstring(mixed hold_ary) Build bitstring from permission set |
| void | login(mixed username, mixed password, bool autologin, int viewonline, int admin) Authentication plug-ins is largely down to Sergey Kanareykin, our thanks to him. |
public mixed $acl = array()
public mixed $acl_forum_ids = false
public mixed $acl_options = array()
public mixed $cache = array()
public void acl(mixed userdata)
Init permissions
public void acl_cache(mixed userdata)
Cache data to user_permissions row
public void acl_clear_prefetch(bool user_id)
Clear one or all users cached permission settings
public void acl_get(mixed opt, int f)
Look up an option if the option is prefixed with !, then the result becomes negated
If a forum id is specified the local option will be combined with a global option if one exist. If a forum id is not specified, only the global option will be checked.
public void acl_get_list(bool user_id, bool opts, bool forum_id)
Get permission listing based on user_id/options/forum_ids
public void acl_getf(mixed opt, bool clean)
Get forums with the specified permission setting if the option is prefixed with !, then the result becomes nagated
public void acl_getf_global(mixed opt)
Get local permission state for any forum.
Returns true if user has the permission in one or more forums, false if in no forum. If global option is checked it returns the global state (same as acl_get($opt)) Local option has precedence...
public void acl_gets()
Get permission settings (more than one)
public void acl_group_raw_data(bool group_id, bool opts, bool forum_id)
Get raw group based permission settings
public void acl_raw_data(bool user_id, bool opts, bool forum_id)
Get raw acl data based on user/option/forum
public void acl_raw_data_single_user(mixed user_id)
Get raw acl data based on user for caching user_permissions This function returns the same data as acl_raw_data(), but without the user id as the first key within the array.
public void acl_role_data(mixed user_type, mixed role_type, bool ug_id, bool forum_id)
Get assigned roles
public void acl_user_raw_data(bool user_id, bool opts, bool forum_id)
Get raw user based permission settings
public void build_auth_option_statement(mixed key, mixed auth_options, mixed sql_opts)
Fill auth_option statement for later querying based on the supplied options
public void build_bitstring(mixed hold_ary)
Build bitstring from permission set
public void login(mixed username, mixed password, bool autologin, int viewonline, int admin)
Authentication plug-ins is largely down to Sergey Kanareykin, our thanks to him.
Permission/Auth class