home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
MODSUNKN.ZIP
/
RESTRCDL.MOD
< prev
next >
Wrap
Text File
|
1990-08-31
|
2KB
|
42 lines
Don Nightingale #1 @8200
Tue Aug 14 21:15:28 1990
I had an idea for this a while back, just got bored enough to do it. It
gives you a new restriction to give to users. It forbids downloads, while
giving access to list etc. in the directories they can access.
Step one:
~~~~~~~~~
Load up VARDEC.H. Change the following:
#define restrict_net 0x0200 /* Search for this */
#define restrict_upload 0x0400 /* Existing line */
#define restrict_download 0x800 /* Add this line */
#define restrict_string "LCMA*PEVKNUD " /* Change.. Add the D at the */
/* end of the characters. */
/* Make sure that there are */
/* exactly 16 characters in */
/* the string. */
Save it, and load up BBS.C. Add the following in void dlmainmenu():
case 'D': /* Search for */
helpl=20; /* Existing */
if(thisuser.restrict & restrict_download) /* Add line */
{ /* Add line */
nl(); nl(); /* Add line */
pl("You cannot download files at this time."); /* Add line */
break; /* Add line */
} /* Add line */
download(); /* Existing */
break; /* Existing */
Save it and recompile the entire board. This doesn't change your userrec
in any way, and works just fine for me. Any problems, E-mail me 1@820