Skip to content

Latest commit

 

History

History
525 lines (460 loc) · 21.1 KB

rcc17a.pas

File metadata and controls

525 lines (460 loc) · 21.1 KB
 
Nov 18, 2000
Nov 18, 2000
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
CONST
ver1:string[15]='1.7a';
maxusers1=500;
maxboards1=64; { 1 - x }
maxuboards1=96; { 0 - x }
maxprotocols1=120; { 0 - x }
maxevents1=10; { 0 - x } { #0 is Nightly Events (if active) }
maxarcs1=6; { 1 - x }
maxubatchfiles1=20;
numvoteqs1=20;
maxmenucmds1=50;
TYPE
astr1 = string[160]; { generic string type for parameters }
{ note the change from Wayne's str => Astr }
acrq1 ='@'..'Z';
newtyp1 =(rp1,lt1,rm1); {* message NewScan type *}
uflags1 =(rlogon1,rchat1,rvalidate1,rbackspace1,
ramsg1,rpostan1,rpost1,remail1,
rvoting1,rmsg1,spcsr1,onekey1,
wordwrap1,pause1,novice1,ansi1,
color1,alert1,smw1,nomail1,
fnodlratio1,fnopostratio1,fnofilepts1,fnodeletion1);
dlnscan1 =set of 0..maxuboards1;
emary1 =array[1..20] of integer;
anontyp1 =(no1,yes1,forced1,dearabby1);
clrs1 =array[FALSE..TRUE,0..9] of byte;
secrange1=array[0..255] of integer;
messages1=
record
ltr:char;
number:integer;
ext:byte;
end;
smalrec1=
record
name:string[36];
number:integer;
end;
userrec1=
record
name:string[36]; {* user name *}
realname:string[36]; {* real name *}
pw:string[20]; {* user password *}
ph:string[12]; {* user phone # *}
bday:string[8]; {* user birthdate *}
firston:string[10]; {* firston date *}
laston:string[10]; {* laston date *}
street:string[30]; {* mailing address *}
citystate:string[30]; {* city, state *}
zipcode:string[10]; {* zipcode *}
computer:string[30]; {* type of computer *}
occupation:string[40]; {* occupation *}
wherebbs:string[40]; {* BBS reference *}
note:string[39]; {* SysOp note *}
lockedout:boolean; {* if locked out *}
deleted:boolean; {* if deleted *}
lockedfile:string[8]; {* lockout msg to print *}
ac:set of uflags1; {* user flags *}
ar:set of acrq1; {* AR flags *}
qscan:array[1..maxboards1] of messages1; {* last read msg pointers *}
qscn:array[1..maxboards1] of boolean; {* scan boards flags *}
dlnscn:dlnscan1; {* scan uboards flags *}
vote:array[1..20] of byte; {* voting data *}
sex:char; {* user sex *}
ttimeon:longint; {* total mins spent on *}
x1xx:integer;
uk:longint; {* UL k *}
x2xx:integer;
dk:longint; {* DL k *}
x3xx:integer;
uploads,downloads:integer; {* # of ULs / # of DLs *}
loggedon:integer; {* # times logged on *}
tltoday:integer; {* # min left today *}
msgpost:integer; {* # public posts *}
emailsent:integer; {* # email sent *}
feedback:integer; {* # feedback sent *}
forusr:integer; {* forward mail to user # *}
filepoints:integer; {* # of file points *}
waiting:byte; {* mail waiting *}
linelen:byte; {* line length (# cols) *}
pagelen:byte; {* page length (# rows) *}
ontoday:byte; {* # times on today *}
illegal:byte; {* # illegal logon attempts *}
sl,dsl:byte; {* SL / DSL *}
cols:clrs1; {* user colors *}
lastmsg,lastfil:byte; {* last msg/file areas *}
credit:longint; {* $$$ credit in dollars *}
x4xx:integer;
timebank:integer; {* # mins in Time Bank *}
boardsysop:array[1..5] of byte; {* msg board SysOp *}
trapactivity:boolean; {* if trapping users activity *}
trapseperate:boolean; {* if trap to seperate TRAP file *}
{* NEW STUFF *}
timebankadd:integer;
mpointer:longint; {* pointer to entry in MACRO.LST *}
chatauto:boolean; {* if auto chat trapping *}
chatseperate:boolean; {* if seperate chat file to trap to *}
{* NEW STUFF *ENDS* *}
res:array[1..68] of byte;
end;
msgstat1=(validated1,unvalidated1,deleted1);
messagerec1=
record
title:string[30];
messagestat:msgstat1;
message:messages1;
owner:integer;
date:integer;
mage:byte;
end;
filearcinforec1=
record
active:boolean; {* whether this archive format is active *}
ext:string[3]; {* 3-chr file extension *}
listline:string[25]; {* /x for internal;
x: 1=ZIP, 2=ARC/PAK, 3=ZOO, 4=LZH *}
arcline:string[25];
unarcline:string[25];
testline:string[25]; {* '' for *None* *}
cmtline:string[25]; {* '' for *None* *}
succlevel:integer; {* -1 for ignore results *}
end;
zlogt1=
record
date:string[8];
userbaud:array[0..4] of integer;
active,calls,newusers,pubpost,privpost,fback,criterr:integer;
uploads,downloads:integer;
uk,dk:longint;
end;
systatrec1=
record
bbsname:string[40]; {BBS's name }
bbsphone:string[12]; {BBS's phone # }
sysopfirst:string[12]; {SysOp's 1st name }
sysoplast:string[16]; {SysOp's 2nd name }
boardpw:string[20]; {newuser PW (if active) }
sysoppw:string[20]; {SysOp PW }
bbspw:string[20]; {board PW (if matrix) }
closedsystem:boolean; {if no new users accepted }
matrix:boolean; {if Shuttle Logon active }
alias:boolean; {if allow alias's }
clearmsg:boolean; {if clear scr. before msg }
fone:boolean; {if ph# PW's active }
multitask:boolean; {if BBS is multitasking }
bwindow:boolean; {if large window active }
lock300:boolean; {if lockout 300 baud }
wantquote:boolean; {/// }
mcimsg:boolean; {/// }
special:boolean; {WFC menu special effects }
localsec:boolean; {if local security on }
localscreensec:boolean; {whether local screen security }
autominlogon:boolean; {if automessage in logon }
bullinlogon:boolean; {if bulletins in logon }
lcallinlogon:boolean; {if last caller list in logon }
autochatopen:boolean; {if chat buffer auto-open }
yourinfoinlogon:boolean; {whether yourinfo in logon }
globaltrap:boolean; {if trap all users activity }
snowchecking:boolean; {whether snow checking on }
forcevoting:boolean; {manditory voting during logon }
offhooklocallogon:boolean;{take phone off hook when logon locally }
hmsg:messages1; {highest msg counter }
tfiledate:string[8]; {last Tfiles date }
lastdate:string[8]; {/// }
callernum:longint; {# of callers }
users:integer; {# of users }
activetoday:integer; {TODAY's time-on count }
callstoday:integer; {TODAY's caller count }
msgposttoday:integer; {TODAY's post count }
emailtoday:integer; {TODAY's email count }
fbacktoday:integer; {TODAY's feedback count }
uptoday:integer; {TODAY's upload count }
newuk:integer; {TODAY's upload K count }
newusertoday:integer; {TODAY's new user count }
dntoday:integer; {TODAY's download count }
newdk:integer; {TODAY's download K count }
gfilepath:string[79]; {GFILES path }
pmsgpath:string[79]; {Private mail path }
menupath:string[79]; {MENUS path }
tfilepath:string[79]; {TFILES path }
afilepath:string[79]; {alternate text files path }
trappath:string[79]; {user audit trap path }
temppath:string[79]; {"temp" directory path }
lowtime,hitime:integer; {SysOp hours }
dllowtime,dlhitime:integer; {download hours }
b300lowtime,b300hitime:integer; {300 baud hours }
b300dllowtime,b300dlhitime:integer; {300 baud DL hours }
app:integer; {user num to send new user application to }
guestuser:integer; {user num of guest user }
timeoutbell:integer; {mins before timeout bell }
timeout:integer; {mins before timeout }
sysopcolor,usercolor:byte; {colors in chat mode }
bsdelay:byte; {backspacing delay }
tosysopdir:byte; {"To SysOp" file dir }
comport:byte; {comport # }
maxbaud:word; {max baud }
init:string[40]; {init string }
hangup:string[40]; {hangup string }
offhook:string[40]; {phone off hook string }
answer:string[40]; {answer string }
resultcode:array[1..2,0..4] of integer; {**-Result codes-** }
nocarrier:integer; {no carrier result code }
nodialtone:integer; {no dialtone result code }
busy:integer; {busy result code }
nocallinittime:integer; {reinit modem after x mins of inactivity }
tries:byte; {tries allowed for PW's }
newsl,newdsl:byte; {new- }
newar:set of acrq1; {user }
newac:set of uflags1; {automatic }
newfp:integer; {settings }
autosl,autodsl:byte; {auto- }
autoar:set of acrq1; {validation }
autoac:set of uflags1; {settings }
ansiq:string[80]; {"do you want ANSI" string }
engage:string[79]; {engage chat string }
endchat:string[79]; {end chat string }
sysopin:string[79]; {if in sysop hours }
sysopout:string[79]; {if outside sysop hours }
note:array[1..2] of string[79]; {logon notes (L 1-2) }
lprompt:string[40]; {logon prompt (L 3) }
wait:string[79]; {sysop working string }
pause:string[79]; {pause string }
msg1:string[79]; {enter msg line 1 }
msg2:string[79]; {enter msg line 2 }
new1:string[79]; {newscan begin string }
new2:string[79]; {newscan done string }
read:string[79]; {Msg (S)can prompt }
auto1:string[79]; {auto msg title }
autom:char; {auto msg borders }
echoc:char; {echo char for PWs }
uldlratio:boolean; {if UL/DL ratios on }
fileptratio:boolean; {if file pt ratios on }
fileptcomp:byte; {file pt compensation ratio }
fileptcompbasesize:byte; {file pt base compensation size }
timeallow:secrange1; {time allowance }
callallow:secrange1; {call allowance }
dlratio:secrange1; {# DLs ratios }
dlkratio:secrange1; {DL k ratios }
postratio:secrange1; {post ratios }
normpubpost,anonpubpost,anonpubread:byte; {public mail SLs }
normprivpost,anonprivpost,anonprivread:byte; {email SLs }
maxpubpost,maxprivpost:byte; {max post/email per call }
maxfback,maxchat:byte; {max feedback/pages per call }
maxwaiting,csmaxwaiting:byte; {max mail waiting, normal/CS }
maxlines,csmaxlines:byte; {max lines in msg, normal/CS }
sop,csop:byte; {SysOp SL / CoSysOp SL }
msop,fsop:byte; {Message SysOp SL / File SysOp SL }
spw:byte; {SysOp PW at logon }
seepw:byte; {see SysOp PWs remotely }
nodlratio:byte; {no DL ratio checking }
nopostratio:byte; {no post ratio checking }
nofilepts:byte; {no file pts checking SL }
seeunval:byte; {see unvalidated files SL }
dlunval:byte; {download unval. files SL }
ulrefund:byte; {% time refund for ULs }
eventwarningtime:integer; {time before event warning }
filearccomment:array[1..3] of string[80]; {BBS comment for ARC file }
filearcinfo:array[1..maxarcs1] of filearcinforec1; {ARC specs }
minspaceforpost:integer; (* minimum K req'd for a post *)
minspaceforupload:integer; (* minimum K req'd for an upload *)
postcredits:integer; (* file points/upload credit compensation for posts *)
ulvalreq:byte; (* uploads require validation override SL *)
moveline:string[30]; {commandline for MOVE utility }
backsysoplogs:byte; {# back-days to keep SYSOP##.LOG }
compressbases:boolean; {whether to "compress" file/msg bases user
doesn't have access to }
remdevice:string[10]; {remote output device }
userbaud:array[0..4] of integer; {user baud rates ... }
criterr:integer; {# critical errors occured today }
searchdup:boolean; {whether to search for duplicate filenames when UL }
istopwindow:boolean; {whether to put SysOp window on top of screen.. }
arq9600rate:word; {baud rate to USE when 9600 ARQ result code}
allstartmenu:string[8];
wfcblanktime:byte;
validateallfiles:boolean;
maxintemp:integer;
slogtype:byte;
stripclog:boolean;
noforcerate:boolean;
rebootforevent:boolean;
minresume:integer;
windowon:boolean;
curwindow:byte;
res:array[1..117] of byte; {reserved}
end;
blk1=array[1..255] of byte;
mailrec1=
record
title:string[30];
from,destin:integer;
msg:messages1;
date:integer;
mage:byte;
end;
gft1=
record
num:integer;
title:string[40];
filen:string[12];
ar:acrq1;
gdate:string[8];
gdaten:integer;
end;
smr1=
record
msg:astr1;
destin:integer;
end;
vdatar1=
record
question:string[79];
numa:integer;
answ:array[0..9] of
record
ans:string[40];
numres:integer;
end;
end;
boardrec1=
record
name:string[30];
filename:string[12];
msgpath:string[40]; {* path for message text *}
sl:byte;
postsl:byte;
ar:acrq1;
maxmsgs:byte;
anonymous:anontyp1;
password:string[10];
end;
ulrec1=
record
name:string[25]; {* area description *}
filename:string[12]; {* filename + ".DIR" *}
dlpath:string[40]; {* download path *}
noratio:boolean; {* if <No Ratio> active *}
sl:byte; {* SL required *}
dsl:byte; {* DSL required *}
namesl:byte; {* see who ULed SL req. *}
ar:acrq1; {* AR flag required *}
maxfiles:integer; {* max files allowed *}
agereq:byte; {* age required *}
password:string[10]; {* password required *}
arctype:byte; {* wanted archive type (1-maxarcs,0=inactive) *}
cmttype:byte; {* wanted comment type (1-3,0=inactive) *}
unhidden:boolean; {* whether *VISIBLE* to users w/o access *}
{*ulpath:string[39]; * upload path * *}
end;
filstat1=(notval1,isrequest1,resumelater1);
ulfrec1=
record
filename:string[12]; {* filename *}
description:string[60]; {* file description *}
filepoints:integer; {* file points *}
nacc:integer; {* # of DLs *}
ft:byte; {* file type *}
blocks:integer; {* # of 128 byte blocks *}
owner:integer; {* uploader of file *}
stowner:string[36]; {* uploader's name *}
date:string[8]; {* date ULed *}
daten:integer; {* date ULed, numeric *}
vpointer:longint; {* pointer to verbose description. *}
filestat:set of filstat1; {* file's status *}
res:array[1..10] of byte; {* RESERVED *}
end;
strptr1=^strrec1;
strrec1=
record
i:astr1;
next,last:strptr1;
end;
expro1=
record
active:boolean;
descr:string[30];
key:char;
rcmd,scmd:string[50];
brcmd,bscmd:string[50];
rescmd:string[50];
ptype,xferok:integer;
sl,dsl:byte;
ar:acrq1;
end;
verbrec1=
record
descr:array[1..4] of string[50];
end;
lcallers1=
record
callernum:integer;
name:string[36];
number:integer;
citystate:string[30];
end;
eventrec1=
record
active:boolean; (* whether active or not *)
description:string[30]; (* description *)
etype:char; (* [E]xternal or [D]os call *)
execdata:string[20]; (* errorlevel if [E], commandline if [D] *)
busytime:integer; (* off-hook time before; 0 if none *)
exectime:integer; (* execution time *)
busyduring:boolean; (* whether to busy phone DURING event *)
duration:integer; (* length of time takes *)
execdays:byte; (* bitwise execution days; DATE if monthly *)
monthly:boolean; (* whether once a month *)
end;
macrorec1=
record
macro:array [1..4] of string[240];
end;
mnuflags1=(autohelp1,autotime1,dslchk1,nomenuprompt1); {* H, T, D, N *}
menurec1=
record
menuname:string[100]; {* menu name *}
directive:string[12]; {* help file displayed *}
tutorial:string[12]; {* tutorial help file *}
menuprompt:string[120]; {* menu prompt *}
secreq:byte; {* security check (SL/DSL - see SL/DSL flag) *}
arreq:acrq1; {* AR required *}
password:string[15]; {* password required *}
fallback:string[8]; {* fallback menu *}
gencols:byte; {* generic menus: # of columns *}
gcol:array[1..3] of byte; {* generic menus: colors *}
menuflags:set of mnuflags1;{* DHT - (D)SL security checking,
(H)elp display automatic,
(T)ime display,
(N)o menu prompt *}
end;
cmdflags1=(checkeither1,dslcheck1,hidden1); {* C, D, H *}
commandrec1=
record
ldesc:string[70];
sdesc:string[35];
ckeys:string[14];
secreq:byte;
arreq:acrq1;
cmdkeys:string[2];
mstring:string[50];
commandflags:set of cmdflags1;
end;
protrec1=
record
active:boolean; (* whether active *)
isbatch,isresume:boolean; (* batch protocol? *)
ckeys:string[14]; (* command keys *)
descr:string[70]; (* description *)
minbaud,maxbaud:integer; (* min/max baud rates *)
sl,dsl:byte; (* SL/DSL req'd *)
ar:acrq1; (* AR flag *)
templog:string[60]; (* temp. log file *)
uloadlog,dloadlog:string[60]; (* permanent log files *)
ulcmd,dlcmd:string[78]; (* UL/DL commandlines *)
xferokcode:boolean; (* codes mean X-fer ok *)
ulcode,dlcode:array [1..6] of string[10]; (* UL/DL codes *)
envcmd:string[60]; {B}(* environment setup cmd *)
dlflist:string[60]; {B}(* DL file lists *)
maxchrs:integer; (* max chrs in cmdline *)
logpf,logps:integer; {B}(* pos in log file for data *)
end;