The filelist now displays long filenames
This commit is contained in:
parent
e7ba1621ae
commit
b6fd1d28bc
@ -14,6 +14,9 @@ v0.91.9 16-May-2007
|
|||||||
Help message displays quoted description.
|
Help message displays quoted description.
|
||||||
The adopt command works even if the description isn't quoted.
|
The adopt command works even if the description isn't quoted.
|
||||||
|
|
||||||
|
mbsebbs:
|
||||||
|
The filelist now displays long filenames (finally).
|
||||||
|
|
||||||
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.
|
||||||
|
|
||||||
|
@ -353,7 +353,7 @@
|
|||||||
352 file.c |Updating download counter, please wait ...
|
352 file.c |Updating download counter, please wait ...
|
||||||
353 file.c |Failed!
|
353 file.c |Failed!
|
||||||
354 file.c |Bytes
|
354 file.c |Bytes
|
||||||
355 file.c | # Area Active File Size Cost
|
355 file.c | # Area Active Size Cost File
|
||||||
356 file.c lineedit.c |Yes
|
356 file.c lineedit.c |Yes
|
||||||
357 file.c |No
|
357 file.c |No
|
||||||
358 file.c TE|(T)oggle active, (E)rase all, (ENTER) to continue:
|
358 file.c TE|(T)oggle active, (E)rase all, (ENTER) to continue:
|
||||||
|
@ -353,7 +353,7 @@ JN|BBS-Details anzeigen ? [J/n]:
|
|||||||
|Download-Zaehler werden aktualisiert, bitte warten ...
|
|Download-Zaehler werden aktualisiert, bitte warten ...
|
||||||
|Fehlgeschlagen!
|
|Fehlgeschlagen!
|
||||||
|Bytes
|
|Bytes
|
||||||
| # Area Aktiv Datei Gr. Kosten
|
| # Area Aktiv Gr. Kost Datei
|
||||||
|Ja
|
|Ja
|
||||||
|Nein
|
|Nein
|
||||||
UA|Aufgelistete (U)mschalten, alle (A)bwaehlen, <ENTER> um fortzufahren:
|
UA|Aufgelistete (U)mschalten, alle (A)bwaehlen, <ENTER> um fortzufahren:
|
||||||
|
@ -353,7 +353,7 @@ YN|View this BBS? [Y/n]:
|
|||||||
|Updating download counters, please wait ...
|
|Updating download counters, please wait ...
|
||||||
|Failed!
|
|Failed!
|
||||||
|Bytes
|
|Bytes
|
||||||
| # Area Active File Size Cost
|
| # Area Active Size Cost File
|
||||||
|Yes
|
|Yes
|
||||||
|No
|
|No
|
||||||
TE|(T)oggle active, (E)rase all, (ENTER) to continue:
|
TE|(T)oggle active, (E)rase all, (ENTER) to continue:
|
||||||
|
@ -353,7 +353,7 @@ SN|
|
|||||||
|Actualizando contadores de descarga...
|
|Actualizando contadores de descarga...
|
||||||
|FALLO!
|
|FALLO!
|
||||||
|Bytes
|
|Bytes
|
||||||
| n§ Area Activa Fichero Tam. Coste
|
| n§ Area Activa Tam. Coste Fichero
|
||||||
|Si
|
|Si
|
||||||
|No
|
|No
|
||||||
AT|(A)ctivar/desactivar, desactivar (T)odos, (ENTER) para seguir:
|
AT|(A)ctivar/desactivar, desactivar (T)odos, (ENTER) para seguir:
|
||||||
|
@ -353,7 +353,7 @@ YN|View this BBS? [Y/n]:
|
|||||||
|Updating download counters, please wait ...
|
|Updating download counters, please wait ...
|
||||||
|Failed!
|
|Failed!
|
||||||
|Bytes
|
|Bytes
|
||||||
| # Area Active File Size Cost
|
| # Area Active Size Cost File
|
||||||
|Yes
|
|Yes
|
||||||
|No
|
|No
|
||||||
TE|(T)oggle active, (E)rase all, (ENTER) to continue:
|
TE|(T)oggle active, (E)rase all, (ENTER) to continue:
|
||||||
|
@ -353,7 +353,7 @@ SN| BBS? [S/n]:
|
|||||||
|Actualizando contadores de descarga...
|
|Actualizando contadores de descarga...
|
||||||
|FALLO!
|
|FALLO!
|
||||||
|Bytes
|
|Bytes
|
||||||
| n§ Area Activa Fichero Tam. Coste
|
| n§ Area Activa Tam. Coste Fichero
|
||||||
|Si
|
|Si
|
||||||
|No
|
|No
|
||||||
AT|(A)ctivar/desactivar, desactivar (T)odos, (ENTER) para seguir:
|
AT|(A)ctivar/desactivar, desactivar (T)odos, (ENTER) para seguir:
|
||||||
|
@ -353,7 +353,7 @@ JN|Bekijk dit BBS? [J/n]:
|
|||||||
|Bijwerken download tellers, een ogenblik ...
|
|Bijwerken download tellers, een ogenblik ...
|
||||||
|Mislukt!
|
|Mislukt!
|
||||||
|Bytes
|
|Bytes
|
||||||
| # Geb. Aktief Bestand Grootte Kosten
|
| # Geb. Aktief Grootte Prijs Bestand
|
||||||
|Ja
|
|Ja
|
||||||
|Nee
|
|Nee
|
||||||
SV|(S)chakel aktief, (V)erwijder alles, (ENTER) voor doorgaan:
|
SV|(S)chakel aktief, (V)erwijder alles, (ENTER) voor doorgaan:
|
||||||
|
@ -353,7 +353,7 @@ YN|View this BBS? [Y/n]:
|
|||||||
|Updating download counters, please wait ...
|
|Updating download counters, please wait ...
|
||||||
|Failed!
|
|Failed!
|
||||||
|Bytes
|
|Bytes
|
||||||
| # Area Active File Size Cost
|
| # Area Active Size Cost File
|
||||||
|Yes
|
|Yes
|
||||||
|No
|
|No
|
||||||
TE|(T)oggle active, (E)rase all, (ENTER) to continue:
|
TE|(T)oggle active, (E)rase all, (ENTER) to continue:
|
||||||
|
@ -1675,16 +1675,19 @@ void EditTaglist()
|
|||||||
}
|
}
|
||||||
|
|
||||||
temp = calloc(81, sizeof(char));
|
temp = calloc(81, sizeof(char));
|
||||||
|
if (utf8)
|
||||||
|
chartran_init((char *)"CP437", (char *)"UTF-8", 'B');
|
||||||
|
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
clear();
|
clear();
|
||||||
fseek(tf, 0, SEEK_SET);
|
fseek(tf, 0, SEEK_SET);
|
||||||
Count = 0;
|
Count = 0;
|
||||||
/* # Area Active File Size Cost */
|
/* # Area Active Size Cost File */
|
||||||
|
/* 123 12345 123456 12345678 12345 */
|
||||||
pout(CFG.HiliteF, CFG.HiliteB, (char *) Language(355));
|
pout(CFG.HiliteF, CFG.HiliteB, (char *) Language(355));
|
||||||
Enter(1);
|
Enter(1);
|
||||||
colour(LIGHTGREEN, BLACK);
|
colour(LIGHTGREEN, BLACK);
|
||||||
fLine(48);
|
PUTSTR(chartran(fLine_str(79)));
|
||||||
|
|
||||||
while ((fread(&Tag, sizeof(Tag), 1, tf) == 1)) {
|
while ((fread(&Tag, sizeof(Tag), 1, tf) == 1)) {
|
||||||
Count++;
|
Count++;
|
||||||
@ -1698,33 +1701,34 @@ void EditTaglist()
|
|||||||
pout(Fg, BLACK, temp);
|
pout(Fg, BLACK, temp);
|
||||||
|
|
||||||
Fg--;
|
Fg--;
|
||||||
snprintf(temp, 81, "%5d ", Tag.Area);
|
snprintf(temp, 81, "%5d ", Tag.Area);
|
||||||
pout(Fg, BLACK, temp);
|
pout(Fg, BLACK, temp);
|
||||||
|
|
||||||
Fg--;
|
Fg--;
|
||||||
if (Tag.Active)
|
if (Tag.Active)
|
||||||
/* Yes */
|
/* Yes */
|
||||||
snprintf(temp, 81, "%-6s ", (char *) Language(356));
|
snprintf(temp, 81, "%-6s ", (char *) Language(356));
|
||||||
else
|
else
|
||||||
/* No */
|
/* No */
|
||||||
snprintf(temp, 81, "%-6s ", (char *) Language(357));
|
snprintf(temp, 81, "%-6s ", (char *) Language(357));
|
||||||
pout(Fg, BLACK, temp);
|
pout(Fg, BLACK, temp);
|
||||||
|
|
||||||
Fg--;
|
Fg--;
|
||||||
snprintf(temp, 81, "%-12s", Tag.SFile);
|
snprintf(temp, 81, "%8d ", (int)(Tag.Size));
|
||||||
pout(Fg, BLACK, temp);
|
pout(Fg, BLACK, temp);
|
||||||
|
|
||||||
Fg--;
|
Fg--;
|
||||||
snprintf(temp, 81, " %8d", (int)(Tag.Size));
|
snprintf(temp, 81, "%5d ", Tag.Cost);
|
||||||
pout(Fg, BLACK, temp);
|
pout(Fg, BLACK, temp);
|
||||||
|
|
||||||
Fg--;
|
Fg--;
|
||||||
snprintf(temp, 81, " %5d", Tag.Cost);
|
snprintf(temp, 81, "%s", Tag.LFile);
|
||||||
pout(Fg, BLACK, temp);
|
pout(Fg, BLACK, temp);
|
||||||
|
|
||||||
Enter(1);
|
Enter(1);
|
||||||
}
|
}
|
||||||
colour(LIGHTGREEN, BLACK);
|
colour(LIGHTGREEN, BLACK);
|
||||||
fLine(48);
|
PUTSTR(chartran(fLine_str(79)));
|
||||||
|
|
||||||
/* (T)oggle active, (E)rase all, (ENTER) to continue: */
|
/* (T)oggle active, (E)rase all, (ENTER) to continue: */
|
||||||
pout(WHITE, RED, (char *) Language(358));
|
pout(WHITE, RED, (char *) Language(358));
|
||||||
@ -1756,6 +1760,8 @@ void EditTaglist()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
chartran_close();
|
||||||
|
|
||||||
if (i == Keystroke(358, 1)) {
|
if (i == Keystroke(358, 1)) {
|
||||||
fclose(tf);
|
fclose(tf);
|
||||||
unlink("taglist");
|
unlink("taglist");
|
||||||
|
@ -312,7 +312,7 @@ int iLC(int Lines)
|
|||||||
iLineCount += Lines;
|
iLineCount += Lines;
|
||||||
|
|
||||||
if ((iLineCount >= rows) && (iLineCount < 1000)) {
|
if ((iLineCount >= rows) && (iLineCount < 1000)) {
|
||||||
iLineCount = 0;
|
iLineCount = 1;
|
||||||
|
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
/* More (Y/n/=) M=Mark */
|
/* More (Y/n/=) M=Mark */
|
||||||
@ -359,23 +359,38 @@ int ShowOneFile()
|
|||||||
snprintf(temp, 81, " %02d ", Tagnr);
|
snprintf(temp, 81, " %02d ", Tagnr);
|
||||||
pout(LIGHTGRAY, BLACK, temp);
|
pout(LIGHTGRAY, BLACK, temp);
|
||||||
|
|
||||||
snprintf(temp, 81, "%-12s", fdb.Name);
|
|
||||||
pout(CFG.FilenameF, CFG.FilenameB, temp);
|
|
||||||
|
|
||||||
snprintf(temp, 81, "%10u ", (int)(fdb.Size));
|
|
||||||
pout(CFG.FilesizeF, CFG.FilesizeB, temp);
|
|
||||||
|
|
||||||
snprintf(temp, 81, "%-10s ", StrDateDMY(fdb.UploadDate));
|
|
||||||
pout(CFG.FiledateF, CFG.FiledateB, temp);
|
|
||||||
|
|
||||||
snprintf(temp, 81, "[%4d] ", fdb.TimesDL);
|
snprintf(temp, 81, "[%4d] ", fdb.TimesDL);
|
||||||
pout(LIGHTRED, BLACK, temp);
|
pout(LIGHTRED, BLACK, temp);
|
||||||
|
|
||||||
if ((strcmp(fdb.Uploader, "")) == 0)
|
snprintf(temp, 81, "%s", fdb.LName);
|
||||||
strcpy(fdb.Uploader, "SysOp");
|
pout(CFG.FilenameF, CFG.FilenameB, temp);
|
||||||
|
Enter(1);
|
||||||
|
if (iLC(1) == 1)
|
||||||
|
return 1;
|
||||||
|
|
||||||
snprintf(temp, 81, "%s%s", (char *) Language(238), fdb.Uploader);
|
snprintf(temp, 81, " %-10s ", StrDateDMY(fdb.UploadDate));
|
||||||
pout(CFG.HiliteF, CFG.HiliteB, temp);
|
pout(CFG.FiledateF, CFG.FiledateB, temp);
|
||||||
|
|
||||||
|
snprintf(temp, 81, "%10u bytes ", (int)(fdb.Size));
|
||||||
|
pout(CFG.FilesizeF, CFG.FilesizeB, temp);
|
||||||
|
|
||||||
|
// snprintf(temp, 81, "%-12s", fdb.Name);
|
||||||
|
// pout(CFG.FilenameF, CFG.FilenameB, temp);
|
||||||
|
|
||||||
|
// snprintf(temp, 81, "%10u ", (int)(fdb.Size));
|
||||||
|
// pout(CFG.FilesizeF, CFG.FilesizeB, temp);
|
||||||
|
|
||||||
|
// snprintf(temp, 81, "%-10s ", StrDateDMY(fdb.UploadDate));
|
||||||
|
// pout(CFG.FiledateF, CFG.FiledateB, temp);
|
||||||
|
|
||||||
|
// snprintf(temp, 81, "[%4d] ", fdb.TimesDL);
|
||||||
|
// pout(LIGHTRED, BLACK, temp);
|
||||||
|
|
||||||
|
// if ((strcmp(fdb.Uploader, "")) == 0)
|
||||||
|
// strcpy(fdb.Uploader, "SysOp");
|
||||||
|
|
||||||
|
// snprintf(temp, 81, "%s%s", (char *) Language(238), fdb.Uploader);
|
||||||
|
// pout(CFG.HiliteF, CFG.HiliteB, temp);
|
||||||
Enter(1);
|
Enter(1);
|
||||||
|
|
||||||
if (iLC(1) == 1)
|
if (iLC(1) == 1)
|
||||||
|
@ -700,7 +700,10 @@ void OLR_SyncTags()
|
|||||||
|
|
||||||
if (Changed) {
|
if (Changed) {
|
||||||
colour(LIGHTGREEN, BLACK);
|
colour(LIGHTGREEN, BLACK);
|
||||||
|
if (utf8)
|
||||||
|
chartran_init((char *)"CP437", (char *)"UTF-8", 'B');
|
||||||
fLine(79);
|
fLine(79);
|
||||||
|
chartran_close();
|
||||||
Pause();
|
Pause();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user