'.$row.' '.
$_SESSION['accounts'][$row]->general_surname.' '.
$_SESSION['accounts'][$row]->general_givenname.' '.
$_SESSION['accounts'][$row]->general_username.' '.
$_SESSION['accounts'][$row]->general_group.' '.
$_SESSION['accounts'][$row]->personal_title.' '.
$_SESSION['accounts'][$row]->personal_mail.' '.
$_SESSION['accounts'][$row]->personal_telephoneNumber.' '.
$_SESSION['accounts'][$row]->personal_mobileTelephoneNumber.' '.
$_SESSION['accounts'][$row]->personal_facsimileTelephoneNumber.' '.
$_SESSION['accounts'][$row]->personal_street.' '.
$_SESSION['accounts'][$row]->personal_postalCode.' '.
$_SESSION['accounts'][$row]->personal_postalAddress.' '.
$_SESSION['accounts'][$row]->personal_employeeType.' ';
}
echo ' ';
echo ' ';
echo ' ';
break;
case 'cancel':
if ( session_is_registered("accounts")) session_unregister("accounts");
echo ' ';
break;
case 'create':
$row=0;
$stay=true;
while (($row < sizeof($_SESSION['accounts'])) && $stay) {
if (getgid($_SESSION['accounts'][$row]->general_group)==-1) {
$group = new account();
$group->general_username=$_SESSION['accounts'][$row]->general_group;
$group->general_uidNumber=checkid($_SESSION['accounts'][$row], 'group');
$group->general_gecos=$_SESSION['accounts'][$row]->general_group;
creategroup($group);
}
$error = createuser($_SESSION['accounts'][$row]);
if ($error==1) $row++;
else {
$stay = false;
StatusMessage('ERROR', _('Could not create user'), _('Was unable to create ').$_SESSION['accounts'][$row]->general_username);
}
}
if (!$stay) { echo ' '; }
else {
echo '';
echo _('All Users have been created');
echo ' ';
echo ' ';
echo ' ';
}
break;
}
echo '';
?>