home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
PB12A_1.ZIP
/
SYSC.LZH
/
SC
Wrap
Text File
|
1992-09-29
|
23KB
|
870 lines
SYS5CTLP *Disp
setactivity(Main Menu)
if(/EXPERT)=(Y) then Say()
if(/EXPERT)=(Y) then Goto (Prompt)
*sdisp
Display (display\main,/:SEC/)
*Prompt
Say(%Yellow%│$7$&0&Main Menu$0$%Yellow%│&7& You have &15&%LEFT% &7&minutes remaining, *)
MenuAsk %MIN1%(&15&%FNAME%.&CR&&3&Please enter a selection from the &11&menu&12&: &15&*)
BigIf(g:bye,h:help,?:sdisp,x:exp,p:page,y:stats,n:news,c:Cmnt,b:bMn,q:qMn)
bigif(f:fMn,m:mMn,d:dMn,l:list,@:sMn,who:Who,chat:Chat,mac:macm,find:fnd,bank:bnk)
Goto (bsel)
*fnd
loadsub(control\macros\find.ctl)
goto (disp)
*bnk
loadsub(control\macros\bank.ctl)
goto (disp)
*macm
setequal(/lastmsg=4)
selarea(4)
listfile(areas\farea4)
selfarea(1)
loadmem(control\macsig.mnu)
*sMn
enufsec(100)
ifnottrue( Goto (bSel))
log(--,Entered Sysop Menu)
loadmem(control\SYSOP.MNU)
*dMn
enufsec(20)
ifnottrue(goto (bSel))
loadmem(control\doors.mnu)
*mMn
enufsec(10)
ifnottrue(goto (bSel))
loadmem(control\mess.mnu) ;Menus
*fMn
enufsec(10)
ifnottrue(goto (bSel))
loadmem(control\files.mnu)
*bMn
enufsec(10)
ifnottrue(goto (bSel))
loadmem(control\bullet.mnu)
*qMn
enufsec(10)
ifnottrue(goto (bSel))
loadmem(control\QUES.MNU)
*chat
enufsec(10)
ifnottrue(goto (bSel))
loadsub(control\macros\mchat.ctl)
Goto (disp) ;Multinode functions
*who
enufsec(10)
ifnottrue(goto (bSel))
loadsub(control\macros\mwho.ctl)
Goto (disp)
*list
enufsec(10)
ifnottrue(goto (bSel))
loadsub(control\macros\list.ctl)
Goto (disp)
*news
enufsec(10)
ifnottrue(goto (bSel))
loadsub(control\macros\news.ctl)
Goto (disp)
*stats
enufsec(10)
ifnottrue(goto (bSel))
loadsub(control\macros\stats.ctl) ;Other menu selections
Goto (disp)
*page
enufsec(10)
ifnottrue(goto (bSel))
loadsub(control\macros\page.ctl)
Goto (disp)
*Cmnt
enufsec(10)
ifnottrue(goto (bSel))
display(display\COMMENT)
loadsub(control\macros\comment.ctl)
Goto (disp)
*exp
enufsec(10)
ifnottrue(goto (bSel))
loadsub(control\macros\expert.ctl)
Goto (disp)
*help
enufsec(10)
ifnottrue(goto (bSel))
log(--,Viewing Main Menu Help)
display (display\help\main,/:SEC/)
Goto (disp)
*bye
enufsec(10)
ifnottrue(goto (bSel))
loadsub(control\macros\bye.ctl)
Goto (disp)
*bSel
LoadSub(control\macros\badsel.ctl) ;invalid selection
Goto (disp)
SYS1CTL/say()
Seek(Tagged.%NODE%)
IfTrue (Say(&CR&&10&You have files tagged for download!%BEEP%%BEEP%))
flushout
Say(&CR&&3&Are you sure you want to &11&disconnect&3&? &9&[ ]&14&*)
Back(4)
YesNoAsk(*)
If (%RESP%)=(No) Then Return
Display (display\goodbye)
Log(<<,User logged off normally.)
QuitBBS
SYS3CTLj*disp
SetActivity (Sysop Menu)
if (/EXPERT)=(Y) then goto (prompt)
*sdisp
Display (display\SYSOP,/:SEC/)
*prompt
say(&CR&&14&│$7$&0&%CACT%$0$&14&│&7& You have &15&%LEFT% &7&minutes remaining, &15&%FNAME%.&3&)
menuask %MIN1%(Please enter a selection from the &11&menu&12&: &15&*)
BigIf (G:GOODBYE,H:HELP,?:SDISP,X:EXP,V:VIEWLOG,S:SHELL,K:KILL,D:DOWN,O:VNO,Q:QT,F:FIL,M:MS,E:ED)
goto (badsel)
*badsel
loadsub(control\macros\badsel.ctl)
goto (disp)
*GOODBYE
LoadSub(CONTROL\MACROS\BYE.CTL)
Goto(Disp)
*HELP
Display(display\help\SYSOP,/:SEC/)
Log (--,Viewed Sysop Menu Help)
Goto (Disp)
*EXP
LoadSub(CONTROL\MACROS\EXPERT.CTL)
Goto(Disp)
*VIEWLOG
LoadSub(CONTROL\MACROS\VIEWLOGS.CTL)
Goto(Disp)
*SHELL
EnufSec(100)
IfNotTrue(Goto(BSel))
LoadSub(CONTROL\MACROS\SHELL.CTL)
Goto(Disp)
*KILL
LoadSub(CONTROL\MACROS\KILLNODE.CTL)
Goto(Disp)
*DOWN
LoadSub(CONTROL\MACROS\NODEDOWN.CTL)
Goto(Disp)
*VNO
LoadSub(CONTROL\MACROS\VIEWNODE.CTL)
Goto(Disp)
*QT
LoadMem(CONTROL\MAIN.MNU)
*FIL
LoadMem(CONTROL\FILES.MNU)
*MS
LoadMem(CONTROL\MESS.MNU)
*ED
LoadSub(CONTROL\UEDIT.CTL)
Goto(Disp)
SYS7CTL¬*stats
Clearscr
If (/graphics)=(ANSI) Then Goto (ansist)
Say( Statistics Here at %BBS%)
Goto (ContStats)
*ansist
Say($7$ $0$*)
AnsiGoto(3,1)
Say($7$&0& Statistics Here at %BBS%$0$&7&)
*ContStats
Say(&CR&&7&Date of Last Call: &14&/:LAST/ &11&│&7& Your Security Level Is: *)
Say(&14&%SEC%&CR&&7&First call to BBS: &14&/:FIRST/ &11&│&7& Times on this *)
Say(BBS: &14&/:TIMESON/&CR&&7&Last New Files Check: &14&/:LASTCHK/ &11&│&7& *)
Say(Carrier Drops: &14&/:DROPPED/&CR&&7&Current BBS Time: &14&%DATE% %TIME% &11&│*)
Say(&7& Time Allotted Per Day: &14&%LIMIT%&CR&&CR&)
If (/graphics)=(ANSI) Then Goto (ansist2)
Say( Information you can change yourself:)
Goto (ContStats2)
*ansist2
Say($7$ $0$*)
AnsiGoto(1,9)
Say($7$&0& Information you can change yourself:$0$&10&)
*ContStats2
Say(&CR&1. &11&Street Address: &7&*)
SetEqual(a=/:STREET/)
SetLen(a=19)
Say(%var%a &10&2. &11&City and State: &7&*)
Say(/:FROM/)
Say(&10&3. &11&Password: &7&*)
SetEqual(a=/:PASS/)
SetLen(a=25)
Say(%var%a &10&4. &11&Phone number: &7&*)
Say(/:PHONE/)
Say(&10&5. &11&Graphics Mode: &7&*)
SetEqual(a=%GRAPHICS%)
SetLen(a=20)
Say(%var%a &10&6. &11&Work Phone: &7&/:WORK/)
Say(&10&7. &11&Default Protocol: &7&*)
SetEqual(a=/:PROTOCOL/)
SetLen(a=17)
Say(%var%a &10&8. &11&Screen Length: &7&/:SCREENLEN/)
Say(&CR&&CR&&3&Would you like to change anything? &9&[ ]&14&*)
Back(4)
YesNoAsk(*)
If (%RESP%)=(No) Then return
Say(&10&&CR&Selections are listed above (1-8).)
MenuAsk (&3&Which selection would you like to change?%hRed%: &15&*)
Say(&3&)
BigIf (1:street,2:city,3:pass,4:phone,5:graph,6:work,7:prot,8:scrlen)
Return
*prot
Display (Display\defprots)
MenuAsk (&3&Which protocol would you like (or N for None)?%hRed%: &15&*)
SetEqual(/protocol=%RESP%)
Log(--,Changed Default Protocol to %RESP%)
Goto (stats)
*scrlen
MenuAsk (&3&Please enter the new length for your screen&12&: &15&*)
SetEqual(/screenlen=%RESP%)
Log(--,Changed Screen Length to %RESP%)
Goto (stats)
*street
Ask(What is your &11&street&3& address?%hRed%: &15&*)
SetEqual(/STREET=%RESP%)
Log(--,Changed Street Address)
Goto (stats)
*city
Ask(What is your &11&City and State &3&address?%hRed%: &15&*)
SetEqual(/FROM=%RESP%)
Log(--,Changed From (City,St))
Goto (stats)
*pass
Say(What would you like your new password to be?%hRed%: &15&*)
getpass(.)
SetEqual(/PASS=%RESP%)
Log(--,Changed Password)
Goto (stats)
*phone
Say(What is your new &11&home &3&phone number?%hRed%: &15&)
Picture(###-###-####)
SetEqual(/PHONE=%RESP%)
Log(--,Changed Phone # to %RESP%)
Goto (stats)
*graph
Say(Do you want to use &11&ANSI color&3& graphics? &9&[ ]&14&*)
Back(4)
YesNoAsk(*)
SetEqual(/graphics=ANSI)
If (%RESP%)=(No) Then SetEqual(/graphics=ASCII)
Log(--,Changed Graphics Mode)
Goto (stats)
*work
Say(What is your new &11&work &3&phone number?%hRed%: &15&)
Picture(###-###-####)
SetEqual(/WORK=%RESP%)
Log(--,Changed Work Phone to %RESP%)
Goto (stats)
SYS6CTLQif (%MULTI%)=(TRUE) then goto (start)
say(&CR&&11&Sorry, %FNAME%, this system is not running the Multinode version of the)
say(Powerboard BBS Package.&CR&&CR&&3&If you feel this would be a good addition to the BBS, please contact)
say(your Sysop, %SYSOP%.&CR&)
enter
return
*start
SetActivity(Multinode Chat)
SetWho1(&7&)
SetWho2(&11&)
SetWho3(&3&)
SetWho4(&10&)
SetWho5(&15&)
display(display\chatconf)
menuask(&3&Please select a chat conference&12&: &15&*%CRON%)
if (%RESP%)=(<CR>) then return
number(%RESP%)
ifnottrue(goto (badsel))
setequal(a=%RESP%)
setequal(c=%NAME%)
setlen(c=20)
setequal(d=%FROM%)
setlen(d=21)
display(display\chatopt)
menuask(&3&Nodes you would like to chat with, seperated by spaces &11&(A=All)&12&: &15&*%MIN1%%CRON%)
if (%RESP%)=(<CR>) then return
if (%RESP%)=(A) then goto (all)
setequal(b=%RESP%)
find(%RESP%,%NODE%)
if (%ARESP%)=(0) then combine(%NODE% +%var%b=b)
display(display\stchat)
mChat(%debug%%var%a %var%b)
Return
*all
display(display\stchat)
mchat(%var%a -1)
return
*badsel
loadsub(control\macros\badsel.ctl)
return
SYS4CTLssetequal(a=/:CHATREQ/)
inc(a)
setequal(/chatreq=%var%a)
say(&14&&CR&Paging %SYSOP% for a chat, one moment please...*)
checkhours
if (%ARESP%)=(No) then goto (badhours)
if (%CHAT%)=(No) then goto (notHere)
seek(psys.%node%)
iftrue(goto (psys))
*beginPage
appendto(psys.%node%,)
setequal(n=OK)
savescreen(scr1.%NODE%)
inpopen (pagebell.dat)
localwrite(1,1,7,0,┌──────────────────────────────────────────────────────────────────────────────┐)
localwrite(1,2,7,0,│ │)
localwrite(1,3,7,0,└──────────────────────────────────────────────────────────────────────────────┘)
localwrite(2,2,14,1, Paging SysOp ... Press (SPACE) to accept; (ESC) to toggle page )
if (%ARESP%)=(ERROR) then goto (nothere)
setequal(h=0)
do
if (&n)=(PROB) then goto (absound)
inpread
sound (%ARESP%)
*absound
localkey(1)
if (%ARESP%)=( ) then goto (spacehit)
if (%aresp%)=() then goto (tpg)
eofloop
*nothere
restscreen(scr1.%NODE%)
inpclose
requested (Chat Requested)
display (display\page)
log(--,Chat with Sysop Requested)
loadsub(control\macros\comment.ctl,goto (stc))
return
*spacehit
restscreen(scr1.%NODE%)
linefeed(1)
kill(psys.%node%)
inpclose
norest ;dont restore the screen when chat ends!
sysopchat
return
*badhours
requested (Chat Requested)
display (display\hours)
log(--,Chat with Sysop Requested)
loadsub(control\macros\comment.ctl,goto (stc))
return
*tpg
tpage ;toggle page
goto (nothere)
*psys
lines(psys.%node%)
notif (%aresp%)=(3) then goto (beginpage)
goto (nothere)
SYS2CTL@Clearscr
jump(InitSetup)
DetectAnsi()
IfTrue(Setequal(/graphics=ANSI) )
IfTrue(Say(&14& Ansi Detected) )
IfNotTrue(Say ( No Ansi Detected) )
Say (&CR&&3&Would you like ANSI/Color graphics? &9&[ ]&14&*)
Back(4)
YesNoAsk (*)
SetEqual (/Graphics=ASCII)
If (%RESP%)=(Yes) then SetEqual (/Graphics=ANSI)
Display (display\WELCOME)
setequal(t=0)
*CONT
inc(t)
if (&t)=(5) then loadmem(control\no.ctl)
MenuAsk%MIN1% (&CR&&3&Please enter your first name here&12&: &15&*)
SetEqual (a=%RESP%)
Find (%VAR%a, )
NotIf (%ARESP%)=(0%debug%) then Goto (Check)
MenuAsk (&3& Please enter your last name here&12&: &15&*)
SetEqual (b=%RESP%)
*CHECK
NameSplit (%VAR%a,a,b)
NameComb (%VAR%a,%VAR%b,d)
Namequal (/name=%VAR%d)
nameok
ifnottrue(goto (cont))
SetEqual (d=%NAME%)