Small fix for mbfile index

This commit is contained in:
Michiel Broek 2004-08-19 20:03:03 +00:00
parent ff1b44f0e4
commit 09e7cd8708
2 changed files with 8 additions and 2 deletions

View File

@ -26,6 +26,10 @@ v0.61.4 11-Aug-2004
Outlook email addresses are parsed so that we can reply via Outlook email addresses are parsed so that we can reply via
smtp. smtp.
mbfile:
The html index now uses html named character entities on the
area names on the main index page.
mbindex: mbindex:
Fixed compiling pointlists where on the Boss line there is no Fixed compiling pointlists where on the Boss line there is no
last comma on the line. last comma on the line.

View File

@ -502,7 +502,7 @@ void HtmlIndex(char *Lang)
int AreaNr = 0, j, k, x = 0; int AreaNr = 0, j, k, x = 0;
int aTotal = 0, inArea = 0, filenr; int aTotal = 0, inArea = 0, filenr;
char *sAreas, *fn; char *sAreas, *fn;
char linebuf[1024], outbuf[1024], desc[6400]; char linebuf[1024], outbuf[1024], desc[6400], namebuf[1024];
time_t last = 0L, later; time_t last = 0L, later;
long fileptr = 0, fileptr1 = 0; long fileptr = 0, fileptr1 = 0;
struct _fdbarea *fdb_area = NULL; struct _fdbarea *fdb_area = NULL;
@ -709,12 +709,14 @@ void HtmlIndex(char *Lang)
Syslog('+', "Removed obsolete %s", linebuf); Syslog('+', "Removed obsolete %s", linebuf);
} }
strcpy(linebuf, area.Name);
html_massage(linebuf, namebuf);
sprintf(linebuf, "%s/%s%s/index.html", CFG.www_url, CFG.www_link2ftp, area.Path+strlen(CFG.ftp_base)); sprintf(linebuf, "%s/%s%s/index.html", CFG.www_url, CFG.www_link2ftp, area.Path+strlen(CFG.ftp_base));
if (aSize > 1048576) if (aSize > 1048576)
sprintf(outbuf, "%ld Mb.", aSize / 1048576); sprintf(outbuf, "%ld Mb.", aSize / 1048576);
else else
sprintf(outbuf, "%ld Kb.", aSize / 1024); sprintf(outbuf, "%ld Kb.", aSize / 1024);
MacroVars("efghi", "dssds", AreaNr, linebuf, area.Name, aTotal, outbuf); MacroVars("efghi", "dssds", AreaNr, linebuf, namebuf, aTotal, outbuf);
if (last == 0L) if (last == 0L)
MacroVars("j", "s", " "); MacroVars("j", "s", " ");
else else