Skip to content

Latest commit

 

History

History
172 lines (162 loc) · 6.36 KB

sysop2e.pas

File metadata and controls

172 lines (162 loc) · 6.36 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
(*****************************************************************************)
(*> <*)
(*> SYSOP2E .PAS - Written by Eric Oman <*)
(*> <*)
(*> SysOp functions: System Configuration Editor -- "E" command. <*)
(*> <*)
(*****************************************************************************)
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
unit sysop2e;
interface
uses
crt, dos,
{rcg11172000 no overlay under Linux.}
{overlay,}
common;
procedure poflagfunc;
implementation
function sltype(i:integer):string;
begin
case i of
0:sltype:='File only';
1:sltype:='Printer & File';
2:sltype:='Printer only';
end;
end;
procedure poflagfunc;
var s:string[80];
c,cc:char;
nuu,i:integer;
abort,next,done:boolean;
bbb:byte;
begin
done:=FALSE;
repeat
with systat do begin
cls;
sprint(#3#5+'System flagged functions');
nl;
abort:=FALSE; next:=FALSE;
printacr('A. Special effects :'+onoff(specialfx)+
' B. Use FOSSIL comm driver :'+onoff(fossil),abort,next);
printacr('C. Handles allowed on system:'+onoff(allowalias)+
' D. Phone number in logon :'+onoff(phonepw),abort,next);
printacr('E. Local security protection:'+onoff(localsec)+
' F. Local screen security :'+onoff(localscreensec),abort,next);
printacr('G. Global activity trapping :'+onoff(globaltrap)+
' H. Auto chat buffer open :'+onoff(autochatopen),abort,next);
printacr('I. AutoMessage in logon :'+onoff(autominlogon)+
' J. Bulletins in logon :'+onoff(bullinlogon),abort,next);
printacr('K. Last few callers in logon:'+onoff(lcallinlogon)+
' L. "Your info" in logon :'+onoff(yourinfoinlogon),abort,next);
printacr('M. BBS is multi-tasking :'+onoff(multitask)+
' N. Offhook in local logon :'+onoff(offhooklocallogon),abort,next);
printacr('O. Mandatory voting :'+onoff(forcevoting)+
' P. Compress file/msg numbers :'+onoff(compressbases),abort,next);
printacr('R. UL duplicate file search :'+onoff(searchdup)+
' S. SysOp Log type :'+sltype(slogtype),abort,next);
printacr('T. Strip color off SysOp log:'+onoff(stripclog)+
' U. Use WFC menu logo :'+onoff(usewfclogo),abort,next);
printacr('V. Use BIOS for video output:'+onoff(usebios)+
' W. Suppress snow on CGA :'+onoff(cgasnow),abort,next);
printacr('X. Use EMS for overlay file :'+onoff(useems),abort,next);
printacr('',abort,next);
s:='1. New user message sent to :';
if (newapp=-1) then s:=s+'Off' else s:=s+mn(newapp,3);
s:=s+' 2. Guest user number :';
if (guestuser=-1) then s:=s+'Off' else s:=s+mn(guestuser,3);
printacr(s,abort,next);
s:='3. Mins before timeout bell :';
if (timeoutbell=-1) then s:=s+'Off' else s:=s+mn(timeoutbell,3);
s:=s+' 4. Mins before timeout :';
if (timeout=-1) then s:=s+'Off' else s:=s+mn(timeout,3);
printacr(s,abort,next);
nl;
prt('Enter selection (A-X,1-4) [Q]uit : ');
onek(c,'QABCDEFGHIJKLMNOPRSTUVWX1234'^M); nl;
case c of
'Q':done:=TRUE;
'A':specialfx:=not specialfx;
'B':begin
remove_port;
fossil:=not fossil;
iport;
end;
'C':allowalias:=not allowalias;
'D':phonepw:=not phonepw;
'E':localsec:=not localsec;
'F':localscreensec:=not localscreensec;
'G':globaltrap:=not globaltrap;
'H':autochatopen:=not autochatopen;
'I':autominlogon:=not autominlogon;
'J':bullinlogon:=not bullinlogon;
'K':lcallinlogon:=not lcallinlogon;
'L':yourinfoinlogon:=not yourinfoinlogon;
'M':multitask:=not multitask;
'N':offhooklocallogon:=not offhooklocallogon;
'O':forcevoting:=not forcevoting;
'P':begin
compressbases:=not compressbases;
nl;
if (compressbases) then print('Compressing bases...')
else print('De-compressing bases...');
newcomptables;
end;
'R':searchdup:=not searchdup;
'S':begin
print('Current SysOp Log type: '+sltype(slogtype));
nl;
for i:=0 to 2 do print(cstr(i)+': '+sltype(i));
nl;
prt('New type: '); ini(bbb);
if ((not badini) and (bbb in [0..2])) then slogtype:=bbb;
end;
'T':stripclog:=not stripclog;
'U':usewfclogo:=not usewfclogo;
'V':begin
usebios:=not usebios;
directvideo:=not usebios;
end;
'W':begin
cgasnow:=not cgasnow;
checksnow:=cgasnow;
end;
'X':useems:=not useems;
'1'..'4':
begin
prt('[E]nable [D]isable this function: ');
onek(cc,'Q ED'^M);
if cc in ['E','D'] then begin
badini:=FALSE;
case cc of
'D':i:=-1;
'E':begin
prt('Range ');
case c of
'1','2':begin
reset(uf); nuu:=filesize(uf)-1; close(uf);
prt('(1-'+cstr(nuu)+')');
end;
'3','4':prt('(1-20)');
else
prt('(0-32767)');
end;
nl; prt('Enter value for this function: ');
inu(i);
end;
end;
if (not badini) then
case c of
'1':if ((i>=1) and (i<=nuu)) or (cc='D') then newapp:=i;
'2':if ((i>=1) and (i<=nuu)) or (cc='D') then guestuser:=i;
'3':if ((i>=1) and (i<=20)) or (cc='D') then timeoutbell:=i;
'4':if ((i>=1) and (i<=20)) or (cc='D') then timeout:=i;
end;
end
else print('No change.');
end;
end;
end;
until (done) or (hangup);
end;
end.