summaryrefslogtreecommitdiff
path: root/source3/web/swat.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-29 22:23:22 +0100
committerVolker Lendecke <vl@samba.org>2009-11-29 23:42:41 +0100
commit4e9d95c1e761e0331f1edcd25a64171ce9b60cc7 (patch)
tree5b30826be3c344d85a2d502b2f2e327a88a1a157 /source3/web/swat.c
parent7bbee8dc17744a838834ea21b2acb2b7f8366194 (diff)
downloadsamba-4e9d95c1e761e0331f1edcd25a64171ce9b60cc7.tar.gz
samba-4e9d95c1e761e0331f1edcd25a64171ce9b60cc7.tar.bz2
samba-4e9d95c1e761e0331f1edcd25a64171ce9b60cc7.zip
s3: Fix some nonempty blank lines
Diffstat (limited to 'source3/web/swat.c')
-rw-r--r--source3/web/swat.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c
index 1d843a0f65..8db175c86e 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -4,17 +4,17 @@
Version 3.0.0
Copyright (C) Andrew Tridgell 1997-2002
Copyright (C) John H Terpstra 2002
-
+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
-
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@@ -417,9 +417,9 @@ static void show_parameters(int snum, int allparameters, unsigned int parm_filte
}
if ((parm_filter & FLAG_WIZARD) && !(parm->flags & FLAG_WIZARD)) continue;
-
+
if ((parm_filter & FLAG_ADVANCED) && !(parm->flags & FLAG_ADVANCED)) continue;
-
+
if (heading && heading != last_heading) {
printf("<tr><td></td></tr><tr><td><b><u>%s</u></b></td></tr>\n", _(heading));
last_heading = heading;
@@ -446,7 +446,7 @@ static void write_config(FILE *f, bool show_defaults)
fprintf(f, "# Samba config file created using SWAT\n");
fprintf(f, "# from %s (%s)\n", cgi_remote_host(), cgi_remote_addr());
fprintf(f, "# Date: %s\n\n", current_timestring(ctx, False));
-
+
lp_dump(f, show_defaults, iNumNonAutoPrintServices);
TALLOC_FREE(ctx);
@@ -556,7 +556,7 @@ static void image_link(const char *name, const char *hlink, const char *src)
static void show_main_buttons(void)
{
char *p;
-
+
if ((p = cgi_user_name()) && strcmp(p, "root")) {
printf(_("Logged in as <b>%s</b>"), p);
printf("<p>\n");
@@ -656,7 +656,7 @@ static void wizard_params_page(void)
printf("<input type=reset name=\"Reset Values\" value=\"Reset\">\n");
printf("<p>\n");
-
+
printf("<table>\n");
show_parameters(GLOBAL_SECTION_SNUM, 1, parm_filter, 0);
printf("</table>\n");
@@ -703,7 +703,7 @@ static void wizard_page(void)
/* Plain text passwords are too badly broken - use encrypted passwords only */
lp_do_parameter( GLOBAL_SECTION_SNUM, "encrypt passwords", "Yes");
-
+
switch ( SerType ){
case 0:
/* Stand-alone Server */
@@ -774,7 +774,7 @@ static void wizard_page(void)
winstype = 3;
role = lp_server_role();
-
+
/* Here we go ... */
printf("<H2>%s</H2>\n", _("Samba Configuration Wizard"));
printf("<form method=post action=wizard>\n");
@@ -813,7 +813,7 @@ static void wizard_page(void)
const char **wins_servers = lp_wins_server_list();
for(i = 0; wins_servers[i]; i++) printf("%s ", wins_servers[i]);
}
-
+
printf("\"></td></tr>\n");
if (winstype == 3) {
printf("<tr><td></td><td colspan=3><font color=\"#ff0000\">%s</font></td></tr>\n", _("Error: WINS Server Mode and WINS Support both set in smb.conf"));
@@ -823,14 +823,14 @@ static void wizard_page(void)
printf("<td><input type=radio name=\"HomeExpo\" value=\"1\" %s> Yes</td>", (have_home == -1) ? "" : "checked ");
printf("<td><input type=radio name=\"HomeExpo\" value=\"0\" %s> No</td>", (have_home == -1 ) ? "checked" : "");
printf("<td></td></tr>\n");
-
+
/* Enable this when we are ready ....
* printf("<tr><td><b>%s:&nbsp;</b></td>\n", _("Is Print Server"));
* printf("<td><input type=radio name=\"PtrSvr\" value=\"1\" %s> Yes</td>");
* printf("<td><input type=radio name=\"PtrSvr\" value=\"0\" %s> No</td>");
* printf("<td></td></tr>\n");
*/
-
+
printf("</table></center>");
printf("<hr>");
@@ -1014,7 +1014,7 @@ static bool change_password(const char *remote_machine, const char *user_name,
printf("%s\n<p>", _("password change in demo mode rejected"));
return False;
}
-
+
if (remote_machine != NULL) {
ret = remote_password_change(remote_machine, user_name,
old_passwd, new_passwd, &err_str);
@@ -1028,7 +1028,7 @@ static bool change_password(const char *remote_machine, const char *user_name,
printf("%s\n<p>", _("Can't setup password database vectors."));
return False;
}
-
+
ret = local_password_change(user_name, local_flags, new_passwd,
&err_str, &msg_str);
@@ -1111,7 +1111,6 @@ static void chg_passwd(void)
local_flags |= (cgi_variable(DELETE_USER_FLAG) ? LOCAL_DELETE_USER : 0);
local_flags |= (cgi_variable(ENABLE_USER_FLAG) ? LOCAL_ENABLE_USER : 0);
local_flags |= (cgi_variable(DISABLE_USER_FLAG) ? LOCAL_DISABLE_USER : 0);
-
rslt = change_password(host,
cgi_variable_nonull(SWAT_USER),
@@ -1128,7 +1127,7 @@ static void chg_passwd(void)
printf("\n");
}
}
-
+
return;
}