security.c
devp
Synopsis
Parameters
mixed user
- The user to check, either as a username string or an object. Defaults to the previous object.
Returns
int
- 1 if the user has developer privileges, otherwise 0.
Description
Checks if a user has developer privileges.
adminp
Synopsis
Parameters
mixed user
- The user to check, either as a username string or an object. Defaults to the previous object.
Returns
int
- 1 if the user has admin privileges, otherwise 0.
Description
Checks if a user has admin privileges.
wizardp
Synopsis
Parameters
mixed user
- The user to check, either as a username string or an object.
Returns
int
- 1 if the user has developer privileges, otherwise 0.
Description
Checks if a user has developer privileges (alias for devp).
is_member
Synopsis
Parameters
string user
- The username to check.string group
- The group to check membership in.
Returns
int
- 1 if the user is a member of the group, otherwise 0.
Description
Checks if a user is a member of a specified group.