- output_headers(1, 1, 2, 0, 0, 0);
- wprintf("<div id=\"banner\">\n");
- wprintf("<h1>");
- wprintf(_("Internet configuration"));
- wprintf("</h1>");
- wprintf("</div>\n");
-
- wprintf("<div id=\"content\" class=\"service\">\n");
-
- wprintf("<div class=\"fix_scrollbar_bug\">"
- "<table border=0 width=100%% cellspacing=\"10px\" cellpadding=\"10px\"> "
- "<tr><td valign=top width=50%%>\n");
- for (which=0; which<ic_max; ++which) {
- if (which == (ic_max / 2)) {
- wprintf("</td><td valign=top>");
- }
- svput("BOXTITLE", WCS_STRING, ic_boxtitle[which]);
- do_template("beginbox", NULL);
- wprintf("<span class=\"menudesc\">");
- escputs(ic_desc[which]);
- wprintf("</span><br />");
- wprintf("<table border=0 cellspacing=\"2px\" cellpadding=\"2px\" width=94%% "
- "class=\"altern\" >\n");
- bg = 0;
- if (!IsEmptyStr(ic_spec[which])) {
- for (i=0; i<num_tokens(ic_spec[which], '\n'); ++i) {
- bg = 1 - bg;
- wprintf("<tr class=\"%s\">",
- (bg ? "even" : "odd")
- );
- wprintf("<td align=left>");
- extract_token(buf, ic_spec[which], i, '\n', sizeof buf);
- escputs(buf);
- wprintf("</td><td align=left>"
- "<span class=\"button_link\">"
- "<a href=\"save_inetconf?oper=delete&ename=");
- escputs(buf);
- wprintf("&etype=%s\" ", ic_keyword[which]);
- wprintf("onClick=\"return confirm('%s');\">",
- _("Delete this entry?"));
- wprintf(_("Delete"));
- wprintf("</a></span></td></tr>\n");
+ StrBufExtract_token(Value, Buf, 0, '|');
+ GetHash(WCC->InetCfg, ChrPtr(CfgToken), StrLength(CfgToken), &vHash);
+ Hash = (HashList*) vHash;
+ if (Hash == NULL) {
+ syslog(LOG_WARNING, "ERROR Loading inet config line: [%s]", ChrPtr(Buf));
+ FreeStrBuf(&Value);
+ continue;