Skip to content

Commit a0ec4d4

Browse files
authored
Update welcome.p
1 parent f127a4f commit a0ec4d4

File tree

1 file changed

+41
-12
lines changed

1 file changed

+41
-12
lines changed

welcome.p

+41-12
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ uses
1818
Chains; // Add Chain Memory and Chaining...
1919

2020
{$DEFINE PLUGINS}
21+
{$DEFINE EXCHANGEBBS}
2122

2223
Var
2324
ScriptRoot:String;
@@ -32,6 +33,13 @@ Var
3233
{$I plugins/newsignup.inc}
3334
{$I plugins/loginprocess.inc}
3435

36+
{################### doCreateTotals #######################################
37+
# Purpose....: Create Missing Statistics Summary Database #
38+
# In params..: * #
39+
# Out params.: * #
40+
# Returns....: * #
41+
# Created....: 1170909 by Ozz #
42+
############################################################################}
3543
Procedure doCreateTotals;
3644
Var
3745
Schema:TStringList;
@@ -63,6 +71,13 @@ Begin
6371
DBF.Free;
6472
End;
6573

74+
{################### IncrementCallers #####################################
75+
# Purpose....: Increment the number of system connections ASAP #
76+
# In params..: * #
77+
# Out params.: * #
78+
# Returns....: * #
79+
# Created....: 1170909 by Ozz #
80+
############################################################################}
6681
Procedure IncrementCallers;
6782
var
6883
DBF:THalcyonDataset;
@@ -80,6 +95,13 @@ Begin
8095
DBF.Free;
8196
End;
8297

98+
{################### ShowTosserStats ######################################
99+
# Purpose....: Originally show message stats only - expanded to system. #
100+
# In params..: * #
101+
# Out params.: * #
102+
# Returns....: * #
103+
# Created....: 1170909 by Ozz #
104+
############################################################################}
83105
procedure ShowTosserStats;
84106
var
85107
DBF:THalcyonDataset;
@@ -91,12 +113,12 @@ Begin
91113
DBF.SetFileName(ScriptRoot+'data/tosstats.dbf');
92114
DBF.Open;
93115
Field:=DBF.GetFieldByName('ELAPSE');
94-
FastWrite(#13#10+' |09o|0CO|09o |0EFidonet Tosser: |03'+IntToCommaStr(Field.getAsInteger)+'s |02CPU Time|0F,');
116+
FastWrite(#13#10+' |19o|1CO|19o |1EFidonet Tosser: |13'+IntToCommaStr(Field.getAsInteger)+'s |12CPU Time|1F,');
95117
Field:=DBF.GetFieldByName('PACKETS');
96-
FastWrite(' |0EPackets: |03'+IntToCommaStr(Field.GetAsInteger)+'|0F,');
118+
FastWrite(' |1EPackets: |13'+IntToCommaStr(Field.GetAsInteger)+'|1F,');
97119
Field:=DBF.GetFIeldByName('MESSAGES');
98120
AllMessages:=Field.GetAsInteger;
99-
FastWrite(' |0EMessages: |03'+IntToCommaStr(Field.GetAsInteger)+#13#10);
121+
FastWrite(' |1EMessages: |13'+IntToCommaStr(Field.GetAsInteger)+#13#10);
100122
DBF.Close;
101123
DBF.Free;
102124

@@ -121,13 +143,12 @@ Begin
121143
DBF.Close;
122144
DBF.Free;
123145

124-
FastWrite(' |09o|0CO|09o |0EThe Current System Date is |0C'+FormatTimeStamp('ddd mmm dd yyyy',TimeStamp)+'|0E and Time is |0C'+FormatTimeStamp('hh:nn |0Eam/pm',TimeStamp)+#13#10+
125-
' |09o|0CO|09o |0ETotal Number of Messages |30'+PadLeft(IntToCommaStr(AllMessages),9)+'|07'+#13#10+
126-
' |09o|0CO|09o |0ETotal Number of Files |30'+PadLeft(IntToCommaStr(AllFiles),9)+'|07'+#13#10+
127-
' |09o|0CO|09o |0ETotal Number of File Areas |30'+PadLeft(IntToCommaStr(AllFileAreas),9)+'|07'+#13#10+
128-
' |09o|0CO|09o |0ETotal Number of Downloads |30'+PadLeft(IntToCommaStr(AllDownloads),9)+'|07'+#13#10+
129-
' |09o|0CO|09o |0ETotal Number of Callers |30'+PadLeft(IntToCommaStr(AllCallers),9)+'|07'+#13#10+
130-
' |09o|0CO|09o |0ETotal Number of Users |30'+PadLeft(IntToCommaStr(AllUsers),9)+'|07'+#13#10);
146+
FastWrite(' |19o|1CO|19o |1EThe Current System Date is |1C'+FormatTimeStamp('ddd mmm dd yyyy',TimeStamp)+'|1E and Time is |1C'+FormatTimeStamp('hh:nn |1Eam/pm',TimeStamp)+#13#10+
147+
' |19o|1CO|19o |1ENumber of Files......|30'+PadLeft(IntToCommaStr(AllFiles),9)+
148+
'|1E Number of File Areas.|30'+PadLeft(IntToCommaStr(AllFileAreas),9)+'|17'+#13#10+
149+
' |19o|1CO|19o |1ENumber of Downloads..|30'+PadLeft(IntToCommaStr(AllDownloads),9)+'|17'+#13#10+
150+
' |19o|1CO|19o |1ENumber of Users......|30'+PadLeft(IntToCommaStr(AllUsers),9)+
151+
'|1E Number of Calls......|30'+PadLeft(IntToCommaStr(AllCallers),9)+'|17'+#13#10);
131152
//FastWrite(' |5F*|09 The last caller was '+PreviousCaller+' @ '+FormatTimeStamp('mmm dd yyyy hh:nn |0Eam/pm',PreviousCalled)+#13#10);
132153
End;
133154

@@ -136,17 +157,25 @@ End;
136157
{$I plugins/last_caller.inc}
137158
{$ENDIF}
138159

160+
{################### Main() #################################################
161+
# Purpose....: Initial Code for Exchange Bulletin Board System #
162+
# In params..: * #
163+
# Out params.: * #
164+
# Returns....: * #
165+
# Created....: 1150701 by Ozz #
166+
############################################################################}
139167
Begin
140168
Randomize;
141169
ScriptRoot:=ExtractFilePath(ExecFilename);
142-
InitFastTTT;
170+
InitFastTTT1stTime;
143171
If not FileExists(ScriptRoot+'data/totals.dbf') then doCreateTotals;
144172
IncrementCallers;
145173
{$IFDEF CODERUNNER}
146174
If not Session.Connected then Exit;
147175
{$ENDIF}
148176
i18n.init;
149177
Try
178+
150179
{$I plugins/detect_ansi.inc}
151180

152181
Chain.Retrieve('HASANSI',HasAnsi);
@@ -158,7 +187,7 @@ Try
158187
End
159188
Else Begin
160189
{$I plugins/detect_colors.inc}
161-
CLS(7,0);
190+
CLS(7,1);
162191
DisplayFileEx(ScriptRoot+'ansasc/welcome');
163192
End;
164193
ShowTosserStats;

0 commit comments

Comments
 (0)