-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwildcat.src
573 lines (482 loc) · 7.17 KB
/
wildcat.src
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
# wildcat.src
# $Id: wildcat.src,v 1.17 2020/04/23 02:46:09 rswindell Exp $
# @format.tab-size 8, @format.use-tabs true
!include sbbsdefs.inc
:main
cmd_home
async
compare_ars expert
if_false
clear_abort
menu wildcat/main
print "\r\n\x01w\x01hCommand >>? \x01n"
else
print "\r\n\x01y\x01h@GRP@ @SUB@, \x01wMAIN MENU\x01y: ? \x01n"
end_if
node_action node_main
getcmd 1AEMHUQCNFTJGPIYWVSBDR?\r
# Write command to log file
logkey_comma
# Commands
cmdkey ?
compare_ars expert
if_true
menu wildcat/main
end_if
end_cmd
cmdkey M
cmd_pop
goto message
end_cmd
cmdkey U
print "\r\n\x01c\x01hList Users\r\n"
mnemonics "\r\n~Logons Today, ~Sub-board, or ~All: "
getcmd LSA\r
cmdkey L
userlist_logons
end_cmd
cmdkey S
userlist_sub
end_cmd
cmdkey A
userlist_all
end_cmd
end_cmd
cmdkey N
menu logon
pause
end_cmd
cmdkey C
setstr "1"
mail_send_feedback
end_cmd
cmdkey F
cmd_pop
goto transfers
end_cmd
cmdkey T
exec_bin chat_sec
end_cmd
cmdkey J
msg_select_area
end_cmd
cmdkey G
file_download_batch
if_true
end_cmd
end_if
compare_ars expert
if_false
logoff
else
logoff_fast
end_if
end_cmd
cmdkey P
page_sysop
pause
end_cmd
cmdkey I
menu ../answer
pause
end_cmd
cmdkey Y
user_defaults
end_cmd
cmdkey W
nodelist_users
crlf
pause
end_cmd
cmdkey S
info_system
crlf
pause
end_cmd
cmdkey B
text_file_section
end_cmd
cmdkey D
xtrn_section
end_cmd
cmdkey E
exec_bin email_sec
end_cmd
cmdkey A
auto_message
end_cmd
cmdkey V
print "\r\n\x01y\x01hUsername search string: \x01w"
getname 25
finduser
if_true
print "\x01y\x01hVerified: \x01w"
printstr
crlf
end_if
end_cmd
cmdkey H
toggle_user_misc UM_EXPERT
print "\r\nExpert mode is now: "
compare_ars EXPERT
if_true
print "ON"
else
print "OFF"
end_if
crlf
end_cmd
cmdkey 1
compare_ars SYSOP or exempt Q or I or N
if_true
cmd_pop
goto sysop
end_if
end_cmd
cmdkey R
info_user
pause
end_cmd
end_cmd
################################ File Section #################################
:transfers
cmd_home
async
compare_ars expert
if_false
clear_abort
menu wildcat/file
print "\r\n\x01w\x01hCommand >>? \x01n"
else
print "\r\n\x01y\x01h@LIB@ @DIR@, \x01wFILE MENU\x01y: ? \x01n"
end_if
# Update node status
node_action node_xfer
getcmd 1QLDUNVMSGPIJEFH?\r
logkey_comma
cmdkey ?
compare_ars expert
if_true
menu wildcat/file
end_if
end_cmd
cmdkey H
toggle_user_misc UM_EXPERT
print "\r\nExpert mode is now: "
compare_ars EXPERT
if_true
print "ON"
else
print "OFF"
end_if
crlf
end_cmd
cmdkey Q
cmd_pop
goto main
end_cmd
cmdkey L
setstr "*.*"
file_list
end_cmd
cmdkey D
print "\r\n\x01c\x01hDownload File(s)\r\n"
file_download_batch
if_true
end_cmd
end_if
getfilespec
if_true
file_download
end_if
end_cmd
cmdkey U
print "\r\n\x01c\x01hUpload File\r\n"
chkfile "../text/menu/upload.*"
if_true
menu upload
end_if
file_upload
end_cmd
cmdkey N
print "\r\n\x01b\x01hUse \x01c@NEWFILETIME@\x01b for new file scan date/time "
yes_no ""
if_false
file_ptrs_cfg
if_false
end_cmd
end_if
end_if
file_new_scan
end_cmd
cmdkey V
print "\r\n\x01c\x01hView File(s)\r\n"
getfilespec
if_true
file_view
end_if
end_cmd
cmdkey M
cmd_pop
goto message
end_cmd
cmdkey S
print "\r\n\x01c\x01hSearch for Filename(s)\r\n"
file_find_name
end_cmd
cmdkey G
file_download_batch
if_true
end_cmd
end_if
compare_ars expert
if_false
logoff
else
logoff_fast
end_if
end_cmd
cmdkey P
info_user
pause
end_cmd
cmdkey I
print "\r\n\x01c\x01hList Extended File Information\r\n"
getfilespec
if_true
file_list_extended
end_if
end_cmd
cmdkey J
file_select_area
end_cmd
cmdkey E
file_batch_section
end_cmd
cmdkey F
info_xfer_policy
pause
cls
info_directory
end_cmd
cmdkey 1
compare_ars SYSOP or exempt Q or I or N
if_true
cmd_pop
goto sysop
end_if
end_cmd
end_cmd
############################### Message Section ###############################
:message
cmd_home
async
compare_ars expert
if_false
clear_abort
menu wildcat/msg
print "\r\n\x01w\x01hCommand >>? \x01n"
else
print "\r\n\x01y\x01h@GRP@ @SUB@, \x01wMESSAGE MENU\x01y: ? \x01n"
end_if
# Update node status
node_action node_main
getcmd 1GREFSQCUHJT?\r
logkey_comma
cmdkey ?
compare_ars expert
if_true
menu wildcat/msg
end_if
end_cmd
cmdkey Q
cmd_pop
goto main
end_cmd
cmdkey R
cmd_home
print "\x01n\r\n\x01y\x01hReading Messages: [\1wA\1y]ll messages, [\x01wN\x01y]ew messages, [\x01wS\x01y]earch, "
print "[\x01wU\x01y]nread personal,\r\n"
print "[\x01wJ\x01y]oin, or [\x01wENTER\x01y] to quit? "
getstr 5
logkey
cmdstr A
msg_read
end_cmd
cmdstr N
msg_new_scan
end_cmd
cmdstr S
msg_find_text
end_cmd
cmdstr U
msg_your_scan
end_cmd
cmdstr J
msg_select_area
end_cmd
cmdstr ""
cmd_pop
end_cmd
print "Invalid command.\r\n"
cmd_pop
end_cmd
cmdkey E
msg_select_area
if_true
msg_post
end_if
end_cmd
cmdkey F
cmd_pop
goto transfers
end_cmd
cmdkey S
print "\r\n\x01c\x01hSearch for Text in Messages\r\n"
msg_find_text
end_cmd
cmdkey C
print "\r\n\x01c\x01hCheck for Messages Posted to You\r\n"
msg_your_scan
end_cmd
cmdkey U
cmd_home
compare_ars expert
if_false
menu maincfg
end_if
async
print "\r\n\x01y\x01hConfig: \x01n"
getcmd ?QNPIS
logkey
cmdkey ?
compare_ars expert
if_true
menu maincfg
end_if
end_cmd
cmdkey N
msg_new_scan_cfg
end_cmd
cmdkey S
msg_your_scan_cfg
end_cmd
cmdkey P
msg_ptrs_cfg
end_cmd
cmdkey I
msg_ptrs_reinit
end_cmd
cmdkey Q
cmd_pop
end_cmd
end_cmd
cmdkey H
toggle_user_misc UM_EXPERT
print "\r\nExpert mode is now: "
compare_ars EXPERT
if_true
print "ON"
else
print "OFF"
end_if
crlf
end_cmd
cmdkey J
msg_select_area
end_cmd
cmdkey T
msg_qwk
end_cmd
cmdkey G
file_download_batch
if_true
end_cmd
end_if
compare_ars expert
if_false
logoff
else
logoff_fast
end_if
end_cmd
cmdkey 1
compare_ars SYSOP or exempt Q or I or N
if_true
cmd_pop
goto sysop
end_if
end_cmd
end_cmd
################################ Sysop Section ################################
:sysop
cmd_home
async
compare_ars expert
if_false
clear_abort
menu wildcat/sysop
print "\r\n\x01w\x01hCommand >>? \x01n"
else
print "\r\n\x01y\x01h@GRP@ @SUB@, \x01wSYSOP MENU\x01y: ? \x01n"
end_if
# Update node status
node_action node_main
getcmd JUQ?NFD1G2A\r
logkey_comma
cmdkey ?
compare_ars expert
if_true
menu wildcat/sysop
end_if
end_cmd
cmdkey J
msg_select_area
end_cmd
cmdkey U
setstr "1"
user_edit
end_cmd
cmdkey Q
cmd_pop
goto main
end_cmd
cmdkey F
cmd_pop
goto transfers
end_cmd
cmdkey D
chksyspass
if_true
compare_ars "UNIX"
if_true
exec_int "%y -i"
else
exec_int "%y"
end_if
end_if
end_cmd
cmdkey 1
cmd_pop
goto message
end_cmd
cmdkey G
file_download_batch
if_true
end_cmd
end_if
compare_ars expert
if_false
logoff
else
logoff_fast
end_if
end_cmd
cmdkey 2
cmd_pop
goto transfers
end_cmd
cmdkey A
exec_int %!slog
end_cmd
end_cmd