* added new config for postfix tcpdict port
authorWilfried Göesgens <willi@citadel.org>
Thu, 24 Aug 2006 06:22:22 +0000 (06:22 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 24 Aug 2006 06:22:22 +0000 (06:22 +0000)
webcit/siteconfig.c

index 79c7160026a2514d3344cbf03959c33cc5faf02c..a9ccf118860d4f773048f967c764a55184f2f0ee 100644 (file)
@@ -506,6 +506,13 @@ void display_siteconfig(void)
                        wprintf("<input type=\"hidden\" name=\"c_default_cal_zone\" value=\"%s\">\n", buf);
 #endif /* WEBCIT_WITH_CALENDAR_SERVICE */
                        break;
+               case 50:
+                       sprintf(&network[strlen(network)], "<TR><TD>");
+                       sprintf(&network[strlen(network)], _("<a href=\"http://www.postfix.org/tcp_table.5.html\">Postfix TCP Dictionary Port </a> (-1 to disable)"));
+                       sprintf(&network[strlen(network)], "</TD><TD>");
+                       sprintf(&network[strlen(network)], "<input type=\"text\" NAME=\"c_pftcpdict_port\" MAXLENGTH=\"5\" VALUE=\"%s\">", buf);
+                       sprintf(&network[strlen(network)], "</TD></TR>\n");
+                       break;
                }
        }
 
@@ -668,6 +675,7 @@ void siteconfig(void)
        serv_printf("%s", ((!strcasecmp(bstr("c_journal_pubmsgs"), "yes") ? "1" : "0")));
        serv_printf("%s", bstr("c_journal_dest"));
        serv_printf("%s", bstr("c_default_cal_zone"));
+       serv_printf("%s", bstr("c_pftcpdict_port"));
        serv_printf("000");
 
        serv_printf("SPEX site|%d|%d", atoi(bstr("sitepolicy")), atoi(bstr("sitevalue")));