Determines if the current user is anonymous.
bool TRUE if the user is anonymous, FALSE if the user is authenticated.
function user_is_anonymous() {
// Menu administrators can see items for anonymous when administering.
return !$GLOBALS['user']->uid || !empty($GLOBALS['menu_admin']);
}