From 89058f8bc1735b2c9d806ac8f5cf8e76ff07c7eb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 27 Nov 1998 06:09:25 +0000 Subject: better layout of password options. (This used to be commit d3fa0dd7a80a8d20e2d9db0b5ca24988059280fb) --- source3/web/swat.c | 42 +++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) (limited to 'source3') 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("\n",NEW_PSWD); printf(" Re-type New Password : \n"); printf("\n",NEW2_PSWD); + printf("\n"); /* * Create all the control buttons for requesting action */ - printf("\n", CHG_S_PASSWD_FLAG); + printf("\n", + CHG_S_PASSWD_FLAG); if (demo_mode || am_root()) { - printf("\n", ADD_USER_FLAG); - printf("\n", DISABLE_USER_FLAG); - printf("\n", ENABLE_USER_FLAG); + printf("\n", + ADD_USER_FLAG); + printf("\n", + DISABLE_USER_FLAG); + printf("\n", + ENABLE_USER_FLAG); } + printf("

\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("\n"); - - printf("\n"); - printf("

Client/Server Password Management

\n"); printf("
\n"); @@ -771,23 +773,25 @@ static void passwd_page(void) printf(" Remote Machine : \n"); printf("\n",RHOST); + printf(""); + /* * Create all the control buttons for requesting action */ - printf("", CHG_R_PASSWD_FLAG); + printf("", + CHG_R_PASSWD_FLAG); + + printf("

\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(""); - - printf("\n"); } /**************************************************************************** -- cgit