-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCONFIG.PAS
1608 lines (1532 loc) · 54.8 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
{ ShockWavE Pro Config Program BY ICE BREAKER }
{ Started: 10/28/93 Finished: 11/02/93 }
{ Debuging: 11/03/93... }
Program Config;
{$M 32000,6400,35000 }
Uses opCrt,Dos,ICEio1,PullBarZ,Records,Profiles,FastTTT5,CnfgRec,Strnttt5,Event;
Const
colorstr:array [0..15] of Str25=
(' Black ',' Blue ',' Green ',' Cyan ',' Red ',' Magenta ',' Brown ',' Grey ',
' Dk Grey ',' Lt Blue ',' Lt Green ',' Lt Cyan ',' Lt Red ',' Lt Magenta ',' Yellow ',' White ');
ConfigVerNum=' Config:0.39 ';
ConfigVerDate=' Config:05/31/95 ';
Var Tim,
Save,iCE :String;
Bars :PullBarzRec;
Quit :Boolean;
LastBar,Pick:Byte;
Txt :StringRec;
TextFile :File Of StringRec;
CurPage :Byte;
Ext : String[2];
Ch :Char;
Cur,LangSet :Byte;
procedure UNCRUNCH (var Addr1,Addr2; BlkLen:Integer);
begin
inline ($1E/$C5/$B6/Addr1/$C4/$BE/Addr2/$8B/$8E/BlkLen/$8B/$D7/
$B4/$00/$AC/$3C/$10/$73/$07/$80/$E4/$F0/$0A/$E0/$EB/$44/
$3C/$18/$74/$13/$73/$19/$2C/$10/$02/$C0/$02/$C0/$02/$C0/
$02/$C0/$80/$E4/$0F/$0A/$E0/$EB/$2D/$81/$C2/$A0/$00/$8B/
$FA/$EB/$25/$3C/$1A/$75/$0B/$AC/$49/$51/$32/$ED/$8A/$C8/
$AC/$EB/$0D/$90/$3C/$19/$75/$11/$AC/$51/$32/$ED/$8A/$C8/
$B0/$20/$0B/$C9/$74/$03/$AB/$E2/$FD/$59/$49/$AB/$0B/$C9/
$74/$02/$E2/$AA/$1F);
end;
function strr (n:integer):Str40;
var q:Str40;
begin
str (n,q);
strr:=q
end;
function valu (q:Str40):integer;
var i,s,pu:integer;
r:real;
c:Char;
begin
valu:=0;
if length(q)=0 then exit;
c:=Q[1];
if not (C in ['0','1','2','3','4','5','6','7','8','9','-']) then begin
Valu:=0;
exit;
End;
If (c in ['A'..'~']) then Begin
Valu:=0;
Exit;
End;
if length(q)>5 then exit;
val (q,r,s);
if s<>0 then exit;
if (r<=32767.0) and (r>=-32767.0)
then valu:=round(r)
end;
Procedure Strings;
Var XQuit:Boolean;
Procedure StrBoxIt;
{$I STRINGS.INC}
Begin
UnCrunch(STRINGS,Mem[$B800:(1*2)+(1*160)-162],STRINGS_LENGTH);
End;
Procedure WriteStrings;
Begin
Assign(TextFile,CNF^.DataDir+'STRINGS.DAT');
If (Not Exist(CNF^.DataDir+'STRINGS.DAT')) Then ReWrite(TextFile) Else ReSet(TexTFile);
If LangSet>0 THen
Begin
If LangSet>=FileSize(TextFile) Then Seek(TextFile,FileSize(TextFile)) Else Seek(TextFile,LangSet);
End;
Write(TextFile,Txt);
Close(TextFile);
End;
Procedure SetUpStrings;
Begin
With Txt Do
Begin
Sys1PWPrompt :='|03System |15One |03Password? ';
Sys2PWPrompt :='|03System |15Two |03Password? ';
Sys3PWPrompt :='|03System |15Three |03Password? ';
ShowSys1Pw :='|03System |15One |03Password is: ';
ShowSys2Pw :='|03System |15Two |03Password is: ';
ShowSys3Pw :='|03System |15Three |03Password is: ';
ConnectStr :='|03Connected at: |14|BA';
DetectANSi :='|03Auto-ANSi Detection... |15-|07=|08] |14Wait |08[|07=|08-';
GotANSi :='|12A|14N|10S|15i |03Enabled!';
NoANSi :='No ANSi Detected...';
LockBaudPrompt :='|12Baudrate not support! |03Please enter Password: ';
WrongPWBaud :='|12Sorry, your modem is too slow...';
NUPPrompt :='|03New User Password: ';
NewHandle :='|03Enter the Handle you wish to use here: ';
NewPassword :='|03Enter the Password you wish to use here: ';
GetHandle :='|03Enter your Handle/ID#: ';
DupHandle :='|03That handle is already in use.';
GetPassword :='|03Enter your password: ';
WrongPW :='|12Wrong Password!!!';
GetRealName :='|03Enter your |14REAL |03first name: ';
GetPhone :='|03What is your |14VOICE |03Phone Number: ';
AskANSi :='|03Enable |12A|14N|10S|15i |03Color';
AskHotKeys :='|03Enable |08(|14One-Key|08)|03 Input';
MsgAreaPrompt :='|03Message Base |08(|15?|01/|15List|08)|01: ';
InvalidMsgArea :='|12Area does not exist!';
NScanMsgPrompt :='|03Scan for latest messages: ';
NewScanHdrMsg :='|03Scanning New Messages';
PostPrompt :='|03Post on |MB now: ';
MsgDelPrompt :='|12Do you really want to delete this message: ';
AutoDelStr :='|14Hang-On while I delete some messages...';
TitlePrompt :='|03Title: ';
PostToPrompt :='|03Send To |08(|15CR|01/|15All|08)|01: ';
MsgULPrompt :='|03Upload Prepared Message: ';
ToAllStr :='All';
Anonprompt :='|03Anonymous: ';
NetOrigin1 :='NOT USED';
NetOrigin2 :='NOT USED';
FileAreaPrompt :='|03File Base |08(|15?|01/|15List|08)|01: ';
NScanFilesPrompt:='|03Scan for latest files: ';
NewScanHdrFiles :='|03Scanning New Uploads/Files';
FileDelPrompt :='|12Do you really want to delete this file: ';
NewFileStr :='|12That file needs validation!';
SpecFileStr :='|12That file is not for you!';
OffLineStr :='|12Sorry, that file is Off-Line';
PWFileStr :='|12File is Password protected!';
NoPointsStr :='|12Sorry, but you need some more file points!';
NoTimeStr :='|12Not enough time for file transfer!';
NoDLAreaStr :='|12Write-Only File Base.';
NoULAreaStr :='|12Read-Only File Base.';
NoFiles :='|12There are no files areas to go to!';
NoAreas :='|12There are no message areas to go to!';
BadUDRstr :='|12You have a low Upload/Download Ratio!';
BadUDKstr :='|12You have a low Upload-K/Download-K Ratio!';
BadPCRstr :='|12You have a low Post/Call Ratio!';
PrivFile :='|12That file is PRIVATE!';
ProtoHdr :='System File Protocols';
AskHangupDL :='|03Drop-Carrier after Download is complete: ';
AskHangupUL :='|03Drop-Carrier after Upload is complete: ';
DohangupUL :='|03Thanks for the upload! - Hanging Up!';
DoHangupDL :='|03Download complete - Hanging up!';
UsrNotValidated :='|12Sorry, the SysOp has not granted you access yet.';
LogOffPrompt :='|03Log off this board now: ';
MsgToNext :='Message To Next Caller';
MsgToSysop :='|03Leave messge to sysop';
CloseTimeBnk :='|12Sorry, the SysOp has closed the TimeVault.';
WallPrompt :='|03Scribble on the wall: ';
TimeBankHdr :='The TimeVault';
BBSlistHdr :='The Other Guys';
SysOpWait :='|15-|07=|08] |14Wait |08[|07=|15-';
BadLevel :='|12You are unauthorized to access that command or area!';
AskMorePrompts :='|03Enable |08(|14More|08) |03Prompts';
EnterChatStr :='|03The SysOp Enters Chat!';
ExitChatStr :='|03The SysOp Leaves Chat!';
SysOpIn :='|03The Sysop is available for chat!';
SysOpOut :='|03The SysOp is not available for chat!';
SysOpInDosStr :='|03SysOp In Local DOS Shell... |15-|07=|08] |14Wait |08[|07=|15-';
AnonymousStr :='[Unknown]';
MatrixHangupStr :='|03Goodbye! |08(|07Click!|08)';
MatInvalidStr :='|03Use |08(|15?|08) |03for Help.';
MatrixPrompt :='|03Cmd> ';
HitAKey :='|08[|15Hit A Key|08]';
Email_To :='|03Enter |11UserName |03or |11ID# |03to Send mail to: ';
NewEmail :='|12New E-Mail!! |03Read now?';
AppendFile :='|03Attach file:';
Certified :='|03Certified Mail:';
CarbonCopy :='|03Carbon Copy to:';
EmerChatPrmpt :='|03Is this an |12emergency?';
EnterEmergChat :='|12Enter priority chat password:';
ChatReasonPrmpt :='|03Chat Reason:';
ReEnterPWPrmpt :='|03Re-Enter password:';
PWDontMatchstr :='|12They don''t Match! |03Try again...';
QuoteString :='|03|08-|14=|15] |12|UH |15[|14=|08-';
UserNotFound :='|12Sorry, you are not found in the users list!';
ApplyNow :='|03Do you wish to apply now?';
UserNumStr :='|03You are user number: |14|UN';
ScrLen :='|03Screen Length |08(|15CR|01/|1524|08)|01:';
BirthDate :='|03Birth Date - |08(|15MM|01/|15DD|01/|15YY|08)|01:';
EditCmd :='|03Command |08(|15?|01/|15Help|08)|01:';
IntrHdr :='Available Interviews';
IntrFill :='|03Fill-Out Which Interview:';
IntrReplace :='|12Interview already filled-out! - |03Replace?';
ChkRIP :='|03Checking For |15R|07I|08P |03Graphics...';
HaveRIP :='|15R|07I|08P |07Graphics Enabled!';
ScanEmail :='|03Scanning for new E-mail... |08[|14Please Wait|08]';
GenderPrompt :='|03Gender |08(|15M|01/|15F|08)|01:';
AskANSi :='Do you have ANSi Emulation?';
MsgSys :='|03þ Messages SysOp þ (?/Help):';
End;
WriteStrings;
End;
Procedure ReadStrings;
Var T:String;
Begin
T:='1';
GotoXy(26,3);
TextColor(9);
Write('String Set: ');
TextColor(15); EditLine(T,Cur,WhereX,WhereY,3,Ext,False,1);
If Length(T)=0 Then T:='1';
LangSet:=Valu(T)-1;
Assign(TextFile,CNF^.DataDir+'STRINGS.DAT');
ReSet(TextFile);
If LangSet>0 Then
Begin
If LangSet>FileSize(TextFile) Then SetUpStrings Else
Begin
Seek(TextFile,LangSet);
Read(TextFile,Txt);
Close(TextFile);
End;
End
Else
Begin
Read(TextFile,Txt);
Close(TextFile);
End;
End;
Procedure PageOne;
Begin
With Txt Do
Begin
Add_Field(1,2,4,78,Sys1PWPrompt,'System One Prompt',24,15);
Add_Field(2,2,6,78,Sys2PWPrompt,'System Two Prompt',24,15);
Add_Field(3,2,8,78,Sys3PWPrompt,'System Three Prompt',24,15);
Add_Field(4,2,10,78,ConnectStr,'Connected At: String',24,15);
Add_Field(5,2,12,78,WrongPW,'Wrong Password String',24,15);
Add_Field(6,2,14,78,NewHandle,'(New User) Handle Prompt',24,15);
Add_Field(7,2,16,78,NewPassword,'(New User) Password Prompt',24,15);
Add_Field(8,2,18,78,WallPrompt,'TheWall Input Prompt',24,15);
{ Add_Field(9,2,20,78,GetANSiStr,'ANSi Detection String',24,15);}
Add_Field(10,2,22,78,GotANSi,'ANSi Enabled String',24,15);
End;
FastWrite(2,3,9,'System One: ');
FastWrite(2,5,9,'System Two: ');
FastWrite(2,7,9,'System Three: ');
FastWrite(2,9,9,'Connect: ');
FastWrite(2,11,9,'Wrong Password: ');
FastWrite(2,13,9,'New Handle: ');
FastWrite(2,15,9,'New Password: ');
FastWrite(2,17,9,'Wall Prompt: ');
FastWrite(2,19,9,'Get ANSi String: ');
FastWrite(2,21,9,'Got ANSi String: ');
End;
Procedure PageTwo;
Begin
With Txt Do
Begin
Add_Field(1,2,4,78,NoANSi,'ANSi Disabled String',24,15);
Add_Field(2,2,6,78,LockBaudPrompt,'Baud Lockout Password Prompt',24,15);
Add_Field(3,2,8,78,WrongPWBaud,'Wrong Lockout Password String',24,15);
Add_Field(4,2,10,78,NUPPrompt,'(New-User-Password) Prompt',24,15);
Add_Field(5,2,12,78,GetHandle,'Input Handle Prompt',24,15);
Add_Field(6,2,14,78,DupHandle,'Duplicate Handle String',24,15);
Add_Field(7,2,16,78,GetPassword,'Input Password Prompt',24,15);
Add_Field(8,2,18,78,GetRealName,'Input Real Name Prompt',24,15);
Add_Field(9,2,20,78,GetPhone,'Input VOICE Phone Number Prompt',24,15);
Add_Field(10,2,22,78,AskANSi,'Use ANSi Prompt',24,15);
End;
FastWrite(2,3,9,'No ANSi String: ');
FastWrite(2,5,9,'Slow Baud Prompt: ');
FastWrite(2,7,9,'Wrong Lockout PW String: ');
FastWrite(2,9,9,'New User Password Prompt:');
FastWrite(2,11,9,'Login Handle Prompt: ');
FastWrite(2,13,9,'Duplicate Handle String: ');
FastWrite(2,15,9,'Login Password Prompt: ');
FastWrite(2,17,9,'Real Name Prompt: ');
FastWrite(2,19,9,'Phone Number Prompt: ');
FastWrite(2,21,9,'Use ANSi Prompt: ');
End;
Procedure PageThree;
Begin
With Txt Do
Begin
Add_Field(1,2,4,78,AskHotkeys,'Use HotKey/One-Key Input Prompt',24,15);
Add_Field(2,2,6,78,CloseTimeBnk,'Closed TimeBank String',24,15);
Add_Field(3,2,8,78,BBSListHdr,'BBS Listing Header String',24,15);
Add_Field(4,2,10,78,FileDelPrompt,'Delete File Prompt',24,15);
Add_Field(5,2,12,78,MsgDelPrompt,'Delete Message Prompt',24,15);
Add_Field(6,2,14,78,AutoDelStr,'Message Auto-Delete String',24,15);
Add_Field(7,2,16,78,MsgAreaPrompt,'Message Area Prompt',24,15);
Add_Field(8,2,18,78,InvalidMsgArea,'Invalid Message Area String',24,15);
Add_Field(9,2,20,78,TitlePrompt,'Message "Title" Prompt',24,15);
Add_Field(10,2,22,78,PostToPrompt,'Message "To" Prompt',24,15);
End;
FastWrite(2,3,9,'Hot Keys: ');
FastWrite(2,5,9,'TimeBank Closed: ');
FastWrite(2,7,9,'BBS Listing Header: ');
FastWrite(2,9,9,'Delete File:');
FastWrite(2,11,9,'Delete Message: ');
FastWrite(2,13,9,'Auto-Delete Messages: ');
FastWrite(2,15,9,'Message Area: ');
FastWrite(2,17,9,'Invalid Message Area: ');
FastWrite(2,19,9,'Message Title: ');
FastWrite(2,21,9,'Send To: ');
End;
Procedure PageFour;
Begin
With Txt Do
Begin
Add_Field(1,2,4,78,MsgULPrompt,'Upload Message Prompt',24,15);
Add_Field(2,2,6,78,ToAllStr,'Message "To All" String',24,15);
Add_Field(3,2,8,78,AnonPrompt,'Anonymous Prompt',24,15);
Add_Field(4,2,10,78,SysOpWait,'SysOp Working String',24,15);
Add_Field(5,2,12,78,FileAreaPrompt,'File Area Prompt',24,15);
Add_Field(6,2,14,78,NewFileStr,'New File String',24,15);
Add_Field(7,2,16,78,SpecFileStr,'Special File String',24,15);
Add_Field(8,2,18,78,OffLineStr,'File Offline String',24,15);
Add_Field(9,2,20,78,PWFileStr,'File Password String',24,15);
Add_Field(10,2,22,78,NoPointsStr,'No File Points String',24,15);
End;
FastWrite(2,3,9,'Message Upload: ');
FastWrite(2,5,9,'Message To All: ');
FastWrite(2,7,9,'Message Anonymous: ');
FastWrite(2,9,9,'SysOp Working: ');
FastWrite(2,11,9,'File Area: ');
FastWrite(2,13,9,'File Is New: ');
FastWrite(2,15,9,'File Is Special: ');
FastWrite(2,17,9,'File is Off-Line: ');
FastWrite(2,19,9,'File is Password Protected: ');
FastWrite(2,21,9,'No Files Points: ');
End;
Procedure PageFive;
Begin
With Txt Do
Begin
Add_Field(1,2,4,78,NoTimeStr,'No Time String',24,15);
Add_Field(2,2,6,78,NoDLAreaStr,'Can''t Download From Area String',24,15);
Add_Field(3,2,8,78,NoULAreaStr,'Can''t Upload To Area String',24,15);
Add_Field(4,2,10,78,NoFiles,'No File Areas String',24,15);
Add_Field(5,2,12,78,NoAreas,'No Message Areas String',24,15);
Add_Field(6,2,14,78,BadUDRStr,'Bad Upload/Download Ratio String',24,15);
Add_Field(7,2,16,78,BadUDKStr,'Bad Upload/Download K Ration String',24,15);
Add_Field(8,2,18,78,BadPCRStr,'Bad Post/Call Ratio String',24,15);
Add_Field(9,2,20,78,PrivFile,'Private File String',24,15);
Add_Field(10,2,22,78,ProtoHdr,'Protocol Header String',24,15);
End;
FastWrite(2,3,9,'No Time For Download ');
FastWrite(2,5,9,'Uploads Only: ');
FastWrite(2,7,9,'Downloads Only: ');
FastWrite(2,9,9,'No File Areas: ');
FastWrite(2,11,9,'No Message Areas: ');
FastWrite(2,13,9,'Bad U/D Ratio: ');
FastWrite(2,15,9,'Bad U/D K Ratio: ');
FastWrite(2,17,9,'Bad Post/Call Ratio: ');
FastWrite(2,19,9,'Private File: ');
FastWrite(2,21,9,'Protocol Header: ');
End;
Procedure PageSix;
Begin
With Txt Do
Begin
Add_Field(1,2,4,78,AskHangUpDL,'Hang-Up After Download String',24,15);
Add_Field(2,2,6,78,AskHangUpUL,'Hang-Up After Upload String',24,15);
Add_Field(3,2,8,78,DoHangUpUL,'Hang-Up Upload String',24,15);
Add_Field(4,2,10,78,DoHangUpDL,'Hang-Up Download String',24,15);
Add_Field(5,2,12,78,LogOffPrompt,'Log-Off Prompt',24,15);
Add_Field(6,2,14,78,MsgToNext,'Sned Message To Next User Prompt',24,15);
Add_Field(7,2,16,78,MsgToSysOp,'Send Message To Sysop Prompt',24,15);
Add_Field(8,2,18,78,BadLevel,'Access Denied String',24,15);
Add_Field(9,2,20,78,AskMorePrompts,'Use "More Prompts" Prompt',24,15);
Add_Field(10,2,22,78,EnterChatStr,'SysOp Enter Chat String',24,15);
End;
FastWrite(2,3,9,'Hang-Up After Download: ');
FastWrite(2,5,9,'Hang-Up After Upload: ');
FastWrite(2,7,9,'Upload GoodBye String: ');
FastWrite(2,9,9,'Download GoodBye String:');
FastWrite(2,11,9,'Log-Off: ');
FastWrite(2,13,9,'Message To Next User: ');
FastWrite(2,15,9,'Message To SysOp: ');
FastWrite(2,17,9,'Access Denied: ');
FastWrite(2,19,9,'More Prompt: ');
FastWrite(2,21,9,'Enter Chat: ');
End;
Procedure PageSeven;
Begin
With Txt Do
Begin
Add_Field(1,2,4,78,ExitChatStr,'SysOp Exit Chat String',24,15);
Add_Field(2,2,6,78,SysOpIn,'SysOp Available For Chat String',24,15);
Add_Field(3,2,8,78,SysOpOut,'SysOp Not Available For Chat String',24,15);
Add_Field(4,2,10,78,NetOrigin1,'Net-Origin Line 1',24,15);
Add_Field(5,2,12,78,NetOrigin2,'Net-Origin Line 2',24,15);
Add_Field(6,2,14,78,PostPrompt,'Message Post Prompt',24,15);
Add_Field(7,2,16,78,NScanFilesPrompt,'Newscan Files Prompt',24,15);
Add_Field(8,2,18,78,NScanMsgPrompt,'Newscan Messages Prompt',24,15);
Add_Field(9,2,20,78,NewScanHdrMsg,'Message Newscan Header',24,15);
Add_Field(10,2,22,78,NewScanHdrFiles,'Files Newscan Header',24,15);
End;
FastWrite(2,3,9,'Exit Chat: ');
FastWrite(2,5,9,'SysOp Available: ');
FastWrite(2,7,9,'SysOp Unavailable: ');
FastWrite(2,9,9,'Net Origin 1');
FastWrite(2,11,9,'Net Origin 2: ');
FastWrite(2,13,9,'Post Prompt: ');
FastWrite(2,15,9,'Newscan Files: ');
FastWrite(2,17,9,'Newscan Messages: ');
FastWrite(2,19,9,'Newscan Message Header: ');
FastWrite(2,21,9,'Newscan Files Header: ');
End;
Procedure PageEight;
Begin
With Txt Do
Begin
Add_Field(1,2,4,78,UsrNotValidated,'User Not Validated String',24,15);
Add_Field(2,2,6,78,ShowSys1PW,'System One Password String',24,15);
Add_Field(3,2,8,78,ShowSys2PW,'System Two Password String',24,15);
Add_Field(4,2,10,78,ShowSys3PW,'System Three Password String',24,15);
Add_Field(5,2,12,78,SysOpInDOSStr,'SysOp In DOS String',24,15);
Add_Field(6,2,14,78,HitAKey,'Animated Hit-A-Key String',24,15);
Add_Field(7,2,16,78,MatrixPrompt,'Matrix Command Prompt',24,15);
Add_Field(8,2,18,78,MatrixHangupStr,'Matrix Disconnect String',24,15);
Add_Field(9,2,20,78,MatInvalidStr,'Matrix Invalid Command String',24,15);
Add_Field(10,2,22,78,AnonymousStr,'Message Anonymous String',24,15);
End;
FastWrite(2,3,9,'Not Validated: ');
FastWrite(2,5,9,'System One Password Is: ');
FastWrite(2,7,9,'System Two Password Is: ');
FastWrite(2,9,9,'System Three Password Is:');
FastWrite(2,11,9,'SysOp In DOS: ');
FastWrite(2,13,9,'Hit A Key: ');
FastWrite(2,15,9,'Matrix Prompt: ');
FastWrite(2,17,9,'Matrix Hangup: ');
FastWrite(2,19,9,'Matrix Invalid Command: ');
FastWrite(2,21,9,'Message Anonymous: ');
End;
Procedure PageNine;
Begin
With Txt Do
Begin
Add_Field(1,2,4,78,Email_To,'Send E-Mail To Prompt',24,15);
Add_Field(2,2,6,78,NewEMail,'New E-Mail String',24,15);
Add_Field(3,2,8,78,AppendFile,'Append File to E-Mail Prompt',24,15);
Add_Field(4,2,10,78,Certified,'Certified E-Mail Prompt',24,15);
Add_Field(5,2,12,78,CarbonCopy,'Carbon Copy E-Mail To Prompt',24,15);
Add_Field(6,2,14,78,EmerChatPrmpt,'Emergency Chat Prompt',24,15);
Add_Field(7,2,16,78,EnterEmergChat,'Emergency Chat Password Prompt',24,15);
Add_Field(8,2,18,78,ChatReasonPrmpt,'Chat Reason Prompt',24,15);
Add_Field(9,2,20,78,ReEnterPWPrmpt,'Re-Enter Password Prompt',24,15);
Add_Field(10,2,22,78,PWDontMatchstr,'Passwords Don''t Match Prompt',24,15);
End;
FastWrite(2,3,9,'Send To: ');
FastWrite(2,5,9,'Read E-Mail Now: ');
FastWrite(2,7,9,'Append File: ');
FastWrite(2,9,9,'Certified Mail:');
FastWrite(2,11,9,'Carbon Copy: ');
FastWrite(2,13,9,'Emergency Chat: ');
FastWrite(2,15,9,'Emergency Chat PW:');
FastWrite(2,17,9,'Chat Reason: ');
FastWrite(2,19,9,'Re-Enter Password: ');
FastWrite(2,21,9,'Don''t Match: ');
End;
Procedure PageTen;
Begin
With Txt Do
Begin
Add_Field(1,2,4,78,QuoteString,'Message Quote String',24,15);
Add_Field(2,2,6,78,UserNotFound,'User Not File String',24,15);
Add_Field(3,2,8,78,ApplyNow,'Apply For Access Prompt',24,15);
Add_Field(4,2,10,78,UserNumStr,'User Numer String',24,15);
Add_Field(5,2,12,78,ScrLen,'Screen Length Prompt',24,15);
Add_Field(6,2,14,78,BirthDate,'BirthDay Prompt',24,15);
Add_Field(7,2,16,78,EditCmd,'FSE Command Prompt',24,15);
Add_Field(8,2,18,78,IntrHdr,'Interview Header',24,15);
Add_Field(9,2,20,78,IntrFill,'Interview Menu Prompt',24,15);
Add_Field(10,2,22,78,IntrReplace,'Replace Interview Prompt',24,15);
End;
FastWrite(2,3,9,'Quote String: ');
FastWrite(2,5,9,'User Not Found: ');
FastWrite(2,7,9,'Apply Now: ');
FastWrite(2,9,9,'User Number:');
FastWrite(2,11,9,'Screen Length: ');
FastWrite(2,13,9,'Birth Date: ');
FastWrite(2,15,9,'Editor Command: ');
FastWrite(2,17,9,'Interview Header: ');
FastWrite(2,19,9,'Fill out Inteview: ');
FastWrite(2,21,9,'Replace Interview: ');
End;
Procedure PageEleven;
Begin
With Txt Do
Begin
Add_Field(1,2,4,78,ChkRip,'Checking for RIP string',24,15);
Add_Field(2,2,6,78,HaveRip,'RIP Graphics Enabled',24,15);
Add_Field(3,2,8,78,ScanEMail,'Scanning E-Mail String',24,15);
Add_Field(4,2,10,78,GenderPrompt,'New User Gender Prompt',24,15);
{ Add_Field(5,2,12,78,ANSiStr,'Do you have ANSi Prompt',24,15);}
Add_Field(6,2,14,78,MsgSys,'Message SysOp Prompt',24,15);
End;
FastWrite(2,3,9,'Get RIP String:');
FastWrite(2,5,9,'RIP Enabled:');
FastWrite(2,7,9,'EMail Scan String:');
FastWrite(2,9,9,'Gender Prompt:');
FastWrite(2,11,9,'Get ANSi Prompt: '); { "" "" }
FastWrite(2,13,9,'Msg Sys. Prompt: '); { "" "" }
End;
Procedure PageUp;
Begin
WriteStrings;
Pick:=Pick-1;
If Pick=0 Then Pick:=1;
End;
Procedure PageDown;
Begin
WriteStrings;
Pick:=Pick+1;
If Pick=12 Then Pick:=11;
End;
Procedure GetInput;
Begin
Display_Fields(1);
Save:=EditFields(1);
If Save=#27 Then Begin WriteStrings; Pick:=99; End;
If Save=#68 Then Pick:=99;
If Save=#73 Then PageUp;
If Save=#81 Then PageDown;
If Save=#59 Then; {F1}
End;
Begin
Pick:=1;
XQuit:=False;
If (Not Exist(CNF^.DataDir+'STRINGS.DAT')) Then SetUpStrings Else ReadStrings;
Repeat
StrBoxit;
FastWrite(1,25,9,'[Page: '+Int_To_Str(Pick)+'] [Language Set: '+Strr(LangSet+1)+'] ');
Case Pick Of
1:Begin PageOne; Getinput End;
2:Begin PageTwo; Getinput End;
3:Begin PageThree; Getinput End;
4:Begin PageFour; Getinput End;
5:Begin PageFive; Getinput End;
6:Begin PageSix; Getinput End;
7:Begin PageSeven; Getinput End;
8:Begin PageEight; Getinput End;
9:Begin PageNine; GetInput End;
10:Begin PageTen; GetInput End;
11:Begin PageEleven; GetInput End;
99:XQuit:=True;
End;
Until XQuit=True;
ClrScr;
CursorON;
End;
Procedure Intro;
{$I INTRODAT.PAS}
Var Ch:Char;
Begin
ClrScr;
CursorOFF;
UnCrunch(INTRODATA,Mem[$B800:(1*2)+(1*160)-162],INTRODATA_LENGTH);
CH:=ReadKey;
If Ch=#0 then Ch:=ReadKey;
End;
Procedure BoxIt;
{$I CONFIG.INC}
Begin
UnCrunch(CNFDATA,Mem[$B800:(1*2)+(1*160)-162],CNFDATA_LENGTH);
End;
Procedure FixPath(Var S:String);
Begin
If S[Length(S)]<>'\' then S:=S+'\';
End;
Function DirExists (FileName: PathStr): boolean;
Var
f : file;
attr: word;
len : byte;
Begin
Len:=Length(FileName);
If (FileName[len] = '\') then Dec(FileName[0]);
FileName:=Filename+ '\.';
Assign(f,FileName);
GetFattr(f,attr);
DirExistS := ((attr and directory)=directory);
End;
Procedure MakeDir(Path:String); { have this make multi depth dirs }
Begin { ie. C:\BBS\SWPRO\MENUDATA }
{$I+}
Delete(Path,Length(Path),1);
If Not DirExists(Path) Then MkDir(Path);
{$I-}
End;
Procedure SysInfo;
Var Private,Log,WFC,Video,Snow,
SSave,Menu,Bell,Bull,Wall,Famous,EMS,MaxDos,Print,Stat:String[3];
Begin
With Cnf^ Do
Begin
Log :=Boo_To_Str(UseAutoLogin);
WFC :=Boo_To_Str(WFC50);
Private :=Boo_To_Str(PrivateBBS);
Video :=Boo_To_Str(UseDirectVideo);
Snow :=Boo_To_Str(UseSnowCheck);
Menu :=Boo_To_Str(UseExtMnu);
Bell :=Boo_To_Str(UseLoginBell);
Bull :=Boo_To_Str(UseBulletins);
Wall :=Boo_To_Str(UseTheWall);
Famous :=Boo_To_Str(UseFamousDay);
EMS :=Boo_To_Str(UseEMS);
MaxDos :=Boo_To_Str(MaximumDosShell);
Print :=Boo_To_Str(UsePrinterLog);
Stat :=Boo_To_Str(UseStatLine);
SSave :=Int_To_Str(ScreenSaveMin);
{ID,XX,YY,Len:Byte; Var S:String; Msg:String; ZZ,WW,Fore,Back:Byte);}
Add_Field(1,45,3,34,FullSysName,'Full System Name',23,15);
Add_Field(2,45,4,6,RegNumber,'Registration Code',23,15);
Add_Field(3,45,5,25,SysOpName,'SysOp''s User Name',23,15);
Add_Field(4,45,6,3,Log,'Yes to use AutoLogin',23,15);
Add_Field(5,45,7,3,WFC,'Yes to use High-Res WFC Screen',23,15);
Add_Field(6,45,8,3,Private,'Yes for Private System',23,15);
Add_Field(7,45,9,3,Video,'Yes to use Direct Video Writes',23,15);
Add_Field(8,45,10,3,Snow,'Yes to check for snow',23,15);
Add_Field(9,45,11,3,Menu,'Yes to use Auto-RiP Detection',23,15);
Add_Field(10,45,12,3,Bell,'Yes to use Login Bell',23,15);
Add_Field(11,45,13,3,Bull,'Yes to use Login Bulletins',23,15);
Add_Field(12,45,14,3,Wall,'Yes to use TheWall',23,15);
Add_Field(13,45,15,3,Famous,'Yes to use Famous Day Logoff',23,15);
Add_Field(14,45,16,3,EMS,'Yes to use EMS',23,15);
Add_Field(15,45,17,3,MaxDOS,'Yes to use Max. Memory for DOS Shell',23,15);
Add_Field(16,45,18,3,Print,'Yes to Print Call Logs',23,15);
Add_Field(17,45,19,3,Stat,'Yes to use Local Status Line',23,15);
Add_Field(18,45,20,1,SSave,'Min. to activate Screen Saver (0=Not Used)',23,15);
End;
FastWrite(26,3,9,'System Name: ');
FastWrite(26,4,9,'Registration Code: ');
FastWrite(26,5,9,'SysOp Handle: ');
FastWrite(26,6,9,'Auto-Login: ');
FastWrite(26,7,9,'High-Res WFC: ');
FastWrite(26,8,9,'Private BBS: ');
FastWrite(26,9,9,'Direct Video: ');
FastWrite(26,10,9,'Check For Snow: ');
FastWrite(26,11,9,'RiP Detection: ');
FastWrite(26,12,9,'Login Bell: ');
FastWrite(26,13,9,'Login Bulletins: ');
FastWrite(26,14,9,'Use The Wall: ');
FastWrite(26,15,9,'Use Famous Day: ');
FastWrite(26,16,9,'Use EMS: ');
FastWrite(26,17,9,'Max. DOS Shell: ');
FastWrite(26,18,9,'Printer Log: ');
FastWrite(26,19,9,'Status Line: ');
FastWrite(26,20,9,'Screen Saver: ');
Display_Fields(0);
Save:=EditFields(0);
If Save=#27 Then
With Cnf^ Do
Begin
UseAutoLogin:=Str_To_Boo(Log);
WFC50:=Str_To_Boo(WFC);
PrivateBBS:=Str_To_Boo(Private);
UseDirectVideo:=Str_To_Boo(Video);
UseSnowCheck:=Str_To_Boo(Snow);
UseExtMnu:=Str_To_Boo(Menu);
UseLoginBell:=Str_To_Boo(Bell);
UseBulletins:=Str_To_Boo(Bull);
UseTheWall:=Str_To_Boo(Wall);
UseFamousDay:=Str_To_Boo(Famous);
UseEms:=Str_To_Boo(EMS);
MaximumDosShell:=Str_To_Boo(MaxDOS);
UsePrinterLog:=Str_To_Boo(Print);
UseStatLine :=Str_To_Boo(Stat);
ScreenSaveMin:=Valu(SSave);
WriteConfig;
End;
End;
Procedure SysDirectories;
Begin
With Cnf^ Do
Begin
Add_Field(1,45,3,33,SysDir,'Path where ShockWavE runs',23,15);
Add_Field(2,45,4,33,MsgDir,'Path to message data',23,15);
Add_Field(3,45,5,33,MsgBoardDir,'<unused>',23,15);
Add_Field(4,45,6,33,UpLoadDir,'Path to file area data',23,15);
Add_Field(5,45,7,33,SwapDir,'ShockWavE Swap File directory',23,15);
Add_Field(6,45,8,33,MenuDir,'Path to ANSi/Non-ANSi Menus',23,15);
Add_Field(7,45,9,33,DoorDir,'Direcotory for doors',23,15);
Add_Field(8,45,10,33,WorkDir,'Path for work directory',23,15);
Add_Field(9,45,11,33,NetDir,'Path to include files',23,15);
Add_Field(10,45,12,33,DSZLog,'DSZLog Environment Path',23,15);
Add_Field(11,45,13,33,DataDir,'Path to Data files',23,15);
Add_Field(12,45,14,33,FileMailDir,'Path to File-Mail',23,15);
Add_Field(14,45,15,33,MenuDataDir,'Path to menu data',23,15);
End;
FastWrite(26,3,9,'Path To ShockWavE:');
FastWrite(26,4,9,'Path to Messages:');
FastWrite(26,5,9,'Path to Boards:');
FastWrite(26,6,9,'Path to Files:');
FastWrite(26,7,9,'Swap Directory:');
FastWrite(26,8,9,'Path to ANSis:');
FastWrite(26,9,9,'Path To Doors:');
FastWrite(26,10,9,'Work Directory:');
FastWrite(26,11,9,'Path To Includes:');
FastWrite(26,12,9,'DSZ Log Path:');
FastWrite(26,13,9,'Path to Data:');
FastWrite(26,14,9,'Path to File Mail:');
FastWrite(26,15,9,'Path To Menu Data:');
Display_Fields(0);
Save:=EditFields(0);
If Save=#27 Then
Begin
With Cnf^ Do
Begin
FixPath(SysDir);
FixPath(MsgDir); MakeDir(MsgDir);
FixPath(MsgBoardDir); MakeDir(MsgBoardDir);
FixPath(UploadDir); MakeDir(UploadDir);
FixPath(SwapDir); MakeDir(SwapDir);
FixPath(MenuDir); MakeDir(MenuDir);
FixPath(DoorDir); MakeDir(DoorDir);
FixPath(WorkDir); MakeDir(WorkDir);
FixPath(NetDir); MakeDir(NetDir);
FixPath(DataDir); MakeDir(DataDir);
FixPath(FileMailDir); MakeDir(FileMailDir);
FixPath(MenuDataDir); MakeDir(MenuDataDir);
End;
WriteConfig;
End;
End;
Procedure SysPasswords;
Begin
With Cnf^ Do
Begin
Add_Field(1,43,3,20,PWString,'Hidden Password String',23,15);
Add_Field(2,43,4,20,SysOpPW,'SysOp Password',23,15);
Add_Field(3,43,5,20,System1PW,'System One Password',23,15);
Add_Field(4,43,6,20,System2PW,'System Two Password',23,15);
Add_Field(5,43,7,20,System3PW,'System Three Password',23,15);
Add_Field(6,43,8,20,NewUserPW,'New User Password',23,15);
Add_Field(7,43,9,20,LockOutBaudPass,'Lock-Out Baud Password',23,15);
Add_Field(8,43,10,20,ChatPW,'Emergency Chat Password',23,15);
End;
FastWrite(26,3,9,'Password String: ');
FastWrite(26,4,9,'SysOp Password: ');
FastWrite(26,5,9,'System One: ');
FastWrite(26,6,9,'System Two: ');
FastWrite(26,7,9,'System Three: ');
FastWrite(26,8,9,'New User: ');
FastWrite(26,9,9,'Lock-Out: ');
FastWrite(26,10,9,'Emergency Chat: ');
Display_Fields(0);
Save:=EditFields(0);
If Save=#27 Then WriteConfig;
End;
Procedure SysModemSetup;
Var Def,Min,Port:String;
Begin
With Cnf^ Do
Begin
Port:=Int_To_Str(ModemPort);
Def:=Int_To_Str(DefBaudRate);
Min:=Int_To_Str(MinBaudRate);
Add_Field(1,39,3,1,Port,'Modem Com-Port to use',23,15);
Add_Field(2,39,4,39,ModemINITStr,'Modem Initialization String',23,15);
Add_Field(3,39,5,39,ModemHangUpStr,'Modem Hang-Up String',23,15);
Add_Field(4,39,6,39,ModemDialStr,'Modem Dial String',23,15);
Add_Field(5,39,7,39,ModemDialSuff,'Modem Dial Suffix',23,15);
Add_Field(6,39,8,5,Def,'Maximum Baud Rate',23,15);
Add_Field(7,39,9,5,Min,'Minimum Baud Rate',23,15);
End;
FastWrite(26,3,9,'Com-Port: ');
FastWrite(26,4,9,'Modem Init: ');
FastWrite(26,5,9,'Hang-Up: ');
FastWrite(26,6,9,'Dial Prefix: ');
FastWrite(26,7,9,'Dial Suffix: ');
FastWrite(26,8,9,'Max. Baud: ');
FastWrite(26,9,9,'Min. Baud: ');
Display_Fields(0);
Save:=EditFields(0);
If Save=#27 Then
With Cnf^ Do
Begin
ModemPort :=Valu(Port);
DefBaudRate:=Str_To_Word(Def);
MinBaudRate:=Valu(Min);
WriteConfig;
End;
End;
Procedure SysMisc1;
Var Leech,UTime,RDoors,Doors,Multi:String[3];
LeeK,LeeUD,PLvl,Max,BankLvl,Time,Node:String[40];
Begin
With Cnf^ Do
Begin
Leech:=Boo_To_Str(UseLeechWeek);
UTime:=Boo_To_Str(UseTimeBank);
RDoors:=Boo_To_Str(RemoteDoors);
Multi:=Boo_To_Str(MultiNode);
LeeK:=Int_To_Str(LeechListK);
LeeUD:=Int_To_Str(LeechListUD);
PLvl:=Int_To_Str(PrivLvl);
Max:=Int_To_Str(MaxTimeBank);
BankLvl:=Int_To_Str(TimeBankLvl);
Time:=Int_To_Str(TimeOutTime);
Node:=Int_To_Str(NodeNumber);
Add_Field(1,43,3,3,Leech,'Yes to use Leech-Week',23,15);
Add_Field(2,43,4,5,LeeUD,'U/D Ratio to put user in Leech-List',23,15);
Add_Field(3,43,5,5,LeeK,'K to put user in Leech-List',23,15);
Add_Field(4,43,6,3,UTime,'Yes to use Time-Bank',23,15);
Add_Field(5,43,7,5,Max,'Maximum Time Storage for Time-Bank',23,15);
Add_Field(6,43,8,5,BankLvl,'Level needed to use Time-Bank',23,15);
Add_Field(7,43,9,5,PLvl,'Private Hours Access Level',23,15);
Add_Field(8,43,10,10,PrivBegin,'Private Hours Start Time',23,15);
Add_Field(9,43,11,10,PrivEnd,'Private Hours End Time',23,15);
Add_Field(10,43,12,3,RDoors,'Yes to allow Remote Door maintainance',23,15);
Add_Field(11,43,13,10,EventTime,'Time to activate Event',23,15);
Add_Field(12,43,14,12,EventBatchFile,'Batch file to run for Event',23,15);
Add_Field(13,43,15,10,SysOpIn,'SysOp Available Time',23,15);
Add_Field(14,43,16,10,SysOpOut,'SysOp Unavailable Time',23,15);
Add_Field(15,43,17,3,Time,'Hang-Up Time Out (in Min.)',23,15);
Add_Field(16,43,18,3,Multi,'Yes if Multi-Node System',23,15);
Add_Field(17,43,19,2,Node,'System Node Number',23,15);
End;
FastWrite(26,3,9,'Leech Week: ');
FastWrite(26,4,9,'Leech UD Ratio: ');
FastWrite(26,5,9,'Leech K Ratio: ');
FastWrite(26,6,9,'Time Bank: ');
FastWrite(26,7,9,'Max. Time: ');
FastWrite(26,8,9,'Bank Level: ');
FastWrite(26,9,9,'Private Level: ');
FastWrite(26,10,9,'Priv. Hrs Begin: ');
FastWrite(26,11,9,'Priv. Hrs End: ');
FastWrite(26,12,9,'Door Maint.: ');
FastWrite(26,13,9,'Event Time: ');
FastWrite(26,14,9,'Event Batch: ');
FastWrite(26,15,9,'SysOp In: ');
FastWrite(26,16,9,'SysOp Out: ');
FastWrite(26,17,9,'Time Out: ');
FastWrite(26,18,9,'Multi-Node: ');
FastWrite(26,19,9,'Node Number: ');
Display_Fields(0);
Save:=EditFields(0);
If Save=#27 Then
With Cnf^ Do
Begin
UseLeechWeek:=Str_To_Boo(Leech);
UseTimeBank:=Str_To_Boo(Utime);
RemoteDoors:=Str_To_Boo(RDoors);
MultiNode:=Str_To_Boo(Multi);
LeechListK:=Valu(LeeK);
LeechListUD:=Valu(LeeUD);
PrivLvl:=Valu(PLvl);
MaxTimeBank:=Valu(Max);
TimeBankLvl:=Valu(BankLvl);
TimeOutTime:=Valu(Time);
NodeNumber:=Valu(Node);
WriteConfig;
End;
End;
Procedure DoAttrib;
var CLastBar,cnt,v:Byte;
k:char;
Zuit:Boolean;
CPtr:^Byte;
Procedure Demo(Var Tmp:Byte);
var cnt:integer;
K:char;
begin
CPtr:=@Tmp;
GrowFBox(55,9,74,15,8,0,1);
gotoxy(56,10);
Textcolor(15);
write(' Color Selection');
gotoxy(56,12);
for cnt:=0 to 15 do
begin
TextColor(cnt); write('Û');
end;
cnt:=Tmp;
repeat
gotoxy(56+cnt,11);
Textcolor(15);
write('');
gotoxy(60,14);
Textcolor(cnt);
if cnt=0 then
begin
Textcolor(15+Blink); write(' Black ');
Textcolor(cnt);
end
else
Write(colorstr[cnt]);
k:=ReadKey;
IF K=#0 then K:=ReadKey;
if (k=#77) or (K=#28) then
begin
gotoxy(cnt+56,11); write(' ');
cnt:=cnt+1;
if cnt>15 then cnt:=0;
end
else
if (k=#75) or (k=#29) then
begin
gotoxy(cnt+56,11);write(' ');
cnt:=cnt-1;
if cnt<0 then cnt:=15;
end;
until (k=#13) or (k=#27);
If (K=#13) or (K=#27) then
Begin
Cptr^:=Cnt;
WriteConfig;
FastWrite(54,9,0,' ');
FastWrite(54,10,0,' ');
FastWrite(54,11,0,' ');
FastWrite(54,12,0,' ');
FastWrite(54,13,0,' ');
FastWrite(54,14,0,' ');
FastWrite(54,15,0,' ');
End;
End;
Procedure SetupColorMenu;
Begin
With Bars Do
Begin
MenuName:='Color Selection';
Choice[1]:=' Normal Color ';
Choice[2]:=' Top Color ';
Choice[3]:=' OutLock Color ';
Choice[4]:=' Line Color ';
Choice[5]:=' Status Color ';
Choice[6]:=' User Status ';
Choice[7]:=' User Input ';
Choice[8]:=' User Prompt ';
Choice[9]:=' User Regular ';
Choice[10]:=' User Box ';
Choice[11]:=' User Inside ';
Choice[12]:=' User Command ';
Choice[13]:=' User Misc ';
Choice[14]:=' Quit ';
NumChoices:=14;
Defchoice:=CLastBar;
KeyCmds:='ABCDEFGHIJKLM'+Chr(27);
End;
With Cnf^ Do
Begin
FastWrite(43,4,9,ColorStr[SysNormalColor]);
FastWrite(43,5,9,ColorStr[SysTopColor]);
FastWrite(43,6,9,ColorStr[SysOutLockColor]);
FastWrite(43,7,9,ColorStr[SysLineColor]);
FastWrite(43,8,9,ColorStr[SysStatBarColor]);
FastWrite(43,9,9,ColorStr[DefStat]);
FastWrite(43,10,9,ColorStr[DefInput]);
FastWrite(43,11,9,ColorStr[DefPrompt]);
FastWrite(43,12,9,ColorStr[DefReg]);
FastWrite(43,13,9,ColorStr[DefBox]);
FastWrite(43,14,9,ColorStr[DefInSide]);
FastWrite(43,15,9,ColorStr[DefCmd]);
FastWrite(43,16,9,ColorStr[DefMisc]);
End;