diff --git a/lam/templates/account.php b/lam/templates/account.php index 862d5ff1..d1618e24 100644 --- a/lam/templates/account.php +++ b/lam/templates/account.php @@ -31,23 +31,6 @@ include_once('../lib/pdf.inc'); // Return a pdf-file include_once('../lib/ldap.inc'); // LDAP-functions initvars($_GET['type'], $_GET['DN']); // Initialize all needed vars - // returns an array with all organizational units under the given suffix - function search_units($suffix) { - $sr = @ldap_search($_SESSION["ldap"]->server(), $suffix, "objectClass=organizationalunit", array("DN")); - if ($sr) { - $units = ldap_get_entries($_SESSION["ldap"]->server, $sr); - // delete first array entry which is "count" - array_shift($units); - // remove sub arrays - for ($i = 0; $i < sizeof($units); $i++) $units[$i] = $units[$i]['dn']; - // add root suffix if needed - if (!in_array($suffix, $units)) { - array_push($units, $suffix); - } - } - return $units; - } - switch ($_POST['select']) { // Select which part of page should be loaded and check values // general = startpage, general account paramters @@ -444,8 +427,8 @@ switch ($select_local) { // Select which part of page will be loaded echo ''."\n".' '._('Help').' @@ -455,10 +438,10 @@ switch ($select_local) { // Select which part of page will be loaded // loop though existing groups for additional groups foreach ($groups as $group) { if ($_SESSION['account']->general_groupadd) { - if (in_array($group, $_SESSION['account']->general_groupadd)) echo ''; + else echo ''; } - else echo ''; } echo ''."\n".' '._('Help').' @@ -477,25 +460,25 @@ switch ($select_local) { // Select which part of page will be loaded echo ''."\n".''."\n".' '._('Help').' '."\n".''; echo _('Suffix'); echo ''._('Help').' '; echo _('Values with * are required'); echo ' '."\n".''; @@ -523,18 +506,18 @@ switch ($select_local) { // Select which part of page will be loaded '._('Help').' '; echo _('Suffix'); echo ''._('Help').' '; echo _('Values with * are required'); echo ''."\n".' '."\n".''; @@ -559,8 +542,8 @@ switch ($select_local) { // Select which part of page will be loaded echo _('Primary Group*'); echo ''."\n".' '._('Help').' @@ -569,10 +552,10 @@ switch ($select_local) { // Select which part of page will be loaded echo ''."\n".''."\n".' '._('Help').' @@ -583,18 +566,18 @@ switch ($select_local) { // Select which part of page will be loaded '._('Help').' '; echo _('Suffix'); echo ''._('Help').' '; echo _('Values with * are required'); echo ''."\n".' '."\n".''; @@ -655,18 +638,18 @@ switch ($select_local) { // Select which part of page will be loaded echo _('Expire Date'); echo ''."\n".''."\n".' '._('Help').' @@ -755,29 +738,29 @@ switch ($select_local) { // Select which part of page will be loaded '."\n".''; echo _('Home Drive'); echo ''."\n".''."\n".' '._('Help').' '."\n".'';