Create allfiles/newfiles listings with long filenames
This commit is contained in:
parent
c6f86a3dea
commit
901ccc001a
@ -19,6 +19,9 @@ v0.91.9 16-May-2007
|
|||||||
Searching FILE_ID.DIZ in uploads is now case insensitive.
|
Searching FILE_ID.DIZ in uploads is now case insensitive.
|
||||||
Improved cleaning users tmp dir after virus scan.
|
Improved cleaning users tmp dir after virus scan.
|
||||||
|
|
||||||
|
mball:
|
||||||
|
Creates allfiles/newfiles listings with long filenames.
|
||||||
|
|
||||||
mbpasswd:
|
mbpasswd:
|
||||||
Added check for FreeBSD > 6.0 and use sysctl for security check.
|
Added check for FreeBSD > 6.0 and use sysctl for security check.
|
||||||
|
|
||||||
|
@ -272,6 +272,18 @@ void BotBox(FILE *fp, FILE *up, int doit)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void WriteFiles(FILE *fp, FILE *fu, FILE *np, FILE *nu, int New, char *temp)
|
||||||
|
{
|
||||||
|
fprintf(fp, "%s\r\n", temp);
|
||||||
|
fprintf(fu, "%s\r\n", chartran(temp));
|
||||||
|
if (New) {
|
||||||
|
fprintf(np, "%s\r\n", temp);
|
||||||
|
fprintf(nu, "%s\r\n", chartran(temp));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void Masterlist()
|
void Masterlist()
|
||||||
{
|
{
|
||||||
FILE *fp, *np, *fu, *nu, *pAreas, *pHeader;
|
FILE *fp, *np, *fu, *nu, *pAreas, *pHeader;
|
||||||
@ -418,43 +430,25 @@ void Masterlist()
|
|||||||
while (fread(&fdb, fdbhdr.recsize, 1, fdb_area->fp) == 1) {
|
while (fread(&fdb, fdbhdr.recsize, 1, fdb_area->fp) == 1) {
|
||||||
if (!fdb.Deleted) {
|
if (!fdb.Deleted) {
|
||||||
New = (((t_start - fdb.UploadDate) / 84400) <= CFG.newdays);
|
New = (((t_start - fdb.UploadDate) / 84400) <= CFG.newdays);
|
||||||
snprintf(temp, 81, "%-12s%10u K %s [%04d] Uploader: %s",
|
|
||||||
fdb.Name, (int)(fdb.Size / 1024), StrDateDMY(fdb.UploadDate), fdb.TimesDL,
|
|
||||||
strlen(fdb.Uploader)?fdb.Uploader:"");
|
|
||||||
fprintf(fp, "%s\r\n", temp);
|
|
||||||
fprintf(fu, "%s\r\n", chartran(temp));
|
|
||||||
if (New) {
|
|
||||||
fprintf(np, "%s\r\n", temp);
|
|
||||||
fprintf(nu, "%s\r\n", chartran(temp));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
snprintf(temp, 81, "[%4d] %s %10u K %s", fdb.TimesDL,
|
||||||
|
StrDateDMY(fdb.UploadDate), fdb.Size / 1024, fdb.LName);
|
||||||
|
WriteFiles(fp, fu, np, nu, New, temp);
|
||||||
|
|
||||||
for (z = 0; z < 25; z++) {
|
for (z = 0; z < 25; z++) {
|
||||||
if (strlen(fdb.Desc[z])) {
|
if (strlen(fdb.Desc[z])) {
|
||||||
if ((fdb.Desc[z][0] == '@') && (fdb.Desc[z][1] == 'X')) {
|
if ((fdb.Desc[z][0] == '@') && (fdb.Desc[z][1] == 'X')) {
|
||||||
fprintf(fp, " %s\r\n",fdb.Desc[z]+4);
|
snprintf(temp, 81, " %s", fdb.Desc[z]+4);
|
||||||
fprintf(fu, " %s\r\n",chartran(fdb.Desc[z]+4));
|
|
||||||
if (New) {
|
|
||||||
fprintf(np, " %s\r\n",fdb.Desc[z]+4);
|
|
||||||
fprintf(nu, " %s\r\n",chartran(fdb.Desc[z]+4));
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
fprintf(fp, " %s\r\n",fdb.Desc[z]);
|
snprintf(temp, 81, " %s", fdb.Desc[z]);
|
||||||
fprintf(fu, " %s\r\n",chartran(fdb.Desc[z]));
|
}
|
||||||
if (New) {
|
WriteFiles(fp, fu, np, nu, New, temp);
|
||||||
fprintf(np, " %s\r\n",fdb.Desc[z]);
|
|
||||||
fprintf(nu, " %s\r\n",chartran(fdb.Desc[z]));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strlen(fdb.Magic)) {
|
if (strlen(fdb.Magic)) {
|
||||||
fprintf(fp, " Magic filerequest: %s\r\n", fdb.Magic);
|
snprintf(temp, 81, " Magic filerequest: %s", fdb.Magic);
|
||||||
fprintf(fu, " Magic filerequest: %s\r\n", fdb.Magic);
|
WriteFiles(fp, fu, np, nu, New, temp);
|
||||||
if (New) {
|
|
||||||
fprintf(np, " Magic filerequest: %s\r\n", fdb.Magic);
|
|
||||||
fprintf(nu, " Magic filerequest: %s\r\n", fdb.Magic);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ void MakeIndex(void);
|
|||||||
void MidLine(char *, FILE *, FILE *, int);
|
void MidLine(char *, FILE *, FILE *, int);
|
||||||
void TopBox(FILE *, FILE *, int);
|
void TopBox(FILE *, FILE *, int);
|
||||||
void BotBox(FILE *, FILE *, int);
|
void BotBox(FILE *, FILE *, int);
|
||||||
|
void WriteFiles(FILE *, FILE *, FILE *, FILE *, int, char *);
|
||||||
void Masterlist(void);
|
void Masterlist(void);
|
||||||
void MakeArc(void);
|
void MakeArc(void);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user