mbfido web cleanup, small extensions, html macro files fixes

This commit is contained in:
Michiel Broek 2002-04-27 12:29:08 +00:00
parent ba68cdad83
commit 376e2b2b5c
2 changed files with 11 additions and 8 deletions

Binary file not shown.

View File

@ -209,8 +209,9 @@ void MakeStat(void)
while ((fread(&fgroup, fgrouphdr.recsize, 1, fg)) == 1) { while ((fread(&fgroup, fgrouphdr.recsize, 1, fg)) == 1) {
if (fgroup.Active) { if (fgroup.Active) {
fseek(fi, fileptr, SEEK_SET); fseek(fi, fileptr, SEEK_SET);
MacroVars("bcdefghi", "ssssdddd", fgroup.Name, fgroup.Comment, aka2str(fgroup.UseAka), adate(fgroup.LastDate), MacroVars("bcdefghi", "ssssdddd", fgroup.Name, fgroup.Comment, aka2str(fgroup.UseAka),
fgroup.Files.lweek, fgroup.KBytes.lweek, fgroup.Files.month[Lm], fgroup.KBytes.month[Lm]); adate(fgroup.LastDate), fgroup.Files.lweek, fgroup.KBytes.lweek,
fgroup.Files.month[Lm], fgroup.KBytes.month[Lm]);
MacroRead(fi, fw); MacroRead(fi, fw);
} }
} }
@ -273,8 +274,8 @@ void MakeStat(void)
q = xstrcpy((char *)"Hold"); q = xstrcpy((char *)"Hold");
else else
q = xstrcpy((char *)"Normal"); q = xstrcpy((char *)"Normal");
MacroVars("bcdefgh", "sssssdd", aka2str(nodes.Aka[0]), nodes.Sysop, q, p, MacroVars("bcdefghi", "sssssddd", aka2str(nodes.Aka[0]), nodes.Sysop, q, p,
adate(nodes.LastDate), nodes.Credit, nodes.Debet); adate(nodes.LastDate), nodes.Billing, nodes.Credit, nodes.Debet);
MacroRead(fi, fw); MacroRead(fi, fw);
free(p); free(p);
free(q); free(q);
@ -309,14 +310,15 @@ void MakeStat(void)
fseek(fi, fileptr, SEEK_SET); fseek(fi, fileptr, SEEK_SET);
if (!strcmp(hist.aka.domain, "(null)")) if (!strcmp(hist.aka.domain, "(null)"))
hist.aka.domain[0] = '\0'; hist.aka.domain[0] = '\0';
MacroVars("cdefghij", "sssssdds", hist.aka.zone?aka2str(hist.aka):"N/A", hist.system_name, hist.location, MacroVars("cdefghijklm", "sssssssddds", hist.aka.zone?aka2str(hist.aka):"N/A", hist.system_name,
adate(hist.online), t_elapsed(hist.online, hist.offline), hist.sent_bytes, hist.sysop, hist.location, hist.tty, adate(hist.online),
hist.rcvd_bytes, hist.inbound ? "In":"Out"); t_elapsed(hist.online, hist.offline), hist.sent_bytes,
hist.rcvd_bytes, hist.cost, hist.inbound ? "In":"Out");
MacroRead(fi, fw); MacroRead(fi, fw);
} }
closepage(fw, (char *)"mailhistory", fi); closepage(fw, (char *)"mailhistory", fi);
} else { } else {
WriteError("Can't create tic.html"); WriteError("Can't create mailhistory.html");
} }
fclose(fi); fclose(fi);
MacroClear(); MacroClear();
@ -332,6 +334,7 @@ void MakeStat(void)
fread(&SYSINFO, sizeof(SYSINFO), 1, fg); fread(&SYSINFO, sizeof(SYSINFO), 1, fg);
MacroVars("bcdefgh", "dddddss", SYSINFO.SystemCalls, SYSINFO.Pots, SYSINFO.ISDN, SYSINFO.Network, MacroVars("bcdefgh", "dddddss", SYSINFO.SystemCalls, SYSINFO.Pots, SYSINFO.ISDN, SYSINFO.Network,
SYSINFO.Local, adate(SYSINFO.StartDate), SYSINFO.LastCaller); SYSINFO.Local, adate(SYSINFO.StartDate), SYSINFO.LastCaller);
MacroVars("i", "s", adate(SYSINFO.LastTime));
if ((fw = newpage((char *)"sysinfo", fi)) != NULL) { if ((fw = newpage((char *)"sysinfo", fi)) != NULL) {
closepage(fw, (char *)"sysinfo", fi); closepage(fw, (char *)"sysinfo", fi);
} else { } else {