quota fix 4 users

This commit is contained in:
katagia 2003-09-19 12:21:57 +00:00
parent e14de2e72c
commit a421bb8e30
2 changed files with 6 additions and 0 deletions

View File

@ -840,6 +840,7 @@ function createuser($values) { // Will create the LDAP-Account
$attr['shadowLastChange'] = getdays(); // shadowAccount_may
$attr['loginShell'] = $values->general_shell; // posixAccount_may
$attr['gecos'] = utf8_encode($values->general_gecos); // posixAccount_may
print $attr['gecos'];
$attr['description'] = utf8_encode($values->general_gecos); // posixAccount_may sambaAccount_may
$attr['displayName'] = utf8_encode($values->smb_displayName); // sambaAccount_may

View File

@ -66,6 +66,11 @@ else if (count($_POST)==0) { // Startcondition. useredit.php was called from out
$_SESSION['account']->smb_flagsW = 0;
if (isset($_SESSION['account_old'])) unset($_SESSION['account_old']);
$_SESSION['account_old'] = false;
$values = getquotas('user');
if (is_object($values)) {
while (list($key, $val) = each($values)) // Set only defined values
if (isset($val)) $_SESSION['account']->$key = $val;
}
}