From a421bb8e3044fb2b969ebc4b207d4715620086c6 Mon Sep 17 00:00:00 2001 From: katagia Date: Fri, 19 Sep 2003 12:21:57 +0000 Subject: [PATCH] quota fix 4 users --- lam/lib/account.inc | 1 + lam/templates/account/useredit.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 55bd3721..86003f04 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -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 diff --git a/lam/templates/account/useredit.php b/lam/templates/account/useredit.php index ddcfd752..4be28490 100644 --- a/lam/templates/account/useredit.php +++ b/lam/templates/account/useredit.php @@ -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; + } }