Updates for html sitedocs
This commit is contained in:
parent
421bd6cf93
commit
6ef385afb2
3
TODO
3
TODO
@ -170,14 +170,11 @@ mbsetup:
|
|||||||
N: When a message area is deleted, delete the rulesfile too.
|
N: When a message area is deleted, delete the rulesfile too.
|
||||||
|
|
||||||
X: Generate crossreference document:
|
X: Generate crossreference document:
|
||||||
File Areas <=> BBS groups
|
|
||||||
File Areas <=> Newfiles groups
|
|
||||||
Filefind flags <=> TIC Areas
|
Filefind flags <=> TIC Areas
|
||||||
Echomail <=> Nodes
|
Echomail <=> Nodes
|
||||||
Fileechos <=> Groups
|
Fileechos <=> Groups
|
||||||
Fileechos <=> Nodes
|
Fileechos <=> Nodes
|
||||||
Fileechos <=> Magic processing
|
Fileechos <=> Magic processing
|
||||||
Fileechos <=> Hatch
|
Fileechos <=> Hatch
|
||||||
Newfiles <=> BBS Areas
|
|
||||||
Newfiles <=> Newfiles groups
|
Newfiles <=> Newfiles groups
|
||||||
|
|
||||||
|
@ -809,8 +809,8 @@ int bbs_file_doc(FILE *fp, FILE *toc, int page)
|
|||||||
add_webtable(wp, (char *)"Allow filerequest", getboolean(area.FileReq));
|
add_webtable(wp, (char *)"Allow filerequest", getboolean(area.FileReq));
|
||||||
fprintf(wp, "<TR><TH align='left'>BBS (tic) file group</TH><TD><A HREF=\"filegroup_%s.html\">%s</A></TD></TH>\n",
|
fprintf(wp, "<TR><TH align='left'>BBS (tic) file group</TH><TD><A HREF=\"filegroup_%s.html\">%s</A></TD></TH>\n",
|
||||||
area.BbsGroup, area.BbsGroup);
|
area.BbsGroup, area.BbsGroup);
|
||||||
fprintf(wp, "<TR><TH align='left'>Newfiles announce group</TH><TD><A HREF=\"newfilegroup_%s.html\">%s</A></TD></TH>\n",
|
fprintf(wp, "<TR><TH align='left'>Newfiles announce group</TH><TD><A HREF=\"newgroup.html\">%s</A></TD></TH>\n",
|
||||||
area.NewGroup, area.NewGroup);
|
area.NewGroup);
|
||||||
add_webdigit(wp, (char *)"Minimum age for access", area.Age);
|
add_webdigit(wp, (char *)"Minimum age for access", area.Age);
|
||||||
add_webtable(wp, (char *)"Area password", area.Password);
|
add_webtable(wp, (char *)"Area password", area.Password);
|
||||||
add_webdigit(wp, (char *)"Kill Download days", area.DLdays);
|
add_webdigit(wp, (char *)"Kill Download days", area.DLdays);
|
||||||
|
@ -717,8 +717,8 @@ int tic_group_doc(FILE *fp, FILE *toc, int page)
|
|||||||
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");
|
||||||
fprintf(wp, "<P>\n");
|
fprintf(wp, "<P>\n");
|
||||||
fprintf(wp, "<TABLE width='400' border='0' cellspacing='0' cellpadding='2'>\n");
|
fprintf(wp, "<TABLE width='600' border='0' cellspacing='0' cellpadding='2'>\n");
|
||||||
fprintf(wp, "<COL width='50%%'><COL width='50%%'>\n");
|
fprintf(wp, "<COL width='30%%'><COL width='70%%'>\n");
|
||||||
fprintf(wp, "<TBODY>\n");
|
fprintf(wp, "<TBODY>\n");
|
||||||
add_webtable(wp, (char *)"Group name", fgroup.Name);
|
add_webtable(wp, (char *)"Group name", fgroup.Name);
|
||||||
add_webtable(wp, (char *)"Comment", fgroup.Comment);
|
add_webtable(wp, (char *)"Comment", fgroup.Comment);
|
||||||
@ -750,8 +750,8 @@ int tic_group_doc(FILE *fp, FILE *toc, int page)
|
|||||||
add_webtable(wp, (char *)"Default tic security", getflag(fgroup.LinkSec.flags, fgroup.LinkSec.notflags));
|
add_webtable(wp, (char *)"Default tic security", getflag(fgroup.LinkSec.flags, fgroup.LinkSec.notflags));
|
||||||
fprintf(wp, "<TR><TH align='left'>BBS (tic) file group</TH><TD><A HREF=\"filegroup_%s.html\">%s</A></TD></TH>\n",
|
fprintf(wp, "<TR><TH align='left'>BBS (tic) file group</TH><TD><A HREF=\"filegroup_%s.html\">%s</A></TD></TH>\n",
|
||||||
fgroup.BbsGroup, fgroup.BbsGroup);
|
fgroup.BbsGroup, fgroup.BbsGroup);
|
||||||
fprintf(wp, "<TR><TH align='left'>Newfiles announce group</TH><TD><A HREF=\"newfilegroup_%s.html\">%s</A></TD></TH>\n",
|
fprintf(wp, "<TR><TH align='left'>Newfiles announce group</TH><TD><A HREF=\"newgroup.html\">%s</A></TD></TH>\n",
|
||||||
fgroup.AnnGroup, fgroup.AnnGroup);
|
fgroup.AnnGroup);
|
||||||
sprintf(temp, "%d", fgroup.Upload);
|
sprintf(temp, "%d", fgroup.Upload);
|
||||||
add_webtable(wp, (char *)"Upload area", temp);
|
add_webtable(wp, (char *)"Upload area", temp);
|
||||||
add_webtable(wp, (char *)"Start date", ctime(&fgroup.StartDate));
|
add_webtable(wp, (char *)"Start date", ctime(&fgroup.StartDate));
|
||||||
|
@ -684,8 +684,8 @@ char *PickModem(char *shdr)
|
|||||||
int modem_doc(FILE *fp, FILE *toc, int page)
|
int modem_doc(FILE *fp, FILE *toc, int page)
|
||||||
{
|
{
|
||||||
char temp[PATH_MAX];
|
char temp[PATH_MAX];
|
||||||
FILE *mdm;
|
FILE *ti, *wp, *ip, *mdm;
|
||||||
int i, j;
|
int refs, nr = 0, i, j;
|
||||||
|
|
||||||
sprintf(temp, "%s/etc/modem.data", getenv("MBSE_ROOT"));
|
sprintf(temp, "%s/etc/modem.data", getenv("MBSE_ROOT"));
|
||||||
if ((mdm = fopen(temp, "r")) == NULL)
|
if ((mdm = fopen(temp, "r")) == NULL)
|
||||||
@ -698,6 +698,10 @@ int modem_doc(FILE *fp, FILE *toc, int page)
|
|||||||
fprintf(fp, "\n\n");
|
fprintf(fp, "\n\n");
|
||||||
fread(&modemhdr, sizeof(modemhdr), 1, mdm);
|
fread(&modemhdr, sizeof(modemhdr), 1, mdm);
|
||||||
|
|
||||||
|
ip = open_webdoc((char *)"modem.html", (char *)"Modems", NULL);
|
||||||
|
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
||||||
|
fprintf(ip, "<UL>\n");
|
||||||
|
|
||||||
while ((fread(&modem, modemhdr.recsize, 1, mdm)) == 1) {
|
while ((fread(&modem, modemhdr.recsize, 1, mdm)) == 1) {
|
||||||
if (j == 1) {
|
if (j == 1) {
|
||||||
page = newpage(fp, page);
|
page = newpage(fp, page);
|
||||||
@ -705,6 +709,69 @@ int modem_doc(FILE *fp, FILE *toc, int page)
|
|||||||
j = 0;
|
j = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nr++;
|
||||||
|
fprintf(ip, " <LI><A HREF=\"modem_%d.html\">%s</A></LI>\n", nr, modem.modem);
|
||||||
|
sprintf(temp, "modem_%d.html", nr);
|
||||||
|
if ((wp = open_webdoc(temp, (char *)"Modem", modem.modem))) {
|
||||||
|
fprintf(wp, "<A HREF=\"index.html\">Main</A> <A HREF=\"modem.html\">Back</A>\n");
|
||||||
|
fprintf(wp, "<P>\n");
|
||||||
|
fprintf(wp, "<TABLE width='600' border='0' cellspacing='0' cellpadding='2'>\n");
|
||||||
|
fprintf(wp, "<COL width='30%%'><COL width='70%%'>\n");
|
||||||
|
fprintf(wp, "<TBODY>\n");
|
||||||
|
add_webtable(wp, (char *)"Modem type", modem.modem);
|
||||||
|
for (i = 0; i < 3; i++)
|
||||||
|
if (strlen(modem.init[i])) {
|
||||||
|
sprintf(temp, "Init string %d", i+1);
|
||||||
|
add_webtable(wp, temp, modem.init[i]);
|
||||||
|
}
|
||||||
|
add_webtable(wp, (char *)"OK string", modem.ok);
|
||||||
|
add_webtable(wp, (char *)"Hangup", modem.hangup);
|
||||||
|
add_webtable(wp, (char *)"Info command", modem.info);
|
||||||
|
add_webtable(wp, (char *)"Dial command", modem.dial);
|
||||||
|
for (i = 0; i < 20; i++)
|
||||||
|
if (strlen(modem.connect[i]))
|
||||||
|
add_webtable(wp, (char *)"Connect", modem.connect[i]);
|
||||||
|
add_webtable(wp, (char *)"Reset", modem.reset);
|
||||||
|
for (i = 0; i < 10; i++)
|
||||||
|
if (strlen(modem.error[i]))
|
||||||
|
add_webtable(wp, (char *)"Error string", modem.error[i]);
|
||||||
|
add_webdigit(wp, (char *)"Cost offset", modem.costoffset);
|
||||||
|
add_webtable(wp, (char *)"EMSI speed", modem.speed);
|
||||||
|
add_webtable(wp, (char *)"Strip dashes", getboolean(modem.stripdash));
|
||||||
|
add_webtable(wp, (char *)"Available", getboolean(modem.available));
|
||||||
|
fprintf(wp, "</TBODY>\n");
|
||||||
|
fprintf(wp, "</TABLE>\n");
|
||||||
|
fprintf(wp, "<HR>\n");
|
||||||
|
fprintf(wp, "<H3>TTY Lines Reference</H3>\n");
|
||||||
|
refs = 0;
|
||||||
|
sprintf(temp, "%s/etc/ttyinfo.data", getenv("MBSE_ROOT"));
|
||||||
|
if ((ti = fopen(temp, "r"))) {
|
||||||
|
fread(&ttyinfohdr, sizeof(ttyinfohdr), 1, ti);
|
||||||
|
fseek(ti, 0, SEEK_SET);
|
||||||
|
fread(&ttyinfo, ttyinfohdr.hdrsize, 1, ti);
|
||||||
|
while ((fread(&ttyinfo, ttyinfohdr.recsize, 1, ti)) == 1) {
|
||||||
|
if (ttyinfo.available && (strcmp(modem.modem, ttyinfo.modem) == 0)) {
|
||||||
|
if (refs == 0) {
|
||||||
|
fprintf(wp, "<TABLE width='600' border='0' cellspacing='0' cellpadding='2'>\n");
|
||||||
|
fprintf(wp, "<COL width='20%%'><COL width='80%%'>\n");
|
||||||
|
fprintf(wp, "<TBODY>\n");
|
||||||
|
}
|
||||||
|
fprintf(wp, "<TR><TD><A HREF=\"ttyinfo_%s.html\">%s</A></TD><TD>%s</TD></TR>\n",
|
||||||
|
ttyinfo.tty, ttyinfo.tty, ttyinfo.comment);
|
||||||
|
refs++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fclose(ti);
|
||||||
|
}
|
||||||
|
if (refs == 0)
|
||||||
|
fprintf(wp, "No TTY Lines References\n");
|
||||||
|
else {
|
||||||
|
fprintf(wp, "</TBODY>\n");
|
||||||
|
fprintf(wp, "</TABLE>\n");
|
||||||
|
}
|
||||||
|
close_webdoc(wp);
|
||||||
|
}
|
||||||
|
|
||||||
fprintf(fp, " Modem type %s\n", modem.modem);
|
fprintf(fp, " Modem type %s\n", modem.modem);
|
||||||
for (i = 0; i < 3; i++)
|
for (i = 0; i < 3; i++)
|
||||||
fprintf(fp, " Init string %s\n", modem.init[i]);
|
fprintf(fp, " Init string %s\n", modem.init[i]);
|
||||||
@ -725,6 +792,9 @@ int modem_doc(FILE *fp, FILE *toc, int page)
|
|||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fprintf(ip, "</UL>\n");
|
||||||
|
close_webdoc(ip);
|
||||||
|
|
||||||
fclose(mdm);
|
fclose(mdm);
|
||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
@ -540,8 +540,8 @@ void InitNewfiles(void)
|
|||||||
int new_doc(FILE *fp, FILE *toc, int page)
|
int new_doc(FILE *fp, FILE *toc, int page)
|
||||||
{
|
{
|
||||||
char temp[PATH_MAX], group[13];
|
char temp[PATH_MAX], group[13];
|
||||||
FILE *no;
|
FILE *wp, *ip, *no;
|
||||||
int groups, i, j;
|
int groups, i, j, nr = 0;
|
||||||
|
|
||||||
sprintf(temp, "%s/etc/newfiles.data", getenv("MBSE_ROOT"));
|
sprintf(temp, "%s/etc/newfiles.data", getenv("MBSE_ROOT"));
|
||||||
if ((no = fopen(temp, "r")) == NULL)
|
if ((no = fopen(temp, "r")) == NULL)
|
||||||
@ -554,6 +554,10 @@ int new_doc(FILE *fp, FILE *toc, int page)
|
|||||||
fprintf(fp, "\n\n");
|
fprintf(fp, "\n\n");
|
||||||
fread(&newfileshdr, sizeof(newfileshdr), 1, no);
|
fread(&newfileshdr, sizeof(newfileshdr), 1, no);
|
||||||
|
|
||||||
|
ip = open_webdoc((char *)"newfiles.html", (char *)"Newfiles Reports", NULL);
|
||||||
|
fprintf(ip, "<A HREF=\"index.html\">Main</A>\n");
|
||||||
|
fprintf(ip, "<UL>\n");
|
||||||
|
|
||||||
while ((fread(&newfiles, newfileshdr.recsize, 1, no)) == 1) {
|
while ((fread(&newfiles, newfileshdr.recsize, 1, no)) == 1) {
|
||||||
|
|
||||||
if (j == 3) {
|
if (j == 3) {
|
||||||
@ -561,7 +565,26 @@ int new_doc(FILE *fp, FILE *toc, int page)
|
|||||||
fprintf(fp, "\n");
|
fprintf(fp, "\n");
|
||||||
j = 0;
|
j = 0;
|
||||||
}
|
}
|
||||||
|
nr++;
|
||||||
|
sprintf(temp, "newfiles_%d.html", nr);
|
||||||
|
fprintf(ip, " <LI><A HREF=\"%s\">Report %d</A> %s</LI>\n", temp, nr, newfiles.Comment);
|
||||||
|
if ((wp = open_webdoc(temp, (char *)"Newfiles report", newfiles.Comment))) {
|
||||||
|
fprintf(wp, "<A HREF=\"index.html\">Main</A> <A HREF=\"newfiles.html\">Back</A>\n");
|
||||||
|
fprintf(wp, "<P>\n");
|
||||||
|
fprintf(wp, "<TABLE width='600' border='0' cellspacing='0' cellpadding='2'>\n");
|
||||||
|
fprintf(wp, "<COL width='30%%'><COL width='70%%'>\n");
|
||||||
|
fprintf(wp, "<TBODY>\n");
|
||||||
|
add_webtable(wp, (char *)"Area comment", newfiles.Comment);
|
||||||
|
add_webtable(wp, (char *)"Message area", newfiles.Area);
|
||||||
|
add_webtable(wp, (char *)"Origin line", newfiles.Origin);
|
||||||
|
add_webtable(wp, (char *)"From name", newfiles.From);
|
||||||
|
add_webtable(wp, (char *)"To name", newfiles.Too);
|
||||||
|
add_webtable(wp, (char *)"Subject", newfiles.Subject);
|
||||||
|
sprintf(temp, "%c", newfiles.Language);
|
||||||
|
add_webtable(wp, (char *)"Language", temp);
|
||||||
|
add_webtable(wp, (char *)"Aka to use", aka2str(newfiles.UseAka));
|
||||||
|
add_webtable(wp, (char *)"Active", getboolean(newfiles.Active));
|
||||||
|
add_webtable(wp, (char *)"Allow High ASCII", getboolean(newfiles.HiAscii));
|
||||||
fprintf(fp, " Area comment %s\n", newfiles.Comment);
|
fprintf(fp, " Area comment %s\n", newfiles.Comment);
|
||||||
fprintf(fp, " Message area %s\n", newfiles.Area);
|
fprintf(fp, " Message area %s\n", newfiles.Area);
|
||||||
fprintf(fp, " Origin line %s\n", newfiles.Origin);
|
fprintf(fp, " Origin line %s\n", newfiles.Origin);
|
||||||
@ -577,6 +600,11 @@ int new_doc(FILE *fp, FILE *toc, int page)
|
|||||||
for (i = 0; i < groups; i++) {
|
for (i = 0; i < groups; i++) {
|
||||||
fread(&group, sizeof(group), 1, no);
|
fread(&group, sizeof(group), 1, no);
|
||||||
if (strlen(group)) {
|
if (strlen(group)) {
|
||||||
|
if (i)
|
||||||
|
fprintf(wp, "<TR><TH> </TH><TD><A HREF=\"newgroup_%s.html\">%s</A></TD></TR>\n", group, group);
|
||||||
|
else
|
||||||
|
fprintf(wp, "<TR><TH align='left'>File groups</TH><TD><A HREF=\"newgroup_%s.html\">%s</A></TD></TR>\n",
|
||||||
|
group, group);
|
||||||
fprintf(fp, "%-12s ", group);
|
fprintf(fp, "%-12s ", group);
|
||||||
if (((i+1) %5) == 0)
|
if (((i+1) %5) == 0)
|
||||||
fprintf(fp, "\n ");
|
fprintf(fp, "\n ");
|
||||||
@ -586,7 +614,14 @@ int new_doc(FILE *fp, FILE *toc, int page)
|
|||||||
fprintf(fp, "\n");
|
fprintf(fp, "\n");
|
||||||
fprintf(fp, "\n\n\n");
|
fprintf(fp, "\n\n\n");
|
||||||
j++;
|
j++;
|
||||||
|
fprintf(wp, "</TBODY>\n");
|
||||||
|
fprintf(wp, "</TABLE>\n");
|
||||||
|
close_webdoc(wp);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fprintf(ip, "</UL>\n");
|
||||||
|
close_webdoc(ip);
|
||||||
|
|
||||||
fclose(no);
|
fclose(no);
|
||||||
return page;
|
return page;
|
||||||
|
@ -497,7 +497,8 @@ char *PickNGroup(char *shdr)
|
|||||||
int newf_group_doc(FILE *fp, FILE *toc, int page)
|
int newf_group_doc(FILE *fp, FILE *toc, int page)
|
||||||
{
|
{
|
||||||
char *temp;
|
char *temp;
|
||||||
FILE *no;
|
FILE *ip, *wp, *no;
|
||||||
|
int refs, nr;
|
||||||
|
|
||||||
temp = calloc(PATH_MAX, sizeof(char));
|
temp = calloc(PATH_MAX, sizeof(char));
|
||||||
sprintf(temp, "%s/etc/ngroups.data", getenv("MBSE_ROOT"));
|
sprintf(temp, "%s/etc/ngroups.data", getenv("MBSE_ROOT"));
|
||||||
@ -505,7 +506,9 @@ int newf_group_doc(FILE *fp, FILE *toc, int page)
|
|||||||
free(temp);
|
free(temp);
|
||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
free(temp);
|
|
||||||
|
wp = open_webdoc((char *)"newgroup.html", (char *)"Newfiles groups", NULL);
|
||||||
|
fprintf(wp, "<A HREF=\"index.html\">Main</A>\n");
|
||||||
|
|
||||||
page = newpage(fp, page);
|
page = newpage(fp, page);
|
||||||
addtoc(fp, toc, 11, 0, page, (char *)"Newfiles announce groups");
|
addtoc(fp, toc, 11, 0, page, (char *)"Newfiles announce groups");
|
||||||
@ -517,9 +520,71 @@ int newf_group_doc(FILE *fp, FILE *toc, int page)
|
|||||||
fseek(no, 0, SEEK_SET);
|
fseek(no, 0, SEEK_SET);
|
||||||
fread(&ngrouphdr, ngrouphdr.hdrsize, 1, no);
|
fread(&ngrouphdr, ngrouphdr.hdrsize, 1, no);
|
||||||
|
|
||||||
while ((fread(&ngroup, ngrouphdr.recsize, 1, no)) == 1)
|
fprintf(wp, "<P>\n");
|
||||||
fprintf(fp, " %-12s %s %s\n", ngroup.Name, getboolean(ngroup.Active), ngroup.Comment);
|
fprintf(wp, "<TABLE width='600' border='0' cellspacing='0' cellpadding='2'>\n");
|
||||||
|
fprintf(wp, "<COL width='20%%'><COL width='5%%'><COL width='75%%'>\n");
|
||||||
|
fprintf(wp, "<TBODY>\n");
|
||||||
|
fprintf(wp, "<TR><TH align='left'>Name</TH><TH align='left'>Act</TH><TH align='left'>Comment</TH></TR>\n");
|
||||||
|
|
||||||
|
while ((fread(&ngroup, ngrouphdr.recsize, 1, no)) == 1) {
|
||||||
|
fprintf(fp, " %-12s %s %s\n", ngroup.Name, getboolean(ngroup.Active), ngroup.Comment);
|
||||||
|
fprintf(wp, "<TR><TD>%s</TD><TD>%s</TD><TD>%s</TD></TR>\n", ngroup.Name, getboolean(ngroup.Active), ngroup.Comment);
|
||||||
|
}
|
||||||
|
|
||||||
|
fprintf(wp, "</TBODY>\n");
|
||||||
|
fprintf(wp, "</TABLE>\n");
|
||||||
|
|
||||||
|
fseek(no, ngrouphdr.hdrsize, SEEK_SET);
|
||||||
|
while ((fread(&ngroup, ngrouphdr.recsize, 1, no)) == 1) {
|
||||||
|
refs = 0;
|
||||||
|
sprintf(temp, "%s/etc/fareas.data", getenv("MBSE_ROOT"));
|
||||||
|
if ((ip = fopen(temp, "r"))) {
|
||||||
|
fread(&areahdr, sizeof(areahdr), 1, ip);
|
||||||
|
nr = 0;
|
||||||
|
while ((fread(&area, areahdr.recsize, 1, ip)) == 1) {
|
||||||
|
nr++;
|
||||||
|
if (area.Available && (strcmp(ngroup.Name, area.NewGroup) == 0)) {
|
||||||
|
if (refs == 0) {
|
||||||
|
fprintf(wp, "<HR>\n");
|
||||||
|
fprintf(wp, "<H3>References for group %s</H3>\n", ngroup.Name);
|
||||||
|
fprintf(wp, "<TABLE width='600' border='0' cellspacing='0' cellpadding='2'>\n");
|
||||||
|
fprintf(wp, "<COL width='20%%'><COL width='80%%'>\n");
|
||||||
|
fprintf(wp, "<TBODY>\n");
|
||||||
|
}
|
||||||
|
refs++;
|
||||||
|
fprintf(wp, "<TR><TD><A HREF=\"filearea_%d.html\">File area %d</A></TD><TD>%s</TD></TR>\n", nr, nr, area.Name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fclose(ip);
|
||||||
|
}
|
||||||
|
sprintf(temp, "%s/etc/fgroups.data", getenv("MBSE_ROOT"));
|
||||||
|
if ((ip = fopen(temp, "r"))) {
|
||||||
|
fread(&fgrouphdr, fgrouphdr.hdrsize, 1, ip);
|
||||||
|
while ((fread(&fgroup, fgrouphdr.recsize, 1, ip)) == 1) {
|
||||||
|
if (strcmp(ngroup.Name, fgroup.AnnGroup) == 0) {
|
||||||
|
if (refs == 0) {
|
||||||
|
fprintf(wp, "<HR>\n");
|
||||||
|
fprintf(wp, "<H3>References for group %s</H3>\n", ngroup.Name);
|
||||||
|
fprintf(wp, "<TABLE width='600' border='0' cellspacing='0' cellpadding='2'>\n");
|
||||||
|
fprintf(wp, "<COL width='20%%'><COL width='80%%'>\n");
|
||||||
|
fprintf(wp, "<TBODY>\n");
|
||||||
|
}
|
||||||
|
refs++;
|
||||||
|
fprintf(wp, "<TR><TD><A HREF=\"filegroup_%s.html\">File group %s</A></TD><TD>%s</TD></TR>\n",
|
||||||
|
fgroup.Name, fgroup.Name, fgroup.Comment);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fclose(ip);
|
||||||
|
}
|
||||||
|
if (refs) {
|
||||||
|
fprintf(wp, "</TBODY>\n");
|
||||||
|
fprintf(wp, "</TABLE>\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
close_webdoc(wp);
|
||||||
|
|
||||||
|
free(temp);
|
||||||
fclose(no);
|
fclose(no);
|
||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
@ -189,6 +189,7 @@ int horiz;
|
|||||||
void dotter(void);
|
void dotter(void);
|
||||||
void dotter(void)
|
void dotter(void)
|
||||||
{
|
{
|
||||||
|
Nopper();
|
||||||
mvprintw(8, horiz++, (char *)".");
|
mvprintw(8, horiz++, (char *)".");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
}
|
}
|
||||||
@ -235,7 +236,7 @@ void site_docs(void)
|
|||||||
fprintf(hp, " <LI><A HREF=\"fidonet.html\">Fido Networks</A></LI>\n");
|
fprintf(hp, " <LI><A HREF=\"fidonet.html\">Fido Networks</A></LI>\n");
|
||||||
fprintf(hp, " <LI><A HREF=\"archivers.html\">Archivers</A></LI>\n");
|
fprintf(hp, " <LI><A HREF=\"archivers.html\">Archivers</A></LI>\n");
|
||||||
fprintf(hp, " <LI>Virus Scaners</LI>\n");
|
fprintf(hp, " <LI>Virus Scaners</LI>\n");
|
||||||
fprintf(hp, " <LI>Modem Types</LI>\n");
|
fprintf(hp, " <LI><A HREF=\"modem.html\">Modem Types</A></LI>\n");
|
||||||
fprintf(hp, " <LI>TTY Lines Info</LI>\n");
|
fprintf(hp, " <LI>TTY Lines Info</LI>\n");
|
||||||
fprintf(hp, " <LI>Fidonet Nodes</LI>\n");
|
fprintf(hp, " <LI>Fidonet Nodes</LI>\n");
|
||||||
fprintf(hp, " <LI>BBS: <A HREF=\"limits.html\">Security Limits</A></LI>\n");
|
fprintf(hp, " <LI>BBS: <A HREF=\"limits.html\">Security Limits</A></LI>\n");
|
||||||
@ -250,8 +251,8 @@ void site_docs(void)
|
|||||||
fprintf(hp, " <LI>TIC: Fileecho Areas</LI>\n");
|
fprintf(hp, " <LI>TIC: Fileecho Areas</LI>\n");
|
||||||
fprintf(hp, " <LI>TIC: <A HREF=\"hatch.html\">Hatch Manager</A></LI>\n");
|
fprintf(hp, " <LI>TIC: <A HREF=\"hatch.html\">Hatch Manager</A></LI>\n");
|
||||||
fprintf(hp, " <LI>TIC: <A HREF=\"magic.html\">Magic Files</A></LI>\n");
|
fprintf(hp, " <LI>TIC: <A HREF=\"magic.html\">Magic Files</A></LI>\n");
|
||||||
fprintf(hp, " <LI>Newfiles Groups</LI>\n");
|
fprintf(hp, " <LI><A HREF=\"newgroup.html\">Newfiles Groups</A></LI>\n");
|
||||||
fprintf(hp, " <LI>Newfiles Reports</LI>\n");
|
fprintf(hp, " <LI><A HREF=\"newfiles.html\">Newfiles Reports</A></LI>\n");
|
||||||
fprintf(hp, " <LI><A HREF=\"filefind.html\">Filefind Setup</A></LI>\n");
|
fprintf(hp, " <LI><A HREF=\"filefind.html\">Filefind Setup</A></LI>\n");
|
||||||
fprintf(hp, " <LI>BBS Users</LI>\n");
|
fprintf(hp, " <LI>BBS Users</LI>\n");
|
||||||
fprintf(hp, " <LI>Mail Services</LI>\n");
|
fprintf(hp, " <LI>Mail Services</LI>\n");
|
||||||
|
Reference in New Issue
Block a user