Made some web sitedoc screens look better
This commit is contained in:
parent
b5c1bab007
commit
8d66e75d86
@ -81,6 +81,7 @@ v0.71.2 16-Jan-2005
|
|||||||
Removed obsolete bbslist editor.
|
Removed obsolete bbslist editor.
|
||||||
Added chatserver setup, only visible when compiled with the
|
Added chatserver setup, only visible when compiled with the
|
||||||
--enable-experint configuration.
|
--enable-experint configuration.
|
||||||
|
Made some web sitedoc screens look better.
|
||||||
|
|
||||||
html:
|
html:
|
||||||
Added batch file upload written by Russell Tiedt to the faq.
|
Added batch file upload written by Russell Tiedt to the faq.
|
||||||
|
@ -794,8 +794,7 @@ int archive_doc(FILE *fp, FILE *toc, int page)
|
|||||||
|
|
||||||
ip = open_webdoc((char *)"archivers.html", (char *)"Archivers", NULL);
|
ip = open_webdoc((char *)"archivers.html", (char *)"Archivers", NULL);
|
||||||
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n<P>\n");
|
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n<P>\n");
|
||||||
fprintf(ip, "<TABLE width='400' border='0' cellspacing='0' cellpadding='2'>\n");
|
fprintf(ip, "<TABLE border='1' cellspacing='0' cellpadding='2'>\n");
|
||||||
fprintf(ip, "<COL width='10%%'><COL width='70%%'><COL width='20%%'>\n");
|
|
||||||
fprintf(ip, "<TBODY>\n");
|
fprintf(ip, "<TBODY>\n");
|
||||||
fprintf(ip, "<TR><TH align='left'>Name</TH><TH align='left'>Comment</TH><TH align='left'>Available</TH></TR>\n");
|
fprintf(ip, "<TR><TH align='left'>Name</TH><TH align='left'>Comment</TH><TH align='left'>Available</TH></TR>\n");
|
||||||
|
|
||||||
|
@ -767,7 +767,10 @@ int bbs_file_doc(FILE *fp, FILE *toc, int page)
|
|||||||
|
|
||||||
ip = open_webdoc((char *)"fileareas.html", (char *)"File Areas", NULL);
|
ip = open_webdoc((char *)"fileareas.html", (char *)"File Areas", NULL);
|
||||||
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
||||||
fprintf(ip, "<UL>\n");
|
fprintf(ip, "<P>\n");
|
||||||
|
fprintf(ip, "<TABLE border='1' cellspacing='0' cellpadding='2'>\n");
|
||||||
|
fprintf(ip, "<TBODY>\n");
|
||||||
|
fprintf(ip, "<TR><TH align='left'>Area</TH><TH align='left'>Comment</TH></TR>\n");
|
||||||
|
|
||||||
while ((fread(&area, areahdr.recsize, 1, no)) == 1) {
|
while ((fread(&area, areahdr.recsize, 1, no)) == 1) {
|
||||||
|
|
||||||
@ -783,7 +786,7 @@ int bbs_file_doc(FILE *fp, FILE *toc, int page)
|
|||||||
|
|
||||||
sprintf(temp, "filearea_%d.html", i);
|
sprintf(temp, "filearea_%d.html", i);
|
||||||
|
|
||||||
fprintf(ip, " <LI><A HREF=\"%s\">%3d %s</A></LI>\n", temp, i, area.Name);
|
fprintf(ip, " <TR><TD><A HREF=\"%s\">%d</A></TD><TD>%s</TD></TR>\n", temp, i, area.Name);
|
||||||
if ((wp = open_webdoc(temp, (char *)"File area", area.Name))) {
|
if ((wp = open_webdoc(temp, (char *)"File area", area.Name))) {
|
||||||
fprintf(wp, "<A HREF=\"index.html\">Main</A> <A HREF=\"fileareas.html\">Back</A>\n");
|
fprintf(wp, "<A HREF=\"index.html\">Main</A> <A HREF=\"fileareas.html\">Back</A>\n");
|
||||||
fprintf(wp, "<P>\n");
|
fprintf(wp, "<P>\n");
|
||||||
@ -880,7 +883,8 @@ int bbs_file_doc(FILE *fp, FILE *toc, int page)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(ip, "</UL>\n");
|
fprintf(ip, "</TBODY>\n");
|
||||||
|
fprintf(ip, "</TABLE>\n");
|
||||||
close_webdoc(ip);
|
close_webdoc(ip);
|
||||||
|
|
||||||
fclose(no);
|
fclose(no);
|
||||||
|
@ -699,7 +699,10 @@ int tic_group_doc(FILE *fp, FILE *toc, int page)
|
|||||||
|
|
||||||
ip = open_webdoc((char *)"filegroup.html", (char *)"File Groups", NULL);
|
ip = open_webdoc((char *)"filegroup.html", (char *)"File Groups", NULL);
|
||||||
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
||||||
fprintf(ip, "<UL>\n");
|
fprintf(ip, "<P>\n");
|
||||||
|
fprintf(ip, "<TABLE border='1' cellspacing='0' cellpadding='2'>\n");
|
||||||
|
fprintf(ip, "<TBODY>\n");
|
||||||
|
fprintf(ip, "<TR><TH align='left'>Group</TH><TH align='left'>Comment</TH><TH align='left'>Active</TH></TR>\n");
|
||||||
|
|
||||||
while ((fread(&fgroup, fgrouphdr.recsize, 1, no)) == 1) {
|
while ((fread(&fgroup, fgrouphdr.recsize, 1, no)) == 1) {
|
||||||
if (First) {
|
if (First) {
|
||||||
@ -712,7 +715,8 @@ int tic_group_doc(FILE *fp, FILE *toc, int page)
|
|||||||
}
|
}
|
||||||
|
|
||||||
sprintf(temp, "filegroup_%s.html", fgroup.Name);
|
sprintf(temp, "filegroup_%s.html", fgroup.Name);
|
||||||
fprintf(ip, " <LI><A HREF=\"%s\">%s</A> %s</LI>\n", temp, fgroup.Name, fgroup.Comment);
|
fprintf(ip, " <TR><TD><A HREF=\"%s\">%s</A></TD><TD>%s</TD><TD>%s</TD></TR>\n",
|
||||||
|
temp, fgroup.Name, fgroup.Comment, getboolean(fgroup.Active));
|
||||||
|
|
||||||
if ((wp = open_webdoc(temp, (char *)"File group", fgroup.Comment))) {
|
if ((wp = open_webdoc(temp, (char *)"File group", fgroup.Comment))) {
|
||||||
fprintf(wp, "<A HREF=\"index.html\">Main</A> <A HREF=\"filegroup.html\">Back</A>\n");
|
fprintf(wp, "<A HREF=\"index.html\">Main</A> <A HREF=\"filegroup.html\">Back</A>\n");
|
||||||
@ -887,7 +891,8 @@ int tic_group_doc(FILE *fp, FILE *toc, int page)
|
|||||||
fprintf(fp, " Last date %s\n", ctime(&fgroup.LastDate));
|
fprintf(fp, " Last date %s\n", ctime(&fgroup.LastDate));
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(ip, "</UL>\n");
|
fprintf(ip, "</TBODY>\n");
|
||||||
|
fprintf(ip, "</TABLE>\n");
|
||||||
close_webdoc(ip);
|
close_webdoc(ip);
|
||||||
|
|
||||||
fclose(no);
|
fclose(no);
|
||||||
|
@ -546,8 +546,7 @@ int fido_doc(FILE *fp, FILE *toc, int page)
|
|||||||
|
|
||||||
ip = open_webdoc((char *)"fidonet.html", (char *)"Fidonet networks", NULL);
|
ip = open_webdoc((char *)"fidonet.html", (char *)"Fidonet networks", NULL);
|
||||||
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n<P>\n");
|
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n<P>\n");
|
||||||
fprintf(ip, "<TABLE width='400' border='0' cellspacing='0' cellpadding='2'>\n");
|
fprintf(ip, "<TABLE border='1' cellspacing='0' cellpadding='2'>\n");
|
||||||
fprintf(ip, "<COL width='10%%'><COL width='70%%'><COL width='20%%'>\n");
|
|
||||||
fprintf(ip, "<TBODY>\n");
|
fprintf(ip, "<TBODY>\n");
|
||||||
fprintf(ip, "<TR><TH align='left'>Zone</TH><TH align='left'>Comment</TH><TH align='left'>Available</TH></TR>\n");
|
fprintf(ip, "<TR><TH align='left'>Zone</TH><TH align='left'>Comment</TH><TH align='left'>Available</TH></TR>\n");
|
||||||
|
|
||||||
|
@ -574,7 +574,10 @@ int tic_hatch_doc(FILE *fp, FILE *toc, int page)
|
|||||||
|
|
||||||
ip = open_webdoc((char *)"hatch.html", (char *)"File Areas", NULL);
|
ip = open_webdoc((char *)"hatch.html", (char *)"File Areas", NULL);
|
||||||
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
||||||
fprintf(ip, "<UL>\n");
|
fprintf(ip, "<P>\n");
|
||||||
|
fprintf(ip, "<TABLE border='1' cellspacing='0' cellpadding='2'>\n");
|
||||||
|
fprintf(ip, "<TBODY>\n");
|
||||||
|
fprintf(ip, "<TR><TH align='left'>Nr</TH><TH align='left'>Pattern</TH><TH align='left'>Active</TH></TR>\n");
|
||||||
|
|
||||||
while ((fread(&hatch, hatchhdr.recsize, 1, no)) == 1) {
|
while ((fread(&hatch, hatchhdr.recsize, 1, no)) == 1) {
|
||||||
|
|
||||||
@ -586,7 +589,8 @@ int tic_hatch_doc(FILE *fp, FILE *toc, int page)
|
|||||||
}
|
}
|
||||||
|
|
||||||
sprintf(temp, "hatch_%d.html", nr);
|
sprintf(temp, "hatch_%d.html", nr);
|
||||||
fprintf(ip, " <LI><A HREF=\"%s\">Hatch %3d</A> %s</LI>\n", temp, nr, hatch.Spec);
|
fprintf(ip, " <TR><TD><A HREF=\"%s\">%d</A></TD><TD>%s</TD><TD>%s</TD></TR>\n",
|
||||||
|
temp, nr, hatch.Spec, getboolean(hatch.Active));
|
||||||
if ((wp = open_webdoc(temp, (char *)"Hatch Manager", hatch.Spec))) {
|
if ((wp = open_webdoc(temp, (char *)"Hatch Manager", hatch.Spec))) {
|
||||||
fprintf(wp, "<A HREF=\"index.html\">Main</A> <A HREF=\"hatch.html\">Back</A>\n");
|
fprintf(wp, "<A HREF=\"index.html\">Main</A> <A HREF=\"hatch.html\">Back</A>\n");
|
||||||
fprintf(wp, "<P>\n");
|
fprintf(wp, "<P>\n");
|
||||||
@ -667,7 +671,8 @@ int tic_hatch_doc(FILE *fp, FILE *toc, int page)
|
|||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(ip, "</UL>\n");
|
fprintf(ip, "</TBODY>\n");
|
||||||
|
fprintf(ip, "</TABLE>\n");
|
||||||
close_webdoc(ip);
|
close_webdoc(ip);
|
||||||
|
|
||||||
fclose(no);
|
fclose(no);
|
||||||
|
@ -503,7 +503,10 @@ int tic_magic_doc(FILE *fp, FILE *toc, int page)
|
|||||||
|
|
||||||
ip = open_webdoc((char *)"magic.html", (char *)"File Magic Processing", NULL);
|
ip = open_webdoc((char *)"magic.html", (char *)"File Magic Processing", NULL);
|
||||||
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
||||||
fprintf(ip, "<UL>\n");
|
fprintf(ip, "<P>\n");
|
||||||
|
fprintf(ip, "<TABLE border='1' cellspacing='0' cellpadding='2'>\n");
|
||||||
|
fprintf(ip, "<TBODY>\n");
|
||||||
|
fprintf(ip, "<TR><TH align='left'>Nr</TH><TH align='left'>Mask</TH><TH align='left'>Type</TH><TH align='left'>Active</TH></TR>\n");
|
||||||
|
|
||||||
while (fread(&magic, magichdr.recsize, 1, no) == 1) {
|
while (fread(&magic, magichdr.recsize, 1, no) == 1) {
|
||||||
if (j == 6) {
|
if (j == 6) {
|
||||||
@ -514,7 +517,8 @@ int tic_magic_doc(FILE *fp, FILE *toc, int page)
|
|||||||
|
|
||||||
nr++;
|
nr++;
|
||||||
sprintf(temp, "magic_%d.html", nr);
|
sprintf(temp, "magic_%d.html", nr);
|
||||||
fprintf(ip, " <LI><A HREF=\"%s\">Magic %3d</A> %s</LI>\n", temp, nr, magic.Mask);
|
fprintf(ip, " <TR><TD><A HREF=\"%s\">%d</A></TD><TD>%s</TD><TD>%s</TD><TD>%s</TD></TR>\n",
|
||||||
|
temp, nr, magic.Mask, getmagictype(magic.Attrib), getboolean(magic.Active));
|
||||||
if ((wp = open_webdoc(temp, (char *)"File Magic", magic.Mask))) {
|
if ((wp = open_webdoc(temp, (char *)"File Magic", magic.Mask))) {
|
||||||
fprintf(wp, "<A HREF=\"index.html\">Main</A> <A HREF=\"magic.html\">Back</A>\n");
|
fprintf(wp, "<A HREF=\"index.html\">Main</A> <A HREF=\"magic.html\">Back</A>\n");
|
||||||
fprintf(wp, "<P>\n");
|
fprintf(wp, "<P>\n");
|
||||||
@ -561,7 +565,8 @@ int tic_magic_doc(FILE *fp, FILE *toc, int page)
|
|||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(ip, "</UL>\n");
|
fprintf(ip, "</TBODY>\n");
|
||||||
|
fprintf(ip, "</TABLE>\n");
|
||||||
close_webdoc(ip);
|
close_webdoc(ip);
|
||||||
|
|
||||||
fclose(no);
|
fclose(no);
|
||||||
|
@ -1867,7 +1867,10 @@ int mail_area_doc(FILE *fp, FILE *toc, int page)
|
|||||||
|
|
||||||
ip = open_webdoc((char *)"msgareas.html", (char *)"Message Areas", NULL);
|
ip = open_webdoc((char *)"msgareas.html", (char *)"Message Areas", NULL);
|
||||||
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
||||||
fprintf(ip, "<UL>\n");
|
fprintf(ip, "<P>\n");
|
||||||
|
fprintf(ip, "<TABLE border='1' cellspacing='0' cellpadding='2'>\n");
|
||||||
|
fprintf(ip, "<TBODY>\n");
|
||||||
|
fprintf(ip, "<TR><TH align='left'>Area</TH><TH align='left'>Comment</TH><TH align='left'>Tag</TH></TR>\n");
|
||||||
|
|
||||||
while (fread(&msgs, msgshdr.recsize, 1, no) == 1) {
|
while (fread(&msgs, msgshdr.recsize, 1, no) == 1) {
|
||||||
|
|
||||||
@ -1883,7 +1886,8 @@ int mail_area_doc(FILE *fp, FILE *toc, int page)
|
|||||||
fprintf(fp, "\n\n");
|
fprintf(fp, "\n\n");
|
||||||
|
|
||||||
sprintf(temp, "msgarea_%d.html", i);
|
sprintf(temp, "msgarea_%d.html", i);
|
||||||
fprintf(ip, " <LI><A HREF=\"%s\">Area %d</A> %s</LI>\n", temp, i, msgs.Name);
|
fprintf(ip, " <TR><TD><A HREF=\"%s\">%d</A></TD><TD>%s</TD><TD>%s</TD>\n",
|
||||||
|
temp, i, msgs.Name, strlen(msgs.Tag) ? msgs.Tag : " ");
|
||||||
if ((wp = open_webdoc(temp, (char *)"File area", msgs.Name))) {
|
if ((wp = open_webdoc(temp, (char *)"File area", msgs.Name))) {
|
||||||
fprintf(wp, "<A HREF=\"index.html\">Main</A> <A HREF=\"msgareas.html\">Back</A>\n");
|
fprintf(wp, "<A HREF=\"index.html\">Main</A> <A HREF=\"msgareas.html\">Back</A>\n");
|
||||||
fprintf(wp, "<P>\n");
|
fprintf(wp, "<P>\n");
|
||||||
@ -2033,7 +2037,8 @@ int mail_area_doc(FILE *fp, FILE *toc, int page)
|
|||||||
fseek(no, msgshdr.syssize, SEEK_CUR);
|
fseek(no, msgshdr.syssize, SEEK_CUR);
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(ip, "</UL>\n");
|
fprintf(ip, "</TBODY>\n");
|
||||||
|
fprintf(ip, "</TABLE>\n");
|
||||||
close_webdoc(ip);
|
close_webdoc(ip);
|
||||||
|
|
||||||
fclose(no);
|
fclose(no);
|
||||||
|
@ -657,8 +657,11 @@ int mail_group_doc(FILE *fp, FILE *toc, int page)
|
|||||||
|
|
||||||
ip = open_webdoc((char *)"msggroup.html", (char *)"Message Groups", NULL);
|
ip = open_webdoc((char *)"msggroup.html", (char *)"Message Groups", NULL);
|
||||||
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
||||||
fprintf(ip, "<UL>\n");
|
fprintf(ip, "<P>\n");
|
||||||
|
fprintf(ip, "<TABLE border='1' cellspacing='0' cellpadding='2'>\n");
|
||||||
|
fprintf(ip, "<TBODY>\n");
|
||||||
|
fprintf(ip, "<TR><TH align='left'>Group</TH><TH align='left'>Comment</TH><TH align='left'>Active</TH></TR>\n");
|
||||||
|
|
||||||
while ((fread(&mgroup, mgrouphdr.recsize, 1, no)) == 1) {
|
while ((fread(&mgroup, mgrouphdr.recsize, 1, no)) == 1) {
|
||||||
if (j == 2) {
|
if (j == 2) {
|
||||||
page = newpage(fp, page);
|
page = newpage(fp, page);
|
||||||
@ -667,7 +670,8 @@ int mail_group_doc(FILE *fp, FILE *toc, int page)
|
|||||||
}
|
}
|
||||||
|
|
||||||
sprintf(temp, "msggroup_%s.html", mgroup.Name);
|
sprintf(temp, "msggroup_%s.html", mgroup.Name);
|
||||||
fprintf(ip, " <LI><A HREF=\"%s\">%s</A> %s</LI>\n", temp, mgroup.Name, mgroup.Comment);
|
fprintf(ip, " <TR><TD><A HREF=\"%s\">%s</A></TD><TD>%s</TD><TD>%s</TD></TR>\n",
|
||||||
|
temp, mgroup.Name, mgroup.Comment, getboolean(mgroup.Active));
|
||||||
|
|
||||||
if ((wp = open_webdoc(temp, (char *)"Message group", mgroup.Comment))) {
|
if ((wp = open_webdoc(temp, (char *)"Message group", mgroup.Comment))) {
|
||||||
fprintf(wp, "<A HREF=\"index.html\">Main</A> <A HREF=\"msggroup.html\">Back</A>\n");
|
fprintf(wp, "<A HREF=\"index.html\">Main</A> <A HREF=\"msggroup.html\">Back</A>\n");
|
||||||
@ -763,7 +767,7 @@ int mail_group_doc(FILE *fp, FILE *toc, int page)
|
|||||||
}
|
}
|
||||||
fprintf(wp, "<HR>\n");
|
fprintf(wp, "<HR>\n");
|
||||||
fprintf(wp, "<H3>Group Statistics</H3>\n");
|
fprintf(wp, "<H3>Group Statistics</H3>\n");
|
||||||
add_statcnt(wp, (char *)"reveived messages", mgroup.MsgsRcvd);
|
add_statcnt(wp, (char *)"received messages", mgroup.MsgsRcvd);
|
||||||
add_statcnt(wp, (char *)"sent messages", mgroup.MsgsSent);
|
add_statcnt(wp, (char *)"sent messages", mgroup.MsgsSent);
|
||||||
close_webdoc(wp);
|
close_webdoc(wp);
|
||||||
}
|
}
|
||||||
@ -792,7 +796,8 @@ int mail_group_doc(FILE *fp, FILE *toc, int page)
|
|||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(ip, "</UL>\n");
|
fprintf(ip, "</TBODY>\n");
|
||||||
|
fprintf(ip, "</TABLE>\n");
|
||||||
close_webdoc(ip);
|
close_webdoc(ip);
|
||||||
|
|
||||||
fclose(no);
|
fclose(no);
|
||||||
|
@ -701,8 +701,7 @@ int modem_doc(FILE *fp, FILE *toc, int page)
|
|||||||
ip = open_webdoc((char *)"modem.html", (char *)"Modems", NULL);
|
ip = open_webdoc((char *)"modem.html", (char *)"Modems", NULL);
|
||||||
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
||||||
fprintf(ip, "<P>\n");
|
fprintf(ip, "<P>\n");
|
||||||
fprintf(ip, "<TABLE width='400' border='0' cellspacing='0' cellpadding='2'>\n");
|
fprintf(ip, "<TABLE border='1' cellspacing='0' cellpadding='2'>\n");
|
||||||
fprintf(ip, "<COL width='10%%'><COL width='70%%'><COL width='20%%'>\n");
|
|
||||||
fprintf(ip, "<TBODY>\n");
|
fprintf(ip, "<TBODY>\n");
|
||||||
fprintf(ip, "<TR><TH align='left'>Nr</TH><TH align='left'>Comment</TH><TH align='left'>Available</TH></TR>\n");
|
fprintf(ip, "<TR><TH align='left'>Nr</TH><TH align='left'>Comment</TH><TH align='left'>Available</TH></TR>\n");
|
||||||
|
|
||||||
|
@ -1443,8 +1443,11 @@ int node_doc(FILE *fp, FILE *toc, int page)
|
|||||||
|
|
||||||
ip = open_webdoc((char *)"nodes.html", (char *)"Fidonet Nodes", NULL);
|
ip = open_webdoc((char *)"nodes.html", (char *)"Fidonet Nodes", NULL);
|
||||||
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
||||||
fprintf(ip, "<UL>\n");
|
fprintf(ip, "<P>\n");
|
||||||
|
fprintf(ip, "<TABLE border='1' cellspacing='0' cellpadding='2'>\n");
|
||||||
|
fprintf(ip, "<TBODY>\n");
|
||||||
|
fprintf(ip, "<TR><TH align='left'>Node</TH><TH align='left'>Sysop</TH><TH align='left'>Flags</TH></TR>\n");
|
||||||
|
|
||||||
while ((fread(&nodes, nodeshdr.recsize, 1, no)) == 1) {
|
while ((fread(&nodes, nodeshdr.recsize, 1, no)) == 1) {
|
||||||
|
|
||||||
page = newpage(fp, page);
|
page = newpage(fp, page);
|
||||||
@ -1458,7 +1461,9 @@ int node_doc(FILE *fp, FILE *toc, int page)
|
|||||||
|
|
||||||
sprintf(temp, "node_%d_%d_%d_%d_%s.html", nodes.Aka[0].zone, nodes.Aka[0].net, nodes.Aka[0].node,
|
sprintf(temp, "node_%d_%d_%d_%d_%s.html", nodes.Aka[0].zone, nodes.Aka[0].net, nodes.Aka[0].node,
|
||||||
nodes.Aka[0].point, nodes.Aka[0].domain);
|
nodes.Aka[0].point, nodes.Aka[0].domain);
|
||||||
fprintf(ip, " <LI><A HREF=\"%s\">%s</A> %s</LI>\n", temp, aka2str(nodes.Aka[0]), nodes.Sysop);
|
fprintf(ip, " <TR><TD><A HREF=\"%s\">%s</A></TD><TD>%s</TD><TD>%s</TD></TR>\n",
|
||||||
|
temp, aka2str(nodes.Aka[0]), nodes.Sysop, nodes.Crash ? "Crash": nodes.Hold ? "Hold":"Normal");
|
||||||
|
|
||||||
if ((wp = open_webdoc(temp, (char *)"Fidonet node", aka2str(nodes.Aka[0])))) {
|
if ((wp = open_webdoc(temp, (char *)"Fidonet node", aka2str(nodes.Aka[0])))) {
|
||||||
fprintf(wp, "<A HREF=\"index.html\">Main</A> <A HREF=\"nodes.html\">Back</A>\n");
|
fprintf(wp, "<A HREF=\"index.html\">Main</A> <A HREF=\"nodes.html\">Back</A>\n");
|
||||||
fprintf(wp, "<P>\n");
|
fprintf(wp, "<P>\n");
|
||||||
@ -1790,7 +1795,8 @@ int node_doc(FILE *fp, FILE *toc, int page)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(ip, "</UL>\n");
|
fprintf(ip, "</TBODY>\n");
|
||||||
|
fprintf(ip, "</TABLE>\n");
|
||||||
close_webdoc(ip);
|
close_webdoc(ip);
|
||||||
|
|
||||||
fclose(no);
|
fclose(no);
|
||||||
|
@ -695,8 +695,11 @@ int bbs_prot_doc(FILE *fp, FILE *toc, int page)
|
|||||||
|
|
||||||
ip = open_webdoc((char *)"protocol.html", (char *)"BBS Transfer Protocols", NULL);
|
ip = open_webdoc((char *)"protocol.html", (char *)"BBS Transfer Protocols", NULL);
|
||||||
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
||||||
fprintf(ip, "<UL>\n");
|
fprintf(ip, "<P>\n");
|
||||||
|
fprintf(ip, "<TABLE border='1' cellspacing='0' cellpadding='2'>\n");
|
||||||
|
fprintf(ip, "<TBODY>\n");
|
||||||
|
fprintf(ip, "<TR><TH align='left'>Zone</TH><TH align='left'>Comment</TH><TH align='left'>Available</TH><TH align='left'>Type</TH></TR>\n");
|
||||||
|
|
||||||
while ((fread(&PROT, PROThdr.recsize, 1, no)) == 1) {
|
while ((fread(&PROT, PROThdr.recsize, 1, no)) == 1) {
|
||||||
|
|
||||||
if (j == 4) {
|
if (j == 4) {
|
||||||
@ -706,7 +709,8 @@ int bbs_prot_doc(FILE *fp, FILE *toc, int page)
|
|||||||
}
|
}
|
||||||
|
|
||||||
sprintf(temp, "protocol_%s.html", PROT.ProtKey);
|
sprintf(temp, "protocol_%s.html", PROT.ProtKey);
|
||||||
fprintf(ip, "<LI><A HREF=\"%s\">%s</A></LI>\n", temp, PROT.ProtName);
|
fprintf(ip, "<TR><TD><A HREF=\"%s\">%s</A></TD><TD>%s</TD><TD>%s</TD><TD>%s</TD></TR>\n",
|
||||||
|
temp, PROT.ProtKey, PROT.ProtName, getboolean(PROT.Available), PROT.Internal ? "Internal":"External");
|
||||||
if ((wp = open_webdoc(temp, (char *)"BBS Transfer Protocol", PROT.ProtName))) {
|
if ((wp = open_webdoc(temp, (char *)"BBS Transfer Protocol", PROT.ProtName))) {
|
||||||
fprintf(wp, "<A HREF=\"index.html\">Main</A> <A HREF=\"protocol.html\">Back</A>\n");
|
fprintf(wp, "<A HREF=\"index.html\">Main</A> <A HREF=\"protocol.html\">Back</A>\n");
|
||||||
fprintf(wp, "<P>\n");
|
fprintf(wp, "<P>\n");
|
||||||
@ -746,7 +750,8 @@ int bbs_prot_doc(FILE *fp, FILE *toc, int page)
|
|||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(ip, "</UL>\n");
|
fprintf(ip, "</TBODY>\n");
|
||||||
|
fprintf(ip, "</TABLE>\n");
|
||||||
close_webdoc(ip);
|
close_webdoc(ip);
|
||||||
|
|
||||||
fclose(no);
|
fclose(no);
|
||||||
|
@ -1273,8 +1273,11 @@ int tic_areas_doc(FILE *fp, FILE *toc, int page)
|
|||||||
|
|
||||||
ip = open_webdoc((char *)"ticareas.html", (char *)"TIC Areas", NULL);
|
ip = open_webdoc((char *)"ticareas.html", (char *)"TIC Areas", NULL);
|
||||||
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
||||||
fprintf(ip, "<UL>\n");
|
fprintf(ip, "<P>\n");
|
||||||
|
fprintf(ip, "<TABLE border='1' cellspacing='0' cellpadding='2'>\n");
|
||||||
|
fprintf(ip, "<TBODY>\n");
|
||||||
|
fprintf(ip, "<TR><TH align='left'>Area</TH><TH align='left'>Comment</TH><TH align='left'>Active</TH></TR>\n");
|
||||||
|
|
||||||
while ((fread(&tic, tichdr.recsize, 1, no)) == 1) {
|
while ((fread(&tic, tichdr.recsize, 1, no)) == 1) {
|
||||||
|
|
||||||
page = newpage(fp, page);
|
page = newpage(fp, page);
|
||||||
@ -1287,7 +1290,8 @@ int tic_areas_doc(FILE *fp, FILE *toc, int page)
|
|||||||
fprintf(fp, "\n\n");
|
fprintf(fp, "\n\n");
|
||||||
|
|
||||||
sprintf(temp, "ticarea_%s.html", tic.Name);
|
sprintf(temp, "ticarea_%s.html", tic.Name);
|
||||||
fprintf(ip, " <LI><A HREF=\"%s\">Area %s</A> %s</LI>\n", temp, tic.Name, tic.Comment);
|
fprintf(ip, " <TR><TD><A HREF=\"%s\">%s</A></TD><TD>%s</TD><TD>%s</TD></TR>\n",
|
||||||
|
temp, tic.Name, tic.Comment, getboolean(tic.Active));
|
||||||
if ((wp = open_webdoc(temp, (char *)"TIC Area", tic.Comment))) {
|
if ((wp = open_webdoc(temp, (char *)"TIC Area", tic.Comment))) {
|
||||||
fprintf(wp, "<A HREF=\"index.html\">Main</A> <A HREF=\"ticareas.html\">Back</A>\n");
|
fprintf(wp, "<A HREF=\"index.html\">Main</A> <A HREF=\"ticareas.html\">Back</A>\n");
|
||||||
fprintf(wp, "<P>\n");
|
fprintf(wp, "<P>\n");
|
||||||
@ -1476,7 +1480,8 @@ int tic_areas_doc(FILE *fp, FILE *toc, int page)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(ip, "</UL>\n");
|
fprintf(ip, "</TBODY>\n");
|
||||||
|
fprintf(ip, "</TABLE>\n");
|
||||||
close_webdoc(ip);
|
close_webdoc(ip);
|
||||||
|
|
||||||
fclose(no);
|
fclose(no);
|
||||||
|
@ -591,8 +591,7 @@ int tty_doc(FILE *fp, FILE *toc, int page)
|
|||||||
ip = open_webdoc((char *)"ttyinfo.html", (char *)"TTY Lines", NULL);
|
ip = open_webdoc((char *)"ttyinfo.html", (char *)"TTY Lines", NULL);
|
||||||
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
||||||
fprintf(ip, "<P>\n");
|
fprintf(ip, "<P>\n");
|
||||||
fprintf(ip, "<TABLE width='400' border='0' cellspacing='0' cellpadding='2'>\n");
|
fprintf(ip, "<TABLE border='1' cellspacing='0' cellpadding='2'>\n");
|
||||||
fprintf(ip, "<COL width='10%%'><COL width='70%%'><COL width='20%%'>\n");
|
|
||||||
fprintf(ip, "<TBODY>\n");
|
fprintf(ip, "<TBODY>\n");
|
||||||
fprintf(ip, "<TR><TH align='left'>TTY</TH><TH align='left'>Comment</TH><TH align='left'>Available</TH></TR>\n");
|
fprintf(ip, "<TR><TH align='left'>TTY</TH><TH align='left'>Comment</TH><TH align='left'>Available</TH></TR>\n");
|
||||||
|
|
||||||
|
@ -442,8 +442,7 @@ int virus_doc(FILE *fp, FILE *toc, int page)
|
|||||||
ip = open_webdoc((char *)"virscan.html", (char *)"Virus Scanners", NULL);
|
ip = open_webdoc((char *)"virscan.html", (char *)"Virus Scanners", NULL);
|
||||||
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
||||||
fprintf(ip, "<P>\n");
|
fprintf(ip, "<P>\n");
|
||||||
fprintf(ip, "<TABLE width='400' border='0' cellspacing='0' cellpadding='2'>\n");
|
fprintf(ip, "<TABLE border='1' cellspacing='0' cellpadding='2'>\n");
|
||||||
fprintf(ip, "<COL width='10%%'><COL width='70%%'><COL width='20%%'>\n");
|
|
||||||
fprintf(ip, "<TBODY>\n");
|
fprintf(ip, "<TBODY>\n");
|
||||||
fprintf(ip, "<TR><TH align='left'>Nr</TH><TH align='left'>Comment</TH><TH align='left'>Available</TH></TR>\n");
|
fprintf(ip, "<TR><TH align='left'>Nr</TH><TH align='left'>Comment</TH><TH align='left'>Available</TH></TR>\n");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user