- 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%%><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 (!IsEmptyStr(ic_spec[which])) {
- 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('%s');\">",
- _("Delete this entry?"));
- wprintf("<font size=-1>");
- wprintf(_("(Delete)"));
- wprintf("</font></a></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;