Example #1
0
        // remove users 'above' me
        $i = 0;
        while ($i < count($gtree)) {
            if (in_array($gtree[$i]->value, $ex_groups)) {
                array_splice($gtree, $i, 1);
            } else {
                $i++;
            }
        }
        $lists['gid'] = vmCommonHTML::selectList($gtree, 'gid', 'size="10"', 'value', 'text', $row->gid, true);
    }
}
// build the html select list
$lists['block'] = vmCommonHTML::yesnoRadioList('block', 'class="inputbox" size="1"', 'value', 'text', $row->block);
// build the html select list
$lists['sendEmail'] = vmCommonHTML::yesnoRadioList('sendEmail', 'class="inputbox" size="1"', 'value', 'text', $row->sendEmail);
$canBlockUser = $acl->acl_check('administration', 'edit', 'users', $my->usertype, 'user properties', 'block_user');
$canEmailEvents = $acl->acl_check('workflow', 'email_events', 'users', $acl->get_group_name($row->gid, 'ARO'));
// Get the user parameters
if (vmIsJoomla('1.5')) {
    require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_users' . DS . 'users.class.php';
    $user =& JUser::getInstance($user_id);
    $params = $user->getParameters(true);
} elseif (file_exists($mosConfig_absolute_path . '/administrator/components/com_users/users.class.php')) {
    require_once $mosConfig_absolute_path . '/administrator/components/com_users/users.class.php';
    $file = $mainframe->getPath('com_xml', 'com_users');
    $params = new mosUserParameters($row->params, $file, 'component');
}
// Set the last visit date
$lvisit = $row->lastvisitDate;
if ($lvisit == "0000-00-00 00:00:00") {