diff --git a/README b/README index 40c8171..747e8f1 100644 --- a/README +++ b/README @@ -43,6 +43,12 @@ Dependencies to other projects. See quick start. + https://getbootstrap.com/ + https://datatables.net/ + + Java Bootstrap and DataTables java scripts are used in html + output. + Test data wanted. Maintainer is interested to get copy of your dhcpd.conf diff --git a/man/dhcpd-pools.1.in b/man/dhcpd-pools.1.in index e55f5b6..4f5ca76 100644 --- a/man/dhcpd-pools.1.in +++ b/man/dhcpd-pools.1.in @@ -68,12 +68,10 @@ Sort results in reverse order. Output format. Text .RI ( t ). -Standard html -.RI ( h ) -outputs only the HTML tables, and is useful for embedding more complex web -pages. Full-html +Full-html .RI ( H ) -provides complete HTML headers, etc., including in-line CSS. The +page output. +The .RI ( c ) stands for comma-separated values. Output format xml .RI ( x ) diff --git a/src/dhcpd-pools.c b/src/dhcpd-pools.c index 7b765d7..8c92b3a 100644 --- a/src/dhcpd-pools.c +++ b/src/dhcpd-pools.c @@ -145,7 +145,6 @@ int main(int argc, char **argv) config.output_limit[0] = (*tmp - '0'); tmp++; config.output_limit[1] = (*tmp - '0'); - config.fullhtml = false; /* Make sure some output format is selected by default */ strncpy(config.output_format, OUTPUT_FORMAT, (size_t)1); /* Default sort order is by IPs small to big */ @@ -245,11 +244,10 @@ int main(int argc, char **argv) output_analysis = output_alarming; break; case 'h': - output_analysis = output_html; + error(EXIT_FAILURE, 0, "html table only output format is deprecated"); break; case 'H': output_analysis = output_html; - config.fullhtml = true; break; case 'x': output_analysis = output_xml; diff --git a/src/dhcpd-pools.h b/src/dhcpd-pools.h index 79335fb..afee609 100644 --- a/src/dhcpd-pools.h +++ b/src/dhcpd-pools.h @@ -124,7 +124,6 @@ struct configuration_t { char *dhcpdconf_file; char *dhcpdlease_file; char output_format[2]; - bool fullhtml; char sort[6]; bool reverse_order; char *output_file; diff --git a/src/other.c b/src/other.c index 040c55a..bfdb6bb 100644 --- a/src/other.c +++ b/src/other.c @@ -448,7 +448,6 @@ This is ISC dhcpd pools usage analyzer.\n\ fprintf(out, "\ -f, --format=[thHcxXjJ] output format\n\ t for text\n\ - h for html table\n\ H for full html page\n\ x for xml\n\ X for xml with active lease details\n\ diff --git a/src/output.c b/src/output.c index 0828646..add823f 100644 --- a/src/output.c +++ b/src/output.c @@ -478,63 +478,23 @@ static void html_header(FILE *restrict f) if (strftime(outstr, sizeof(outstr), nl_langinfo(D_T_FMT), &result) == 0) { error(EXIT_FAILURE, 0, "html_header: strftime returned 0"); } - - fprintf(f, "\n"); + fprintf(f, "\n"); fprintf(f, "\n"); fprintf(f, "
\n"); - fprintf(f, "\n"); - fprintf(f, "\nData generated by "); - fprintf(f, "", PACKAGE_URL); - fprintf(f, "%s.\n
\n", PACKAGE_STRING); - fprintf(f, "\n");
- fprintf(f, "\n
\n