1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

better layout of password options.

(This used to be commit d3fa0dd7a8)
This commit is contained in:
Andrew Tridgell 1998-11-27 06:09:25 +00:00
parent 05045be470
commit 89058f8bc1

View File

@ -727,30 +727,32 @@ static void passwd_page(void)
printf("<td><input type=password size=30 name=%s></td></tr>\n",NEW_PSWD);
printf("<tr><td> Re-type New Password : </td>\n");
printf("<td><input type=password size=30 name=%s></td></tr>\n",NEW2_PSWD);
printf("</table>\n");
/*
* Create all the control buttons for requesting action
*/
printf("<tr><td><input type=submit name=%s value=\"Change Password\"></td></tr>\n", CHG_S_PASSWD_FLAG);
printf("<input type=submit name=%s value=\"Change Password\">\n",
CHG_S_PASSWD_FLAG);
if (demo_mode || am_root()) {
printf("<tr><td><input type=submit name=%s value=\"Add New User\"></td></tr>\n", ADD_USER_FLAG);
printf("<tr><td><input type=submit name=%s value=\"Disable User\"></td></tr>\n", DISABLE_USER_FLAG);
printf("<tr><td><input type=submit name=%s value=\"Enable User\"></td></tr>\n", ENABLE_USER_FLAG);
printf("<input type=submit name=%s value=\"Add New User\">\n",
ADD_USER_FLAG);
printf("<input type=submit name=%s value=\"Disable User\">\n",
DISABLE_USER_FLAG);
printf("<input type=submit name=%s value=\"Enable User\">\n",
ENABLE_USER_FLAG);
}
printf("<p></FORM>\n");
/*
* Do some work if change, add, disable or enable was requested. It could be
* this is the first time through this code, so there isn't anything to do.
*/
* Do some work if change, add, disable or enable was
* requested. It could be this is the first time through this
* code, so there isn't anything to do. */
if ((cgi_variable(CHG_S_PASSWD_FLAG)) || (cgi_variable(ADD_USER_FLAG)) ||
(cgi_variable(DISABLE_USER_FLAG)) || (cgi_variable(ENABLE_USER_FLAG))) {
chg_passwd();
}
printf("</table>\n");
printf("</FORM>\n");
printf("<H2>Client/Server Password Management</H2>\n");
printf("<FORM name=\"swatform\" method=post>\n");
@ -771,23 +773,25 @@ static void passwd_page(void)
printf("<tr><td> Remote Machine : </td>\n");
printf("<td><input type=password size=30 name=%s></td></tr>\n",RHOST);
printf("</table>");
/*
* Create all the control buttons for requesting action
*/
printf("<tr><td><input type=submit name=%s value=\"Change Password\"></td></tr>", CHG_R_PASSWD_FLAG);
printf("<input type=submit name=%s value=\"Change Password\">",
CHG_R_PASSWD_FLAG);
printf("<p></FORM>\n");
/*
* Do some work if a request has been made to change the password somewhere other
* than the server. It could be this is the first time through this code, so there
* isn't anything to do.
*/
* Do some work if a request has been made to change the
* password somewhere other than the server. It could be this
* is the first time through this code, so there isn't
* anything to do. */
if (cgi_variable(CHG_R_PASSWD_FLAG)) {
chg_passwd();
}
printf("</table>");
printf("</FORM>\n");
}
/****************************************************************************