1
# ntop - Burton M. Strauss III - Nov2002
3
print "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">"
6
print "<!--meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" -->"
7
print "<meta http-equiv=\"Content-Style-Type\" content=\"text/css\">"
8
print "<meta http-equiv=\"Window-target\" content=\"_top\">"
9
print "<meta name=\"description\" content=\"ntop (http://www.ntop.org) FAQ file.\">"
10
print "<meta name=\"author\" content=\"ntop\">"
12
while (getline < "version.c" > 0) {
15
print "<meta name=\"generator\" content=\"ntop " $5 "\">"
19
print "<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\">"
20
print " <title>ntop FAQ</title>"
22
print "<body background=\"white_bg.gif\">"
23
print "<h3>ntop FAQ...</h3>"
24
print "<p>This is an unsophisticated, automated conversion of the source file, docs/FAQ into html."
25
print "Please report problems to the ntop-dev mailing list."
26
print "But remember, it's not about making it look good, it's about making the content available.</p>"
64
print "<h2>" $0 "</h2>"
75
if (pclose != "") { print pclose }
82
if (pclose != "") { print pclose }
89
if (pclose != "") { print pclose }
91
print "<h2>" $0 "</h2>"
97
if (pclose != "") { print pclose }
99
print "<center><i>" $0 "</i></center>"
105
if (pclose != "") { print pclose }
107
print "<center><i>" $0 "</i></center>"
113
if (pclose != "") { print pclose }
117
print "<b>" $1 "</b> "
125
if (pclose != "") { print pclose }
128
print "<b>" $1 "</b> "
134
(substr($0, 1, 3) == " " && substr($0, 4, 1) != " ") {
146
if (pclose != "</pre>") {
156
if (pclose != "") { print pclose }
157
printf("<!-- Total Lines........ %5d -->\n\n" \
158
"<!-- (skipped) --s...... %5d -->\n" \
159
"<!-- (skipped) ==s...... %5d -->\n" \
160
"<!-- (skipped) header... %5d -->\n" \
161
"<!-- empty (\"\")......... %5d -->\n" \
162
"<!-- empty (//)......... %5d -->\n" \
163
"<!-- Sections........... %5d -->\n" \
164
"<!-- Q:................. %5d -->\n" \
165
"<!-- A:................. %5d -->\n" \
166
"<!-- Normal text........ %5d -->\n" \
167
"<!-- Preformatted text.. %5d -->\n" \
168
"<!-- Updated.xxmmmyyyy.. %5d -->\n" \
169
"<!-- Added.xxmmmyyyy.... %5d -->\n" \
170
"<!-- ...........TOTAL... %5d -->\n",
184
(allDash + allEquals + header + empty1 + empty2 + section + q + a + text + pre + updated + added))
191
#A. ntop is an open source network top - the official website can be found at
192
# http://www.ntop.org/