home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / VD050B.ZIP / SETFLAG.DOC < prev    next >
Encoding:
Text File  |  1988-09-14  |  3.4 KB  |  83 lines

  1.  
  2.                      SetFlag v1.0 by Rob Fletcher
  3.                          Copyright (c) 1988
  4.  
  5.  
  6. First:   Before you use this program read the disclaimer enclosed.
  7.          I have not had any trouble with this but you might so backup your
  8.          users.bbs file before you use it to be safe.  I wrote this thing
  9.          while watching Letterman one night so its bound to have a few bugs.
  10.  
  11.  
  12. Purpose: To turn a certain flag on or off in the QuickBBS userfile.
  13.          SetFlag was originally created to allow me to execute type 15
  14.          exits with an auto-execute(cntrl-A) menu option.  A type 15
  15.          exit dumps the user back to the top menu with the same options
  16.          he had when he left.  With an autoexec-Type 15, the user would
  17.          continually exit and return, exit and return, etc... in an
  18.          endless loop.  SetFlag can eliminate this problem by turning off
  19.          one or more of the user's flags WHIlE he is exited so when he
  20.          returns he no longer has access to the type-15 command.  You
  21.          can also give him access to other options while exited by
  22.          turning on one or more of his flags.  The possiblities are
  23.          endless.
  24.  
  25. Use:     The command line for SetFlag is: SETFLAG <flag> <onoroff> <username>
  26.  
  27.          <flag> is the flag to turn on or off.  It is 2 characters.  The first
  28.                 character must be A,B,C, or D.  These letters correspond to
  29.                 the A Flags, B Flags, C Flags, and D Flags used in QuickBBS.
  30.                 The second character is a number from 1 to 8.  This number is
  31.                 tells SetFlag which flag to manipulate.
  32.                 Example: A5 would change the fifth A flag in the user's record.
  33.                 A -------- B -------- C -------- D --------
  34.                       ^
  35.                      A5
  36.  
  37.      <onoroff>  Tells SetFlag whether to turn the flag in question ON or OFF.
  38.                 If you put ON here it would turn on the A5 flag.
  39.  
  40.                 A ----X--- B -------- C -------- D --------
  41.                       ^
  42.                      A5 turned ON
  43.  
  44.      <username> Tells SetFlag what user to do this flag change on.
  45.                 You must put and _underline_ character in the name where spaces
  46.                 would normally go.  Example: Joe_User = Joe User
  47.                 There are some special names you can use here also.
  48.  
  49.                 EXIT tells SetFlag to get the users name from the exitinfo.bbs
  50.                 file created by QuickBBS when a user exits to DOS.
  51.                 Note: Dont use the EXIT option when shelled (type 7) from
  52.                       QuickBBS.  ONLY with a type 15.
  53.  
  54.                 AFTER tells SetFlag to get the users name from the sysinfo.bbs
  55.                 file.  This file contains the name of the last caller.  You
  56.                 would normally run it with this option AFTER the user has logged
  57.                 off.
  58.  
  59.                 ALL tells SetFlag to set EVERYONES flag.
  60.  
  61.  
  62. Examples:
  63.  
  64. SETFLAG D6 Off EXIT
  65. Gets the user's name that just exited from the exitinfo.bbs and turns his D6
  66. flag Off.
  67.  
  68. SETFLAG B4 ON ALL
  69. Turns everyones B4 flag on.
  70.  
  71. SETFLAG A3 ON AFTER
  72. Turns the last callers A3 flag ON.
  73.  
  74. SETFLAG A6 OFF Rob_Fletcher
  75. Turns my A6 Flag Off.
  76.  
  77.  
  78. Please send any comments, suggestions, questions, etc.. to me at
  79. The Great Escape BBS-FidoNet Node 170/211-Phone 918-481-1188
  80.  
  81.  
  82. QuickBBS is Copyrighted by Adam Hudson
  83.