account.* are now (hopefully) html 4.01 transitional

This commit is contained in:
katagia 2003-08-20 16:16:52 +00:00
parent 732714853f
commit 7108117385
4 changed files with 35 additions and 13 deletions

View File

@ -128,7 +128,7 @@ $helpArray = array (
can cause several problems. If username is allready used username will expanded with a number. The next free number will be used.")), can cause several problems. If username is allready used username will expanded with a number. The next free number will be used.")),
"401" => array ("ext" => "FALSE", "Headline" => _("UID number"), "401" => array ("ext" => "FALSE", "Headline" => _("UID number"),
"Text" => _("If empty UID number will be generated automaticly. Valid values are between").' '.$_SESSION['config']->get_minUID().' '._("and").' '.$_SESSION['config']->get_maxUID()."."), "Text" => _("If empty UID number will be generated automaticly. Valid values are between").' '.$_SESSION['config']->get_minUID().' '._("and").' '.$_SESSION['config']->get_maxUID()."."),
"402" => array ("ext" => "FALSE", "Headline" => _("Additional Groups"), "402" => array ("ext" => "FALSE", "Headline" => _("Additional groups"),
"Text" => _("Hold the CTRL-key to (de)select multiple groups."). ' '. _("Can be left empty.")), "Text" => _("Hold the CTRL-key to (de)select multiple groups."). ' '. _("Can be left empty.")),
"403" => array ("ext" => "FALSE", "Headline" => _("Home directory"), "403" => array ("ext" => "FALSE", "Headline" => _("Home directory"),
"Text" => _("$user and $group are replaced with username or primary groupname.")), "Text" => _("$user and $group are replaced with username or primary groupname.")),
@ -251,7 +251,7 @@ $helpArray = array (
"464" => array ("ext" => "FALSE", "Headline" => _("Windows groupname"), "464" => array ("ext" => "FALSE", "Headline" => _("Windows groupname"),
"Text" => _("If you want to use a well known RID you can selcet a well known group.")), "Text" => _("If you want to use a well known RID you can selcet a well known group.")),
"466" => array ("ext" => "FALSE", "Headline" => _("Unix workstations"), "466" => array ("ext" => "FALSE", "Headline" => _("Unix workstations"),
"Text" => _("Comma separated list of unix workstations the user is allowed to login. Empty means every workstation."). ' '. _("Can be left empty.")), "Text" => _("Comma separated list of unix workstations the user is allowed to login."). ' '. _("Can be left empty.")),
"467" => array ("ext" => "FALSE", "Headline" => _("Domain"), "467" => array ("ext" => "FALSE", "Headline" => _("Domain"),
"Text" => _("Windows-Domain of group."). ' '. _("Can be left empty.")), "Text" => _("Windows-Domain of group."). ' '. _("Can be left empty.")),
// 600 - 699 // 600 - 699

View File

@ -370,9 +370,6 @@ switch ($select_local) {
echo "<meta http-equiv=\"refresh\" content=\"2; URL=lists/listhosts.php\">\n"; echo "<meta http-equiv=\"refresh\" content=\"2; URL=lists/listhosts.php\">\n";
break; break;
} }
if (isset($_SESSION['shelllist'])) unset($_SESSION['shelllist']);
if (isset($_SESSION['account'])) unset($_SESSION['account']);
if (isset($_SESSION['account_old'])) unset($_SESSION['account_old']);
break; break;
case 'load': case 'load':
// load profile // load profile
@ -408,7 +405,6 @@ switch ($select_local) {
break; break;
} }
if ($select_local != 'pdf') { if ($select_local != 'pdf') {
echo "</head><body>\n"; echo "</head><body>\n";
echo "<form action=\"account.php\" method=\"post\">\n"; echo "<form action=\"account.php\" method=\"post\">\n";
@ -894,6 +890,7 @@ switch ($select_local) { // Select which part of page will be loaded
} }
else echo '<option>' . $samba3domains[$i]->name. '</option>'; else echo '<option>' . $samba3domains[$i]->name. '</option>';
} }
echo '</select>';
} }
else { else {
echo '</td>'."\n".'<td><input name="f_smb_domain" type="text" size="20" maxlength="80" value="' . $_SESSION['account']->smb_domain . '">'; echo '</td>'."\n".'<td><input name="f_smb_domain" type="text" size="20" maxlength="80" value="' . $_SESSION['account']->smb_domain . '">';
@ -954,16 +951,16 @@ switch ($select_local) { // Select which part of page will be loaded
} }
else echo '<option>' . $samba3domains[$i]->name. '</option>'; else echo '<option>' . $samba3domains[$i]->name. '</option>';
} }
echo '</td>'."\n".'<td><a href="help.php?HelpNumber=467" target="lamhelp">'._('Help').'</a></td></tr>'."\n"; echo '</select></td>'."\n".'<td><a href="help.php?HelpNumber=467" target="lamhelp">'._('Help').'</a></td></tr>'."\n";
break; break;
case 'host': case 'host':
// set smb_flgasW true because account is host // set smb_flgasW true because account is host
echo '<tr><td>';
$_SESSION['account']->smb_flagsW = 1; $_SESSION['account']->smb_flagsW = 1;
if ($_SESSION['account']->smb_password_no) echo '<input name="f_smb_password_no" type="hidden" value="1l">'; if ($_SESSION['account']->smb_password_no) echo '<input name="f_smb_password_no" type="hidden" value="1l">';
echo '<input name="f_unix_password_no" type="hidden" value="'; echo '<input name="f_unix_password_no" type="hidden" value="';
if ($_SESSION['account']->unix_password_no) echo 'checked'; if ($_SESSION['account']->unix_password_no) echo 'checked';
echo '">'; echo '">';
echo '<tr><td>';
echo _('Password'); echo _('Password');
echo '</td><td>'; echo '</td><td>';
if ($_SESSION['account_old']) { if ($_SESSION['account_old']) {
@ -989,6 +986,7 @@ switch ($select_local) { // Select which part of page will be loaded
} }
else echo '<option>' . $samba3domains[$i]->name. '</option>'; else echo '<option>' . $samba3domains[$i]->name. '</option>';
} }
echo '</select>';
} }
else { else {
echo '</td>'."\n".'<td><input name="f_smb_domain" type="text" size="20" maxlength="80" value="' . $_SESSION['account']->smb_domain . '">'; echo '</td>'."\n".'<td><input name="f_smb_domain" type="text" size="20" maxlength="80" value="' . $_SESSION['account']->smb_domain . '">';
@ -1271,8 +1269,32 @@ switch ($select_local) { // Select which part of page will be loaded
break; break;
} }
break; break;
case 'backmain':
// unregister sessionvar and select which list should be shown
switch ( $_SESSION['account']->type ) {
case 'user' :
echo '<tr><td><a href="lists/listusers.php">';
echo _('Please press here if meta-refresh didn\'t work.');
echo "</a></td></tr>\n";
break;
case 'group' :
echo '<tr><td><a href="lists/listgroups.php">';
echo _('Please press here if meta-refresh didn\'t work.');
echo "</a></td></tr>\n";
break;
case 'host' :
echo '<tr><td><a href="lists/listhosts.php">';
echo _('Please press here if meta-refresh didn\'t work.');
echo "</a></td></tr>\n";
break;
}
if (isset($_SESSION['shelllist'])) unset($_SESSION['shelllist']);
if (isset($_SESSION['account'])) unset($_SESSION['account']);
if (isset($_SESSION['account_old'])) unset($_SESSION['account_old']);
break;
} }
// Print end of HTML-Page // Print end of HTML-Page
if ($select_local != 'pdf') echo '</table></form></body></html>'; if ($select_local != 'pdf')
echo '</table></form></body></html>';
?> ?>

View File

@ -97,9 +97,9 @@ switch ($select) {
echo '</td></tr><tr><td>'; echo '</td></tr><tr><td>';
echo _('mobileTelephoneNumber,facsimileNumber,street,postalCode,postalAddress,'); echo _('mobileTelephoneNumber,facsimileNumber,street,postalCode,postalAddress,');
echo '</td></tr><tr><td>'; echo '</td></tr><tr><td>';
echo _('employeeType. If PrimaryGroup is not given it\'ll used from profile.'); echo _('employeeType. If Primary group is not given it\'ll used from profile.');
echo '</td></tr><tr><td>'; echo '</td></tr><tr><td>';
echo _('If PrimaryGroup doesn\'t exist it will be created.'); echo _('If PrimaryGroup does not exist it will be created.');
echo '</td></tr><tr><td>'; echo '</td></tr><tr><td>';
echo _('Select Profile:'); echo _('Select Profile:');
echo '</td><td><select name="f_selectprofile">'; echo '</td><td><select name="f_selectprofile">';
@ -294,7 +294,7 @@ switch ($select) {
if ($error==1) $_SESSION['pointer']++; if ($error==1) $_SESSION['pointer']++;
else { else {
$stay = false; $stay = false;
StatusMessage('ERROR', _('Could not create user'), _('Was unable to create').' '.$_SESSION['accounts'][$row]->general_username); StatusMessage('ERROR', _('Could not create user!'), sprintf (_('Was unable to create %s.'), $_SESSION['accounts'][$row]->general_username));
} }
} }
else $stay=false; else $stay=false;

View File

@ -90,7 +90,7 @@ switch ($select) {
case 'warn': case 'warn':
for ($i=0; $i<sizeof($_SESSION['errors'][$row]); $i++) for ($i=0; $i<sizeof($_SESSION['errors'][$row]); $i++)
if ($_SESSION['errors'][$row][$i][0] == 'INFO') if ($_SESSION['errors'][$row][$i][0] == 'INFO')
StatusMessage('INFO', _('Check Value.'), $_SESSION['errors'][$row][$i][2]); StatusMessage('INFO', _('Check values.'), $_SESSION['errors'][$row][$i][2]);
break; break;
case 'detail': case 'detail':
echo '<tr><td>'; echo '<tr><td>';