isAdmin

(/rs/public/functions.access.php)

isAdmin -- Check for administrator access.

Description

int isAdmin ()

This function checks if the user currently logged in has administration priviledges on the site. It will return an integer greater than 0 if the user is an adminstrator, and will return 0 if the user is not an administrator.

This function returns 0 on faulure.

Examples

isAdmin () /* Returns > 0 if user is an admin, otherwise 0. */

Related Functions

None.

Dependencies

None.

Function Index