- output_headers(1, 1, 2, 0, 0, 0, 0);
- wprintf("<div id=\"banner\">\n");
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>");
- wprintf("<SPAN CLASS=\"titlebar\">");
- wprintf(_("Internet configuration"));
- wprintf("</SPAN>\n");
- wprintf("</TD></TR></TABLE>\n");
- wprintf("</div>\n<div id=\"content\">\n");
-
- wprintf("<div id=\"fix_scrollbar_bug\">"
- "<table border=0 width=100%%><tr><td valign=top>\n");
- for (which=0; which<ic_max; ++which) {
- if (which == (ic_max / 2)) {
- wprintf("</TD><TD VALIGN=TOP>");
- }
- svprintf("BOXTITLE", WCS_STRING, ic_boxtitle[which]);
- do_template("beginbox");
- wprintf("<span class=\"menudesc\">");
- escputs(ic_desc[which]);
- wprintf("</span><br />");
- wprintf("<TABLE border=0 cellspacing=0 cellpadding=0 width=100%%>\n");
- if (strlen(ic_spec[which]) > 0) {
- for (i=0; i<num_tokens(ic_spec[which], '\n'); ++i) {
- wprintf("<TR><TD ALIGN=LEFT>");
- extract_token(buf, ic_spec[which], i, '\n', sizeof buf);
- escputs(buf);
- wprintf("</TD><TD ALIGN=RIGHT>"
- "<A HREF=\"/save_inetconf?oper=delete&ename=");
- escputs(buf);
- wprintf("&etype=%s\" ", ic_keyword[which]);
- wprintf("onClick=\"return confirm('Delete ");
- jsescputs(buf);
- wprintf("?');\">");
- wprintf("<font size=-1>(Delete)</font></a></TD></TR>\n");
+ Buf = NewStrBuf();
+ serv_printf("CONF PUTSYS|application/x-citadel-internet-config");
+ StrBuf_ServGetln(Buf);
+ if (GetServerStatus(Buf, NULL) == 4) {
+ for (i = 0; i < (sizeof(CfgNames) / sizeof(ConstStr)); i++) {
+ HashPos *where;
+ const char *Key;
+ long KeyLen;
+
+ GetHash(WCC->InetCfg, CKEY(CfgNames[i]), &vHash);
+ Hash = (HashList*) vHash;
+ if (Hash == NULL) {
+ AppendImportantMessage(_("Invalid Parameter"), -1);
+ url_do_template();
+ return;