home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / PROG / DFQBX30.ZIP / DFRAMEX.DOC < prev    next >
Encoding:
Text File  |  1993-07-19  |  59.4 KB  |  1,170 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.                                D O O R F R A M E
  16.                                   Version 3.0
  17.  
  18.                         A BBS Doors Development Library
  19.                           for the BASCOM 7.1 compiler
  20.                       Originally by Ted Freeman (Deceased)
  21.  
  22.                              Copyright (c) July-93
  23.                               by Richard Paquette
  24.                               All rights reserved.
  25.  
  26.  
  27.                                Support board is:
  28.  
  29.                                The Livewire BBS
  30.                              609-235-5297 USR HST
  31.  
  32.  
  33.  
  34. DOORFRAME v3.0 - Users Guide - Page i
  35.  
  36.  
  37.                                 C O N T E N T S
  38.                                =================
  39.  
  40.         Warranty ............................................ ii
  41.         Copyright notice .................................... ii
  42.         Distribution ........................................ ii
  43.         Description ......................................... ii
  44.         BOX.IT .............................................. 1
  45.         BACK.SPACE .......................................... 2
  46.         CLEARBUFFER ......................................... 2
  47.         CLREOL .............................................. 2
  48.         CLRMOL .............................................. 2
  49.         CLRSOL .............................................. 2
  50.         CLRSCRN ............................................. 2
  51.         DE.LAY .............................................. 2
  52.         DETECT.ANSI ......................................... 2
  53.         DIS.PLAY ............................................ 3
  54.         ENTER ............................................... 4
  55.         EXIT.DOOR ........................................... 4
  56.         IN.PUT .............................................. 4
  57.         INITIALIZE .......................................... 5
  58.         LINES ............................................... 5
  59.         MAKE.BLT ............................................ 6
  60.         MAKE.BLT.CURRENT .................................... 6
  61.         MORE ................................................ 6
  62.         MUSIC ............................................... 6
  63.         OUT.PUT ............................................. 6
  64.         SEND ................................................ 7
  65.         SENDANSI ............................................ 7
  66.         SHOW.BLT ............................................ 7
  67.         COLOR TABLE ......................................... 8
  68.         CONFIGURATION FILE FORMAT ........................... 9
  69.         PCBOARD.SYS VARIABLES ............................... 10
  70.         USERS.SYS VARIABLES ................................. 12
  71.         DOOR.SYS VARIABLES .................................. 13
  72.         USERINFO.DAT VARIABLES .............................. 15
  73.         DORINFOx.DEF VARIABLES .............................. 15
  74.         CALLINFO.BBS VARIABLES .............................. 16
  75.         SFDOORS.DAT VARIABLES ............................... 18
  76.         MISCELLANEOUS NOTES ................................. 20
  77.  
  78.  
  79. DOORFRAME v3.0 - Users Guide - Page ii
  80.  
  81.  
  82.                                    Warranty
  83.  
  84.     This product is provided "as is" without warranty of any kind. The entire
  85.     risk as to the results and  performance of the program is assumed by you.
  86.     Futhermore, the  author does  not warrant, guarantee, or  make any  other
  87.     representations regarding  the use of,  or the  results of the use of the
  88.     program,  and you  rely on the  program and  results  solely at  your own
  89.     risk.  The author  cannot and  will not accept  responsibility for system
  90.     damage, loss of profit, or any other special, consequential or incidental 
  91.     damages  resulting  from  the  use  or  inability  to  use this  product.
  92.  
  93.                                    Copyright
  94.  
  95.     DOORFRAME Copyright (c) 1990-93 by  Ted Freeman  is being distributed as
  96.     Shareware. Under this concept you may use the  SHAREWARE  (unregistered)
  97.     version for a reasonable period of  time for evaluation  after which you
  98.     must either register your copy or discontinue  usage.
  99.  
  100.  
  101.                                  Distribution
  102.  
  103.     You  are encouraged to distribute DOORFRAME provided that all files
  104.     contained in the archive are distributed in their original and
  105.     unmodified state.
  106.  
  107.                                   Description
  108.     
  109.     DOORFRAME is a subroutine library for developing online BBS Doors for
  110.     systems that are compatible with PCBOARD.SYS, USERS.SYS, DOOR.SYS,
  111.     CALLINFO.BBS, USERINFO.DAT, SFDOORS.DAT, or DORINFOx.DEF for
  112.     interfacing to the BBS.
  113.     This version of DoorFrame was written for BASCOM (tm) 7.1 and is not
  114.     recommended for use with earlier versions of the compiler. DoorFrame also
  115.     utilizes some of the routines contained in Tom Hanlin's PBClone library.
  116.     The COM routines are handled by the QBSerial I/O library.
  117.     NOTE: A version of DoorFrame is also available for Quickbasic 4.x.
  118.  
  119.  
  120. DOORFRAME v3.0 - Users Guide - Page 1
  121.  
  122.  
  123.                               DOORFRAME ROUTINES
  124.                              ====================
  125.  
  126. NOTE: 
  127. Since the subroutines are DECLAREd in DFRAMEX.INC (you DID $INCLUDE: it didn't 
  128. you?) you should not use the CALL statement. Type the name of the subroutine 
  129. and list it's parameters (if any) without the enclosing parentheses.
  130. For example:
  131.  
  132.  DIS.PLAY MSG$, FG%, BG%, BLINK%, BELL%, XPOS%, YPOS%, NL%, CENTER%, CAPS% 
  133. ------------------------------------------------------------------------------
  134.  
  135. SUBROUTINE: 
  136. BOX.IT SROW%,SCOL%,EROW%,ECOL%,BTYPE%,BFG%,BBG%,FFG%,FBG%,FCHAR%,SHADOW%,TITLE$,HFG%,HBG%
  137. PARAMETERS: SROW%    - ROW the box is to start at. Valid numbers are 1 - 22.
  138.                        Accepts an INTEGER number or variable.
  139.             SCOL%    - COLUMN the box is to start at. Valid numbers are 1 - 79.
  140.                        Accepts an INTEGER number or variable.
  141.             EROW%    - ROW the box is to end at. Valid numbers are 2 - 23.
  142.                        Accepts an INTEGER number or variable.
  143.             ECOL%    - COLUMN the box is to end at. Valid numbers are 2 - 80.
  144.                        Accepts an INTEGER number or variable.
  145.             BTYPE%   - Type of border. Accepts an INTEGER number or variable.
  146.                          0 = No border (spaces all the way around).
  147.                          1 = Single line all the way around.
  148.                          2 = Double line all the way around.
  149.                          3 = Double line on sides, single on top and bottom.
  150.                          4 = Single line on sides, double on top and bottom.
  151.             BFG%     - Foreground color of the border. (See color table)
  152.                        Accepts an INTEGER number or variable.
  153.             BBG%     - Background color of the border. (See color table)
  154.                        Accepts an INTEGER number or variable.
  155.             FFG%     - Foreground color of the box fill characters.
  156.                        Accepts an INTEGER number or variable.
  157.             FBG%     - Background color of the box fill characters.
  158.                        Accepts an INTEGER number or variable.
  159.             FCHAR%   - ASCII number of the character to fill box with.
  160.                        EX: 32 = SPACE, 65 = A, 206 = ╬
  161.             SHADOW%  - -1 = no Shadow, 0 - 7 = Background color of the Shadow. 
  162.                        This will put a Shadow on the right and bottom edges 
  163.                        of the box.
  164.             TITLE$   - Displays a title centered on the top border.
  165.                        Accepts a STRING variable or QUOTED TEXT.
  166.             HFG%     - Foreground color of TITLE$
  167.             HFG%     - Background color of TITLE$
  168.  
  169. DESCRIPTION: Draws a BOX with various style borders. The inside of the
  170.              BOX may be filled with any ASCII character you choose. The
  171.              upper left corner of the screen is ROW 1, COLUMN 1 and the
  172.              bottom right is ROW 23, COLUMN 80.
  173.  
  174.  
  175.  
  176.  
  177. DOORFRAME v3.0 - Users Guide - Page 2
  178.  
  179. SUBROUTINE: BACK.SPACE ROW%, COL%, NUM%
  180. PARAMETERS: ROW%, COL%, NUM%
  181. DESCRIPTION: Backspaces NUM% from the ROW% and COL% specified.
  182.  
  183. SUBROUTINE: CLEARBUFFER BUFF%
  184. PARAMETERS: BUFF%, 0, 1, 2
  185. DESCRIPTION: Clears either the keyboard buffer, the communications input
  186.              buffer, or both.
  187.              0 = Clear both buffers.
  188.              1 = Clear communications input buffer only.
  189.              2 = Clear keyboard buffer only.
  190.  
  191. SUBROUTINE: CLREOL XPOS%, YPOS%, BGC%
  192. PARAMETERS: XPOS%, YPOS%, BGC%
  193. DESCRIPTION: Clears from the specified row and column to the end of that
  194.              line. The line is cleared in whatever color is specified in
  195.              the BGC% parameter. NOTE: Does not work in non-ANSI.
  196.  
  197. SUBROUTINE: CLRMOL XPOS%, YPOS%, LENGTH%, BGC%
  198. PARAMETERS: XPOS%, YPOS%, LENGTH%, BGC%
  199. DESCRIPTION: Clears from the specified row and column for the number of
  200.              columns given in LENGTH%. The line is cleared in whatever
  201.              color is specified in the BGC% parameter.
  202.              NOTE: Does not work in non-ANSI.
  203.  
  204. SUBROUTINE: CLRSOL XPOS%, YPOS%, BGC%
  205. PARAMETERS: XPOS%, YPOS%, BGC%
  206. DESCRIPTION: Clears from the specified row and column to the start of that
  207.              line. The line is cleared in whatever color is specified in
  208.              the BGC% parameter. NOTE: Does not work in non-ANSI.
  209.  
  210. SUBROUTINE: CLRSCRN
  211. PARAMETERS: BGC%
  212. DESCRIPTION: Clears both the LOCAL (if ON) and REMOTE displays in the back-
  213.              ground color of your choice. Range is 0 - 7. ANSI only.
  214.  
  215.  
  216. SUBROUTINE: DE.LAY SEC%
  217. PARAMETERS: SEC%, 1, 2, Etc.
  218. DESCRIPTION: Pauses your program for the number of seconds in SEC%. Accepts
  219.              INTEGER number or variable.
  220.  
  221. SUBROUTINE: DETECT.ANSI
  222. PARAMETERS: None
  223. DESCRIPTION: This routine will determine if the remote system has ANSI
  224.              capability. If the remote system is ANSI compatible, the
  225.              GRAPHICS% variable will be set equal to -1 otherwise it is
  226.              set to 0. This routine does not control whether COLOR is used
  227.              or not, see the MODE% variable for that.
  228.  
  229.  
  230.  
  231. DOORFRAME v3.0 - Users Guide - Page 3
  232.  
  233. SUBROUTINE: 
  234. DIS.PLAY MSG$,FG%,BG%,BLINK%,BELL%,XPOS%,YPOS%,NL%,CENTER%,CAPS%,CODES%
  235. PARAMETERS: MSG$     - Text to be printed in either variable or quoted form.
  236.                        Example: "Print this" or MSG$ = "Print this".
  237.             FG%      - Foreground color (0 - 15) Of the text. Can be in
  238.                        INTEGER number or INTEGER variable form. 
  239.                        Example: FG% = 1, 1, BLUE (See Color Table)
  240.             BG%      - Background color (0 - 7) of text otherwise same as FG%
  241.             BLINK%   - Enter 1 for blinking text or 0 for normal text.
  242.                        Accepts INTEGER number or INTEGER variable.
  243.             BELL%    - Enter 1 to sound a beep on the remote or 0 for no
  244.                        beep. Does not beep on the local computer.
  245.                        Accepts INTEGER number or INTEGER variable.
  246.             XPOS%    - Row number for cursor positioning. Valid numbers
  247.                        are 0 - 23 (status line is on 24 - 25). Enter 0 to
  248.                        disable. Accepts INTEGER number or variable.
  249.                        NOTE: XPOS% is ignored when GRAPHICS% = 0.
  250.             YPOS%    - Column number for cursor positioning. Valid numbers
  251.                        are 0 - 80. Enter 0 to disable. Accepts INTEGER number
  252.                        or INTEGER variable.
  253.                        NOTE: YPOS% is ignored when GRAPHICS% = 0.
  254.             NL%      - Enter 1 to send a CR/LF at the end of the line. Enter
  255.                        0 to position the cursor after the last character.
  256.                        Accepts INTEGER number or INTEGER variable.
  257.             CENTER%  - Enter 1 to center the line or 0 for no centering.
  258.             CAPS%    - Enter 1 to convert text to all uppercase.
  259.                        Enter -1 to convert text to all lowercase.
  260.                        Enter 0 for no case conversion.
  261.                        Accepts INTEGER number or INTEGER variable.
  262.             CODES%   - 0 = No color codes in this statement.
  263.                        1 = Color codes are present in this statement.
  264.  
  265. DESCRIPTION: Displays text to both the Local (if on) and Remote screens.
  266.              Accepts the full ASCII charcter set (0 - 255). Supports ANSI
  267.              color and cursor positioning (XPOS%, YPOS%). DoorFrame features
  268.              auto-ANSI detection and will display in graphics mode if it
  269.              senses ANSI capability on the remote end.
  270.  
  271. ENHANCEMENTS: There are some special symbols available to make text blink
  272.              in the middle of a line in any color you wish. For example:
  273.  
  274.              DIS.PLAY "This will %{Blink Yellow{", LWHITE, BLACK, 0, 0,......
  275.  
  276.              Note the {'s before and after Blink Yellow. They tell the routine
  277.              to display the text in between in yellow and blinks because 
  278.              of the % symbol. Without the % the text is displayed in yellow
  279.              but does not blink. The rest of the line is displayed in white
  280.              on black. The symbols and their corresponding colors are:
  281.                 ~ = Blue,  ` = Green,  @ = Cyan,  ^ = Red,  | = Magenta
  282.                 { = Yellow, and } = White 
  283.              Put a * in front of the first symbol to display in low intensity
  284.              colors. Ex: *}text} displays 'text' in low intensity white. And
  285.              %*}test} displays 'text' in low intensity white and blinks.
  286.  
  287. DOORFRAME v3.0 - Users Guide - Page 4
  288.  
  289.              Please note that you must have called DETECT.ANSI before using
  290.              these symbols and the caller must be ANSI capable. Multiple codes
  291.              are allowed in one Dis.Play statement. See the included
  292.              DFDEMO.BAS file for examples on using this option.
  293.              If a particular Dis.Play statement does not contain any of these
  294.              color codes, then the Codes% parameter should contain a 0. This
  295.              will result in a significant increase in display speed since the
  296.              routine doesn't have to search for and strip these characters.
  297.  
  298. SUBROUTINE: ENTER
  299. PARAMETERS: None
  300. DESCRIPTION: Outputs a "Press <ENTER> to Continue" prompt and waits for the
  301.              response. If the caller is in graphics mode, this is centered
  302.              on line 23. In non-graphics mode it is centered 2 lines below
  303.              the last line printed.
  304.  
  305.  
  306. SUBROUTINE: EXIT.DOOR YN$
  307. PARAMETERS: YN$, "Y", "N", "G"
  308. DESCRIPTION: VERY IMPORTANT! Always call this subroutine as the last thing
  309.              your program does. EXIT.DOOR updates the system files with any
  310.              changes that have been made to system variables, closes the
  311.              files, etc.
  312.  
  313.              You can toggle this ON, "Y" or OFF, "N" when you call EXIT.DOOR.
  314.              Accepts a STRING variable YN$ = "Y" or quoted text "Y".
  315.              If you wish to allow the caller to log off from your Door, call
  316.              EXIT.DOOR "G". When you use EXIT.DOOR "G", DoorFrame returns a
  317.              DOS Error Level of 1 for Wildcat! systems and 62 for all others.
  318.  
  319. SUBROUTINE: 
  320. IN.PUT LENGTH%, WAITTIME&, IFG%, IBG%, AUTOCR%, Text$, TFG%, TBG%, X%, Y%, Show%
  321.  
  322. PARAMETERS: LENGTH%   - Desired length of input. Accepts an INTEGER number
  323.                         or variable. 0 = any length.
  324.             WAITTIME& - Number of seconds to wait for input. If ENTER is not
  325.                         pressed before this times out, control is passed back
  326.                         to the calling routine and RESPONSE$ will contain "-1"
  327.             IFG%      - Foreground color of the response (INTEGER).
  328.             IBG%      - Background color of the response (INTEGER).
  329.             AUTOCR%   - 1 = Automatic CR, 0 = Wait for ENTER to be pressed.
  330.             Text$     - Text to display (if any). Use "" for no display.
  331.             TFG%      - Foreground color of Text$
  332.             BFG%      - Background color of Text$
  333.             X%        - X coordinate to display text. 0 = current coordinate.
  334.             Y%        - Y coordinate to display text. 0 = current coordinate.
  335.             Show%     - 0 = Don't display response, 1 = Display response.
  336.  
  337. DESCRIPTION: Gets a response from the caller which is returned in the variable
  338.              RESPONSE$. Passes ASCII characters in the range 32 - 127 and
  339.              ignores all others unless Hi.Ascii% = 1, in which case it accepts
  340.              ASCII 32 - 255. IN.PUT also allows you to use HOT KEYS! If you are
  341.              prompting for a Y/N you could do something like:
  342.              
  343.              IN.PUT 1, 180, 12, 0, 1, "Is everything correct? (y/n) ", 1, 1, 0
  344.              IF UCASE$(RESPONSE$) = "Y" THEN      Etc., Etc.
  345.  
  346.  
  347. DOORFRAME v3.0 - Users Guide - Page 5
  348.  
  349.              As soon as the caller hit Y or N, the subroutine terminates
  350.              without his having to hit ENTER (however IN.PUT always returns
  351.              when ENTER is pressed). The response would not be displayed.
  352.              The IN.PUT can also be used as a timed routine. In the example
  353.              above, The routine would wait for 180 seconds. if it does not
  354.              receive a keypress within that time, it returns to the calling
  355.              routine and RESPONSE$ would contain a "-1".
  356.              IN.PUT features word-wrap ability in both forward typing and
  357.              while backspacing.
  358.  
  359. SUBROUTINE: INITIALIZE
  360. PARAMETERS: None
  361. DESCRIPTION: VERY IMPORTANT! You MUST make a call to INITIALIZE before your
  362.              code does anything. This subroutine opens the system files and
  363.              obtains all the information you will need to run your Door. It
  364.              first reads the configuration file you passed on the command
  365.              line, then it reads the BBS interface file PCBOARD.SYS, etc.
  366.              There are 3 variables that must be populated before the call
  367.              to INITIALIZE. 
  368.                 PROGNAME$ = "Name of your Door"
  369.                 EXENAME$ = "FILENAM"
  370.                 VERSION$ = " v0.0"
  371.                 INITIALIZE
  372.              PROGNAME$ and VERSION$ are displayed on the Status line after
  373.              the callers name. EXENAME$ must be populated if you plan to use
  374.              the high score bulletin generator. EXENAME$ is the filename of
  375.              your program minus the .EXE extension.
  376.          ->  NOTE: EXENAME$ MUST BE NO MORE THAN 7 CHARACTERS!
  377.  
  378.  
  379. SUBROUTINE: LINES SROW%,SCOL%,LEN%,DIR$,ENDS%,MID%,EFG%,EBG%,MFG%,MBG%
  380. PARAMETERS: SROW%    - Row the line starts at. Valid numbers are 1 - 22.
  381.                        Accepts an INTEGER number or variable.
  382.             SCOL%    - Column the line starts at. Valid numbers are 1 - 79.
  383.                        Accepts an INTEGER number or variable.
  384.             LEN%     - Length of the line. Max. of 23 for vertical, 80 horiz.
  385.                        Accepts an INTEGER number or variable.
  386.             DIR$     - "H" = horizontal. "V" = vertical. Accepts a STRING
  387.                        variable or quoted text.
  388.             ENDS%    - If you are placing the line inside a box, you can
  389.                        make the ends of the line match the box border.
  390.                        Accepts an INTEGER number or variable.
  391.                          0 = No ends. (straight line only)
  392.                          1 = Single line.
  393.                          2 = Double line.
  394.             MID%     - Type of line. 1 = Single line. 2 = Double line.
  395.                        Accepts an INTEGER number or variable.
  396.             EFG%     - Foreground color of the ends (see color table).
  397.                        Accepts an INTEGER number or variable.
  398.             EBG%     - Background color of the ends (see color table).
  399.                        Accepts an INTEGER number or variable.
  400.             MFG%     - Foreground color of the line (see color table).
  401.                        Accepts an INTEGER number or variable.
  402.             MBG%     - Background color of the line (see color table).
  403.                        Accepts an INTEGER number or variable.
  404. DESCRIPTION: Draws either a vertical or horizontal line at the specified
  405.              location. 
  406.  
  407.  
  408. DOORFRAME v3.0 - Users Guide - Page 6
  409.  
  410. SUBROUTINE: MAKE.BLT HI.SCORE&
  411. PARAMETERS: HI.SCORE&, 10, 10000, Etc.
  412. DESCRIPTION: This routine will write a hi-score bulletin listing the top ten
  413.              scores. The parameter passed must be a LONG INTEGER (&). This
  414.              routine creates a file called FILENAME.BUL (where FILENAME is
  415.              the same as specified in the EXENAME$ variable). The first line
  416.              of this .BUL file indicates the path to the actual BLT file. It
  417.              initially writes FILENAME.BLT. If you wish to have a different
  418.              filename (such as BLT1) you must edit this line. The filename
  419.              for your BLT file should be 7 characters or less because
  420.              DoorFrame also writes a graphics BLT and appends a G to the
  421.              filename. (You should also explain this to your user Sysops!)
  422.  
  423. SUBROUTINE: MAKE.BLT.CURRENT HI.SCORE&
  424. PARAMETERS: HI.SCORE&, 10, 10000, Etc.
  425. DESCRIPTION: Same as MAKE.BLT except it posts CURRENT scores rather than
  426.              highest scores.
  427.  
  428.  
  429. SUBROUTINE: MORE
  430. PARAMETERS: None
  431. DESCRIPTION: Outputs "Press <ENTER> to continue, or <E> to end" and waits
  432.              for a response. Check the variable RESPONSE$ for an "E" and
  433.              terminate the current routine if found. For example:
  434.                 MORE
  435.                 IF UCASE$(RESPONSE$) = "E" THEN
  436.                   Etc.. Etc.
  437.  
  438. SUBROUTINE: MUSIC TUNE$
  439. PARAMETERS: MUSIC CODES
  440. DESCRIPTION: Outputs music to the remote system. The TUNE$ parameter
  441.              contains the same codes you would normally use in the BASIC
  442.              PLAY statement. For example:
  443.               TUNE$ = "t110 l8 ms d4 mn o3 g a b o4 c ... "
  444.               MUSIC TUNE$
  445.              Since not all communications programs can handle music, you
  446.              should ask the user if he has music capabilities. If the
  447.              user can't handle music he will simply see the music codes
  448.              come across his screen (not a pretty sight!).
  449.  
  450.  
  451. SUBROUTINE: OUT.PUT LF%
  452. PARAMETERS: LF%, 1, 2, Etc.
  453. DESCRIPTION: Outputs the specified number of CR/LF. Parameter is an INTEGER
  454.              number or an INTEGER variable. Ex: OUT.PUT 2
  455.  
  456.  
  457.  
  458. DOORFRAME v3.0 - Users Guide - Page 7
  459.  
  460. SUBROUTINE: SEND FILENAME$, YN%, CLR%
  461. PARAMETERS: FILENAME$ - STRING variable or quoted text of file to SEND.
  462.             YN%       - 0 = Do not use the ENTER prompt after last page.
  463.                         1 = Use the ENTER prompt after last page.
  464.             CLR%      - 0 = Home cursor, do not clear screen.
  465.                         1 = Normal clear screen.
  466. DESCRIPTION: Sends the specified filename. This can be either an ASCII file
  467.              or an ANSI file. SEND first checks for the existance of the file
  468.              and either sends the file or reports "File not Found!". This is
  469.              handy for displaying Help files, Welcome screens, etc.
  470.        NOTE: When using The Draw to create ANSI screens, save the screen using
  471.              the block mode (ALT-B) as this seems to produce better results
  472.              than using the regular save function (ALT-S).
  473.  
  474.  
  475. SUBROUTINE: SENDANSI FILENAME$, YN%, INTER%
  476. PARAMETERS: FILENAME$ - STRING variable or quoted text of file to send.
  477.             YN%       - 0 = Do not use the ENTER prompt after last page.
  478.                         1 = Use the ENTER prompt after last page.
  479.                         2 = Pause at end for Spacebar. Doesn't print anything
  480.             INTER%    - 0 = User can interrupt and exit the screen anytime.
  481.                         1 = User cannot interrupt file until it is finished.
  482. DESCRIPTION: Sends the specified ANSI file if it exists. This routine does
  483.              not stop until the entire file has been sent. Pressing the
  484.              Spacebar during display aborts the file unless Inter% is set
  485.              to 1.
  486.  
  487.  
  488. SUBROUTINE: SHOW.BLT YN$
  489. PARAMETERS: YN$, "Y", "N"
  490. DESCRIPTION: Call this routine if your Door features a Hi-score bulletin. Make
  491.              sure you have called MAKE.BLT first! Best place to call this
  492.              is just before you call EXIT.DOOR. For example:
  493.                MAKE.BLT HI.SCORE&
  494.                SHOW.BLT "Y"
  495.                EXIT.DOOR "Y"
  496.              SHOW.BLT "Y" will ask if they want to see the Bulletin.
  497.              SHOW.BLT "N" displays the bulletin without asking.
  498.  
  499.  
  500. DOORFRAME v3.0 - Users Guide - Page 8
  501.  
  502.  
  503.                              C O L O R  T A B L E
  504.                             ======================
  505.  
  506. COLOR # - NAME       INTENSITY       FOREGROUND (FG%)     BACKGROUND (BG%)
  507. ---------------------------------------------------------------------
  508.  0 - BLACK              Low               X                   X
  509.  1 - BLUE                "                X                   X
  510.  2 - GREEN               "                X                   X
  511.  3 - CYAN                "                X                   X
  512.  4 - RED                 "                X                   X
  513.  5 - MAGENTA             "                X                   X
  514.  6 - YELLOW              "                X                   X
  515.  7 - WHITE               "                X                   X
  516.  8 - GRAY               High              X
  517.  9 - LBLUE               "                X
  518. 10 - LGREEN              "                X
  519. 11 - LCYAN               "                X
  520. 12 - LRED                "                X
  521. 13 - LMAGENTA            "                X
  522. 14 - LYELLOW             "                X
  523. 15 - LWHITE              "                X
  524.  
  525. The COLORs are defined as CONSTANT in the DFRAMEX.INC file so you may use
  526. either the actual color number, it's name or an INTEGER variable of your own
  527. choosing when CALLing the DIS.PLAY subroutine.
  528.  
  529.  
  530.  
  531. DOORFRAME v3.0 - Users Guide - Page 9
  532.  
  533.  
  534.                               CONFIGURATION FILE
  535.                               ==================
  536.  
  537. The format of the configuration file used by Doors created with DoorFrame is:
  538.  
  539. C:\PCB\PCBOARD.SYS              <- For PCBoard systems using PCBOARD.SYS only
  540. C|\PCB\USERS.SYS                <- For PCBoard systems using USERS.SYS
  541. C:\BBS\CALLINFO.BBS             <- For Wildcat! systems (prior to v3.0)
  542. C:\BBS\GTUSER.BBS               <- For GT Power systems
  543. C:\BBS\USERINFO.DAT             <- For Wildcat! 3.x+ systems.
  544. C:\BBS\DOOR.SYS                 <- For systems that support DOOR.SYS
  545. C:\BBS\DORINFOx.DEF             <- For QBBS/RBBS/RA. Replace x with Node #.
  546. C:\BBS\SFDOORS.DAT              <- For Spitfire systems.
  547. C:\BBS\TRIBBS.SYS               <- For TriBBS systems.
  548. MicroNet                        <- BBS name
  549. Ted                             <- Sysop's first name
  550. Freeman                         <- Sysop's last name
  551.   .                             <- The Configuration file is left open as #1
  552.   .                                so you may add whatever is necessary.
  553.  
  554. NOTE: See Miscellaneous Notes for info on using Environment Variables.
  555.  
  556. NOTE: There are 2 additional lines necessary when using GTUSER.BBS. Since
  557.       this file does not provide the ComPort% and NodeNum% variables, advise
  558.       your Door users to add them to this .CFG file on lines 5 and 6
  559.       respectively. Both variables will default to 1.
  560.  
  561. DOORFRAME v3.0 - Users Guide - Page 10
  562.  
  563.                   VARIABLES AVAILABLE WHEN USING PCBOARD.SYS
  564.                   ==========================================
  565.  
  566.         ALLOWEDBYTES&             Allowed D/L bytes from the PWRD file.
  567.                                   This number is in actual bytes
  568.                                   rather than Kilobytes allowed.
  569.       * BAUDCONN$                 Connect rate of caller or "LOCAL"
  570.       * BAUDOPEN$                 Port opening BPS
  571.       * BBSSYS$                   Name of the BBS
  572.         CALLALARM%                Caller alarm status.     -1=ON, 0=OFF
  573.       * CALLERSLOC$               Location of CALLERSx log
  574.         CHATSTATUS$               Chat mode status. "U" or "A"
  575.       * CITY$                     Callers city and state
  576.       * CNAMESLOC$                Location of CNAMES
  577.       * COMPORT%                  COM port number
  578.         CONFREG$                  Conferences registered in
  579.         DISPLAY%                  Local display status.    -1=ON, 0=OFF
  580.         DOWNLOADS&                Number of downloads made
  581.       * ECC%                      Error corrected connect.  1=YES, 0=NO
  582.         EXENAME$                  Name of .EXE (Programmer supplied)
  583.         EXPERT$                   Expert mode - "Y" or "N"
  584.         EXPIRE$                   Callers expiration date
  585.       * FIRST$                    Callers first name
  586.         GRAPHICS%                 Graphics mode status.    -1=ON, 0=OFF
  587.                                   Determines if the caller is ANSI compatible
  588.                                   If your door requires the use of cursor
  589.                                   positioning and GRAPHICS% = 0 then you
  590.                                   should kick him back out of the door.
  591.       * HPHONE$                   Callers home phone number
  592.       * LASTON$                   Date caller last logged on (MM-DD-YY)
  593.         LEVEL&                    Callers security level
  594.       * LOCALUSR%                 -1 = LOCAL mode, 0 = Online
  595.       * LOGONHRS$                 Time caller logged on in HH:MM format
  596.       * LOGONMINS%                Time caller logged on in minutes
  597.         MODE%                     0 = Non-color, -1 = color is on. Default
  598.                                   is the BBS setting. You may force color
  599.                                   by setting this to -1.
  600.       * NAME$                     Callers full name
  601.       * NETWORK%                  1 = BBS is networked, 0 = no network
  602.       * NODENUM%                  Node number
  603.         OWNER$                    Name DoorFrame is registered to (if any).
  604.         PASSWORD$                 Password of caller
  605.         PAGEBELL%                 Page bell status.        -1=ON, 0=OFF
  606.         PAGELEN%                  Callers page length
  607.       * PCBDAT$                   Location of PCBOARD.DAT
  608.       * PCBOARD%                  1 = PCBoard, 0 = non-PCBoard
  609.         PRINTER%                  Printer status.          -1=ON, 0=OFF
  610.         PROGNAME$                 Name of DOOR (Programmer supplied)
  611.         PROTOCOL$                 Caller's default protocol (Z, X, etc.)
  612.         RESPONSE$                 Returned after a CALL to IN.PUT
  613.         SERIAL$                   Your DoorFrame serial #. String variable.
  614.       * SYSLOC$                   Location of system file. This contains the
  615.                                   path/filename of line 1 in the .CFG file.
  616.       * SYSOP%                    1 = SYSOP is using DOOR, 0 otherwise
  617.       * SYSOPFIRST$               Sysops first name
  618.         SYSOPFLAG$                " ", "N"=Sysop Next, "X"=Exit to DOS
  619.       * SYSOPLAST$                Sysops last name
  620.       * SYSOPNAME$                Sysops first and last names
  621.  
  622.  
  623. DOORFRAME v3.0 - Users Guide - Page 11
  624.  
  625.  
  626.         TIMEADJUST%               Use to adjust the callers remaining time
  627.                                   online. This variable adjusts the ELAPSED
  628.                                   time so if you wish to decrease his time,
  629.                                   give this a positive value.
  630.       * TIMEALWD%                 Minutes caller is allowed
  631.       * TIMELEFT%                 Time caller has left in minutes. Doorframe
  632.                                   calculates this so changing it has no effect
  633.       * TIMENOW%                  Current time in minutes (0 - 1440)
  634.       * TIMESON%                  Number of times on system
  635.         TIMEOUT%                  Programmer supplied keyboard timeout.
  636.                                   Defaults to 300 (5 mins) if not specified. 
  637.                                   Has a minimum of 60 seconds. Maximum is 
  638.                                   32,767 since it's an integer.
  639.       * TIMEUSED%                 Time used so far today in minutes
  640.         UPLOADS&                  Number of uploads made
  641.       * USERCOMMENT$              User maintained comment
  642.       * USERSLOC$                 Location of USERS file
  643.       * USERNUM%                  Record number of caller
  644.         VERSION$                  DOOR version # (Programmer supplied)
  645.       * WPHONE$                   Callers work phone number
  646.  
  647. NOTES: Variables marked with '*' are provided for information only.
  648.  
  649.  
  650. DOORFRAME v3.0 - Users Guide - Page 12
  651.  
  652.  
  653.                    VARIABLES AVAILABLE WHEN USING USERS.SYS
  654.                    ========================================
  655.  
  656.         When using USERS.SYS, all variables contained in PCBOARD.SYS may
  657.         be used plus the following additional variables.
  658.  
  659.         DAILYDNLDBYTES&          Bytes downloaded so far today.
  660.         DELETEFLAG%              1 = delete this record, 0 = keep
  661.         EXPIREDLEVEL&            Expired Security level
  662.         LASTCONF%                Conference number last in.
  663.         LASTTIMEON$              Last time caller was on
  664.         MSGS.LEFT%               Number of messages posted
  665.         MSGS.READ%               Number of messages read
  666.         PCB.VERSION%             PCBoard version number (i.e. 1450)
  667.         TOTDNLDBYTES&            Total number of BYTES downloaded
  668.         TOTUPLDBYTES&            Total number of BYTES uploaded
  669.  
  670. NOTES: These variables are all passed back to PCBoard.
  671.  
  672.  
  673. DOORFRAME v3.0 - Users Guide - Page 13
  674.  
  675.                     VARIABLES AVAILABLE WHEN USING DOOR.SYS
  676.                     =======================================
  677.  
  678.     !   ALIAS$                    Callers alias/handle
  679.     ! * ANSISUPPORT$              Caller supports ANSI but in NG mode
  680.       * BAUDCONN$                 Connect rate of caller or "LOCAL"
  681.       * BAUDOPEN$                 Port opening BPS
  682.     ! * BBSCOLOR%                 BBS default color code (1-15)
  683.       * BBSSYS$                   Name of the BBS
  684.         BIRTHDATE$                Callers date of birth
  685.         CALLALARM%                Caller alarm status.     -1=ON, 0=OFF
  686.       * CITY$                     Callers city and state
  687.       * COMPORT%                  COM port number (0 - 15).
  688.         CONFREG$                  Conferences registered in
  689.         DAILY.BYTES.ALWD&         Daily download max. K limit
  690.         DISPLAY%                  Local display status.    -1=ON, 0=OFF
  691.     !   DOORS.OPENED%             Number of Doors caller has opened
  692.         DOWNLOADS&                Number of downloads made
  693.     ! * ECC%                      Error corrected connect.  1=YES, 0=NO
  694.         EXENAME$                  Name of .EXE (Programmer supplied)
  695.         EXFROM%                   Conference exited to Door from.
  696.         EXPERT$                   Expert mode - "Y" or "N"
  697.         EXPIRE$                   Callers expiration date
  698.     ! * EVENT$                    Event time (hh:mm)
  699.         GRAPHICS%                 Graphics mode status.    -1=ON, 0=OFF
  700.                                   Determines if the caller is ANSI compatible
  701.                                   If your door requires the use of cursor
  702.                                   positioning and GRAPHICS% = 0 then you
  703.                                   should kick him back out of the door.
  704.       * HPHONE$                   Callers home phone number
  705.       * LASTON$                   Date caller last logged on (MM-DD-YY)
  706.     !   LASTSCAN$                 Date of last directory/new files scan.
  707.         LEVEL&                    Callers security level
  708.       * LOCALUSR%                 -1 = LOCAL mode, 0 = Online
  709.       * LOGONHRS$                 Time caller logged on in HH:MM format
  710.       * LOGONMINS%                Time caller logged on in minutes
  711.     !   MAX.FILES%                Maximum daily files available
  712.     !   MINSCREDIT%               Time credits in minutes
  713.         MODE%                     0 = Non-color, -1 = color is on. Default
  714.                                   is the BBS setting. You may force color
  715.                                   by setting this to -1.
  716.     !   MSGS.LEFT%                Total messages left
  717.       * NAME$                     Callers full name
  718.     ! * NETWORK%                  1 = BBS is networked, 0 = no network
  719.       * NODENUM%                  Node number
  720.         DLTODAY&                  Files downloaded so far today
  721.         OWNER$                    Name DoorFrame is registered to (if any).
  722.         PAGEBELL%                 Page bell status.        -1=ON, 0=OFF
  723.         PAGELEN%                  Callers page length
  724.       * PARITY%                   Parity (word length?) (7 or 8)
  725.         PASSWORD$                 Password of caller
  726.       * PATHGEN$                  Path to the GEN directory
  727.       * PATHMAIN$                 Path to the MAIN directory
  728.         PRINTER%                  Printer status.          -1=ON, 0=OFF
  729.         PROGNAME$                 Name of DOOR (Programmer supplied)
  730.         PROTOCOL$                 Callers default protocol (Z, X, etc)
  731.         RESPONSE$                 Returned after a CALL to IN.PUT
  732.  
  733.  
  734. DOORFRAME v3.0 - Users Guide - Page 14
  735.  
  736.  
  737.         SECREM$                   Number of seconds remaining this call.
  738.         SERIAL$                   Your DoorFrame serial #. String variable.
  739.       * SYSLOC$                   Location of system file. This contains the
  740.                                   path/filename of line 1 in the .CFG file.
  741.       * SYSOP%                    1 = SYSOP is using DOOR, 0 otherwise
  742.       * SYSOPFIRST$               Sysops first name
  743.       * SYSOPLAST$                Sysops last name
  744.       * SYSOPNAME$                Sysops first and last names
  745.         TIMEADJUST%               Use to adjust the callers remaining time
  746.                                   online. This variable adjusts the ELAPSED
  747.                                   time so if you wish to decrease his time,
  748.                                   give this a positive value.
  749.     ! * TIMELASTCALL$             Time of last call (hh:mm)
  750.       * TIMELEFT%                 Time caller has left in minutes. Doorframe
  751.                                   calculates this so changing it has no effect
  752.       * TIMENOW%                  Current time in minutes (0 - 1440)
  753.         TIMEOUT%                  Programmer supplied. Defaults to 5 mins if
  754.                                   not specified. Has a minimum of one min.
  755.                                   No limit on maximum. 
  756.       * TIMESON%                  Number of times on system
  757.       * TIMEUSED%                 Time used so far today in minutes
  758.         TOTAL.BYTES.TODAY&        Daily download K total
  759.     !   TOTAL.KB.DL&              Total K bytes downloaded
  760.     !   TOTAL.KB.UL&              Total K bytes uploaded
  761.         UPLOADS&                  Number of uploads made
  762.       * USERCOMMENT$              User maintained comment
  763.       * USERNUM%                  Record number of caller
  764.         VERSION$                  DOOR version # (Programmer supplied)
  765.       * WPHONE$                   Callers work phone number
  766. NOTES: Variables marked with '*' are provided for information only.
  767.        Varialbes marked with '!' are available only in the 52 line version.
  768.  
  769.  
  770. DOORFRAME v3.0 - Users Guide - Page 15
  771.  
  772.                   VARIABLES AVAILABLE WHEN USING USERINFO.DAT
  773.                   ===========================================
  774.  
  775.       * ACTIVE.MENU%              0=Main, 1=Msg, 2=File, 3=Sysop
  776.         ALIAS$                    Callers alias/handle
  777.       * ANSISUPPORT$              'Y' or 'N' for ANSI enabled.
  778.         BANKED.TIME%              Banked time. (DLT - MaxLogOn)
  779.       * BAUDCONN$                 Connect rate of caller or "LOCAL"
  780.       * COMMAND.LINE$             Started with a CommandLine switch. Y or N.
  781.       * DATABITS$                 Databits, 7 or 8.
  782.       * DOOR.LOGOFF$              Y or N. Set to Y if caller logged off from
  783.                                   inside the door.
  784.         DOOR.DL&                  Number of files DL'ed in the door.
  785.         DOOR.KB&                  Downloads in K, add to daily and total bytes
  786.       * ECC%                      Error corrected connect.  1=YES, 0=NO
  787.         LASTSCAN$                 Time/date of last new files scan
  788.       * LOGONTIMEDATE$            Time and date caller logged on to BBS
  789.       * NAME$                     Callers full name
  790.         SEC.LEVEL.NAME$           Security level name.
  791. NOTES: Variables marked with '*' are provided for information only.
  792.        All other variables are taken from the DOOR.SYS file.
  793.  
  794.                   VARIABLES AVAILABLE WHEN USING DORINFOx.DEF
  795.                   ===========================================
  796.  
  797.       * BAUDRATE$                 Baud rate and parity of caller.
  798.                                   Ex. 2400 BAUD,N,8,1
  799.                                   NOTE: RBBS adds baud rate of BBS.
  800.       * BBSSYS$                   Name of the BBS
  801.       * CITY$                     Callers city and state
  802.       * COMPORT%                  COM port number (0 - 15).
  803.         DISPLAY%                  Defaults to -1 (ON).
  804.       * DORINFO13TH$              13th line available only on RBBS systems.
  805.         EXENAME$                  Name of .EXE (Programmer supplied)
  806.       * FIRST$                    Callers first name
  807.         GRAPHICS%                 Graphics mode status.    -1=ON, 0=OFF
  808.                                   Determines if the caller is ANSI compatible
  809.                                   If your door requires the use of cursor
  810.                                   positioning and GRAPHICS% = 0 then you
  811.                                   should kick him back out of the door.
  812.                                   Use DETECT.ANSI to determine this.
  813.       * LAST$                     Callers last name
  814.       * LASTON$                   Default 01-01-80 (not provided in DORINFO)
  815.         LEVEL&                    Callers security level
  816.       * LOCALUSR%                 -1 = LOCAL mode, 0 = Online
  817.         MODE%                     0 = Non-color, -1 = color is on. Default
  818.                                   is the BBS setting. You may force color
  819.                                   by setting this to -1.
  820.       * NAME$                     Callers full name
  821.         NETWORK$                  Network type. DoorFrame reads/writes as is.
  822.       * NODENUM%                  Number of this Node.
  823.         OWNER$                    Name DoorFrame is registered to (if any).
  824.         PROGNAME$                 Name of DOOR (Programmer supplied)
  825.         RESPONSE$                 Returned after a CALL to IN.PUT
  826.         SERIAL$                   Your DoorFrame serial #. String variable.
  827.       * SYSLOC$                   Location of system file. This contains the
  828.                                   path/filename of line 1 in the .CFG file.
  829.  
  830.  
  831. DOORFRAME v3.0 - Users Guide - Page 16
  832.  
  833.       * SYSOP%                    1 = SYSOP is using DOOR, 0 otherwise
  834.       * SYSOPFIRST$               Sysops first name
  835.       * SYSOPLAST$                Sysops last name
  836.       * SYSOPNAME$                Sysops first and last names
  837.         TIMEADJUST%               Use to adjust the callers remaining time
  838.                                   online. This variable adjusts the ELAPSED
  839.                                   time so if you wish to decrease his time,
  840.                                   give this a positive value.
  841.       * TIMELEFT%                 Time caller has left in minutes. Doorframe
  842.                                   calculates this so changing it has no effect
  843.       * TIMENOW%                  Current time in minutes (0 - 1440)
  844.         TIMEOUT%                  Programmer supplied. Defaults to 5 mins if
  845.                                   not specified. Has a minimum of one min.
  846.                                   No limit on maximum. 
  847.       * TIMESON%                  Defaults to 1 (Not provided in DORINFO)
  848.       * TIMEUSED%                 Time used so far today in minutes
  849.  
  850. NOTES: Variables marked with '*' are provided for information only.
  851.  
  852.  
  853.                   VARIABLES AVAILABLE WHEN USING CALLINFO.BBS
  854.                   ===========================================
  855.  
  856.       * ALREADYCONNECTED$         "TRUE" or "FALSE"
  857.       * BAUDCONN$                 Connect rate of caller or "LOCAL"
  858.       * BBSSYS$                   Name of the BBS
  859.       * CITY$                     Callers city and state
  860.       * COMPORT%                  COM port number (0 - 15).
  861.         CONFREG$                  Conferences registered in (ABCD etc.)
  862.       * CONSOLE$                  "LOCAL" or "REMOTE"
  863.         DAILY.BYTES.ALWD&         Daily download max. K limit
  864.       * DATABITS$                 7 or 8
  865.         DISPLAY%                  Local display status.    -1=ON, 0=OFF
  866.       * DOORNUMBER$               BBS number of this door?
  867.         EXENAME$                  Name of .EXE (Programmer supplied)
  868.       * ENTERDOOR$                Time caller entered door in HH:MM format.
  869.       * FIRST$                    Callers first name
  870.         GRAPHICS%                 Graphics mode status.    -1=ON, 0=OFF
  871.                                   Determines if the caller is ANSI compatible
  872.                                   If your door requires the use of cursor
  873.                                   positioning and GRAPHICS% = 0 then you
  874.                                   should kick him back out of the door.
  875.                                   Use DETECT.ANSI to determine this.
  876.       * LAST$                     Callers last name
  877.         LASTMSG$                  Last message read
  878.       * LASTONDATE$               Date and time of last call
  879.         LEVEL&                    Callers security level
  880.       * LOCALUSR%                 -1 = LOCAL mode, 0 = Online
  881.       * LOGONTIMEDATE$            Time and date caller logged on to BBS
  882.       * LOGONHRS$                 Time caller logged on in HH:MM format
  883.         MODE%                     0 = Non-color, -1 = color is on. Default
  884.                                   is the BBS setting. You may force color
  885.                                   by setting this to -1.
  886.       * MNP$                      "MNP/ARQ Connection" or "Normal Connection"
  887.       * NAME$                     Callers full name
  888.         DLTODAY&                  Files downloaded so far today
  889.  
  890.  
  891. DOORFRAME v3.0 - Users Guide - Page 17
  892.  
  893.         OWNER$                    Name DoorFrame is registered to (if any).
  894.         PASSWORD$                 Password of caller
  895.         PROGNAME$                 Name of DOOR (Programmer supplied)
  896.         RESPONSE$                 Returned after a CALL to IN.PUT
  897.         SERIAL$                   Your DoorFrame serial #. String variable.
  898.       * SYSLOC$                   Location of system file. This contains the
  899.                                   path/filename of line 1 in the .CFG file.
  900.       * SYSOP%                    1 = SYSOP is using DOOR, 0 otherwise
  901.       * SYSOPFIRST$               Sysops first name
  902.       * SYSOPLAST$                Sysops last name
  903.       * SYSOPNAME$                Sysops first and last names
  904.         TIMEADJUST%               Use to adjust the callers remaining time
  905.                                   online. This variable adjusts the ELAPSED
  906.                                   time so if you wish to decrease his time,
  907.                                   give this a positive value.
  908.       * TIMELEFT%                 Time caller has left in minutes. Doorframe
  909.                                   calculates this so changing it has no effect
  910.       * TIMENOW%                  Current time in minutes (0 - 1440)
  911.       * TIMEOFF$                  Time caller exited from the door.
  912.         TIMEOUT%                  Programmer supplied. Defaults to 5 mins if
  913.                                   not specified. Has a minimum of one min.
  914.                                   No limit on maximum. 
  915.       * TIMEUSED%                 Time used so far today in minutes
  916.       * USERNUM%                  Record number of caller
  917.  
  918. NOTES: Variables marked with '*' are provided for information only.
  919.  
  920.  
  921. DOORFRAME v3.0 - Users Guide - Page 18
  922.  
  923.                   VARIABLES AVAILABLE WHEN USING SFDOORS.DAT
  924.                   ==========================================
  925.  
  926.         ANSION$                   "TRUE" or "FALSE"
  927.       * BAUDCONN$                 Connect rate of caller or "LOCAL"
  928.       * BBSDIR$                   Spitfire's home directory
  929.       * BBSSYS$                   Name of the BBS
  930.       * CITY$                     Callers city and state
  931.       * COMPORT%                  COM port number (0 - 15).
  932.         DAILY.BYTES.ALLOWED&      Maximum download BYTES per day
  933.         DISPLAY%                  Local display status.    -1=ON, 0=OFF
  934.         DLPERDAY&                 Number of downloads allowed per day
  935.         DLTODAY&                  Number of downloads made today
  936.         DOWNLOADS&                Number of downloads made
  937.       * ECC%                      Error corrected connect.  1=YES, 0=NO
  938.         EXENAME$                  Name of .EXE (Programmer supplied)
  939.         EXTRATIME&                Number of seconds gained since logon
  940.       * FIRST$                    Callers first name
  941.       * FRONTEND$                 "TRUE" or "FALSE" if booted from a
  942.                                   front end program.
  943.         GRAPHICS%                 Graphics mode status.    -1=ON, 0=OFF
  944.                                   Determines if the caller is ANSI compatible
  945.                                   If your door requires the use of cursor
  946.                                   positioning and GRAPHICS% = 0 then you
  947.                                   should kick him back out of the door.
  948.                                   Use DETECT.ANSI to determine this.
  949.       * HPHONE$                   Callers home phone number
  950.       * LAST$                     Callers last name
  951.         LASTMCONF$                Last message conference
  952.         LASTFAREA$                Last file area
  953.         LEVEL&                    Callers security level
  954.       * LOCALUSR%                 -1 = LOCAL mode, 0 = Online
  955.       * LOGONHRS$                 Time caller logged on in HH:MM format
  956.       * LOGONSECS&                Number of seconds since midnight
  957.                                   when caller logged on to the BBS.
  958.       * MAXBAUD$                  Maximum baud of the system
  959.         MODE%                     0 = Non-color, -1 = color is on. Default
  960.                                   is the BBS setting. You may force color
  961.                                   by setting this to -1.
  962.       * NAME$                     Callers full name
  963.       * NODENUM%                  Number of this Node.
  964.       * NODTELOCK$                "TRUE" or "FALSE" if configured for
  965.                                   software data flow control.
  966.         OWNER$                    Name DoorFrame is registered to (if any).
  967.         PASSWORD$                 Password of caller
  968.         PROGNAME$                 Name of DOOR (Programmer supplied)
  969.         RESPONSE$                 Returned after a CALL to IN.PUT
  970.       * SECONDS&                  Number of seconds since midnight
  971.                                   when caller entered the door.
  972.         SERIAL$                   Your DoorFrame serial #. String variable.
  973.       * SYSLOC$                   Location of system file. This contains the
  974.                                   path/filename of line 1 in the .CFG file.
  975.       * SYSOP%                    1 = SYSOP is using DOOR, 0 otherwise
  976.       * SYSOPFIRST$               Sysops first name
  977.  
  978. NOTES: Variables marked with '*' are provided for information only.
  979.  
  980.  
  981. DOORFRAME v3.0 - Users Guide - Page 19
  982.  
  983.       * SYSOPLAST$                Sysops last name
  984.       * SYSOPNAME$                Sysops first and last names
  985.         SYSOPNEXT$                "TRUE" or "FALSE"
  986.         TIMEADJUST%               Use to adjust the callers remaining time
  987.                                   online. This variable adjusts the ELAPSED
  988.                                   time so if you wish to decrease his time,
  989.                                   give this a positive value.
  990.       * TIMEALWD%                 Minutes caller is allowed
  991.       * TIMELEFT%                 Time caller has left in minutes. Doorframe
  992.                                   calculates this so changing it has no effect
  993.       * TIMENOW%                  Current time in minutes (0 - 1440)
  994.         TIMEOUT%                  Programmer supplied. Defaults to 5 mins if
  995.                                   not specified. Has a minimum of one min.
  996.                                   No limit on maximum. 
  997.       * TIMEUSED%                 Time used so far today in minutes
  998.  
  999.         TOTAL.BYTES.TODAY&        BYTES downloaded so far today
  1000.         TOTAL.KB.DL&              Total K bytes downloaded
  1001.         TOTAL.KB.UL&              Total K bytes uploaded
  1002.         UPLOADS&                  Number of uploads made
  1003.       * USERNUM%                  Record number of caller
  1004.  
  1005. NOTES: Variables marked with '*' are provided for information only.
  1006.  
  1007.  
  1008. DOORFRAME v3.0 - Users Guide - Page 20
  1009.  
  1010.                                 MISCELLANEOUS NOTES
  1011.                                 ===================
  1012.  
  1013. Check DFRAMEX.INC for an explanation of variables not listed above.
  1014.  
  1015. DoorFrame requires DOS 3.x and up since all files are opened in SHARED mode.
  1016.  
  1017. When using PCBOARD.SYS, DoorFrame also accesses the USERS file.
  1018.  
  1019. When using USERS.SYS, DoorFrame also accesses PCBOARD.SYS, PCBOARD.DAT and the 
  1020. USERS file.
  1021.  
  1022. The DOOR.SYS used by DoorFrame is the standard 52 line GAP (tm) file.
  1023.  
  1024. The CALLINFO.BBS used by DoorFrame currently contains 36 lines.
  1025.  
  1026. Trapping errors
  1027. ---------------
  1028.  If you wish to utilize the internal error trapping, insert the following
  1029.  line wherever you wish the trapping to begin. I would suggest putting it
  1030.  right after you call INITIALIZE.
  1031.  
  1032.    ON ERROR GOTO ERR.ROUTINE
  1033.  
  1034.  Then at the very end of your program insert the following:
  1035.  
  1036.    ERR.ROUTINE:
  1037.    ERRORS ERR, ERL
  1038.    END
  1039.  
  1040.  If ANY Basic error is encountered, it will branch to ERR.ROUTINE and call
  1041.  the ERRORS subroutine. The error will be printed to the screen and written
  1042.  to DFRAME.ERR. Your Door will then exit back to the BBS.
  1043. The first few lines of your Door should be:
  1044.  
  1045.    ' $INCLUDE: 'DFRAMEX.INC'
  1046.    PROGNAME$ = "Name of the Door"
  1047.    VERSION$ = " v1.0"
  1048.    EXENAME$ = "FILENAM"           <- NOTE: Max of 7 letters!
  1049.    TIMEOUT% = 240                 <- Numbers of seconds to wait for keyboard
  1050.                                      activity. 240 will wait for 4 minutes
  1051.                                      then send a Keyboard Timeout msg. and
  1052.                                      exit back to the BBS. Defaults to 300.
  1053.    OWNER$ = "Your Name"           <- For registered DoorFrame users only.
  1054.    SERIAL$ = "99999"              <- DoorFrame will display an EVALUATION
  1055.                                      COPY message until registered.
  1056.    INITIALIZE
  1057.    .
  1058.    Your code.......
  1059.    .
  1060.    MAKE.BLT HI.SCORE&            <- If you want one generated.
  1061.    SHOW.BLT "Y"                  <- If you want to show it before door closes.
  1062.    EXIT.DOOR "Y"
  1063. The configuration filename passed on the command line is OPENed as #1. This
  1064. file is left open so you may read additional lines from the .CFG file. 
  1065. Although it is not absolutely necessary, you should CLOSE #1 somewhere near
  1066. the start of your program.
  1067.  
  1068.  
  1069. DOORFRAME v3.0 - Users Guide - Page 21
  1070.  
  1071. Using SysopKeys%
  1072. ----------------
  1073. By setting SysopKeys% = 1 (after calling INITIALIZE), you can utilize the
  1074. arrow keys for remote input. This could be used for moving highlight bars
  1075. etc. (see the DFDEMO for an example).  Using the arrow keys from remote can
  1076. present difficulties because the terminal program the caller is using may
  1077. have redefined the arrow keys. Qmodem is a good example. Normally the up
  1078. arrow in Qmodem activates the scroll back buffer. However, if you switch
  1079. Qmodem into DoorWay mode (ALT =), the arrow keys can be used. I do not know
  1080. if this is possible with other terminals (feedback anyone?).  If you do
  1081. utilize the arrow keys, you would be wise to provide an alternative method
  1082. of input for those callers who cannot use their arrow keys.
  1083.  
  1084. In addition, set Sysopkeys% = 1 only when arrow input is required then
  1085. immediately set SysopKeys% = 0 since capital H, K, M, and P are also
  1086. interpreted as arrow keys when SysopKeys% = 1.
  1087.  
  1088. Turning off the Status lines.
  1089. -----------------------------
  1090. If for some reason you do not want the 2 Status lines at the bottom of the
  1091. screen to show, you may blank those out at any time with the following.
  1092.  
  1093.  No.Status% = 1
  1094.  ClrScrn Black
  1095.  
  1096. To turn the Status lines back on just set No.Status% = 0.
  1097.  
  1098. Returning control to programmer upon carrier loss
  1099. -------------------------------------------------
  1100. There may be instances where the programmer needs to do some clean-up when
  1101. a loss of carrier occurs before returning to the BBS. There are two variables
  1102. that allow you to do this. After calling INITIALIZE, set Auto.Recycle% = 0.
  1103. If carrier is lost, the variable NoCarrier% is set equal to 1. One way to 
  1104. handle this is to check NoCarrier% after each In.Put, Enter, or More 
  1105. statement. If NoCarrier% = 1, your door will NOT stop for user input. For
  1106. example:
  1107.  
  1108.    In.Put 0, 0, 11, 0, 1, "Prompt > ", 10, 1, 1
  1109.    IF NoCarrier% = 1 THEN GOTO HandleIt
  1110.  
  1111. If the door was sitting at the In.Put prompt when carrier loss occurred, it
  1112. would immediately come out of it and process the next statement. You must be
  1113. VERY CAREFUL when using this option. Make sure you TEST IT THOROUGHLY!!!
  1114.  
  1115. After you have done your clean-up, be sure to call Exit.Door "Y" to terminate
  1116. the door as you normally would.
  1117.  
  1118. System.File% Variable
  1119. ---------------------
  1120. The value of System.File% will tell you which BBS file is being  used 
  1121. according to the following values:
  1122.  
  1123.         1 = PCBOARD.SYS                    6 = DORINFOx.DEF
  1124.         2 = USERS.SYS                      7 = SFDOORS.DAT                    
  1125.         3 = DOOR.SYS                       8 = USERINFO.DAT
  1126.         4 = CALLINFO.BBS                   9 = GTUSER.BBS
  1127.         5 = Not Used                      10 = TRIBBS.SYS
  1128.  
  1129.  
  1130. DOORFRAME v3.0 - Users Guide - Page 22
  1131.  
  1132. Fossil Driver Support
  1133. ---------------------
  1134. DoorFrame supports the use of Fossil drivers.  To tell your Door to use the
  1135. Fossil driver instead of the standard COM ports, just put /FD on the command
  1136. line when running the door. For example:
  1137.      MYDOOR MYDOOR.CFG /FD
  1138. indicates that a Fossil driver is present and should be used. If no Fossil
  1139. driver is detected, DoorFrame will print a message to that effect and exit
  1140. the door gracefully.
  1141.  
  1142. Environment Variables
  1143. ---------------------
  1144. DoorFrame supports COM 1-4 on the standard IRQ's - COM1/COM3 = IRQ4 and
  1145. COM2/COM4 = IRQ3. If you wish to use a non-standard IRQ, add the IRQ
  1146. number after the configuration filename. Let's assume your Door is
  1147. called FOOBAR and you want to use COM1 and IRQ5. The command line
  1148. passed to your Door would be:
  1149.     FOOBAR FOOBAR.CFG /5  or
  1150.     FOOBAR FOOBAR.CFG /%IRQ%  for the environment variable.
  1151. The /5 tells DoorFrame to use IRQ5 rather than the standard IRQ4 that
  1152. is normally used with COM1. No /x parameter is needed for the standard IRQ's.
  1153.  
  1154. When specifying the location of the system file on line 1 of the doors .CFG
  1155. file, you may use the environment variables %pcbdrive%, %pcbdir%, %pcbnode%,
  1156. and %wcnodeid%. Some examples:
  1157.  PCBoard: 
  1158.    USERS.SYS in C:\PCB           - %pcbdrive%%pcbdir%\USERS.SYS
  1159.    USERS.SYS in C:\PCB\NODE1     - %pcbdrive%%pcbdir%\NODE%pcbnode%\USERS.SYS
  1160.  
  1161.  Wildcat!:
  1162.    USERINFO.DAT in C:\WC\NODE1   - C:\WC\NODE%wcnodeid%
  1163.  
  1164. Non-PCBoard systems may use the PCB environment variables by setting them
  1165. in either AUTOEXEC.BAT or in the batch that runs the door. For example:
  1166.  SET PCBDRIVE=C:
  1167.  SET PCBDIR=\BBSDIR
  1168.  SET PCBNODE=1
  1169.  
  1170.