home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
W
/
DEVBBS.ZIP
/
SYSOPME.C
< prev
next >
Wrap
Text File
|
1992-07-20
|
3KB
|
142 lines
int done;
done=0;
do {
tleft(1);
npr("e[fTime lefte] 1- f%s\r\n",ctim(nsl()));
outstr("7() 1The Devil's Doorknob Sysop Menu 7(> ");
ch=onek("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
switch(ch) {
case 'A':
sysoplog("@ Ran Boardedit");
boardedit();
break;
case 'B':
sysoplog("@ Ran Diredit");
dlboardedit();
break;
case 'C':
sysoplog("@ Ran Chainedit");
chainedit();
break;
case 'D':
sysoplog("@ Ran Gfileedit");
gfileedit();
break;
case 'E':
nl();
prt(2,"PW: ");
echo=0;
input(s,20);
echo=1;
if (strcmp(s,("GOAT"))==0) {
sysoplog("@ Molested DOS");
shrink_out(getenv("COMSPEC"),1,1,1,0);
topscreen();
}
break;
case 'F':
reset_files();
break;
case 'G':
dtr(0);
sysoplog("@ Reset the computer");
logoff();
sl1(1,"");
if (ok_modem_stuff)
closeport();
setvect(INT_SAVE_21,(void interrupt (*) ()) MK_FP(0xffff,0x0000));
geninterrupt(INT_SAVE_21);
break;
case 'H':
read_new_stuff();
break;
case 'I':
nl();
prt(1,"What is the filename? ");
input(s1,50);
if (s1[0]) {
if ((okansi()) && (thisuser.defed))
external_edit(s1,"",thisuser.defed-1,500);
else
tedit(s1);
}
break;
case 'J':
nl();
prt(1,"What is the filename? ");
input(s1,50);
if (s1[0]) {
nl();
prt(5,"eAllow editing? ");
if (yn()) {
nl();
load_workspace(s1,0);
} else {
nl();
load_workspace(s1,1);
}
}
break;
case 'K':
chuser();
break;
case 'L':
nl();
npr("eStack sizef: e%d\r\n",_stklen);
npr("eHeap free f: e%dk\r\n", (int) (farcoreleft()/1024));
nl();
break;
case 'M':
sysoplog("@ Read all mail");
mailr();
break;
case 'N':
nl();
pl(((*(char far *)0x00000417L ^= 0x10) & 0x10) ?
"fStimpy is now available" :
"fStimpy is now unavailable");
sysoplog("@ Changed sysop avail status");
topscreen();
break;
case 'O':
prstatus();
break;
case 'P':
sysoplog("@ Ran Ivotes");
ivotes();
break;
case 'Q':
done=1;
break;
case 'R':
sl1(3,s1);
printfile(s1);
break;
case 'S':
sysoplog("@ Ran Tedit");
text_edit();
break;
case 'T':
printfile(status.log1);
break;
case 'U':
sysoplog("@ Ran Uedit");
uedit(usernum,0);
break;
case 'V':
zlog();
break;
case 'W':
voteprint();
break;
}
} while ((!done) && (!hangup));