-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmatrix.src
172 lines (154 loc) · 2.58 KB
/
matrix.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
# matrix.src
# Light-bar answer module for Synchronet BBS v2.2+
# $Id: matrix.src,v 1.3 2000/10/26 11:36:52 rswindell Exp $
# @format.tab-size 8, @format.use-tabs true
!include sbbsdefs.inc
!define LAST 2
logout
node_status NODE_LOGON
compare_ars WIP
if_true
exec_bin WIPLOGIN
return
end_if
int c m
:top
compare c 10
if_greater_or_equal
hangup
return
end_if
# Trigger scripts with old style prompt
print "NN: "
pause_reset
cls
cmd_home
compare_user_misc UM_ANSI
if_true
print "\x1b[H"
else
cls
end_if
print " "
print "4yh"
print "ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»n\r\n"
print " "
print "4yh"
print "º Logon Matrix ºnb°°n\r\n"
print " "
print "4yh"
print "ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹nb°°n\r\n"
print " 4yhº "
compare m 0
if_equal
print "7bh"
else
print " 4wh"
end_if
print " Existing User Account "
print "4y ºnb°°n\r\n 4yhº "
compare m 1
if_equal
print "7bh"
else
print " 4wh"
end_if
print " New User Account "
print "4y ºnb°°n\r\n 4yhº "
compare m 2
if_equal
print "7bh"
else
print " 4wh"
end_if
print " Guest User Account "
print "4y ºnb°°n\r\n 4yh"
print "ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼnb°°n\r\nnb"
print " "
print " °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°n\r\n"
#sync
getkey
# Down Arrow, Ctrl-J or 'D'
cmdkeys ^JD
add m 1
compare m LAST
if_greater
set m 0
end_if
pause_reset
end_cmd
# Up Arrow, Ctrl-^ or 'U'
cmdkeys ^^U
sub m 1
compare m 0
if_less
set m LAST
end_if
pause_reset
end_cmd
# Home or Ctrl-B
cmdkey ^B
set m 0
end_cmd
# End of Ctrl-E
cmdkey ^E
set m LAST
end_cmd
cmdkeys ABCDEFGHIJKLMNOPQRSTUVWXYZ*
ungetkey
cmd_pop
end_cmd
switch m
case 0
cls
print "Login: "
getstr str 25 K_UPRLWR|K_LOWPRIO|K_E71DETECT
truncsp str
compare_str ""
if_true
add c 1
goto top
end_if
login "PW: "
if_true
logon
if_true
return
end_if
end_if
pause
add c 2
goto top
end_case
case 1
setstr "%q"
compare_str "VERT"
if_true
yes_no Are you calling just to download Synchronet BBS software
if_true
setstr "Guest"
login "PW: "
if_true
logon
if_true
return
end_if
end_if
end_if
end_if
newuser
logon
return
end_case
case 2
setstr "guest"
login "PW: "
if_true
logon
if_true
return
end_if
end_if
end_case
end_switch
goto top