Documentation
IPS_IsUnknown
bool IPS_IsUnknown ()
Returns
If the current user is @unknown, TRUE is returned, otherwise FALSE.
Description
The function checks whether the current execution runs without a logged in user, i.e. whether IPS_GetLoggedInUser returns the special user @unknown. This is the case if no user is logged in in the triggering context or no login succeeded. The @unknown user has no permissions at all and is not an administrator.
The function does not require the RBAC feature in the license.
Example
if (IPS_IsUnknown()) {
echo 'No user logged in';
} else {
echo 'Logged in as ' . IPS_GetLoggedInUser();
}