-
Notifications
You must be signed in to change notification settings - Fork 0
/
CONFIG.PAS
1854 lines (1718 loc) · 58.1 KB
/
CONFIG.PAS
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
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{$I DIRECT.INC}
{$M 65000,1024,10024}
Uses Dos, Crt, GenTypes, Configrt, Gensubs, FileLock, DispEdit, Video,
Little;
Var TopScreen : Screens;
Procedure WriteConfig;
Var C : File of ConfigSetType;
Begin
Assign(C,'CONFIG.BBS');
ResetOrRewrite(C, SizeOf(Cfg));
NWrite(C, Cfg);
Close(C);
End;
Procedure FormatConfig;
Var Cnt : Integer;
X : Byte;
Begin
FillChar(Cfg, SizeOf(Cfg), #0);
Cfg.LongName := 'Electronic Frontier';
Cfg.ShortName := 'TEF';
Cfg.SysopName := 'Net Distortion';
Cfg.BoardPhone := '314-874-9326';
GetDir (0,Cfg.PipeLineDir);
Cfg.PipeLineDir := Cfg.PipeLineDir + '\';
Cfg.TextDir := Cfg.PipeLineDir + 'TEXT\';
Cfg.UploadDir := Cfg.PipeLineDir + 'WORK\';
Cfg.BoardDir := Cfg.PipeLineDir + 'BOARDS\';
Cfg.UseINet := False;
cfg.textfiledir :=cfg.PiPELiNEdir+'MENUS\';
cfg.doordir :=cfg.PiPELiNEdir+'DOORS\';
cfg.DataDir :=cfg.PiPELiNEdir+'DATA\';
Cfg.ExtractDir :=Cfg.PiPELiNEdir+'EXTRACT\';
Cfg.MenuDir :=Cfg.PiPELiNEDir + 'MENUDATA\';
cfg.MaxDosShell :=True;
cfg.UseEms :=True;
cfg.modemsetupstr:='ATX6HM0S0=1|';
cfg.modemhangupstr:='+++~~~ATH|';
Cfg.OffHookStr:='ATH1 M0|';
cfg.defbaudrate:=384;
cfg.usecom:=1;
cfg.anonymouslevel:=5;
cfg.numprelogon:=1;
cfg.mintimeout:=5;
cfg.sysoplevel:=1000;
cfg.deflevel:=25;
cfg.defudratio:=25;
cfg.defudkratio:=25;
cfg.defpcr:=25;
cfg.defmsglength:=30;
Cfg.DefFlags[0]:=#0;
cfg.defdailykblimit:=5000;
cfg.defudlevel:=0;
cfg.defudpoints:=0;
cfg.uploadfactor:=5;
cfg.private:=false;
cfg.autologin:=false;
cfg.useconmode:=true;
cfg.escinmsgs:=false;
cfg.bkspinmsgs:=true;
cfg.requiredforms:='15';
cfg.nuvform:=5;
cfg.Infoformstr[1]:='New User Application';
cfg.Infoformstr[2]:='';
cfg.Infoformstr[3]:='';
cfg.Infoformstr[4]:='';
cfg.Infoformstr[5]:='New User Voting Form';
For Cnt:=1 to 5 do Cfg.Infoformlvl[Cnt] := 0;
Cfg.DotChar:='ù';
cfg.supportedrates:=[b300,b1200,b2400,b4800,b7200,b9600,b12000,b14400,b16800,b19200,b21600,b24000,b26400,b28800,b38400,
b57600,b115200,b31200,b33600];
cfg.downloadrates:=cfg.supportedrates;
cfg.availtime:='10:00 am';
cfg.unavailtime:='10:00 pm';
for cnt:=1 to 100 do cfg.usertime[cnt]:=60;
cfg.level2nd:=1;
cfg.udlevel2nd:=0;
cfg.logonlevel:=5;
cfg.anonymousstr:='[ Anonymous ]';
cfg.systempassword:='Change This';
cfg.remotedoors:=false;
cfg.allowdoors:=true;
cfg.eventtime[0]:=#0;
cfg.eventbatch[0]:=#0;
cfg.directvideomode:=true;
cfg.checksnowmode:=true;
cfg.matrixtype:=2;
cfg.defcolor1:=15;
cfg.defcolor2:=3;
cfg.defcolor3:=7;
cfg.defcolor4:=15;
cfg.defcolor5:=9;
cfg.defcolor6:=7;
cfg.defcolor7:=31;
cfg.lowbaudpassword:='!Get Lost!';
cfg.newuserpassword:='';
cfg.dospassword:='Change This';
cfg.RumChar:=' ';
cfg.DSZLOG:=CFG.PiPELiNEDiR+'XFER';
cfg.KPerPoint:=100;
cfg.PointCommision:=1;
cfg.TimepercentBack:=50;
cfg.MinFreeSpace:=250;
cfg.ExemptLevel:=99;
cfg.UseBox:=True;
cfg.BoxChar:='°';
Cfg.BoxAbort:='Aborted!!';
Cfg.FilterQuote:=True;
Cfg.PercentLocal:=20;
Cfg.UseNUV:=True;
Cfg.AutoADDNuv:=True;
Cfg.NUVUseLevel:=25;
Cfg.NuvY:=10;
Cfg.NuvN:=10;
Cfg.NUVKill:=True;
Cfg.NuvValidate:=True;
Cfg.NuvLevel:=25;
Cfg.NuvUDLevel:=25;
Cfg.NUVPoints:=5;
Cfg.NetName:='SENSENet';
Cfg.ChangeNote:=True;
Cfg.cc[1]:=1;
Cfg.cc[2]:=9;
Cfg.cc[3]:=5;
Cfg.cc[4]:=13;
Cfg.cc[5]:=5;
Cfg.cc[6]:=9;
Cfg.cc[7]:=1;
Cfg.cc[8]:=8;
Cfg.MaxMsgConf:=1;
Cfg.MaxFileConf:=1;
Cfg.BarChar:='³³';
Cfg.FilePoint:='File Point';
Cfg.FilePoints:='File Points';
Cfg.ChatNoise:=True;
Cfg.ChatCost:=0;
Cfg.HangUpOnNew:=True;
Cfg.ScreenSave:=5;
Cfg.UseAutoAnswer:=True;
Cfg.AutoAnswerStr[0]:=#0;
Cfg.DefTopFive:=3;
cfg.DefBottomline:=1;
cfg.ExtractCost:=0;
cfg.fidoorigin[0]:=#0;
cfg.DefUserNote := 'Regular User';
cfg.NodeNum := 1;
cfg.TotalNodes := 1;
cfg.NodeDir[0] := #0;
cfg.Use_One_Liners := True;
cfg.MaxTimeBank:=60;
cfg.DefFidoAddress[0]:=#0;
cfg.QWKname := 'PL-';
cfg.MaxQuotedLines := 5;
cfg.CDROM[0]:=#0;
cfg.amtmatrix:=1;
cfg.Uploadedbycolor:=3;
cfg.forcediz:=true;
writeconfig
end;
procedure def_colors;
begin
pcolor := 31;
normcolor := 27;
incolor := 14;
def_fill := #32;
end;
procedure message(m : lstr; beep : boolean);
var s : screens;
x : word;
k : char;
begin
readscr(S);
color(4,12);
growbox(10,12,70,14);
color(12,15);
gotoxy(11,13);
for x := 11 to 69
do write(#32);
center_write(M,13);
if beep then begin
for x := 4500 to 5500
do sound(X);
for x := 3500 to 4500
do sound(X);
nosound;
k := getkey;
end else
delay(2000);
writeScr(S);
end;
Procedure Ask_Colors;
Begin
PColor := 5 * 16 + 14;
NormColor := 5 * 16 + 15;
InColor := 14;
Def_Fill := #32;
End;
Procedure Ask(X1,Y1,X2,Y2 : Byte; { Where }
Title : Lstr; { Title of Box }
Question : Lstr; { Da Question }
Len : Byte; { Max Input Length }
VAR Result : Mstr); { User Input }
Var S : Screens;
K : Char;
X : Byte;
Begin
ReadScr(S);
Ask_Colors;
Color(5,15);
GrowBOX(X1,Y1,X2,Y2);
Color(13,15);
GotoXy(X1 + 1,Y1 + 1);
For X := (X1 - 1) to (X2 - 3)
Do Write(#32);
Center_Write(Title,Y1 + 1);
GotoXy(X1 + 3,Y1 + 2);
Raw_Editor(Edit,X1 + 3,Y1 + 3,Question,Result,Len,K,False,'',True);
If K = ESC
Then Result := '';
WriteScr(S);
Def_Colors;
End;
procedure create_box(top,bottom:byte; title:mstr);
begin
color(1,15);
growbox(5,top,75,bottom);
gotoxy(7,top);
color(1,7);
write('[');
color(1,12);
write(title);
color(1,7);
write(']');
end;
Procedure Edit_Main_Config;
procedure edit_stuff(curfield : byte);
const maxfield = 14;
var pentry,
entry : integer;
current : word;
k : char; x : byte;
s : screens;
procedure process_main(func:edit_functions);
begin
case entry of
1 : edit_string(func,7,10,'BBS Full Name : ',cfg.longname,50,k);
2 : edit_string(func,7,11,'BBS Short Name : ',cfg.shortname,50,k);
3 : edit_string(func,7,12,'SysOp Name : ',cfg.sysopname,30,k);
4 : edit_string(func,7,13,'BBS Phone Number : ',cfg.boardphone,12,k);
5 : edit_string(func,7,14,'BBS Internet Adr : ',cfg.bbsaddress,45,k);
end;
select_next_entry(func,entry,5,k);
end;
procedure process_dirs(func:edit_functions);
begin
case entry of
1 : edit_string(func,7,8,'Main Directory : ',cfg.PiPELiNEdir,40,k);
2 : edit_string(func,7,9,'ANSI Directory : ',cfg.textfiledir,40,k);
3 : edit_string(func,7,10,'Menu Data Directory : ',cfg.menudir,40,k);
4 : edit_string(func,7,11,'Misc. Data Directory : ',cfg.datadir,40,k);
5 : edit_string(func,7,12,'Message Storage Directory : ',cfg.textdir,40,k);
6 : edit_string(func,7,13,'Boards Directory : ',cfg.boarddir,40,k);
7 : edit_string(func,7,14,'Work Directory : ',cfg.uploaddir,40,k);
8 : edit_string(func,7,15,'Extraction Directory : ',cfg.extractdir,40,k);
9 : edit_string(func,7,16,'Doors Directory : ',cfg.doordir,40,k);
10 : edit_string(func,7,17,'CD-ROM Drives : ',cfg.cdrom,26,k);
end;
select_next_entry(func,entry,10,k);
end;
procedure process_timeday(func:edit_functions);
begin
case entry of
1 : edit_word(func,7,6,'1 : ',cfg.usertime[1],3,0,999,k);
2 : edit_word(func,7,7,'2 : ',cfg.usertime[2],3,0,999,k);
3 : edit_word(func,7,8,'3 : ',cfg.usertime[3],3,0,999,k);
4 : edit_word(func,7,9,'4 : ',cfg.usertime[4],3,0,999,k);
5 : edit_word(func,7,10,'5 : ',cfg.usertime[5],3,0,999,k);
6 : edit_word(func,7,11,'6 : ',cfg.usertime[6],3,0,999,k);
7 : edit_word(func,7,12,'7 : ',cfg.usertime[7],3,0,999,k);
8 : edit_word(func,7,13,'8 : ',cfg.usertime[8],3,0,999,k);
9 : edit_word(func,7,14,'9 : ',cfg.usertime[9],3,0,999,k);
10: edit_word(func,7,15,'10: ',cfg.usertime[10],3,0,999,k);
11: edit_word(func,7,16,'11: ',cfg.usertime[11],3,0,999,k);
12: edit_word(func,7,17,'12: ',cfg.usertime[12],3,0,999,k);
13: edit_word(func,7,18,'13: ',cfg.usertime[13],3,0,999,k);
14: edit_word(func,7,19,'14: ',cfg.usertime[14],3,0,999,k);
15: edit_word(func,7,20,'15: ',cfg.usertime[15],3,0,999,k);
16: edit_word(func,7,21,'16: ',cfg.usertime[16],3,0,999,k);
17: edit_word(func,15,6,'17: ',cfg.usertime[17],3,0,999,k);
18: edit_word(func,15,7,'18: ',cfg.usertime[18],3,0,999,k);
19: edit_word(func,15,8,'19: ',cfg.usertime[19],3,0,999,k);
20: edit_word(func,15,9,'20: ',cfg.usertime[20],3,0,999,k);
21: edit_word(func,15,10,'21: ',cfg.usertime[21],3,0,999,k);
22: edit_word(func,15,11,'22: ',cfg.usertime[22],3,0,999,k);
23: edit_word(func,15,12,'23: ',cfg.usertime[23],3,0,999,k);
24: edit_word(func,15,13,'24: ',cfg.usertime[24],3,0,999,k);
25: edit_word(func,15,14,'25: ',cfg.usertime[25],3,0,999,k);
26: edit_word(func,15,15,'26: ',cfg.usertime[26],3,0,999,k);
27: edit_word(func,15,16,'27: ',cfg.usertime[27],3,0,999,k);
28: edit_word(func,15,17,'28: ',cfg.usertime[28],3,0,999,k);
29: edit_word(func,15,18,'29: ',cfg.usertime[29],3,0,999,k);
30: edit_word(func,15,19,'30: ',cfg.usertime[30],3,0,999,k);
31: edit_word(func,15,20,'31: ',cfg.usertime[31],3,0,999,k);
32: edit_word(func,15,21,'32: ',cfg.usertime[32],3,0,999,k);
33: edit_word(func,23,6,'33: ',cfg.usertime[33],3,0,999,k);
34: edit_word(func,23,7,'34: ',cfg.usertime[34],3,0,999,k);
35: edit_word(func,23,8,'35: ',cfg.usertime[35],3,0,999,k);
36: edit_word(func,23,9,'36: ',cfg.usertime[36],3,0,999,k);
37: edit_word(func,23,10,'37: ',cfg.usertime[37],3,0,999,k);
38: edit_word(func,23,11,'38: ',cfg.usertime[38],3,0,999,k);
39: edit_word(func,23,12,'39: ',cfg.usertime[39],3,0,999,k);
40: edit_word(func,23,13,'40: ',cfg.usertime[40],3,0,999,k);
41: edit_word(func,23,14,'41: ',cfg.usertime[41],3,0,999,k);
42: edit_word(func,23,15,'42: ',cfg.usertime[42],3,0,999,k);
43: edit_word(func,23,16,'43: ',cfg.usertime[43],3,0,999,k);
44: edit_word(func,23,17,'44: ',cfg.usertime[44],3,0,999,k);
45: edit_word(func,23,18,'45: ',cfg.usertime[45],3,0,999,k);
46: edit_word(func,23,19,'46: ',cfg.usertime[46],3,0,999,k);
47: edit_word(func,23,20,'47: ',cfg.usertime[47],3,0,999,k);
48: edit_word(func,23,21,'48: ',cfg.usertime[48],3,0,999,k);
49: edit_word(func,31,6,'49: ',cfg.usertime[49],3,0,999,k);
50: edit_word(func,31,7,'50: ',cfg.usertime[50],3,0,999,k);
51: edit_word(func,31,8,'51: ',cfg.usertime[51],3,0,999,k);
52: edit_word(func,31,9,'52: ',cfg.usertime[52],3,0,999,k);
53: edit_word(func,31,10,'53: ',cfg.usertime[53],3,0,999,k);
54: edit_word(func,31,11,'54: ',cfg.usertime[54],3,0,999,k);
55: edit_word(func,31,12,'55: ',cfg.usertime[55],3,0,999,k);
56: edit_word(func,31,13,'56: ',cfg.usertime[56],3,0,999,k);
57: edit_word(func,31,14,'57: ',cfg.usertime[57],3,0,999,k);
58: edit_word(func,31,15,'58: ',cfg.usertime[58],3,0,999,k);
59: edit_word(func,31,16,'59: ',cfg.usertime[59],3,0,999,k);
60: edit_word(func,31,17,'60: ',cfg.usertime[60],3,0,999,k);
61: edit_word(func,31,18,'61: ',cfg.usertime[61],3,0,999,k);
62: edit_word(func,31,19,'62: ',cfg.usertime[62],3,0,999,k);
63: edit_word(func,31,20,'63: ',cfg.usertime[63],3,0,999,k);
64: edit_word(func,31,21,'64: ',cfg.usertime[64],3,0,999,k);
65: edit_word(func,39,6,'65: ',cfg.usertime[65],3,0,999,k);
66: edit_word(func,39,7,'66: ',cfg.usertime[66],3,0,999,k);
67: edit_word(func,39,8,'67: ',cfg.usertime[67],3,0,999,k);
68: edit_word(func,39,9,'68: ',cfg.usertime[68],3,0,999,k);
69: edit_word(func,39,10,'69: ',cfg.usertime[69],3,0,999,k);
70: edit_word(func,39,11,'70: ',cfg.usertime[70],3,0,999,k);
71: edit_word(func,39,12,'71: ',cfg.usertime[71],3,0,999,k);
72: edit_word(func,39,13,'72: ',cfg.usertime[72],3,0,999,k);
73: edit_word(func,39,14,'73: ',cfg.usertime[73],3,0,999,k);
74: edit_word(func,39,15,'74: ',cfg.usertime[74],3,0,999,k);
75: edit_word(func,39,16,'75: ',cfg.usertime[75],3,0,999,k);
76: edit_word(func,39,17,'76: ',cfg.usertime[76],3,0,999,k);
77: edit_word(func,39,18,'77: ',cfg.usertime[77],3,0,999,k);
78: edit_word(func,39,19,'78: ',cfg.usertime[78],3,0,999,k);
79: edit_word(func,39,20,'79: ',cfg.usertime[79],3,0,999,k);
80: edit_word(func,39,21,'80: ',cfg.usertime[80],3,0,999,k);
81: edit_word(func,47,6,'81: ',cfg.usertime[81],3,0,999,k);
82: edit_word(func,47,7,'82: ',cfg.usertime[82],3,0,999,k);
83: edit_word(func,47,8,'83: ',cfg.usertime[83],3,0,999,k);
84: edit_word(func,47,9,'84: ',cfg.usertime[84],3,0,999,k);
85: edit_word(func,47,10,'85: ',cfg.usertime[85],3,0,999,k);
86: edit_word(func,47,11,'86: ',cfg.usertime[86],3,0,999,k);
87: edit_word(func,47,12,'87: ',cfg.usertime[87],3,0,999,k);
88: edit_word(func,47,13,'88: ',cfg.usertime[88],3,0,999,k);
89: edit_word(func,47,14,'89: ',cfg.usertime[89],3,0,999,k);
90: edit_word(func,47,15,'90: ',cfg.usertime[90],3,0,999,k);
91: edit_word(func,47,16,'91: ',cfg.usertime[91],3,0,999,k);
92: edit_word(func,47,17,'92: ',cfg.usertime[92],3,0,999,k);
93: edit_word(func,47,18,'93: ',cfg.usertime[93],3,0,999,k);
94: edit_word(func,47,19,'94: ',cfg.usertime[94],3,0,999,k);
95: edit_word(func,47,20,'95: ',cfg.usertime[95],3,0,999,k);
96: edit_word(func,47,21,'96: ',cfg.usertime[96],3,0,999,k);
97: edit_word(func,55,6,'97: ',cfg.usertime[97],3,0,999,k);
98: edit_word(func,55,7,'98: ',cfg.usertime[98],3,0,999,k);
99: edit_word(func,55,8,'99: ',cfg.usertime[99],3,0,999,k);
100: edit_word(func,55,9,'100: ',cfg.usertime[100],3,0,999,k);
end;
select_next_entry(func,entry,100,k);
end;
procedure process_modem(func:edit_functions);
begin
case entry of
1 : edit_integer(func,7,6,'COM Port (0-8) : ',cfg.usecom,1,0,8,k);
2 : edit_baud(func,7,7,'Default Baud Rate (Space Toggles) : ',cfg.defbaudrate,k);
3 : edit_string(func,7,8,'Modem Init String : ',cfg.modemsetupstr,44,k);
4 : edit_string(func,7,9,'Modem Hang-up String : ',cfg.modemhangupstr,44,k);
5 : edit_string(func,7,10,'Off-hook String : ',cfg.offhookstr,44,k);
6 : edit_yesno(func,7,11,'BBS Software Answer Phone : ',cfg.useautoanswer,k);
7 : edit_string(func,7,12,'Manual Answer String : ',cfg.autoanswerstr,44,k);
end;
select_next_entry(func,entry,7,k);
end;
procedure writeat(x,y,f,b:byte;s:string);
begin
gotoxy(x,y);
color(b,f);
write(s);
end;
procedure dobaud(var newbaud:baudset; title:mstr);
const baud : array[1..19] of string[6] =
('300','1200','2400','4800','7200','9600','12000','14400','16800','19200','21600','24000','26400','28800',
'31200','33600','38400','57600','115200');
var x,globalb : baudratetype;
a : byte;
old : baudset;
procedure placebar(b:baudratetype; hi:boolean);
var c1,c2 : byte;
begin
if not hi then begin
c1 := 15;
c2 := 1;
end else begin
c1 := 14;
c2 := 0;
end;
if b > B110 then
if b in newbaud then
writeat(22,a+3,12,1,'û ') else
writeat(22,a+3,12,1,' ');
writeat(23,a+3,c1,c2,baud[a]);
end;
procedure setbox;
begin
color(1,15);
growbox(20,3,61,23);
gotoxy(22,3);
color(1,7);
write('[');
color(1,12);
write(title);
color(1,7);
write(']');
writeat(30,11,11,1,'<CR> : Saves List and Exits');
writeat(30,12,11,1,'Esc : Aborts/Keeps Old Value');
writeat(30,13,11,1,'Space: Toggles Highlighted Baud');
writeaT(30,14,11,1,'Up/Down Arrows Scroll');
a:=1;
end;
procedure changebaud(b:baudratetype);
begin
if b in newbaud then
newbaud := newbaud-[b] else
newbaud := newbaud+[b];
globalb := b;
end;
begin
old := newbaud;
setbox;
a := 0;
for x := b300 to b115200 do
begin
inc(a);
placebar(x,false);
end;
a := 1;
placebar(b300,true);
repeat
k := get_key;
case k of
down : begin
placebar(b110,false);
inc(a);
if a>19 then a := 1;
placebar(b110,true);
end;
up : begin
placebar(b110,false);
dec(a);
if a < 1 then a := 19;
placebar(b110,true);
end;
#32 : begin
case a of
1 : changebaud(b300);
2 : changebaud(b1200);
3 : changebaud(b2400);
4 : changebaud(b4800);
5 : changebaud(b7200);
6 : changebaud(b9600);
7 : changebaud(b12000);
8 : changebaud(b14400);
9 : changebaud(b16800);
10 : changebaud(b19200);
11 : changebaud(b21600);
12 : changebaud(b24000);
13 : changebaud(b26400);
14 : changebaud(b28800);
15 : changebaud(b31200);
16 : changebaud(b33600);
17 : changebaud(b38400);
18 : changebaud(b57600);
19 : changebaud(b115200);
end;
placebar(globalb,false);
inc(a);
if a > 19 then a := 1;
placebar(b110,true);
end;
#27 : newbaud := old;
end;
until k in [#13,#27,pgup,pgdn];
if k = #13 then k := pgdn;
end;
procedure docolors;
const colorstr : array [0..15] of string[8] =
('Black ','Blue ','Green ','Cyan ','Red ','Purple ',
'Brown ','White ','Gray ','Hi Blue ','Hi Green','Hi Cyan ',
'Hi Red ','Magenta ','Yellow ','Hi White ');
var x,a,b : byte;
c : array[1..15] of byte;
done : boolean;
procedure rcolor(x,y:byte);
begin
color(x,y);
end;
procedure doattrib(VAR Color:Byte);
function demo : integer;
var loc,hic : integer;
it : byte;
k : char;
s : screens;
begin
demo := color;
readscr(s);
rcolor(0,8);
growbox(49,6,78,18);
writeat(51,7,9,0, ' Left/Right Arrow:');
writeat(51,8,9,0, ' Changes Forground');
writeat(51,9,9,0, ' Up/Down Arrow:');
writeat(51,10,9,0, ' Changes Background');
writeat(51,11,9,0, ' Enter: Change Color');
writeat(51,12,11,0,' ESC: Aborts');
Writeat(51,15,8,0,'On');
gotoxy(60,15);
for loc:=0 to 15 do begin
TextAttr:=loc+16;
write('Û');
end;
it:=color;
If It>15 then loc:=it Mod 16 else loc:=it;
hic:=(it shr 4) and 7;
repeat
gotoxy(60+loc,14);
TextAttr:=15;
write('');
gotoxy(60+hic,16);
write(chr(30));
gotoxy(50,14);
TextAttr:=loc;
if loc=0 then begin { foreground }
textattr:=8;
write('Black ');
end else write(colorstr[loc]);
gotoxy (50,16); textattr:=hic;
if hic = 0 then begin { background }
textattr:=8;
write('Black ');
end else write (colorstr[hic]);
textattr:=9;
k:=readkey;
if (k=#77) then begin
gotoxy(loc+60,14);write(' ');
loc:=loc+1;
if loc > 15 then loc:=0;
end else if (k=#75) then begin
gotoxy(loc + 60,14);write(' ');
loc:=loc - 1;
if loc < 0 then loc:=15;
end else
if k=#72 then begin
gotoxy(hic+60,16);write (' ');
hic:=hic + 1;
if hic > 7 then hic:=0;
end else if k = #80 then begin
gotoxy (hic+60,16);write (' ');
hic:=hic - 1;
if hic < 0 then hic:=7;
end;
until (k=#13) or (k=#27);
if k=#13 then demo:=(hic * 16) + loc else demo:=color;
writescr(s);
end;
var cnt,v,back:integer;
k:char;
begin
v:=demo;
Color:=v;
end;
procedure writecolor(hi:boolean; color:integer);
var c1,c2 : byte;
begin
if hi then writeat(33,X+4,14,1,'>')
else writeat(33,x+4,15,1,#32);
if hi then begin
c1 := 15;
c2 := 4;
end else begin
c1 := color and 15;
c2 := color shr 4;
End;
writeat(34,X+4,C1,C2,colorstr[Color and 15]+' on '+colorstr[(Color shr 4) and 7]);
C[x]:=Color;
end;
var xx : byte;
begin
done := false;
create_box(4,21,'Default Color Settings');
window(7,5,75,21);
color(1,15);
for x := 1 to 7 do writeln('Default User Color '+strr(x)+' : ');
writeln('Uploaded By: Color Setup : ');
for x := 1 to 8 do writeln('Alternating Chat Color '+strr(x)+' : ');
window(1,1,80,25);
x := 1;
writecolor(False,Cfg.DefColor1); X:=2;
writecolor(False,Cfg.DefColor2); X:=3;
writecolor(False,Cfg.DefColor3); X:=4;
writecolor(False,Cfg.DefColor4); X:=5;
writecolor(False,Cfg.DefColor5); X:=6;
writecolor(False,Cfg.DefColor6); X:=7;
writecolor(False,Cfg.DefColor7); X:=8;
writecolor(False,Cfg.Uploadedbycolor); X:=9;
for x := 9 to 16 Do WriteColor(False,Cfg.CC[X-8]);
x := 1;
WriteColor(True,Cfg.DefColor1);
Repeat
k := get_key;
CASE k OF
up:Begin {UP}
WriteColor(false,C[X]);
dec(x);
IF x<=0 Then x:=16;
WriteColor(true,C[X]);
End;
down:Begin {DOWN}
Writecolor(False,C[X]);
inc(x);
IF x>=17 Then x:=1;
WriteColor(true,C[X]);
End;
#13: Begin
CASE X OF
1..16:DoAttrib(C[X]);
End;
WriteColor(true,C[x]);
End;
#196,pgup,pgdn,#27:Begin
Cfg.DefColor1:=C[1];
Cfg.DefColor2:=C[2];
Cfg.DefColor3:=C[3];
Cfg.DefColor4:=C[4];
Cfg.DefColor5:=C[5];
Cfg.DefColor6:=C[6];
Cfg.DefColor7:=C[7];
Cfg.Uploadedbycolor:=C[8];
For X:=9 to 16 Do Cfg.CC[X-8]:=C[X];
Done:=True;
End;
End;
until done;
End;
procedure process_systemvars(func:edit_functions);
begin
case entry of
1 : edit_yesno(func,7,5,'Use Direct Screen Writes : ',cfg.directvideomode,k);
2 : edit_yesno(func,7,6,'Use EMS for Overlay file : ',cfg.useems,k);
3 : edit_yesno(func,7,7,'Swap for DOS Shell : ',cfg.maxdosshell,k);
4 : edit_yesno(func,7,8,'Local Auto-Login : ',cfg.autologin,k);
5 : edit_yesno(func,7,9,'Refuse New Users : ',cfg.private,k);
6 : edit_string(func,7,10,'Available for Chat start time : ',cfg.availtime,12,k);
7 : edit_string(func,7,11,'Available for Chat end time : ',cfg.unavailtime,12,k);
8 : edit_byte(func,7,12,'Screen Save after this many minutes : ',cfg.screensave,3,1,100,k);
9 : edit_byte(func,7,13,'Node Number : ',cfg.nodenum,2,0,99,k);
10: edit_byte(func,7,14,'Total Nodes : ',cfg.totalnodes,2,0,99,k);
11: edit_byte(func,7,15,'Default Bottom Line (0-3) : ',cfg.defbottomline,1,0,3,k);
12: edit_byte(func,7,16,'Default Top-Five Listing : ',cfg.deftopfive,2,0,3,k);
13: edit_byte(func,7,17,'Total Message Conferences : ',cfg.maxmsgconf,2,1,99,k);
14: edit_byte(func,7,18,'Total File Conferences : ',cfg.maxfileconf,2,1,99,k);
15: edit_string(func,7,19,'QWK Packet Name : ',cfg.qwkname,6,k);
16: edit_integer(func,7,20,'Chat Cost (file points) : ',cfg.chatcost,3,0,999,k);
17: edit_yesno(func,7,21,'Chat Noise Made : ',cfg.chatnoise,k);
18: edit_yesno(func,7,22,'Use Internet : ',cfg.useinet,k);
end;
select_next_entry(func,entry,18,k);
end;
procedure process_levels(func:edit_functions);
begin
case entry of
1 : edit_integer(func,7,7,'Minimum SysOp Level : ',cfg.sysoplevel,5,1,32767,k);
2 : edit_integer(func,7,8,'Minimum Login Level : ',cfg.logonlevel,5,1,32767,k);
3 : edit_integer(func,7,9,'Post Anonymous Level : ',cfg.anonymouslevel,5,1,32767,k);
4 : edit_integer(func,7,10,'Default User Level : ',cfg.deflevel,5,0,32767,k);
5 : edit_integer(func,7,11,'Default User File Level : ',cfg.defUDlevel,5,0,32767,k);
6 : edit_integer(func,7,12,'Default User File Points : ',cfg.defudpoints,5,0,32767,k);
7 : edit_integer(func,7,13,'Default User UD Ratio : ',cfg.defudratio,5,0,32767,k);
8 : edit_integer(func,7,14,'Default User UD K Ratio : ',cfg.defudkratio,5,0,32767,k);
9 : edit_integer(func,7,15,'Default Daily KB Limit : ',cfg.defdailykblimit,5,0,32767,k);
10: edit_integer(func,7,16,'Default Required PCR : ',cfg.defpcr,5,0,32767,k);
11: edit_integer(func,7,17,'Default Required Message Length for credit : ',cfg.defmsglength,5,0,32767,k);
12: edit_string(func,7,18,'Default Flags : ',cfg.defflags,26,k);
13: edit_string(func,7,19,'Default User Note : ',cfg.defusernote,30,k);
14: edit_integer(func,7,20,'Exempt from PCR/Ratios Level : ',cfg.exemptlevel,5,0,32767,k);
end;
select_next_entry(func,entry,14,k);
end;
procedure process_forms(func:edit_functions);
begin
case entry of
1 : edit_byte(func,7,6,'Matrix (0/None 1/Script 2/Pulldown) : ',cfg.matrixtype,1,0,2,k);
2 : edit_byte(func,7,7,'Amount of PDMatrices : ',cfg.amtmatrix,3,0,255,k);
3 : edit_yesno(func,7,8,'Hang-up on New Users : ',cfg.hanguponnew,k);
4 : edit_string(func,7,9,'Required Infoforms : ',cfg.requiredforms,5,k);
5 : edit_string(func,7,10,'Infoform #1 Description : ',cfg.infoformstr[1],30,k);
6 : edit_string(func,7,11,'Infoform #2 Description : ',cfg.infoformstr[2],30,k);
7 : edit_string(func,7,12,'Infoform #3 Description : ',cfg.infoformstr[3],30,k);
8 : edit_string(func,7,13,'Infoform #4 Description : ',cfg.infoformstr[4],30,k);
9 : edit_string(func,7,14,'Infoform #5 Description : ',cfg.infoformstr[5],30,k);
10 : edit_integer(func,7,15,'Infoform #1 Minimum Level : ',cfg.infoformlvl[1],5,0,32767,k);
11 : edit_integer(func,7,16,'Infoform #2 Minimum Level : ',cfg.infoformlvl[2],5,0,32767,k);
12 : edit_integer(func,7,17,'Infoform #3 Minimum Level : ',cfg.infoformlvl[3],5,0,32767,k);
13 : edit_integer(func,7,18,'Infoform #4 Minimum Level : ',cfg.infoformlvl[4],5,0,32767,k);
14 : edit_integer(func,7,19,'Infoform #5 Minimum Level : ',cfg.infoformlvl[5],5,0,32767,k);
end;
select_next_entry(func,entry,14,k);
end;
procedure process_password(func:edit_functions);
var s : string[1];
begin
case entry of
1 : edit_string(func,7,9,'BBS Login Password : ',cfg.systempassword,30,k);
2 : edit_string(func,7,10,'New User Password : ',cfg.newuserpassword,30,k);
3 : edit_string(func,7,11,'Lockout Baud Password : ',cfg.lowbaudpassword,30,k);
4 : edit_string(func,7,12,'DOS Shell Password : ',cfg.dospassword,30,k);
5 : begin
s[1] := cfg.dotchar;
edit_string(func,7,13,'Password Echo Character : ',s,1,k);
cfg.dotchar := s[1];
end;
end;
select_next_entry(func,entry,5,k);
end;
procedure process_filesec(func:edit_functions);
begin
case entry of
1 : edit_integer(func,7,8,'File Point Validation Commision : ',cfg.uploadfactor,3,0,100,k);
2 : edit_integer(func,7,9,'Value/File Size Conversion (in K) : ',cfg.KPerPoint,4,0,9999,k);
3 : edit_byte(func,7,10,'File Commision when Downloaded : ',cfg.pointcommision,3,0,255,k);
4 : edit_byte(func,7,11,'Time % Back After Upload : ',cfg.timepercentback,3,0,255,k);
5 : edit_integer(func,7,12,'Minimum HD Space for Uploads (K) : ',cfg.minfreespace,4,0,9999,k);
6 : edit_string(func,7,13,'Path/Filename to DSZLOG : ',cfg.dszlog,40,k);
7 : edit_string(func,7,14,'Name for File Point (Singular) : ',cfg.filepoint,30,k);
8 : edit_string(func,7,15,'Name for File Points (Plural) : ',cfg.filepoints,30,k);
9 : edit_byte(func,7,16,'Cost per File when Extracting : ',cfg.extractcost,3,0,100,k);
10: edit_yesno(func,7,17,'Force DIZ/SAUCE Use : ',cfg.forcediz,k);
11: edit_yesno(func,7,18,'Use MOVE.EXE in File Moving : ',cfg.usemove,k);
end;
select_next_entry(func,entry,11,k);
end;
procedure process_nuv(func:edit_functions);
begin
case entry of
1 : edit_integer(func,7,8,'New User Voting Form # : ',cfg.nuvform,1,0,5,k);
2 : edit_yesno(func,7,9,'Allow New User Voting : ',cfg.usenuv,k);
3 : edit_yesno(func,7,10,'Auto-Add All New Users : ',cfg.autoaddnuv,k);
4 : edit_integer(func,7,11,'Level to Use NUV : ',cfg.nuvuselevel,5,0,32767,k);
5 : edit_integer(func,7,12,'Required Yes Votes : ',cfg.nuvy,3,0,999,k);
6 : edit_integer(func,7,13,'Required No Votes : ',cfg.nuvn,3,0,999,k);
7 : edit_yesno(func,7,14,'Auto-Delete Rejected Users : ',cfg.nuvkill,k);
8 : edit_yesno(func,7,15,'Auto-Validate Accepted Users : ',cfg.nuvvalidate,k);
9 : edit_integer(func,7,16,'Level to Give to Accepted Users : ',cfg.nuvlevel,5,0,32757,k);
10: edit_integer(func,7,17,'File Level to Give to Accepted Users : ',cfg.nuvudlevel,5,0,32767,k);
11: edit_integer(func,7,18,'File Points to Give to Accepted Users : ',cfg.nuvpoints,5,0,32767,k);
12: edit_byte(func,7,19,'Maximum Percent Local : ',cfg.percentlocal,3,0,100,k);
end;
select_next_entry(func,entry,12,k);
end;
procedure process_misc(func:edit_functions);
var s : string[1];
begin
case entry of
1 : edit_integer(func,7,7,'Total Pre-Login Screens : ',cfg.numprelogon,3,0,999,k);
2 : edit_integer(func,7,8,'Minutes Before Time-out : ',cfg.mintimeout,3,1,999,k);
3 : edit_string(func,7,9,'Time for Shell Event : ',cfg.eventtime,12,k);
4 : edit_string(func,7,10,'File to Run on Event : ',cfg.eventbatch,12,k);
5 : edit_string(func,7,11,'Rumor Bracket Characters : ',cfg.rumchar,2,k);
6 : edit_yesno(func,7,12,'Use ''Input Box'' : ',cfg.usebox,k);
7 : begin
s[1] := cfg.boxchar;
edit_string(func,7,13,'Input Box Character : ',s,1,k);
cfg.boxchar := s[1];
end;
8 : edit_string(func,7,14,'Box Abort String : ',cfg.boxabort,15,k);
9 : edit_yesno(func,7,15,'Allow Users to Change Notes : ',cfg.changenote,k);
10: edit_string(func,7,16,'Bar Menu Brackets : ',cfg.barchar,2,k);
11: edit_string(func,7,17,'Default FIDO Origin : ',cfg.FidoOrigin,46,k);
12: edit_string(func,7,18,'Default FIDO Address : ',cfg.deffidoaddress,10,k);
13: edit_string(func,7,19,'Default FIDO Name : ',cfg.netname,20,k);
14: edit_string(func,7,20,'Anonymous String : ',cfg.anonymousstr,30,k);
15: edit_byte(func,7,21,'Maximum Lines per Quote : ',cfg.maxquotedlines,2,1,99,k);
16: edit_integer(func,7,22,'Maximum Time in Time Bank : ',cfg.maxtimebank,3,0,999,k);
end;
select_next_entry(func,entry,16,k);
end;
begin
k := #0;
repeat
readscr(s);
def_colors;
case curfield of
1 : begin
create_box(9,15,'BBS Registration Info');
for entry := 1 to 5 do process_main(display);
entry := 1;
repeat
process_main(edit);
until (k<>up) and (k<>down)
end;
2 : begin
create_box(4,23,'BBS Variables');
for entry := 1 to 18 do process_systemvars(display);
entry := 1;
repeat
process_systemvars(edit);
until (k<>up) and (k<>down)
end;
3 : begin
create_box(7,18,'Paths/Directories');
for entry := 1 to 10 do process_dirs(display);
entry := 1;
repeat
process_dirs(edit);
until (k<>up) and (k<>down);
end;
4 : begin
create_box(5,13,'Modem Setup');
for entry := 1 to 16 do process_modem(display);
entry := 1;
repeat
process_modem(edit);
until (k<>up) and (k<>down);
end;
5 : dobaud(cfg.supportedrates,'Supported Login Rates');
6 : dobaud(cfg.downloadrates,'Supported Download Rates');
7 : docolors;
8 : begin
create_box(6,21,'Levels/Defaults');
for entry := 1 to 14 do process_levels(display);
entry := 1;
repeat
process_levels(edit);
until (k<>up) and (k<>down);
end;
9 : begin
create_box(5,20,'Matrix/Infoforms');
for entry := 1 to 14 do process_forms(display);
entry := 1;
repeat
process_forms(edit);
until (k<>up) and (k<>down);
end;
10: begin
create_box(8,14,'Passwords');
for entry := 1 to 5 do process_password(display);
entry := 1;
repeat
process_password(edit);
until (k<>up) and (k<>down);
end;
11: begin
create_box(7,19,'File Area Variables');
for entry := 1 to 11 do process_filesec(display);
entry := 1;
repeat
process_filesec(edit);
until (k<>up) and (k<>down);
end;
12: begin
create_box(7,20,'New User Voting');
for entry := 1 to 12 do process_nuv(display);
entry := 1;
repeat
process_nuv(edit);
until (k<>up) and (k<>down);
end;
13: begin
create_box(4,23,'User Time/Day');
for entry := 1 to 100 do process_timeday(display);
entry := 1;
repeat
process_timeday(edit);
until (k<>up) and (k<>down);
end;
14: begin
create_box(6,23,'Miscellaneous');
for entry := 1 to 16 do process_misc(display);
entry := 1;
repeat
process_misc(edit);
until (k<>up) and (k<>down);
end;
end;
case k of
dispedit.pgdn : begin
inc(curfield);
if curfield > maxfield then curfield := 1;
end;
dispedit.pgup : begin
dec(curfield);
if curfield < 1 then curfield := maxfield;
end;
end;
writescr(s);
until k = #27;
end;
procedure pick_something;
var pentry, entry : integer;
k : char;
yes : string[1];
procedure process_entry(func:edit_functions);
begin
case entry of
1 : edit_funkey(func,27,6,'Registration Info','1',k);
2 : edit_funkey(func,27,7,'BBS Variables','2',k);
3 : edit_funkey(func,27,8,'Pathnames/Directories','3',k);
4 : edit_funkey(func,27,9,'Modem Setup','4',k);
5 : edit_funkey(func,27,10,'Supported Bauds','5',k);
6 : edit_funkey(func,27,11,'Supported Download Bauds','6',k);
7 : edit_funkey(func,27,12,'Default Colors','7',k);
8 : edit_funkey(func,27,13,'Levels/Defaults','8',k);
9 : edit_funkey(func,27,14,'Matrix/Infoforms','9',k);
10: edit_funkey(func,27,15,'System Passwords','A',k);
11: edit_funkey(func,27,16,'File Area Variables','B',k);
12: edit_funkey(func,27,17,'New User Voting','C',k);
13: edit_funkey(func,27,18,'User Time/Day','D',k);
14: edit_funkey(func,27,19,'Miscellaneous','E',k);
15: edit_funkey(func,27,20,'Quit Config','Q',k);
end;
select_next_entry(func,entry,15,k);
end;
procedure def_colors;
begin
pcolor := 16 * 15 + 0;
normcolor := 16 * 9 + 15;
end;
begin
color(9,15);
growbox(25,5,55,21);
def_colors;
for entry := 1 to 15 do process_entry(display);
entry := 1;
repeat
def_colors;
repeat
process_entry(edit);
until (k<>up) and (k<>down);
case k of
'1'..'9' : edit_stuff(valu(k));
'A' : edit_stuff(10);
'B' : edit_stuff(11);
'C' : edit_stuff(12);
'D' : edit_stuff(13);
'E' : edit_stuff(14);
end;
until (k = 'Q') or (k = #27);
yes := 'Y';