$usergroups = '';
if (sizeof($groupcache) >= 1)
{
foreach ($groupcache AS $users)
{
ksort($users); // alphabetically sort users
$usergroupbits = '';
foreach ($users AS $user)
{
exec_switch_bg();
$user = process_showgroups_userinfo($user);
if ($user['receivepm'] AND $vbulletin->userinfo['receivepm'] AND $permissions['pmquota'] AND $vbulletin->options['enablepms'])
{
$show['pmlink'] = true;
}
else
{
$show['pmlink'] = false;
}
if ($user['showemail'] AND $vbulletin->options['displayemails'] AND (!$vbulletin->options['secureemail'] OR ($vbulletin->options['secureemail'] AND $vbulletin->options['enableemail'])))
{
$show['emaillink'] = true;
}
else
{
$show['emaillink'] = false;
}