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 >
Text File  |  1990-08-31  |  2KB  |  42 lines

  1. Don Nightingale #1 @8200
  2. Tue Aug 14 21:15:28 1990
  3. I had an idea for this a while back, just got bored enough to do it.  It
  4. gives you a new restriction to give to users.  It forbids downloads, while
  5. giving access to list etc. in the directories they can access.
  6.  
  7.  
  8.  
  9. Step one:
  10. ~~~~~~~~~
  11.  
  12. Load up VARDEC.H.  Change the following:
  13.  
  14.  
  15. #define restrict_net 0x0200       /* Search for this */
  16. #define restrict_upload 0x0400    /* Existing line   */
  17. #define restrict_download 0x800   /* Add this line   */
  18.  
  19. #define restrict_string "LCMA*PEVKNUD    "  /* Change.. Add the D at the */
  20.                                             /* end of the characters.    */
  21.                                             /* Make sure that there are  */
  22.                                             /* exactly 16 characters in  */
  23.                                             /* the string.               */
  24.  
  25.  
  26. Save it, and load up BBS.C.  Add the following in void dlmainmenu():
  27.  
  28.  
  29.       case 'D':                                          /* Search for */
  30.         helpl=20;                                        /*  Existing  */
  31.         if(thisuser.restrict & restrict_download)        /*  Add line  */
  32.         {                                                /*  Add line  */
  33.           nl(); nl();                                    /*  Add line  */
  34.           pl("You cannot download files at this time."); /*  Add line  */
  35.           break;                                         /*  Add line  */
  36.         }                                                /*  Add line  */
  37.         download();                                      /*  Existing  */
  38.         break;                                           /*  Existing  */
  39.  
  40.  
  41. Save it and recompile the entire board.  This doesn't change your userrec
  42. in any way, and works just fine for me.  Any problems, E-mail me 1@820