diff --git a/lam/lib/account.inc b/lam/lib/account.inc
index b60f127a..8da43a09 100644
--- a/lam/lib/account.inc
+++ b/lam/lib/account.inc
@@ -1393,7 +1393,7 @@ function modifyhost($values,$values_old) { // Will modify the LDAP-Account
if ($values->general_gecos != $values_old->general_gecos) $attr['displayName'] = $values->general_gecos; // sambaAccount_may
if ($values->smb_pwdcanchange != $values_old->smb_pwdcanchange) $attr['sambaPwdCanChange'] = $values->smb_pwdcanchange; // sambaAccount_may
if ($values->smb_pwdmustchange != $values_old->smb_pwdmustchange) $attr['sambaPwdMustChange'] = $values->smb_pwdmustchange; // sambaAccount_may
- $attr['acctFlags'] = smbflag($values); // sambaAccount_may
+ $attr['sambaAcctFlags'] = smbflag($values); // sambaAccount_may
if (($values->smb_domain!='') && ($values->smb_domain!=$values_old->smb_domain)) $attr['sambaDomainName'] = $values->smb_domain; // sambaAccount_may
if (($values->smb_domain=='') && ($values->smb_domain!=$values_old->smb_domain)) $attr_rem['sambaDomainName'] = $values_old->smb_domain; // sambaAccount_may
}
diff --git a/lam/templates/account.php b/lam/templates/account.php
index adca7ff2..a321db8b 100644
--- a/lam/templates/account.php
+++ b/lam/templates/account.php
@@ -309,15 +309,15 @@ if ($_POST['save']) $select_local='save';
if ($select_local != 'pdf') {
// Write HTML-Header and part of Table
- echo "\n";
+ echo "\n";
echo "
";
echo _("Create new Account");
- echo " \n
- \n
- \n
- \n
- ";
+ echo "\n".
+ " \n".
+ " \n".
+ " \n".
+ " ";
}
switch ($select_local) {
@@ -335,6 +335,7 @@ switch ($select_local) {
echo " \n";
break;
case 'group' :
+
if (session_is_registered("type2")) session_unregister("type2");
echo " \n";
break;
@@ -414,28 +415,28 @@ switch ($select_local) { // Select which part of page will be loaded
echo '';
echo _('Username*');
echo " \n".
- '
-
- '._('Help').'
- '."\n".'';
+ ' '.
+ ' '.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('UID Number');
- echo ' '."\n".'
-
- '."\n".'
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".''.
+ ' '.
+ ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Surname*');
- echo ' '."\n".'
-
-
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".''.
+ ' '.
+ ' '.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Given name*');
- echo ' '."\n".'
-
- '."\n".'
- '._('Help').'
- '."\n".' '."\n".'';
+ echo ' '."\n".''.
+ ' '.
+ ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".' '."\n".'';
echo _('Primary Group*');
echo ' '."\n".'';
// loop trough existing groups
@@ -443,9 +444,9 @@ switch ($select_local) { // Select which part of page will be loaded
if ($_SESSION['account']->general_group == $group) echo '' . $group. ' ';
else echo '' . $group. ' ';
}
- echo '
- '._('Help').'
- '."\n".'';
+ echo ' '.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Additional Groupmembership');
echo ' '."\n".'';
// loop though existing groups for additional groups
@@ -456,28 +457,28 @@ switch ($select_local) { // Select which part of page will be loaded
}
else echo ''.$group. ' ';
}
- echo ' '."\n".'
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Home Directory*');
- echo ' '."\n".'
- '."\n".'
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".' '.
+ ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Gecos');
- echo ' '."\n".'
- '."\n".'
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".' '.
+ ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Login Shell*');
echo ' '."\n".'';
// loop through shells
foreach ($_SESSION['shelllist'] as $shell)
if ($_SESSION['account']->general_shell==trim($shell)) echo ''.$shell. ' ';
else echo ''.$shell. ' ';
- echo ' '."\n".'
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Suffix'); echo ' ';
foreach ($_SESSION['ldap']->search_units($_SESSION['config']->get_UserSuffix()) as $suffix) {
if ($_SESSION['account']->general_dn) {
@@ -487,15 +488,15 @@ switch ($select_local) { // Select which part of page will be loaded
}
else echo '' . $suffix. ' ';
}
- echo ' '._('Help').'
- ';
+ echo ' '._('Help').' '.
+ '';
echo _('Values with * are required');
echo ' ';
// loop through profiles
foreach ($profilelist as $profile) echo '' . $profile. ' ';
- echo '
-
- '."\n".'';
+ echo ''.
+ ' '.
+ ' '."\n".'';
break;
case 'group':
// load list of profiles
@@ -503,22 +504,22 @@ switch ($select_local) { // Select which part of page will be loaded
// Create HTML-page
echo ' ';
echo _('Groupname*');
- echo ' '."\n".'
-
-
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".''.
+ ' '.
+ ' '.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('GID Number');
- echo ' '."\n".'
-
- '."\n".'
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".''.
+ ' '.
+ ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Gecos');
- echo ' '."\n".'
- '."\n".'
- '._('Help').'
- ';
+ echo ' '."\n".' '.
+ ' '."\n".''.
+ ''._('Help').' '.
+ ' ';
echo _('Suffix'); echo ' ';
foreach ($_SESSION['ldap']->search_units($_SESSION['config']->get_GroupSuffix()) as $suffix) {
if ($_SESSION['account']->general_dn) {
@@ -528,14 +529,14 @@ switch ($select_local) { // Select which part of page will be loaded
}
else echo '' . $suffix. ' ';
}
- echo ' '._('Help').'
- ';
+ echo ' '._('Help').' '.
+ '';
echo _('Values with * are required');
echo ' '."\n".'';
foreach ($profilelist as $profile) echo '' . $profile. ' ';
- echo '
-
- '."\n".'';
+ echo ''.
+ ' '.
+ ' '."\n".'';
break;
case 'host':
// load list of profiles
@@ -543,26 +544,26 @@ switch ($select_local) { // Select which part of page will be loaded
// Create HTML-page
echo ' ';
echo _('Hostname*');
- echo ' '."\n".'
-
-
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".''.
+ ' '.
+ ' '.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('UID Number');
- echo ' '."\n".'
-
- '."\n".'
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".''.
+ ' '.
+ ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Primary Group*');
echo ' '."\n".'';
foreach ($groups as $group) {
if ($_SESSION['account']->general_group == $group) echo '' . $group. ' ';
else echo '' . $group. ' ';
}
- echo '
- '._('Help').'
- '."\n".'';
+ echo ' '.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Additional Groupmembership');
echo ' '."\n".'';
foreach ($groups as $group) {
@@ -572,14 +573,14 @@ switch ($select_local) { // Select which part of page will be loaded
}
else echo ''.$group. ' ';
}
- echo ' '."\n".'
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Gecos');
- echo '
- '."\n".'
- '._('Help').'
- ';
+ echo ' '.
+ ' '."\n".''.
+ ''._('Help').' '.
+ ' ';
echo _('Suffix'); echo ' ';
foreach ($_SESSION['ldap']->search_units($_SESSION['config']->get_HostSuffix()) as $suffix) {
if ($_SESSION['account']->general_dn) {
@@ -589,19 +590,19 @@ switch ($select_local) { // Select which part of page will be loaded
}
else echo '' . $suffix. ' ';
}
- echo ' '._('Help').'
- ';
+ echo ' '._('Help').' '.
+ '';
echo _('Values with * are required');
echo ' '."\n".'';
foreach ($profilelist as $profile) echo '' . $profile. ' ';
- echo '
-
- '."\n".'';
+ echo ''.
+ ' '.
+ ' '."\n".'';
break;
}
- echo ' '."\n".'
-
- '."\n";
+ echo ''."\n".''.
+ ' '.
+ ' '."\n";
break;
case 'unix':
// Unix Password Settings
@@ -620,38 +621,37 @@ switch ($select_local) { // Select which part of page will be loaded
case 'user' :
echo '';
echo _('Password');
- echo ' '."\n".'
-
- '."\n".'
-
- ';
+ echo ' '."\n".''.
+ ' '.
+ ' '."\n".''.
+ ' ';
echo _('Use no Password.');
echo ' '."\n".' unix_password_no) echo ' checked ';
- echo '> '."\n".'
- '._('Help').'
- '."\n".'';
+ echo '> '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Password Warn');
- echo ' '."\n".'
- '."\n".'
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".' '.
+ ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Password Expire');
- echo ' '."\n".'
- '."\n".'
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".' '.
+ ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Maximum Passwordage');
- echo ' '."\n".'
- '."\n".'
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".' '.
+ ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Minimum Passwordage');
- echo ' '."\n".'
- '."\n".'
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".' '.
+ ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Expire Date');
echo ' '."\n".'';
for ( $i=1; $i<=31; $i++ ) {
@@ -668,15 +668,15 @@ switch ($select_local) { // Select which part of page will be loaded
if ($date['year']==$i) echo " $i". ' ';
else echo " $i". ' ';
}
- echo ' '."\n".'
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Account deactivated');
echo ' '."\n".' unix_deactivated) echo ' checked ';
- echo '> '."\n".'
- '._('Help').'
- ';
+ echo '> '."\n".''.
+ ''._('Help').' '.
+ ' ';
echo _('Values with * are required');
echo ' '."\n".'';
break;
@@ -694,11 +694,11 @@ switch ($select_local) { // Select which part of page will be loaded
echo ' ';
break;
}
- echo '
-
- '."\n".' '."\n".'
-
- '."\n";
+ echo ''.
+ ' '.
+ ' '."\n".' '."\n".''.
+ ' '.
+ ' '."\n";
break;
case 'samba':
// Samba Settings
@@ -718,15 +718,15 @@ switch ($select_local) { // Select which part of page will be loaded
$mustchangedate = getdate($_SESSION['account']->smb_pwdmustchange);
$_SESSION['account']->smb_flagsW = 0;
echo '';
- echo '
-
-
-
-
- ';
+ echo ' '.
+ ' '.
+ ' '.
+ ' '.
+ ' '.
+ ' ';
echo _('Samba Password');
- echo ' '."\n".'
- '."\n".' '."\n".' '.
+ ' '."\n".' smb_useunixpwd) echo ' checked ';
echo '>';
echo _('Use Unix-Password');
@@ -734,15 +734,15 @@ switch ($select_local) { // Select which part of page will be loaded
echo _('Use no Password.');
echo ' '."\n".' smb_password_no) echo ' checked ';
- echo '> '."\n".'
- '._('Help').'
- '."\n".'';
+ echo '> '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Password doesn\'t expire.');
echo ' '."\n".' smb_flagsX) echo ' checked ';
- echo '> '."\n".'
- '._('Help').'
- '."\n".'';
+ echo '> '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('User can change Password');
echo ' '."\n".'';
for ( $i=1; $i<=31; $i++ ) {
@@ -760,8 +760,8 @@ switch ($select_local) { // Select which part of page will be loaded
else echo " $i". ' ';
}
echo ' '."\n".'';
- echo ''._('Help').'
- '."\n".'';
+ echo ''._('Help').' '.
+ ' '."\n".'';
echo _('User must change Password');
echo ' '."\n".'';
for ( $i=1; $i<=31; $i++ ) {
@@ -779,46 +779,46 @@ switch ($select_local) { // Select which part of page will be loaded
else echo " $i". ' ';
}
echo ' '."\n".'';
- echo ''._('Help').'
- '."\n".'';
+ echo ''._('Help').' '.
+ ' '."\n".'';
echo _('Accout is deactivated');
echo ' '."\n".' smb_flagsD) echo ' checked ';
- echo '> '."\n".'
- '._('Help').'
- '."\n".'';
+ echo '> '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Home Drive');
echo ' '."\n".'';
for ($i=68; $i<91; $i++)
if ($_SESSION['account']->smb_homedrive== chr($i).':') echo ' '.chr($i).': '; else echo ' '.chr($i).': ';
- echo ' '."\n".'
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Script Path');
- echo ' '."\n".'
- '."\n".'
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".' '.
+ ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Profile Path');
- echo ' '."\n".'
- '."\n".'
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".' '.
+ ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('User Workstations');
- echo ' '."\n".'
- '."\n".'
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".' '.
+ ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('smb Home');
- echo ' '."\n".'
- '."\n".'
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".' '.
+ ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Domain');
- echo ' '."\n".'
- '."\n".'
- '._('Help').'
- '."\n";
+ echo ''."\n".' '.
+ ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n";
break;
case 'group':
echo '';
@@ -851,15 +851,15 @@ switch ($select_local) { // Select which part of page will be loaded
echo _('Domain Admins');
echo "\n";
}
- echo ' '."\n".'
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".''.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Windows Groupname');
- echo '
-
-
- '._('Help').'
- '."\n";
+ echo ''.
+ ' '.
+ ' '.
+ ''._('Help').' '.
+ ' '."\n";
break;
case 'host':
// set smb_flgasW true because account is host
@@ -868,9 +868,9 @@ switch ($select_local) { // Select which part of page will be loaded
echo _('Password doesn\'t expire.');
echo ''."\n".' smb_flagsX) echo ' checked ';
- echo '>
- '._('Help').'
- '."\n".'';
+ echo '> '.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Host can change Password');
echo ' '."\n".'';
for ( $i=1; $i<=31; $i++ ) {
@@ -888,8 +888,8 @@ switch ($select_local) { // Select which part of page will be loaded
else echo " $i". ' ';
}
echo ' '."\n".'';
- echo ''._('Help').'
- '."\n".'';
+ echo ''._('Help').' '.
+ ' '."\n".'';
echo _('Host must change Password');
echo ' '."\n".'';
for ( $i=1; $i<=31; $i++ ) {
@@ -907,20 +907,20 @@ switch ($select_local) { // Select which part of page will be loaded
else echo " $i". ' ';
}
echo ' '."\n".'';
- echo ''._('Help').'
- '."\n".'';
+ echo ''._('Help').' '.
+ ' '."\n".'';
echo _('Accout is deactivated');
echo ' '."\n".' smb_flagsD) echo ' checked ';
- echo '>
- '._('Help').'
- '."\n".'';
+ echo '> '.
+ ''._('Help').' '.
+ ' '."\n".'';
echo ' '."\n".'';
echo _('Domain');
- echo ' '."\n".'
-
- '._('Help').'
- '."\n";
+ echo ''."\n".' '.
+ ''.
+ ''._('Help').' '.
+ ' '."\n";
break;
}
echo ' '; echo _('hard block limit'); echo ' '."\n".''; echo _('grace block period');
echo ' '."\n".''; echo _('used inodes'); echo ' '."\n".''; echo _('soft inode limit'); echo ' '."\n".'';
echo _('hard inode limit'); echo ' '."\n".''; echo _('grace inode period'); echo ' '."\n";
- echo ''._('Help').' '."\n".''._('Help').' '."\n".'
- '._('Help').' '."\n".''._('Help').' '."\n".'
- '._('Help').' '."\n".''._('Help').' '."\n".'
- '._('Help').' '."\n".''._('Help').' '."\n".'
- '._('Help').' '."\n";
+ echo ''._('Help').' '."\n".''._('Help').' '."\n".''.
+ ''._('Help').' '."\n".''._('Help').' '."\n".''.
+ ''._('Help').' '."\n".''._('Help').' '."\n".''.
+ ''._('Help').' '."\n".''._('Help').' '."\n".''.
+ ''._('Help').' '."\n";
$i=0;
while ($_SESSION['account']->quota[$i][0]) {
echo ''.$_SESSION['account']->quota[$i][0].' '.$_SESSION['account']->quota[$i][1].' '; // used blocks
@@ -952,11 +952,11 @@ switch ($select_local) { // Select which part of page will be loaded
echo ''.$_SESSION['account']->quota[$i][8].' '; // inodes grace period
$i++;
}
- echo '
-
-
-
- '."\n";
+ echo ''.
+ ' '.
+ ' '.
+ ' '.
+ ' '."\n";
break;
case 'personal':
// Personal Settings
@@ -964,63 +964,63 @@ switch ($select_local) { // Select which part of page will be loaded
echo _('Personal Properties');
echo ''."\n".'';
echo _('Title');
- echo ' '."\n".'
- ';
- echo $_SESSION['account']->general_surname . ' ' . $_SESSION['account']->general_givenname . '
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".''.
+ ' ';
+ echo $_SESSION['account']->general_surname . ' ' . $_SESSION['account']->general_givenname . ' '.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Employee Type');
- echo ' '."\n".'
-
-
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".''.
+ ' '.
+ ' '.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Street');
- echo ' '."\n".'
-
-
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".''.
+ ' '.
+ ' '.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Postal code');
- echo ' '."\n".'
-
-
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".''.
+ ' '.
+ ' '.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Postal address');
- echo ' '."\n".'
-
-
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".''.
+ ' '.
+ ' '.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Telephone Number');
- echo ' '."\n".'
-
-
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".''.
+ ' '.
+ ' '.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Mobile Phonenumber');
- echo ' '."\n".'
-
-
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".''.
+ ' '.
+ ' '.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('Facsimile Number');
- echo ' '."\n".'
-
-
- '._('Help').'
- '."\n".'';
+ echo ' '."\n".''.
+ ' '.
+ ' '.
+ ''._('Help').' '.
+ ' '."\n".'';
echo _('eMail Address');
- echo ' '."\n".'
-
-
- '._('Help').'
- '."\n".'
-
- '."\n".'
-
- '."\n";
+ echo ''."\n".''.
+ ' '.
+ ' '.
+ ''._('Help').' '.
+ ' '."\n".''.
+ ' '.
+ ' '."\n".''.
+ ' '.
+ ' '."\n";
break;
case 'final':
// Final Settings
@@ -1066,19 +1066,19 @@ switch ($select_local) { // Select which part of page will be loaded
}
break;
}
- echo '
-
- '."\n".'
- '."\n".'
- '.
+ ' '."\n".''.
+ ' '."\n".' '.
+ ''._('Help').'
- '."\n".'
- '._('Help').' '.
+ ' '."\n".''.
+ '
- '."\n";
+ echo '">'.
+ ''."\n";
break;
case 'finish':
// Final Settings
@@ -1094,11 +1094,11 @@ switch ($select_local) { // Select which part of page will be loaded
else echo _(' has been created. ');
if (!$_SESSION['account_old'])
{ echo ' '; }
- echo ''."\n".'
-
- '."\n".'
-
- '."\n";
+ echo ''."\n".''.
+ ' '.
+ ' '."\n".''.
+ ' '.
+ ' '."\n";
break;
case 'group' :
echo '';
@@ -1109,9 +1109,9 @@ switch ($select_local) { // Select which part of page will be loaded
echo ' '."\n".'';
if (!$_SESSION['account_old'])
{ echo' '; }
- echo '
-
- '."\n";
+ echo ''.
+ ' '.
+ ' '."\n";
break;
case 'host' :
echo '';
@@ -1122,9 +1122,9 @@ switch ($select_local) { // Select which part of page will be loaded
echo ' '."\n".'';
if (!$_SESSION['account_old'])
{ echo ' '; }
- echo ' '."\n".'
-
- '."\n";
+ echo ''."\n".' '.
+ ' '.
+ ' '."\n";
break;
}
break;
diff --git a/lam/templates/delete.php b/lam/templates/delete.php
index c02726ab..1658df52 100644
--- a/lam/templates/delete.php
+++ b/lam/templates/delete.php
@@ -28,20 +28,20 @@ include_once('../lib/config.inc');
session_save_path('../sess');
@session_start();
-echo ''."\n";
+echo ''."\n";
echo '';
echo _('Delete Account');
-echo ' '."\n".'
- '."\n".'
- '."\n".'
- '."\n".'
- '."\n".'
- '."\n".'
- '."\n".'
-