summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-11-27 06:09:25 +0000
committerAndrew Tridgell <tridge@samba.org>1998-11-27 06:09:25 +0000
commit89058f8bc1735b2c9d806ac8f5cf8e76ff07c7eb (patch)
treeb221dd76f5f5cf3d1a20b678e6ac79fc0524ff44 /source3
parent05045be470969317f51827cd9823eb9e7801cb53 (diff)
downloadsamba-89058f8bc1735b2c9d806ac8f5cf8e76ff07c7eb.tar.gz
samba-89058f8bc1735b2c9d806ac8f5cf8e76ff07c7eb.tar.bz2
samba-89058f8bc1735b2c9d806ac8f5cf8e76ff07c7eb.zip
better layout of password options.
(This used to be commit d3fa0dd7a80a8d20e2d9db0b5ca24988059280fb)
Diffstat (limited to 'source3')
-rw-r--r--source3/web/swat.c42
1 files changed, 23 insertions, 19 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c
index ed139e2483..8538082a13 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -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");
}
/****************************************************************************