Merge from 3.0:
authorTim Potter <tpot@samba.org>
Mon, 29 Sep 2003 06:20:11 +0000 (06:20 +0000)
committerTim Potter <tpot@samba.org>
Mon, 29 Sep 2003 06:20:11 +0000 (06:20 +0000)
>More bug #413.  Fix bad html table row termination in SWAT wizard code found by
>Monyo.  Also remove debugging d_printf() which snuck in the last commit.

>Change title of SWAT globals page from 'Global Variables' to 'Global
>Parameters' to be more consistent with the other pages.
(This used to be commit 1ab70b41a9eba59272c0af5a8036c32366734177)

source3/web/swat.c

index 1c892559dd97f5b4971de3796d53985f91f1aa8d..2b2686cc5ae131c7b776a23942603a3c5ebf0b2c 100644 (file)
@@ -737,8 +737,10 @@ static void wizard_page(void)
        d_printf("<td><input type=radio name=\"WINSType\" value=0 %s> Not Used&nbsp;</td>", (winstype == 0) ? "checked" : "");
        d_printf("<td><input type=radio name=\"WINSType\" value=1 %s> Server for client use&nbsp;</td>", (winstype == 1) ? "checked" : "");
        d_printf("<td><input type=radio name=\"WINSType\" value=2 %s> Client of another WINS server&nbsp;</td>", (winstype == 2) ? "checked" : "");
+       d_printf("</tr>\n");    
+
        d_printf("<tr><td></td><td></td><td></td><td>Remote WINS Server&nbsp;<input type=text size=\"16\" name=\"WINSAddr\" value=\"");
-       
+
        /* Print out the list of wins servers */
        if(lp_wins_server_list()) {
                int i;
@@ -751,7 +753,6 @@ static void wizard_page(void)
                d_printf("<tr><td></td><td colspan=3><font color=\"#ff0000\">Error: WINS Server Mode and WINS Support both set in smb.conf</font></td></tr>");
                d_printf("<tr><td></td><td colspan=3><font color=\"#ff0000\">Please Select desired WINS mode above.</font></td></tr>");
        }
-       d_printf("</tr>");
        d_printf("<tr><td><b>%s</b></td>\n","Expose Home Directories:&nbsp;");
        d_printf("<td><input type=radio name=\"HomeExpo\" value=1 %s> Yes</td>", (have_home == -1) ? "" : "checked ");
        d_printf("<td><input type=radio name=\"HomeExpo\" value=0 %s> No</td>", (have_home == -1 ) ? "checked" : "");
@@ -780,7 +781,7 @@ static void globals_page(void)
        unsigned int parm_filter = FLAG_BASIC;
        int mode = 0;
 
-       d_printf("<H2>%s</H2>\n", _("Global Variables"));
+       d_printf("<H2>%s</H2>\n", _("Global Parameters"));
 
        if (cgi_variable("Commit")) {
                commit_parameters(GLOBAL_SECTION_SNUM);