Updated TODO

This commit is contained in:
Michiel Broek 2003-08-03 12:17:35 +00:00
parent c672771758
commit 126cba5e3c
3 changed files with 168 additions and 189 deletions

View File

@ -19,6 +19,8 @@ v0.37.5 12-Jul-2003
mbsebbs: mbsebbs:
Added check for maximum simultaneous logins. Added check for maximum simultaneous logins.
Removed debug logging for userrecord i/o Removed debug logging for userrecord i/o
During virusscan of file uploads, the mbtask timeout timer is
set to one hour to support very long scans.
mbsetup: mbsetup:
Added menu entry 1.5.21 for setting maximum allowed logins. Added menu entry 1.5.21 for setting maximum allowed logins.

6
TODO
View File

@ -99,9 +99,6 @@ mbfido:
N: Add statistic mail messages. N: Add statistic mail messages.
mbcico: mbcico:
N: Doesn't poll internet nodes with non-standard ports when the
FQDN:port is in the override field. -- Check this !
N: See if it is possible with binkp protocol to resume aborted N: See if it is possible with binkp protocol to resume aborted
transfers. -- ND option ?? transfers. -- ND option ??
@ -116,9 +113,6 @@ mbfile:
L: Possibility to skip file areas from checking and reindexing. L: Possibility to skip file areas from checking and reindexing.
N: Override timeout during virus scan when files are imported.
-- Check, already done?
N: Add area sorting N: Add area sorting
mbmsg: mbmsg:

View File

@ -536,6 +536,7 @@ int ScanDirect(char *fn)
printf("%s %s %s %s ", (char *) Language(132), fn, (char *) Language(133), virscan.comment); printf("%s %s %s %s ", (char *) Language(132), fn, (char *) Language(133), virscan.comment);
fflush(stdout); fflush(stdout);
Altime(3600);
if ((err = execute(virscan.scanner, virscan.options, temp, (char *)"/dev/null", if ((err = execute(virscan.scanner, virscan.options, temp, (char *)"/dev/null",
(char *)"/dev/null" , (char *)"/dev/null")) != virscan.error) { (char *)"/dev/null" , (char *)"/dev/null")) != virscan.error) {
WriteError("VIRUS ALERT: Result %d (%s)", err, virscan.comment); WriteError("VIRUS ALERT: Result %d (%s)", err, virscan.comment);
@ -543,9 +544,11 @@ int ScanDirect(char *fn)
/* Possible VIRUS found! */ /* Possible VIRUS found! */
printf("%s\n", (char *) Language(199)); printf("%s\n", (char *) Language(199));
Found = TRUE; Found = TRUE;
} else } else {
/* Ok */ /* Ok */
printf("%s\n", (char *) Language(200)); printf("%s\n", (char *) Language(200));
}
Altime(0);
fflush(stdout); fflush(stdout);
} }
} }
@ -644,6 +647,7 @@ int ScanArchive(char *fn, char *ftype)
printf("%s %s %s %s ", (char *) Language(132), fn, (char *) Language(133), virscan.comment); printf("%s %s %s %s ", (char *) Language(132), fn, (char *) Language(133), virscan.comment);
fflush(stdout); fflush(stdout);
Altime(3600);
err = execute(virscan.scanner, virscan.options, (char *)"*", (char *)"/dev/null", err = execute(virscan.scanner, virscan.options, (char *)"*", (char *)"/dev/null",
(char *)"/dev/null", (char *)"/dev/null"); (char *)"/dev/null", (char *)"/dev/null");
if (err != virscan.error) { if (err != virscan.error) {
@ -657,6 +661,7 @@ int ScanArchive(char *fn, char *ftype)
printf("%s\n", (char *) Language(200)); printf("%s\n", (char *) Language(200));
} }
fflush(stdout); fflush(stdout);
Altime(0);
Nopper(); Nopper();
} }
} }
@ -763,8 +768,6 @@ char *GetFileType(char *fn)
int ImportFile(char *fn, int Area, int fileid, time_t iTime, off_t Size) int ImportFile(char *fn, int Area, int fileid, time_t iTime, off_t Size)
{ {
char *temp, *temp1; char *temp, *temp1;
// int i, x;
// char *token;
temp = calloc(PATH_MAX, sizeof(char)); temp = calloc(PATH_MAX, sizeof(char));
temp1 = calloc(PATH_MAX, sizeof(char)); temp1 = calloc(PATH_MAX, sizeof(char));
@ -787,19 +790,7 @@ int ImportFile(char *fn, int Area, int fileid, time_t iTime, off_t Size)
exitinfo.Uploads++; exitinfo.Uploads++;
exitinfo.UploadK += (Size / 1024); exitinfo.UploadK += (Size / 1024);
exitinfo.UploadKToday += (Size / 1024); exitinfo.UploadKToday += (Size / 1024);
Syslog('b', "Uploads %d, Kb %d, Kb today %d", exitinfo.Uploads, Syslog('b', "Uploads %d, Kb %d, Kb today %d", exitinfo.Uploads, exitinfo.UploadK, exitinfo.UploadKToday);
exitinfo.UploadK, exitinfo.UploadKToday);
/*
* Give back the user his bytes from the upload
* Work out byte ratio, then give time back to user
*/
// strcpy(temp, CFG.sByteRatio);
// token = strtok(temp, ":");
// i = atoi(token);
// token = strtok(NULL, "\0");
// x = atoi(token);
// Size *= i / x;
/* You have */ /* extra download KBytes. */ /* You have */ /* extra download KBytes. */
printf("%s %ld %s\n", (char *) Language(249), (long)(Size / 1024), (char *) Language(250)); printf("%s %ld %s\n", (char *) Language(249), (long)(Size / 1024), (char *) Language(250));
@ -807,25 +798,14 @@ int ImportFile(char *fn, int Area, int fileid, time_t iTime, off_t Size)
Syslog('b', "DownloadKToday %d", exitinfo.DownloadKToday); Syslog('b', "DownloadKToday %d", exitinfo.DownloadKToday);
} }
/*
* Give back the user his time that he used to upload
* Work out time ratio, then give time back to user
* Ratio 3:1, Upload time: times by 3 / 1
*/
// strcpy(temp, CFG.sTimeRatio);
// token = strtok(temp, ":");
// i = atoi(token);
// token = strtok(NULL, "\0");
// x = atoi(token);
// iTime *= i / x;
iTime /= 60; /* Divide Seconds by 60 to give minutes */ iTime /= 60; /* Divide Seconds by 60 to give minutes */
/* You have */ /* extra minutes. */ /* You have */ /* extra minutes. */
printf("%s %ld %s\n", (char *) Language(249), iTime, (char *) Language(259)); printf("%s %ld %s\n", (char *) Language(249), iTime, (char *) Language(259));
exitinfo.iTimeLeft += iTime; exitinfo.iTimeLeft += iTime;
WriteExitinfo(); WriteExitinfo();
free(temp);
free(temp1);
return TRUE; return TRUE;
} }
} }
@ -1095,6 +1075,9 @@ void SetFileArea(unsigned long AreaNum)
/*
* Return size in bytes of all files in the users wrk directory.
*/
unsigned long Quota() unsigned long Quota()
{ {
DIR *dirp; DIR *dirp;