Blah
This commit is contained in:
parent
3b276e968e
commit
3cf92c691a
|
@ -4551,3 +4551,16 @@
|
||||||
SyncTerm
|
SyncTerm
|
||||||
SEXYZ
|
SEXYZ
|
||||||
NetRunner
|
NetRunner
|
||||||
|
|
||||||
|
+ The file directory editor is now available in the standard file listing.
|
||||||
|
In the past it only worked in the lightbar file listing. Whoops. The
|
||||||
|
hotkey is E if you have SysOp access.
|
||||||
|
|
||||||
|
! File list downloader was not properly allowing a download after the list
|
||||||
|
was created.
|
||||||
|
|
||||||
|
+ File list compiler now only adds the filebase header/footer to the list
|
||||||
|
if the filebase has files listed.
|
||||||
|
|
||||||
|
+ File list compiler now uses megabytes instead of kilobytes in the file
|
||||||
|
base summary footer.
|
||||||
|
|
|
@ -158,14 +158,14 @@ Begin
|
||||||
Form.AddDate ('A', ' Last Call' , 7, 7, 23, 7, 14, @LastCall, Topic + 'Date of last call (MM/DD/YY)');
|
Form.AddDate ('A', ' Last Call' , 7, 7, 23, 7, 14, @LastCall, Topic + 'Date of last call (MM/DD/YY)');
|
||||||
Form.AddLong ('C', ' Calls' , 7, 8, 23, 8, 14, 7, 0, 9999999, @U.Calls, Topic + 'Total number of calls to the BBS');
|
Form.AddLong ('C', ' Calls' , 7, 8, 23, 8, 14, 7, 0, 9999999, @U.Calls, Topic + 'Total number of calls to the BBS');
|
||||||
Form.AddWord ('L', ' Calls Today' , 7, 9, 23, 9, 14, 5, 0, 65000, @U.CallsToday, Topic + 'Total number of calls today');
|
Form.AddWord ('L', ' Calls Today' , 7, 9, 23, 9, 14, 5, 0, 65000, @U.CallsToday, Topic + 'Total number of calls today');
|
||||||
Form.AddLong ('D', ' Downloads' , 7, 10, 23, 10, 14, 7, 0, 9999999, @U.DLs, Topic + 'Total number of downloads');
|
Form.AddWord ('D', ' Downloads' , 7, 10, 23, 10, 14, 7, 0, 65000, @U.DLs, Topic + 'Total number of downloads');
|
||||||
Form.AddWord ('T', ' DLs Today' , 7, 11, 23, 11, 14, 5, 0, 65000, @U.DLsToday, Topic + 'Total downloads today');
|
Form.AddWord ('T', ' DLs Today' , 7, 11, 23, 11, 14, 5, 0, 65000, @U.DLsToday, Topic + 'Total downloads today');
|
||||||
Form.AddLong ('W', ' DL KB' , 7, 12, 23, 12, 14, 10, 0, 2000000000, @U.DLk, Topic + 'Total downloads in kilobytes');
|
Form.AddLong ('W', ' DL KB' , 7, 12, 23, 12, 14, 10, 0, 2000000000, @U.DLk, Topic + 'Total downloads in kilobytes');
|
||||||
Form.AddLong ('K', ' DL KB Today' , 7, 13, 23, 13, 14, 10, 0, 2000000000, @U.DLkToday, Topic + 'Downloads in kilobytes today');
|
Form.AddLong ('K', ' DL KB Today' , 7, 13, 23, 13, 14, 10, 0, 2000000000, @U.DLkToday, Topic + 'Downloads in kilobytes today');
|
||||||
Form.AddLong ('U', ' Uploads' , 7, 14, 23, 14, 14, 10, 0, 2000000000, @U.ULs, Topic + 'Total number of uploads');
|
Form.AddLong ('U', ' Uploads' , 7, 14, 23, 14, 14, 10, 0, 2000000000, @U.ULs, Topic + 'Total number of uploads');
|
||||||
Form.AddLong ('B', ' Upload KB' , 7, 15, 23, 15, 14, 10, 0, 2000000000, @U.ULk, Topic + 'Total uploads in kilobytes');
|
Form.AddLong ('B', ' Upload KB' , 7, 15, 23, 15, 14, 10, 0, 2000000000, @U.ULk, Topic + 'Total uploads in kilobytes');
|
||||||
Form.AddLong ('M', ' Msg Posts' , 7, 16, 23, 16, 14, 10, 0, 2000000000, @U.Posts, Topic + 'Total number of message posts');
|
Form.AddLong ('M', ' Msg Posts' , 7, 16, 23, 16, 14, 10, 0, 2000000000, @U.Posts, Topic + 'Total number of message posts');
|
||||||
Form.AddWord ('E', ' E-Mails' , 7, 17, 23, 17, 14, 5, 0, 65000, @U.Emails, Topic + 'Number of e-mails sent');
|
Form.AddLong ('E', ' E-Mails' , 7, 17, 23, 17, 14, 5, 0, 65000, @U.Emails, Topic + 'Number of e-mails sent');
|
||||||
Form.AddLong ('I', ' File Ratings' , 7, 18, 23, 18, 14, 10, 0, 2000000000, @U.FileRatings, Topic + 'Total file ratings');
|
Form.AddLong ('I', ' File Ratings' , 7, 18, 23, 18, 14, 10, 0, 2000000000, @U.FileRatings, Topic + 'Total file ratings');
|
||||||
Form.AddLong ('N', ' File Comments' , 7, 19, 23, 19, 14, 10, 0, 2000000000, @U.FileComment, Topic + 'Total file comments');
|
Form.AddLong ('N', ' File Comments' , 7, 19, 23, 19, 14, 10, 0, 2000000000, @U.FileComment, Topic + 'Total file comments');
|
||||||
Form.AddDate ('P', ' Last PW Date' , 7, 20, 23, 20, 14, @U.LastPWChange, Topic + 'Date of last password change');
|
Form.AddDate ('P', ' Last PW Date' , 7, 20, 23, 20, 14, @U.LastPWChange, Topic + 'Date of last password change');
|
||||||
|
|
|
@ -2,8 +2,6 @@ Unit bbs_FileBase;
|
||||||
|
|
||||||
{$I M_OPS.PAS}
|
{$I M_OPS.PAS}
|
||||||
|
|
||||||
{$MODESWITCH NESTEDPROCVARS-}
|
|
||||||
|
|
||||||
Interface
|
Interface
|
||||||
|
|
||||||
Uses
|
Uses
|
||||||
|
@ -619,18 +617,20 @@ Function TFileBase.ExportFileList (NewFiles : Boolean; Qwk: Boolean) : Boolean;
|
||||||
Var
|
Var
|
||||||
TF : Text;
|
TF : Text;
|
||||||
DF : File;
|
DF : File;
|
||||||
A : Byte;
|
Count : Byte;
|
||||||
Temp : String[mysMaxFileDescLen];
|
Temp : String[mysMaxFileDescLen];
|
||||||
Str : String;
|
Str : String;
|
||||||
AreaFiles : Integer;
|
AreaFiles : LongInt;
|
||||||
AreaSize : LongInt;
|
AreaSize : Cardinal;
|
||||||
TotalFiles : LongInt;
|
TotalFiles : LongInt;
|
||||||
Begin
|
Begin
|
||||||
If NewFiles Then Begin
|
If NewFiles Then Begin
|
||||||
If Qwk Then Temp := 'newfiles.dat' Else Temp := 'newfiles.txt';
|
If Qwk Then Temp := 'newfiles.dat' Else Temp := 'newfiles.txt';
|
||||||
|
|
||||||
Session.io.OutFullLn (Session.GetPrompt(219));
|
Session.io.OutFullLn (Session.GetPrompt(219));
|
||||||
End Else Begin
|
End Else Begin
|
||||||
Temp := 'allfiles.txt';
|
Temp := 'allfiles.txt';
|
||||||
|
|
||||||
Session.io.OutFullLn (Session.GetPrompt(220));
|
Session.io.OutFullLn (Session.GetPrompt(220));
|
||||||
End;
|
End;
|
||||||
|
|
||||||
|
@ -645,72 +645,79 @@ Begin
|
||||||
|
|
||||||
While Not Eof(FBaseFile) Do Begin
|
While Not Eof(FBaseFile) Do Begin
|
||||||
Read (FBaseFile, FBase);
|
Read (FBaseFile, FBase);
|
||||||
If Session.User.Access(FBase.ListACS) Then Begin
|
|
||||||
Session.io.OutFull (Session.GetPrompt(222));
|
|
||||||
|
|
||||||
GetFileScan;
|
If Not Session.User.Access(FBase.ListACS) Then Continue;
|
||||||
|
|
||||||
AreaFiles := 0;
|
Session.io.OutFull (Session.GetPrompt(222));
|
||||||
AreaSize := 0;
|
|
||||||
|
|
||||||
WriteLn (TF, '');
|
GetFileScan;
|
||||||
WriteLn (TF, '.-' + strRep('-', Length(strStripPipe(FBase.Name))) + '-.');
|
|
||||||
WriteLn (TF, '| ' + strStripPipe(FBase.Name) + ' |');
|
|
||||||
WriteLn (TF, '`-' + strRep('-', Length(strStripPipe(FBase.Name))) + '-''');
|
|
||||||
WriteLn (TF, '.' + strRep('-', 77) + '.');
|
|
||||||
WriteLn (TF, '| File Size Date Description |');
|
|
||||||
WriteLn (TF, '`' + strRep('-', 77) + '''');
|
|
||||||
|
|
||||||
Assign (FDirFile, Config.DataPath + FBase.FileName + '.dir');
|
AreaFiles := 0;
|
||||||
{$I-} Reset (FDirFile); {$I+}
|
AreaSize := 0;
|
||||||
If IoResult = 0 Then Begin
|
|
||||||
Assign (DF, Config.DataPath + FBase.FileName + '.des');
|
|
||||||
{$I-} Reset (DF, 1); {$I+}
|
|
||||||
|
|
||||||
If IoResult <> 0 Then ReWrite (DF, 1);
|
Assign (FDirFile, Config.DataPath + FBase.FileName + '.dir');
|
||||||
|
{$I-} Reset (FDirFile); {$I+}
|
||||||
|
If IoResult = 0 Then Begin
|
||||||
|
Assign (DF, Config.DataPath + FBase.FileName + '.des');
|
||||||
|
{$I-} Reset (DF, 1); {$I+}
|
||||||
|
|
||||||
While Not Eof(FDirFile) Do Begin
|
If IoResult <> 0 Then ReWrite (DF, 1);
|
||||||
Read (FDirFile, FDir);
|
|
||||||
|
|
||||||
If (NewFiles and (FDir.DateTime > FScan.LastNew)) or Not NewFiles Then
|
While Not Eof(FDirFile) Do Begin
|
||||||
If FDir.Flags And FDirDeleted = 0 Then Begin
|
Read (FDirFile, FDir);
|
||||||
Inc (TotalFiles);
|
|
||||||
Inc (AreaFiles);
|
|
||||||
Inc (AreaSize, FDir.Size DIV 1024);
|
|
||||||
|
|
||||||
WriteLn (TF, FDir.FileName);
|
If (NewFiles and (FDir.DateTime > FScan.LastNew)) or Not NewFiles Then
|
||||||
Write (TF, ' `- ' + strPadL(strComma(FDir.Size), 11, ' ') + ' ' + DateDos2Str(FDir.DateTime, Session.User.ThisUser.DateType) + ' ');
|
If FDir.Flags And FDirDeleted = 0 Then Begin
|
||||||
|
Inc (TotalFiles);
|
||||||
|
Inc (AreaFiles);
|
||||||
|
Inc (AreaSize, (FDir.Size DIV 1024) DIV 1024);
|
||||||
|
|
||||||
Seek (DF, FDir.DescPtr);
|
If AreaFiles = 1 Then Begin
|
||||||
For A := 1 to FDir.DescLines Do Begin
|
WriteLn (TF, '');
|
||||||
BlockRead (DF, Temp[0], 1);
|
WriteLn (TF, '.-' + strRep('-', Length(strStripPipe(FBase.Name))) + '-.');
|
||||||
BlockRead (DF, Temp[1], Ord(Temp[0]));
|
WriteLn (TF, '| ' + strStripPipe(FBase.Name) + ' |');
|
||||||
If A = 1 Then WriteLn (TF, Temp) Else WriteLn (TF, strRep(' ', 27) + Temp);
|
WriteLn (TF, '`-' + strRep('-', Length(strStripPipe(FBase.Name))) + '-''');
|
||||||
End;
|
WriteLn (TF, '.' + strRep('-', 77) + '.');
|
||||||
|
WriteLn (TF, '| File Size Date Description |');
|
||||||
|
WriteLn (TF, '`' + strRep('-', 77) + '''');
|
||||||
End;
|
End;
|
||||||
End;
|
|
||||||
|
|
||||||
Session.io.PromptInfo[2] := strI2S(FileSize(FDirFile));
|
WriteLn (TF, FDir.FileName);
|
||||||
|
Write (TF, ' `- ' + strPadL(strComma(FDir.Size), 11, ' ') + ' ' + DateDos2Str(FDir.DateTime, Session.User.ThisUser.DateType) + ' ');
|
||||||
|
|
||||||
Close (FDirFile);
|
Seek (DF, FDir.DescPtr);
|
||||||
Close (DF);
|
|
||||||
|
|
||||||
SetFileScan;
|
For Count := 1 to FDir.DescLines Do Begin
|
||||||
|
BlockRead (DF, Temp[0], 1);
|
||||||
|
BlockRead (DF, Temp[1], Ord(Temp[0]));
|
||||||
|
|
||||||
Str := 'Total files: ' + strI2S(AreaFiles) + ' (' + strI2S(AreaSize) + 'k)';
|
If Count = 1 Then WriteLn (TF, Temp) Else WriteLn (TF, strRep(' ', 27) + Temp);
|
||||||
|
End;
|
||||||
|
End;
|
||||||
|
End;
|
||||||
|
|
||||||
|
Session.io.PromptInfo[2] := strI2S(FileSize(FDirFile));
|
||||||
|
|
||||||
|
Close (FDirFile);
|
||||||
|
Close (DF);
|
||||||
|
|
||||||
|
SetFileScan;
|
||||||
|
|
||||||
|
If AreaFiles > 0 Then Begin
|
||||||
|
Str := 'Total files: ' + strI2S(AreaFiles) + ' (' + strI2S(AreaSize) + 'mb)';
|
||||||
|
|
||||||
WriteLn (TF, '.' + strRep('-', 77) + '.');
|
WriteLn (TF, '.' + strRep('-', 77) + '.');
|
||||||
WriteLn (TF, '| ' + strPadR(Str, 76, ' ') + '|');
|
WriteLn (TF, '| ' + strPadR(Str, 76, ' ') + '|');
|
||||||
WriteLn (TF, '`' + strRep('-', 77) + '''');
|
WriteLn (TF, '`' + strRep('-', 77) + '''');
|
||||||
End Else
|
End;
|
||||||
Session.io.PromptInfo[2] := '0';
|
End Else
|
||||||
|
Session.io.PromptInfo[2] := '0';
|
||||||
|
|
||||||
Session.io.PromptInfo[1] := FBase.Name;
|
Session.io.PromptInfo[1] := FBase.Name;
|
||||||
Session.io.PromptInfo[3] := strI2S(AreaFiles);
|
Session.io.PromptInfo[3] := strI2S(AreaFiles);
|
||||||
|
|
||||||
Session.io.OutBS (Screen.CursorX, False);
|
Session.io.OutBS (Screen.CursorX, False);
|
||||||
Session.io.OutFullLn (Session.GetPrompt(223));
|
Session.io.OutFullLn (Session.GetPrompt(223));
|
||||||
End;
|
|
||||||
End;
|
End;
|
||||||
|
|
||||||
Close (FBaseFile);
|
Close (FBaseFile);
|
||||||
|
@ -1136,7 +1143,7 @@ Begin
|
||||||
While Not Eof(ProtocolFile) Do Begin
|
While Not Eof(ProtocolFile) Do Begin
|
||||||
Read (ProtocolFile, Protocol);
|
Read (ProtocolFile, Protocol);
|
||||||
|
|
||||||
If Protocol.Active And (Protocol.Batch = Batch) And (Protocol.OSType = OSTYpe) Then Begin
|
If Protocol.Active And (Protocol.Batch = Batch) And ((Protocol.OSType = OSTYpe) or (Protocol.OSType = 3)) Then Begin
|
||||||
Keys := Keys + Protocol.Key;
|
Keys := Keys + Protocol.Key;
|
||||||
|
|
||||||
Session.io.PromptInfo[1] := Protocol.Key;
|
Session.io.PromptInfo[1] := Protocol.Key;
|
||||||
|
@ -2015,6 +2022,31 @@ Var
|
||||||
End;
|
End;
|
||||||
End;
|
End;
|
||||||
|
|
||||||
|
Procedure DoEditor;
|
||||||
|
Var
|
||||||
|
SavedPos : LongInt;
|
||||||
|
Begin
|
||||||
|
{$I-} SavedPos := FilePos(FBaseFile); {$I+}
|
||||||
|
|
||||||
|
If IoResult = 0 Then
|
||||||
|
Close (FBaseFile)
|
||||||
|
Else
|
||||||
|
SavedPos := -1;
|
||||||
|
|
||||||
|
Close (FDirFile);
|
||||||
|
Close (DataFile);
|
||||||
|
|
||||||
|
DirectoryEditor(True, List[CurPos].FileName);
|
||||||
|
|
||||||
|
If SavedPos <> -1 Then Begin
|
||||||
|
Reset (FBaseFile);
|
||||||
|
Seek (FBaseFile, SavedPos);
|
||||||
|
End;
|
||||||
|
|
||||||
|
Reset (FDirFile);
|
||||||
|
Reset (DataFile, 1);
|
||||||
|
End;
|
||||||
|
|
||||||
Procedure DrawPage;
|
Procedure DrawPage;
|
||||||
Var
|
Var
|
||||||
OK : Boolean;
|
OK : Boolean;
|
||||||
|
@ -2313,25 +2345,7 @@ Var
|
||||||
End;
|
End;
|
||||||
End;
|
End;
|
||||||
'E' : If Session.User.Access(FBase.SysopACS) Then Begin
|
'E' : If Session.User.Access(FBase.SysopACS) Then Begin
|
||||||
{ Save file POS if FBaseFile is open }
|
DoEditor;
|
||||||
{$I-} B := FilePos(FBaseFile); {$I+}
|
|
||||||
If IoResult = 0 Then
|
|
||||||
Close (FBaseFile)
|
|
||||||
Else
|
|
||||||
B := -1;
|
|
||||||
|
|
||||||
Close (FDirFile);
|
|
||||||
Close (DataFile);
|
|
||||||
|
|
||||||
DirectoryEditor(True, List[CurPos].FileName);
|
|
||||||
|
|
||||||
If B <> -1 Then Begin
|
|
||||||
Reset (FBaseFile);
|
|
||||||
Seek (FBaseFile, B);
|
|
||||||
End;
|
|
||||||
|
|
||||||
Reset (FDirFile);
|
|
||||||
Reset (DataFile, 1);
|
|
||||||
|
|
||||||
FullReDraw;
|
FullReDraw;
|
||||||
DrawPage;
|
DrawPage;
|
||||||
|
@ -2366,9 +2380,10 @@ Var
|
||||||
|
|
||||||
Procedure Ascii_List;
|
Procedure Ascii_List;
|
||||||
Var
|
Var
|
||||||
A : LongInt;
|
A : LongInt;
|
||||||
B : LongInt;
|
B : LongInt;
|
||||||
okSave : Byte;
|
okSave : Byte;
|
||||||
|
Keys : String[20];
|
||||||
Begin
|
Begin
|
||||||
ListType := 0;
|
ListType := 0;
|
||||||
|
|
||||||
|
@ -2384,10 +2399,21 @@ Var
|
||||||
|
|
||||||
Result := 2;
|
Result := 2;
|
||||||
|
|
||||||
|
Keys := #13 + 'FNPQV';
|
||||||
|
|
||||||
|
If Session.User.Access(FBase.SysopACS) Then Keys := Keys + 'E';
|
||||||
|
|
||||||
Repeat
|
Repeat
|
||||||
Session.io.OutFull (Session.GetPrompt(44));
|
Session.io.OutFull (Session.GetPrompt(44));
|
||||||
|
|
||||||
Case Session.io.OneKey(#13'FNPQV', True) of
|
Case Session.io.OneKey(Keys, True) of
|
||||||
|
'E' : Begin
|
||||||
|
DoEditor;
|
||||||
|
|
||||||
|
DrawPage;
|
||||||
|
|
||||||
|
If CurPos > ListSize Then CurPos := ListSize;
|
||||||
|
End;
|
||||||
#13,
|
#13,
|
||||||
'N' : If LastPage Then
|
'N' : If LastPage Then
|
||||||
Break
|
Break
|
||||||
|
|
|
@ -23,7 +23,7 @@ Const
|
||||||
MaxPromptInfo = 15;
|
MaxPromptInfo = 15;
|
||||||
|
|
||||||
Type
|
Type
|
||||||
TGetKeyCallBack = Function (Forced: Boolean) : Boolean Is Nested;
|
TGetKeyCallBack = Function (Forced: Boolean) : Boolean;// Is Nested;
|
||||||
|
|
||||||
TBBSIO = Class
|
TBBSIO = Class
|
||||||
Core : Pointer;
|
Core : Pointer;
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
Program Install;
|
Program Install;
|
||||||
|
|
||||||
{$I M_OPS.PAS}
|
{$I M_OPS.PAS}
|
||||||
{$MODESWITCH NESTEDPROCVARS-}
|
|
||||||
|
|
||||||
Uses
|
Uses
|
||||||
m_FileIO,
|
m_FileIO,
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
// ====================================================================
|
// ====================================================================
|
||||||
|
|
||||||
{$I M_OPS.PAS}
|
{$I M_OPS.PAS}
|
||||||
{$MODESWITCH NESTEDPROCVARS-}
|
|
||||||
|
|
||||||
Program MIDE;
|
Program MIDE;
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,6 @@ Unit MPL_Compile;
|
||||||
|
|
||||||
{$I M_OPS.PAS}
|
{$I M_OPS.PAS}
|
||||||
|
|
||||||
{$MODESWITCH NESTEDPROCVARS-}
|
|
||||||
|
|
||||||
Interface
|
Interface
|
||||||
|
|
||||||
Uses
|
Uses
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
Program MPLC;
|
Program MPLC;
|
||||||
|
|
||||||
{$I M_OPS.PAS}
|
{$I M_OPS.PAS}
|
||||||
{$MODESWITCH NESTEDPROCVARS-}
|
|
||||||
|
|
||||||
Uses
|
Uses
|
||||||
DOS,
|
DOS,
|
||||||
|
|
|
@ -307,9 +307,9 @@ Type
|
||||||
FirstOn : LongInt; { Date/Time of First Call }
|
FirstOn : LongInt; { Date/Time of First Call }
|
||||||
LastOn : LongInt; { Date/Time of Last Call }
|
LastOn : LongInt; { Date/Time of Last Call }
|
||||||
Calls : LongInt; { Number of calls to BBS }
|
Calls : LongInt; { Number of calls to BBS }
|
||||||
CallsToday : SmallInt; { Number of calls today }
|
CallsToday : SmallWord; { Number of calls today }
|
||||||
DLs : SmallInt; { # of downloads }
|
DLs : SmallWord; { # of downloads }
|
||||||
DLsToday : SmallInt; { # of downloads today }
|
DLsToday : SmallWord; { # of downloads today }
|
||||||
DLk : LongInt; { # of downloads in K }
|
DLk : LongInt; { # of downloads in K }
|
||||||
DLkToday : LongInt; { # of downloaded K today }
|
DLkToday : LongInt; { # of downloaded K today }
|
||||||
ULs : LongInt; { total number of uploads }
|
ULs : LongInt; { total number of uploads }
|
||||||
|
|
Loading…
Reference in New Issue