getLoginUserType

API Quick reference
Variable name: getLoginUserType
CMS versions: 0.9.x + Evo
Input parameters:
Return if successful: Logged in user type
Return type: int
Return on failure: null
Object parent:

API:getLoginUserType

Description / Usage

integer getLoginUserType( );

Returns current login user type - web or admin.

Examples

$usrType = getLoginUserType();
if($usrType == "web"){
$output = "Welcome web user";
}

Suggest an edit to this page.