home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
MODSUNKN.ZIP
/
SYSMNU3.MOD
< prev
next >
Wrap
Text File
|
1990-06-25
|
4KB
|
197 lines
Suicidal Maniac #1 @6865
Fri Jun 22 20:21:16 1990
void sysopmenu()
{
char *s,s1[81],s2[81];
int abort;
if ((sysstatus_expert & thisuser.sysstatus)==0)
printmenu(5);
s1[0]=0;
nl();
nl();
tleft(1);
print("T - ",ctim(nsl()),"");
prt(2,"[Sysop Menu]:");
s=mmkey(0);
sysopchar(s);
if (strcmp(s,"/O")==0)
hangup=1;
if ((s[1]==0) && (s[0]!=0)) {
switch(s[0]) {
case '?':
if ((sysstatus_expert & thisuser.sysstatus))
printmenu(5);
break;
case 'Q':
cursys=0;
break;
case 'O':
helpl=12;
nl();
nl();
prt(5,"Log Off? ");
if (yn()) {
outchr(12);
print("Time on = ",ctim(timer()-timeon),"");
printfile("LOGOFF.MSG");
hangup=1;
}
break;
case 'S':
prstatus();
break;
case 'I':
sysoplog("@ Ran Ivotes");
ivotes();
break;
case 'L':
sl1(3,s1);
printfile(s1);
break;
case 'T':
sysoplog("@ Ran Tedit");
text_edit();
break;
case 'Y':
printfile(status.log1);
break;
case 'U':
sysoplog("@ Ran Uedit");
uedit(usernum,0);
break;
case 'Z':
zlog();
break;
case 'N':
printfile("NET.LOG");
case 'V':
voteprint();
break;
case 'H':
if (so())
chuser();
break;
case 'B':
if (so()) {
sysoplog("@ Ran BoardEdit");
boardedit();
}
break;
case 'M':
if (so() && checkpw()) {
sysoplog("@ Read All Mail");
mailr();
}
break;
case 'C':
if (so()) {
sysoplog("@ Ran ChainEdit");
chainedit();
}
break;
case 'X':
if (so() && checkpw()) {
sysoplog("@ Shelled to DOS");
full_external(getenv("COMSPEC"),1,0);
topscreen();
}
break;
case 'D':
if (so()) {
sysoplog("@ Ran DirEdit");
dlboardedit();
}
break;
case 'E':
if (so()) {
nl();
prt(2,"Filename? ");
input(s1,50);
if (s1[0]) {
if ((okansi()) && (thisuser.defed))
external_edit(s1,"",thisuser.defed-1,500);
else
tedit(s1);
}
}
break;
case 'G':
if (so()) {
sysoplog("@ Ran GfileEdit");
gfileedit();
}
break;
case 'J':
if (so()) {
nl();
prt(2,"Filename? ");
input(s1,50);
if (s1[0]) {
nl();
prt(5,"Allow editing? ");
if (yn()) {
nl();
load_workspace(s1,0);
} else {
nl();
load_workspace(s1,1);
}
}
}
break;
case 'W':
if (so() && checkpw()) {
prt(6,"Do you really want to reset the computer? ");
if (yn()) {
dtr(0);
sysoplog("@ Reset the computer");
logoff();
sl1(1,"");
if (ok_modem_stuff)
closeport();
setvect(0x6a,(void interrupt (*) ()) MK_FP(0xffff,0x0000));
geninterrupt(0x6a);
}
}
break;
case 'A':
if (so()) {
nl();
pl(((*(char far *)0x00000417L ^= 0x10) & 0x10) ?
"Sysop now available" :
"Sysop now unavailable");
sysoplog("@ Chainged sysop availability status");
topscreen();
}
break;
case 'K':
if (so()) {
nl();
itoa(_stklen,s,10);
print("Stack size: ",s,"");
itoa((int)(farcoreleft()/1024),s,10);
print("Heap free: ",s,"k","");
nl();
}
break;
case 'R':
if (so()) {
reset_files();
}
break;
case 'F':
if (so()) {
read_new_stuff();
}
break;
}
}
helpl=0;
}
2Origin ***>1 Dirty Bird's Nest, 618-397-7687, 14,400 HST