home *** CD-ROM | disk | FTP | other *** search
/ Amiga Times / AmigaTimes.iso / programme / trionbbs110 / Trion / docs / 03_Configuration.doc < prev    next >
Encoding:
Text File  |  1998-10-06  |  59.5 KB  |  1,706 lines

  1.  
  2.  
  3.  
  4.   Introduction
  5.   ------------
  6.  
  7.    The Trion BBS system is mostly configured with text files.
  8.    This chapter descripes the format of these files.
  9.    Also all the configuration files are explained short, and
  10.    the general configuration files are explained fully.
  11.    Configuration files for files, mail and groups are explained
  12.    in the next 3 chapters.
  13.  
  14.  
  15.  
  16.   Configuration files
  17.   -------------------
  18.  
  19.    Trion configuration files consist of plain readable text files.
  20.    Each line can only take one entry.
  21.    Most entries exist of a keyword followed with zero or more
  22.    arguments. In most entry types the numbers of arguments are
  23.    fixed .. with some the number or arguments can be variable.
  24.    Note that in some files no keywords are used, but lines start
  25.    with arguments.
  26.  
  27.    Examples:
  28.  
  29.    LOCAL
  30.  
  31.    When this line is used in a Trion-X.cfg file the node can't
  32.    use the serial port. This is an example of a keyword that
  33.    doesn't take any arguments.
  34.  
  35.  
  36.    ICON  200  0
  37.    FONT  cleanIBM.font  8
  38.  
  39.    These are lines used in the Trion-X.cfg to define icon position
  40.    and font to be used in a Node. Note that these keywords must
  41.    be followed with 2 arguments.
  42.  
  43.  
  44.    MAILER   HYDRA  ZEDZAP  DIRECTZAP  ZEDZIP  ZMODEM
  45.  
  46.    This line defines in the Trion-X.cfg all the protocols that can be
  47.    used by the Trion mailer. 
  48.    The keyword "mailer" is fixed but the number of protocols is 
  49.    variabel.
  50.  
  51.  
  52.    Note that keywords and arguments are separated by one or more
  53.    spaces.
  54.    Also an entry doesn't have to start the beginning of the line
  55.    it maybe preceded with zero or more spaces.
  56.  
  57.    Empty lines are allowed.
  58.    In most files the order of lines is not important, and lines
  59.    maybe switched.
  60.  
  61.    Comments may be placed in configuration files by using ';'
  62.    characters. Note that all characters on a line after a ';'
  63.    character are ignored.
  64.    So you can comment on lines with keywords, but only in
  65.    configuration files that are not changed by programs
  66.    like files that contain passwords or lists of nodenumbers
  67.    that are connected to some net because they maybe filtered
  68.    out when a line is changed.
  69.  
  70.    If there is text on the last line of the file, end that line
  71.    with a return.
  72.    Or better .. end the file with an empty line.
  73.  
  74.  
  75.    Sometimes you may need to use spaces in arguments.
  76.    In that case simply place "" characters around the argument so
  77.    the program sees it as one argument instead of more and give
  78.    some sort of error message.
  79.  
  80.    In a few cases you can substitute spaces with underscores, this
  81.    is a legacy of the time that you couldn't use "" characters.
  82.  
  83.    These are examples of the use of arguments with spaces:
  84.  
  85.  
  86.    SYSOP  NAME   Sysop
  87.    SYSOP  NAME   "Paul Spijkerman"
  88.    SYSOP  NAME   Paul_Spijkerman
  89.  
  90.  
  91.    These are the fields in the Trion-X.cfg files where underscores
  92.    maybe used. Not recommended because it maybe removed some day.
  93.  
  94.    SYSOP  NAME    "Sysop"
  95.    SYSTEM NAME    "System"
  96.    SYSTEM CITY    "City"
  97.    SYSTEM PHONE   "+31-599-123456"
  98.  
  99.  
  100.    Note that keywords are in uppercase characters, but most
  101.    keywords will also be accepted in lowercase. But if you
  102.    use uppercase you can clearly see what the keyword and
  103.    what the arguments are.
  104.  
  105.    If there is an error in a line in a configuration file an
  106.    error message will be printed in the CLI window.
  107.  
  108.  
  109.  
  110.  
  111.  
  112.   The configuration directory
  113.   ---------------------------
  114.  
  115.      To configure the system there are a number of text files in
  116.      the 'trion:cfg/' directory:
  117.  
  118.      This is a short description of the configuration files in
  119.      the distribution archive.
  120.  
  121.  
  122.  
  123.      General configuration files
  124.      ---------------------------
  125.  
  126.      badnames.txt           <- Config. to prevent users with bad names.
  127.      bbstext-0.cfg          <- To config texts in the BBS nodes.
  128.      bbstext-1.cfg          
  129.      language.cfg           <- List with languages or text sets (see bbstext).
  130.      protocol.cfg           <- config for Xpr.. transfer libraries
  131.      templates.cfg          <- Definitions of the user levels
  132.      term.names             <- names en tel.numbers for the terminal mode.
  133.      trion-0.cfg            <- Specific info voor node 0 en 1.
  134.      trion-1.cfg             
  135.      trion-6.cfg            <- Node 6 en 7 are configured for the 
  136.      trion-7.cfg               Nullmodem.device (handy with testing)
  137.      trionRM.cfg            <- Config for the Resource Manager and GUI's
  138.      unpack.cfg             <- Config for the Unpack and Tick program.
  139.  
  140.      These files are explained in this chapter.
  141.  
  142.  
  143.      Files configuration files
  144.      -------------------------
  145.  
  146.      fileareas.cfg          <- Config with the FileAreas.
  147.      filenet.cfg            <- Config for the 'Tick' Util.
  148.      filenodes.cfg          <- Nodes and passwords for 'Tick' Util
  149.      frequest.cfg           <- Config for requested files
  150.  
  151.      These files are explained in chapter 4.
  152.  
  153.  
  154.      Mail configuration files
  155.      ------------------------
  156.  
  157.      AKA.config             <- All your 'NodeNumbers' for mail transfers.
  158.      Archive.cfg            <- How the mail processor uses archivers.
  159.      nodelist.cfg           <- List with the nodelists to use.
  160.      origin.list            <- for 'origin lines' in echomail.
  161.      mail.cfg               <- Export list with Message Areas.
  162.      mail.names             <- To find a nodenumber with a username.
  163.      mailareas.cfg          <- Config with the MessageAreas.
  164.      route.cfg              <- Netmail route config.
  165.      systems.cfg            <- Passwords for mail exchange.
  166.      taglines.data          <- List of taglines for messages.
  167.  
  168.      These files are explained in chapter 5.
  169.  
  170.  
  171.      Groups configuration files
  172.      --------------------------
  173.  
  174.      Groups.cfg             <- Definition of mail and file section groups.
  175.  
  176.  
  177.      These files are explained in chapter 6.
  178.  
  179.  
  180.      External configuration files
  181.      ----------------------------
  182.  
  183.      AllFiles.cfg           <- Configuration file for allfiles util.
  184.      AreaFix.cfg            <- Configuration to the Trion AreaFix
  185.      crontab                <- Config for a (Unix-alike) 'Cron' Util.
  186.      miscGui.cfg            <- Config of this GUI control program.
  187.      questionair.cfg        <- config for the questionair doors
  188.      scheduler.cfg          <- Config of the Trion scheduler program.
  189.      ttrimlogs.cfg          <- Config for the Util to trim the logs
  190.  
  191.  
  192.      A description of the Allfiles configuration file can be found
  193.       in trion:docs/utils/allfiles.doc
  194.      A description of the Areafix configuration file can be found
  195.       in trion:docs/utils/areafix.doc
  196.      Note that a Cron program is optional and not really needed 
  197.       because of the provided scheduler so no Cron program or
  198.       description is provided.
  199.      A description of the MiscGui configuration file can be found
  200.       in trion:docs/utils/MiscGui.doc
  201.      A description of the questionair configuration file can be found
  202.       in trion:doors/quest/quest.doc
  203.      A description of the Scheduler configuration file can be found
  204.       in trion:docs/utils/Sceduler.doc
  205.      A description of the Trimlogs configuration file can be found
  206.       in trion:docs/utils/TTrimlogs.doc
  207.  
  208.  
  209.  
  210.  
  211.   General configuration files
  212.   ---------------------------
  213.  
  214.     Here is a longer explanation of the workings of the general
  215.     configuration files. They can be edited with every text editor.
  216.     Most of the configuration files can be loaded in an editor with
  217.     a button in the TrionRM GUI.
  218.  
  219.  
  220.     The TrionRM configuration file
  221.     ------------------------------
  222.  
  223.      The TrionRM.cfg is needed to configure all the path's used
  224.      by the BBS, the definitions of the optional public screen
  225.      and some definitions needed to configure the TrionRM GUI.
  226.  
  227.      These are all the possible entries:
  228.  
  229.  
  230.      SYSOP  NAME      "Paul Spijkerman"
  231.  
  232.      PATH DEFAULT    trion:
  233.      PATH CONFIG     trion:cfg/
  234.      PATH UTILS      trion:utils/
  235.      PATH SCRIPTS    trion:scripts/
  236.      PATH USERS      trion:users/
  237.      PATH LOGS       trion:log/
  238.      PATH DATA       trion:data/
  239.      PATH ICONS      trion:icons/
  240.      PATH SAMPLES    trion:samples/
  241.      PATH DOORS      trion:doors/
  242.      PATH TEMPDIR    ram:
  243.      PATH MENUS      trion:menus/
  244.      PATH MENUTEXT   trion:menutext
  245.      PATH TEXT       trion:text/
  246.      PATH FILECAT    trion:filecat/
  247.      PATH UPLOAD     trion:Upload/
  248.      PATH KILLED     trion:KilledFiles/
  249.      PATH MAIL       trion:mail/
  250.      PATH INBOUND    trion:InBound/
  251.      PATH OUTBOUND   trion:OutBound/
  252.      PATH NODELISTS  trion:NodeLists/
  253.  
  254.      ICON  80  0
  255.      NODES          2
  256.      LASTCALLERS    12
  257.      USEWB
  258.      USESCREEN
  259.      SCREEN WIDTH   640
  260.      SCREEN HEIGHT  256
  261.      SCREEN DEPTH   3
  262.      MONITOR  DONTCARE
  263.      INTERLACE
  264.      SUPER
  265.      DEFAULT FONT     topaz.font    8
  266.      TEXT    FONT     topaz.font    8
  267.      SMALL   FONT     topaz.font    8
  268.      COLOR  0  10  10  10
  269.  
  270.  
  271.  
  272.      More lengthy explanation of the TrionRM.cfg entries:
  273.      ----------------------------------------------------
  274.  
  275.      sysop name
  276.      ----------
  277.  
  278.      SYSOP  NAME      Paul_Spijkerman
  279.      SYSOP  NAME     "Paul Spijkerman"
  280.  
  281.      TrionRM needs the name of the sysop to be able to display
  282.      the number of waiting messages for the sysop in the TrionRM
  283.      GUI which is indicated with "Wait:".
  284.      This counter is always uptodate, it is increased when mail
  285.      in unpacked.
  286.      Note that this is one of the few entries where underscores
  287.      can be used instead of spaces. But this isn't ecouraged.
  288.  
  289.  
  290.      Path definitions
  291.      ----------------
  292.  
  293.      In earlier version most of the paths were hardcoded.
  294.      But it was more practical to be able to change a path, also
  295.      the assign name was changed from "tron:" to "trion:" and
  296.      all the hardcoded paths had to be changed.
  297.      Note that a few small programs still use hardcoded paths,
  298.      but many of them take an alternative path on the command line.
  299.  
  300.      All the paths should end in a ':' or a '/' character so the BBS
  301.      can simply complete the path by putting the file name after it.
  302.      With an EXEPTION of the MENUTEXT entry. This entry should end in
  303.      text because the BBS will put a number and a '/' character at
  304.      the end of the name, so it can have different menutext directories
  305.      for each language.
  306.  
  307.  
  308.      PATH DEFAULT    trion:
  309.  
  310.      The default path is were the BBS looks for the BBS key and the
  311.      startup and down scripts.
  312.      Note that the BBS will also look in the "L:" directory for the BBS key.
  313.  
  314.      PATH CONFIG     trion:cfg/
  315.  
  316.      This is were all the editable configuration file are stored.
  317.  
  318.      PATH UTILS      trion:utils/
  319.  
  320.      This is were all the executables are stored.
  321.      With an exeption of door programs.
  322.  
  323.      PATH SCRIPTS    trion:scripts/
  324.  
  325.      This is were the scripts are stored.
  326.      Note that there are scripts that are executed by the BBS
  327.      at certain moments like when a mailer has called or a
  328.      user logs off.
  329.  
  330.      PATH USERS      trion:users/
  331.  
  332.      This is were all user data is stored.
  333.      The userdata consists of a list with all usernames and their
  334.      alias (or nickname) and a unique usernumber.
  335.      All other files in this directory have names based on the
  336.      usernumber. There are a number of different files each user
  337.      can have. The userdata itself, a waitingmail file which contains
  338.      the information of all messages directed to a certain user.
  339.      Files with marked files and marked messages, so when a user
  340.      was logged off because his time was up, he doensn't have to
  341.      remark files that he wanted to download again.
  342.      A questionair which contains answers typed by the user in
  343.      a questionair door.
  344.      A signature that is put under messages that a user writes. 
  345.  
  346.  
  347.      PATH LOGS       trion:log/
  348.  
  349.      This is were all log files are stored.
  350.  
  351.      PATH DATA       trion:data/
  352.  
  353.      This is were binairy data files of the BBS is stored.
  354.      These are files which are not readable or editable.
  355.      There are files that contain a database of MessageID's this
  356.      is needed to be able to reqognize duplicate messages when
  357.      importing mail. Here go the compiled versions of BBStext
  358.      configuration files. A file with the number of calls
  359.      to your BBS is stored here. A file with data on users and
  360.      mailers that have lately called it stored here.
  361.      Files with statiscal data on users is stored here.
  362.      And some other binairy data like the problems in the
  363.      maintenance module.
  364.  
  365.      PATH ICONS      trion:icons/
  366.  
  367.      This is were RIPScrip icons are stored, these icons are
  368.      pictures which can be loaded an saved in RIPscrip menus.
  369.      Usually they are hires 16 color pictures that can be displayed 
  370.      in a menu, or pieces of the screen that where clipped out and
  371.      saved to disk to be shown very quick later.
  372.  
  373.      PATH SAMPLES    trion:samples/
  374.  
  375.      This entry is not in use at this moment because in trion-x.cfg
  376.      and menus samples are defined with their full path.
  377.      However this directory does contain the samples used in the
  378.      BBS. There is a "page sysop" and a "bell" sample, the other
  379.      samples are used in menus to indicate the sysop audible that
  380.      a user starts a certain action.
  381.  
  382.      PATH DOORS      trion:doors/
  383.  
  384.      This is where the BBS program will look for doors, to do
  385.      questionairs.
  386.      Note that there is also a "Doors:" assign as a shortcut to
  387.      the place where doors are stored. A lot of paragon doors
  388.      need the "doors:" assign to find their data.
  389.  
  390.      PATH TEMPDIR    ram:
  391.  
  392.      Path where files are temporarily stored while the BBS program
  393.      is active. So the fastest solution would be "RAM:".
  394.  
  395.      PATH MENUS      trion:menus/
  396.  
  397.      This is where the menu sources are stored, note that there is
  398.      a subdirectory "bin" in this path where compiled menus are stored.
  399.  
  400.      PATH MENUTEXT   trion:menutext
  401.  
  402.      This is where the screens in menus for each language are stored.
  403.      DON'T END THIS PATH WITH A '/' !!
  404.      The BBS will end this path with a number and a '/' character.
  405.      It will create something like this "trion:menutext/" for language
  406.      zero, this for language one "trion:menutext1/", and so on.
  407.  
  408.      PATH TEXT       trion:text/         ; screens for login, logout, etc
  409.  
  410.      This is where screens are stored that are not part of a menu,
  411.      such as login screens, logout screens and screens that are
  412.      shown from within menus. Like bulletins.
  413.  
  414.      PATH FILECAT    trion:filecat/
  415.  
  416.      This is where all binairy files that makeup the file catalogue
  417.      are stored.
  418.  
  419.      PATH UPLOAD     trion:Upload/
  420.  
  421.      This is where files are uploaded to, and are processed before
  422.      they are added to the file catalogue and moved to an other
  423.      directory.
  424.  
  425.      PATH KILLED     trion:KilledFiles/
  426.  
  427.      This is where deleted files go, this can be files from the
  428.      file catalogue that are removed or files that are replaced
  429.      by the tick processor.
  430.  
  431.      PATH MAIL       trion:mail/
  432.  
  433.      This directory was meant for the data files for message sections,
  434.      but since they have there own path definition in the mailareas.cfg
  435.      file it is only used to transfer messages to and from the
  436.      message editors.
  437.  
  438.      PATH INBOUND    trion:InBound/
  439.  
  440.      This is where Incoming files are stored by the Trion mailer.
  441.  
  442.      PATH OUTBOUND   trion:OutBound/
  443.  
  444.      This is where Outgoing mail and files are stored until a
  445.      remote mailer calls in to pick it up.
  446.  
  447.      PATH NODELISTS  trion:NodeLists/
  448.  
  449.      This is where the TrionRM program looks for nodelists.
  450.  
  451.  
  452.  
  453.      TrionRM monitor definitions
  454.      ---------------------------
  455.  
  456.      ICON  80  0
  457.  
  458.      This is the X and Y position on the Workbench screen of the
  459.      TrionRM icon in the iconized mode. The icon is a little window
  460.      which you can click to DeIconize the TrionRM monitor.
  461.  
  462.      NODES       2
  463.  
  464.      This indicates the number of BBS nodes that are visible in the
  465.      TrionRM monitor. Note that when you indicate N nodes, that node
  466.      1 .. N are shown in the monitor. You can still run node N+1 
  467.      but it isn't shown in the monitor.
  468.  
  469.      LASTCALLERS  12
  470.  
  471.      This indicates the default number of lastcallers on the TrionRM
  472.      monitor window. However you can get more or less lastcallers by
  473.      resizing the window. Also it is possible that you get one caller
  474.      less then indicated because of roundings in calculations when
  475.      rendering the screen. Also you can browse to hundred lastcaller
  476.      by using the scrolle gadget.
  477.  
  478.      USEWB
  479.      USESCREEN
  480.  
  481.      Use one of these keywords to indicate of the TrionRM window
  482.      is gonna be displayed on the Workbench screen or on a
  483.      TrionRM public screen. Note that all other Trion GUI tools
  484.      also open their window on the TrionRM public screen when it
  485.      is available. Note that more colors can be used on the
  486.      TrionRM public screen. Also note that the public screen
  487.      is closed when you iconize the TrionRM monitor.
  488.  
  489.      SCREEN WIDTH   708       ; 640, 800, 1280            708
  490.      SCREEN HEIGHT  274       ; 200, 256, 400, 512        274, 548
  491.      SCREEN DEPTH   3         ; 2 - 4
  492.  
  493.      These entries are used to define the size and depth of the
  494.      TrionRM public screen when it is used.
  495.      Note that a 708 x 274 resolution is the maximum screen size
  496.      I can squeeze out of my A2000/A1084S.
  497.      The screen depth can be 2, 3 or 4 bitplanes.
  498.      Two bitplanes mean that the same color scheme the Workbench uses
  499.      is used. Three bitplanes mean that extra colors are used to
  500.      make GUI's more clear. There are only 8 colors used at this time
  501.      so don't put the depth at 4 planes or you will be wasting memory
  502.      and slow down the blitter.
  503.  
  504.  
  505.      MONITOR  DONTCARE
  506.  
  507.      With this entry you can select a monitor, which is usefull
  508.      if you want to use a VGA monitor.
  509.      You can choose from the following monitors:
  510.  
  511.          NTSC       640 x 200    60Hz   15,72Khz   (American 1084 mode)
  512.          PAL        640 x 256    50Hz   15,60Khz   (Europe   1084 mode)
  513.          MULTISCAN  640 x 480    58Hz   29,29Khz   (VGA/multisync monitors)
  514.          EURO72     640 x 400    69Hz   29,25Khz
  515.          EURO36     640 x 200    73Hz   15,76Khz
  516.          SUPER72    448 x 306    71Hz   23,21Khz
  517.          DBLNTSC    676 x 213    58Hz   27,66Khz
  518.          DBLPAL     676 x 269    48Hz   27,50Khz
  519.          DONTCARE   640 x 2xx    Should work on every system
  520.  
  521.  
  522.  
  523.      INTERLACE
  524.  
  525.      This is a boolean keyword, if it is in the configuration file
  526.      the screen will be in interlace mode, put a ';' for the word
  527.      if you don't want to use interlace. With interlace the
  528.      resolution will be boosted to 400 -  538 if possible.
  529.  
  530.      SUPER
  531.  
  532.      This is a boolean keyword, if it is in the configuration file
  533.      the screen will be in superhires mode, put a ';' for the word
  534.      if you don't want to use superhires. With superhires the
  535.      resolution will be boosted to 1280 - 1448 if possible.
  536.  
  537.      DEFAULT FONT     topaz.font    8       ;  Default font
  538.      TEXT    FONT     topaz.font    8       ;  Button and StringGadgets
  539.      SMALL   FONT     topaz.font    8       ;  Lists
  540.  
  541.      These entries define the fonts that will be used in Trion
  542.      utilities with a GUI window.
  543.  
  544.  
  545.      COLOR  0  10  10  10         ;  Mid Grey
  546.      COLOR  1   0   0   0         ;  Black
  547.      COLOR  2  15  15  15         ;  White
  548.      COLOR  3   6   8  11         ;  Blue
  549.  
  550.      COLOR  4   9   9   9         ;  Dark  Grey
  551.      COLOR  5  11  11  11         ;  Light Grey
  552.      COLOR  6   9  12  10         ;  Beige
  553.      COLOR  7   9  10  12         ;  Light Blue
  554.  
  555.      These entries define the colors that will be used in Trion
  556.      utilities with a GUI window.
  557.      The first number is the color number, the other numbers are
  558.      the red green and blue values .. all should be in a range
  559.      of 0 to 15.
  560.  
  561.      Note that colors 0 - 3 are used on a screen with 2 bitplanes,
  562.      on a screen wih 3 or 4 bitplanes colors 4 - 7 are also used.
  563.      Colors 8 - 15 are not used at this moment.
  564.  
  565.  
  566.  
  567.     The Trion-X.cfg configuration files
  568.     -----------------------------------
  569.  
  570.      For every BBS node you want to run you need a configuration
  571.      file called Trion-X.cfg where the X is substituted with the
  572.      number of the node. In the file the information for
  573.      screen, serial port, modem, mailer information and a few
  574.      other things is contained.
  575.  
  576.      These are all the possible entries:
  577.  
  578.  
  579.      LOCAL
  580.      NULLMODEM
  581.      ICON  370  0
  582.      FONT  cleanibm.font 8
  583.      SCREEN WIDTH   640
  584.      SCREEN HEIGHT  256
  585.      SCREEN DEPTH   4
  586.      MONITOR  DONTCARE
  587.      INTERLACE
  588.      SUPER
  589.      SERIAL DEVICE  serial.device
  590.      SERIAL UNIT    0
  591.      SERIAL BUFFER  16384
  592.      DEFAULT BAUD   38400
  593.      DEFAULT LENGTH 28
  594.      DATA BITS  8
  595.      STOP BITS  1
  596.      PARITY     OFF
  597.      INIT   STRING  "ATZ|^5AT &F2 B0W2S95=2E0M1L1#CID=1|AT+FAA=1|"
  598.      TERM   STRING  "ATZ|^5AT &F2 B0W2S95=2E1M1L1S2=43|"
  599.      DIAL   STRING  "ATS11=50DT"
  600.      ANSWER STRING  "ATA|"
  601.      RING    STRING     "RING"
  602.      CONNECT STRING     "CONNECT"
  603.      FAX     STRING     "FAX"
  604.      VOICE   STRING     "VOICE"
  605.      RINGS   2
  606.      CARRIER DELAY  45
  607.      CONNECT DELAY  30
  608.      ESCAPE  DELAY   2
  609.      HANGUP  DELAY  25
  610.      MAILER   ZEDZAP  DIRECTZAP  ZEDZIP  ZMODEM
  611.      TERM PATH  RAM:
  612.      PAGE SAMPLE   trion:samples/startrek-Alert  3
  613.      BELL SAMPLE   trion:samples/startrek-comm
  614.      SLEEP WARNING  90
  615.      SYSOP  NAME      "Paul Spijkerman"
  616.      SYSTEM NAME      "Amiga Pet Shop BBS"
  617.      SYSTEM CITY      "Gasselte,Dr,NL,EUR"
  618.      SYSTEM PHONE     "+31-599-564696"
  619.      SYSOP COMMENTS  1
  620.      VALIDATE LEVEL  10
  621.      EDITOR    Ced
  622.      GATE   2:284/324.999
  623.      SKIPEXISTINGUPLOADS
  624.  
  625.  
  626.      More lengthy explanation of the Trion-X.cfg entries:
  627.      ----------------------------------------------------
  628.  
  629.      General entries
  630.      ---------------
  631.  
  632.  
  633.      LOCAL
  634.  
  635.      This is a boolean keyword, if it is in the configuration file
  636.      this node will run in local mode, put a ';' for the word
  637.      if you don't want this node to be in local mode.
  638.      In local mode the node can't open a serial port.
  639.  
  640.      NULLMODEM
  641.  
  642.      This is a boolean keyword, if it is in the configuration file
  643.      this node will run in nullmodem mode, put a ';' for the word
  644.      if you don't want this node to be in nullmodem mode.
  645.      In nullmodem mode you can connect a serial cable to the
  646.      serial port used by this node and connect it to a terminal
  647.      or other computer with a terminal program instead of a modem.
  648.      In this mode the program will not send modem strings and will
  649.      wait for a press on a return key instead of a RING string.
  650.  
  651.      DEFAULT LENGTH 28
  652.  
  653.      This defines the default screen length at 28 lines, so if
  654.      a new user logs in, until he gets to the screen length 
  655.      question the length is 28 lines. When he just enters return
  656.      at the screen length question he will get this screen length.
  657.  
  658.      ICON  370  0
  659.  
  660.      This is the X and Y position on the Workbench screen of the
  661.      icon of this node in the iconized mode. The icon is a little window
  662.      which you can click to DeIconize the node. In the icon you can
  663.      see the number of the node, the name of the user logged in
  664.      (or a waiting message) and a '*' if the user online has paged
  665.      for the sysop.
  666.  
  667.      FONT  cleanibm.font  8
  668.  
  669.      This entry defines the font that will be used in this node.
  670.      Note that an IBM type font is normally used/
  671.  
  672.      SCREEN WIDTH   640
  673.      SCREEN HEIGHT  256
  674.      SCREEN DEPTH   4
  675.  
  676.      These entries are used to define the size and depth of the
  677.      screen of this node.
  678.      The screen depth can be 1 to 4 bitplanes.
  679.      In the BBS node is a pulldown menu entry to switch between
  680.      numbers of bitplanes. Note that 1 bitplane is a lot faster
  681.      then 4 bitplanes when reading mail.
  682.  
  683.      MONITOR  DONTCARE
  684.  
  685.      With this entry you can select a monitor, which is usefull
  686.      if you want to use a VGA monitor.
  687.      You can choose from the following monitors:
  688.  
  689.          NTSC       640 x 200    60Hz   15,72Khz   (American 1084 mode)
  690.          PAL        640 x 256    50Hz   15,60Khz   (Europe   1084 mode)
  691.          MULTISCAN  640 x 480    58Hz   29,29Khz   (VGA/multisync monitors)
  692.          EURO72     640 x 400    69Hz   29,25Khz
  693.          EURO36     640 x 200    73Hz   15,76Khz
  694.          SUPER72    448 x 306    71Hz   23,21Khz
  695.          DBLNTSC    676 x 213    58Hz   27,66Khz
  696.          DBLPAL     676 x 269    48Hz   27,50Khz
  697.          DONTCARE   640 x 2xx    Should work on every system
  698.  
  699.  
  700.  
  701.      INTERLACE
  702.  
  703.      This is a boolean keyword, if it is in the configuration file
  704.      the screen will be in interlace mode, put a ';' for the word
  705.      if you don't want to use interlace. With interlace the
  706.      resolution will be boosted to 400 -  538 if possible.
  707.      Interlace can be toggled from a pulldown menu in a bbs node.
  708.  
  709.      SUPER
  710.  
  711.      This is a boolean keyword, if it is in the configuration file
  712.      the screen will be in superhires mode, put a ';' for the word
  713.      if you don't want to use superhires. With superhires the
  714.      resolution will be boosted to 1280 - 1448 if possible.
  715.      SuperHires can be toggled from a pulldown menu in a bbs node.
  716.  
  717.  
  718.      Serial port
  719.      -----------
  720.  
  721.      SERIAL DEVICE  serial.device
  722.      SERIAL DEVICE  nullmodem.device
  723.      SERIAL DEVICE  8n1.device
  724.  
  725.      This line defines which serial device this node should use,
  726.      default this would be "serial.device" but if you want to
  727.      reach speeds 19200 or 38400 baud on a 68000 you could try
  728.      the "8n1.device" which can be found on Aminet.
  729.      For testing you can use the "nullmodem.device", which
  730.      emulates 2 serial ports, 2 modems and a telephone line
  731.      between the modems. Note that default node 6 and 7 are configured
  732.      to use the nullmodem.device.
  733.      If you use a serial board you need to put the name of the provided
  734.      serial device at this entry.
  735.  
  736.      SERIAL UNIT    0
  737.  
  738.      This is the serial port this node is going to use, when you
  739.      use the standard serial port this value is ignored, but in the
  740.      nullmodem device this value is very important. Also if you
  741.      use a serial board you have to put the port number here you
  742.      want to use for this node.
  743.  
  744.      SERIAL BUFFER  16384
  745.  
  746.      This is the size of the buffer the serial device should make,
  747.      normally 16K is plenty of room, because with a V34 this gives
  748.      you 5 seconds of buffering. Plenty of time to stop the datastream
  749.      with hardware handshaking.
  750.  
  751.      DEFAULT BAUD   38400
  752.  
  753.      This is the speed at which the computer "talks" with the modem.
  754.      This can be a value of 2400, 4800, 9600, 19200, 38400 or 57600 baud.
  755.      The maximum speed you can use without getting errors depends on
  756.      processor speed, serial device and if your iconized or not
  757.      and the kickstart rom.
  758.      With a only a 68000 processor 9600 baud is about the maximum
  759.      with the standard device, with 8n1.device you can use 19200 baud.
  760.      If you have a 25 Mhz 68030 you can use 38400 baud, in iconized mode.
  761.      If you have the KS 2.04 rom in deiconized mode you may get some
  762.      errors .. but with KS 3.1 in fastram that is fixed. 
  763.      If you have a zorro board with buffered serial ports you can
  764.      use higher speeds.
  765.  
  766.      DATA BITS  8
  767.      STOP BITS  1
  768.      PARITY     OFF
  769.  
  770.      These fields define the way data is send over a serial line.
  771.      The number of databits can be 7 or 8, the default number is
  772.      8 which is also the most used value.
  773.      The number of stop bits can be 1 or 2, the default number is
  774.      1 which is the most used value.
  775.      The parity can be OFF (no parity), ON (parity Even) or
  776.      ODD (parity Odd).
  777.      Parity is sort of a primitive error detection and is not much
  778.      used these times because modems have a much better error detection
  779.      and even correction system. Parity means that you count the number
  780.      or ones in a byte and send an extra bit if the number if odd or
  781.      even.
  782.      Sometimes when some one gives you the phone number of system
  783.      you have to call by modem a 3 character code is given to
  784.      tell you how to configure your serial port.
  785.      This code is usually 8n1 which means 8 data bits, no parity and
  786.      1 stop bit. Here are a few of the most used combinations.
  787.  
  788.      For normal BBS use:
  789.  
  790.           (8n1) = 8 DataBits , 1 StopBit , Parity OFF
  791.  
  792.      For Minitel terminals (France) use :
  793.  
  794.           (7e1) = 7 dataBits , 1 StopBit , Parity  ON
  795.  
  796.  
  797.  
  798.  
  799.      Modem strings
  800.      -------------
  801.  
  802.      In this part modem strings are discussed. Note that there
  803.      are two kinds of modem strings. The first group are strings
  804.      that are SEND to the modem. For example strings to initialize it
  805.      or to dial out or answer a call.
  806.      The second group are strings that are received from the modem,
  807.      they are handled quiet differently and discussed in the second part.
  808.  
  809.      
  810.      1. Strings that are send to the modem.
  811.  
  812.  
  813.      INIT    STRING   "ATZ|^5AT &F2 B0W2S95=2E0M1L1#CID=1|AT+FAA=1|"
  814.      TERM    STRING   "ATZ|^5AT &F2 B0W2S95=2E1M1L1S2=43|"
  815.      DIAL    STRING   "ATS11=50DT"
  816.      ANSWER  STRING   "ATA|"
  817.  
  818.      Note that these strings have limited space in memory.
  819.  
  820.       The init   string can be up to 200 characters.
  821.       The term   string can be up to 100 characters.
  822.       The dial   string can be up to  40 characters.
  823.       The answer string can be up to  40 characters.
  824.  
  825.       Note that a lot of modems only can accept 40 characters at once
  826.       in the buffer for strings.
  827.       So if your initialization is longer you probably have to split
  828.       it up in two or more strings.
  829.       Something like this:   "AT....|AT....|"
  830.       Also note that these strings are read to memory when you run
  831.       the 'bbs' executable .. so changing the strings has no effect
  832.       until you stop and run the 'bbs' executable.
  833.  
  834.       Note that if you want to use spaces in a modem string you
  835.       have to put the whole string between "" characters.
  836.  
  837.      Modem strings may contain some special codes that can be
  838.      interpreted be the code that sends them to the modem.
  839.  
  840.       Use a '|' character as a carriage return to end the string.
  841.  
  842.       The '^' character is used as an escape character and has
  843.       to be followed with a special character.
  844.  
  845.       "^n" (where 'n' is a number from 1-9) means a pause of
  846.       n x 1/5 seconds.
  847.       "^1" is a pause of 1/5 second.
  848.       "^5" is a pause of 1 second.
  849.  
  850.       "^^" means that a '^' character is send to the modem.
  851.       Note that when you use a '^' for a phone number when
  852.       dialing the modem will producs "fax" tones. Which can
  853.       sometimes be needed when a BBS is put behind a "fax selector" box.
  854.  
  855.      Note that the BBS expects text result strings after a string
  856.      is send to the modem, not numerial results !!
  857.  
  858.  
  859.      The init string:
  860.  
  861.       The init string is send to the modem when the program is
  862.       started or after a call to initialize it properly.
  863.       This is needed so the modem knows what parameters to
  864.       use or if it is supposed to answer faxes also, or monitor
  865.       the line for callerID when a call is coming in.
  866.  
  867.       With most modems a simple:  "ATZ|^5"  is enough.
  868.       This is a command that resets the modem and it will
  869.       use the default settings from its memory.
  870.  
  871.       You might want to add "S2=255" to your init string,
  872.       to prevent that users put your modem in command mode by sending
  873.       a "+++" string (with the correct delay times before
  874.       and after it) .. however if you want to use the modemcommand
  875.       menu command don't use it because the menu command wont work.
  876.  
  877.       Trion expects connect lines in this form:
  878.       "CONNECT 14400/ARQ"
  879.       Add something like "W2S95=2" to your init string to accomplish
  880.       this.
  881.  
  882.       If you want CallerID send to the log (the phone number of
  883.       the calling party) you have to add "#CID=1" to your init
  884.       string.
  885.  
  886.       If you want to be able you have to add "+FAA=1" to your init string.
  887.  
  888.       Actually you have to give the modem all kind of information to
  889.       be able to receive faxes something like the following example 
  890.       but it is far more practical to have these codes send by
  891.       a fax program so you don't have to find out which codes to
  892.       send for which papersize and other capabilities.
  893.       A fax program can init the modem by calling the fax.init
  894.       script in the logout.X and incoming.X scripts.
  895.  
  896.       AT+FAA=1;+FCLASS=0;+FLID="+31-599-564696     ";+FCR=1;+FDCC=1,,0,2,0,0,0,5
  897.  
  898.       Here is some information how to use GPFax with Trion:
  899.  
  900.       If you want to use GPFax to receive faxes while the BBS is online
  901.       you have to edit the trion:startup script.
  902.       All you have to do is remove the ';' for the lines that startup GPFax.
  903.       When you now use trion:startup GPFax will startup and init te modem
  904.       before the BBS nodes get online.
  905.  
  906.       You have to add something like 'AT+FAA=1' or '+FAA=1' to your
  907.       BBS init string, this makes the modem look for faxes also if
  908.       answering the phone.
  909.       When a fax call is detected, the 'fax.script' will be executed
  910.       to spawn a fax receive programm.
  911.  
  912.       Most modem also need the folowing in the initstring to receive
  913.       faxes correctly:
  914.          '+FCLASS=0'
  915.          '+FLID='+31-xxxx-xxxxx'          (Your phone number)
  916.          '+FCR=1'
  917.          '+FDCC=1,,0,2,0,0,0,5'
  918.  
  919.       If you have problems receiving faxes or you have only added
  920.       '+FAA=1' to your init string .. you can use the 'fax.init' script.
  921.  
  922.       Most fax problems are caused by previous data calls, if you
  923.       get a data call after GPFax has init the modem the above mentioned
  924.       data will be erased from your modem, if you get a fax call after
  925.       de data call .. you will probably receive nothing.
  926.  
  927.       When you call the 'fax.init' script it will use GPFax to init
  928.       the modem again and fax receiving should be no problem.
  929.  
  930.       You should call 'fax.init' after each data call in the
  931.       'incoming.x', 'logout.x' and your poll scripts.
  932.  
  933.       Note that the fax init is only lost after a data call, an
  934.       ATZ command to reset the modem is no problem.
  935.  
  936.  
  937.  
  938.      The term string:
  939.  
  940.       The terminal string is the string used to initialize the modem
  941.       in the build in terminal.
  942.       This is done because you might want to use a different string
  943.       then the default init string. If you for instance want to
  944.       use the "+++" command to put your modem in command mode
  945.       during a call then you remove "S1=255" from the term string.
  946.  
  947.  
  948.      The dial string:
  949.  
  950.       This is the string that will be send to the modem to
  951.       dial out.
  952.       DO NOT terminate this string with a "|" (carriage return)
  953.       because the program will put a phone number and a carriage
  954.       return after the string.
  955.       A dial string will be something like "ATDT" .. but you might
  956.       want to add codes to make dialing faster like "ATS11=50DT"
  957.       or codes to select ISDN or analog modes of your modem.
  958.  
  959.  
  960.      The answer string:
  961.  
  962.       This is the string that will send to the modem to answer
  963.       after "RING" strings are received. Normally "ATA|" will
  964.       do fine. Not that you can not put your modem in auto
  965.       answer mode because the BBS will not work in that mode,
  966.       it will not know that the modem has answered a call.
  967.       It is not a good idea to use Auto Answering anyway because
  968.       you may have put a BBS node in "non answering mode" because
  969.       you are processing mail. Or if the software is not able
  970.       to answer the modem, because a write action to a full
  971.       disk has occured and a requester has popped up .. your
  972.       modem would still answer every call.
  973.  
  974.  
  975.      2. Strings that are received from the modem.
  976.  
  977.      Note that there are only 4 types of strings defined here and
  978.      that they can be a part of larger strings.
  979.      Note that you don't have to configure all the combinations
  980.      of connect strings that can occur because the BBS uses code
  981.      to analyse connect strings and tries to recognize each part
  982.      of it.
  983.  
  984.      RING    STRING   "RING"
  985.      CONNECT STRING   "CONNECT"
  986.      FAX     STRING   "FAX"
  987.      VOICE   STRING   "VOICE"
  988.  
  989.      Note that these strings have limited space in memory.
  990.  
  991.       The ring    string can be up to 16 characters.
  992.       The connect string can be up to 20 characters.
  993.       The fax     string can be up to 16 characters.
  994.       The voice   string can be up to 16 characters.
  995.  
  996.       Note that the BBS program has also a number of "hard coded" strings.
  997.  
  998.       It will recognize a RING when it sees a "RING" string
  999.       no matter how you define the ring string.
  1000.  
  1001.       It will recognize a normal connect when it sees a "CONNECT" or
  1002.       "CARRIER" string no matter how you define the connect string.
  1003.  
  1004.       It will recognize a FAX connect when it sees a "FAX" or
  1005.       "+FCO" or "+FCON" string no matter how you define the fax string.
  1006.  
  1007.       It will recognize a voice connect when it sees a "VOICE"
  1008.       string no matter how you define the voice string.
  1009.  
  1010.  
  1011.      The ring string:
  1012.  
  1013.       This is the string that is used to recognize if someone is
  1014.       calling. Some older modems may have an alternative to
  1015.       the default "RING".
  1016.  
  1017.  
  1018.      The connect string:
  1019.  
  1020.       You only have to specify the word that indicates the start
  1021.       of the connect line, the BBS while analyse the string for
  1022.       its data contents.
  1023.  
  1024.       During normal data calls, Trion is expecting a connect string
  1025.       in one of the following styles:
  1026.  
  1027.       "CARRIER 14400"
  1028.       "CARRIER 24000/LAPM"
  1029.       "CONNECT 12000/ARQ"
  1030.       "CONNECT 14400 REL/V42"
  1031.       "CONNECT 14400/LAPM/V42BIS"
  1032.       "CONNECT 28800/LAPM/V42BIS"
  1033.       "CONNECT 14400/ARQ/V32/LAPM/V42BIS"
  1034.       "CONNECT 28800/ARQ/V34/LAPM/V42BIS"
  1035.       "CONNECT 64000/ISDN/X75"
  1036.       "CONNECT 64000/ISDN/X75/V42BIS"
  1037.  
  1038.  
  1039.       The BBS will examen the connect string to determine the baudrate,
  1040.       compression, analog/digital, error correction and
  1041.       other information about the connect.
  1042.  
  1043.       It will use the baudrate and the compression indication to
  1044.       calculate the expected transfer times of files.
  1045.       So make sure you get the DTE speed when connecting.
  1046.  
  1047.  
  1048.      The FAX string:
  1049.  
  1050.       This is the string that has to be recognized to spawn
  1051.       a fax program. Note that the important ones are already
  1052.       recognized but some new fax class may have an alternative
  1053.       string.
  1054.  
  1055.  
  1056.      The voice string:
  1057.  
  1058.       This is the string that has to be recognized to spawn
  1059.       a voice program.
  1060.       Note that I havn't had any experience with this yet,
  1061.       so I don't know if there are actuall voice programs
  1062.       you can spawn.
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068.      RINGS   2
  1069.  
  1070.      This is the number of "RING" strings the modem is sending
  1071.      to the BBS program before the program answers.
  1072.      A "RING" string is send to the program when the modem
  1073.      receives the signal that makes a normal phone ring.
  1074.      Normally there is 5 seconds between ring's.
  1075.      Normally you set this value to 1, but if you have CallerID (CID)
  1076.      selected in your init string you want to use 2, because between
  1077.      the first two rings caller data is send from the modem the BBS.
  1078.      At this moment the CallerID data is only logged, but in the
  1079.      future I may want to implement a selective answering logic
  1080.      so that the call is only answered when there is mail for the
  1081.      calling party. Also CallerID is usefull the check if someone
  1082.      uses his real name.
  1083.  
  1084.  
  1085.  
  1086.      CARRIER DELAY  45     ;(secs)
  1087.      CONNECT DELAY  30     ;(ticks)
  1088.      ESCAPE  DELAY   2     ;(secs)
  1089.      HANGUP  DELAY  25     ;(ticks)
  1090.  
  1091.      Note that a "tick" is 1/50th of a second.
  1092.  
  1093.      The carrier delay is the time the BBS will wait after answering
  1094.      the modem until a connect has been made.
  1095.      If no connect is made in this time, the answer code will escape
  1096.      with a timeout and init the modem and resume the wait mode.
  1097.  
  1098.      The connect delay is a little obsolete by now, because modems and
  1099.      the answering code is changed. It was used as a pause between the
  1100.      time first connect data arrived from the modem and the time
  1101.      the program starts to interpret it, because old modems may still
  1102.      be talking to each other to determine error correction and
  1103.      data compression after the connect string was send to the computer.
  1104.      So the /ARQ part may come later.
  1105.  
  1106.      The escape delay is the time between the connect is arrived and
  1107.      the moment that the copyrigth/welcome/press escape text is send.
  1108.      This was added because some mailers may not be listening to the
  1109.      serial line right after the connect and miss it.
  1110.  
  1111.      The hangup delay is the time the "Terminal Ready" line will
  1112.      be dropped to disconnect the modem.
  1113.  
  1114.  
  1115.  
  1116.      MAILER   ZEDZAP  DIRECTZAP  ZEDZIP  ZMODEM
  1117.  
  1118.      The mailer entry will tell the BBS which protocols are useable
  1119.      for file transfers in the mailer. During a mailer session this
  1120.      information is exchanged to decide which protocol to use.
  1121.      Basically you want to specify all protocols you are able to use.
  1122.      Protocols that you can specify are:
  1123.  
  1124.         HYDRA  ZEDZAP  DIRECTZAP  ZEDZIP  ZMODEM
  1125.  
  1126.      The program will also recognize:    HYDRA8 JANUS KERMIT
  1127.      But these have their problems, the HydraCom program has no
  1128.      option to tell it to go to 8192 byte packets.
  1129.      There is no XprJanus library available, and the Xprkermit
  1130.      transfers are to slow, and succesfull transfers are not
  1131.      recognized which causes even more problems.
  1132.  
  1133.      Check the protocol.cfg description for more information
  1134.      about the availability of the protocols.
  1135.  
  1136.  
  1137.      TERM PATH  RAM:
  1138.  
  1139.      This is the path where downloads that are done from the buildin
  1140.      terminal are stored. Note that it has to end with a ':' or '/'.
  1141.      This path is also used as default for the filerequester that
  1142.      appears when an upload command is given in a local node.
  1143.  
  1144.  
  1145.      PAGE SAMPLE   trion:samples/startrek-Alert  3
  1146.      BELL SAMPLE   trion:samples/startrek-comm
  1147.  
  1148.      These are the definitions for the sound samples used when
  1149.      someone pages the sysop or a Ctrl-G code (Bell) is send or
  1150.      received. The number after the sample name is optional and
  1151.      it the number of times the sample is played. The default value
  1152.      is one.
  1153.      Note that the samples have to be uncompressed IFF files.
  1154.  
  1155.  
  1156.      SLEEP WARNING  90
  1157.  
  1158.      This is the number of seconds between the last action of a user
  1159.      and the moment that an inactivity warning is shown.
  1160.      If after the warning nothing happens the user is logged off after
  1161.      an other 60 seconds. Note that this also works in chat mode.
  1162.  
  1163.  
  1164.      SYSOP  NAME      "Paul Spijkerman"
  1165.      SYSTEM NAME      "Amiga Pet Shop BBS"
  1166.      SYSTEM CITY      "Gasselte,Dr,NL,EUR"
  1167.      SYSTEM PHONE     "+31-599-564696"
  1168.  
  1169.      These are fields with information of your system that is
  1170.      presented to the other system when a mailer calls in
  1171.      or someone logs in with an IEMSI terminal.
  1172.      Also it is used in file description files that are created
  1173.      when a user downloads files.
  1174.      Also the sysop name is used for comment's to sysop.
  1175.      Note that underscores are allowed to replace space but
  1176.      even better is putting the text between "".
  1177.  
  1178.  
  1179.      SYSOP COMMENTS  1
  1180.  
  1181.      This is the number of a local message section where
  1182.      comments to sysop are stored. Note that the value must
  1183.      be higher than zero.
  1184.  
  1185.  
  1186.      VALIDATE LEVEL  10
  1187.  
  1188.      This is the level that a user gets when you press F4 in a
  1189.      BBS node. This is usefull when you want to upgrade the
  1190.      level of a newuser with one press of a key, when you
  1191.      for instance "looked over his shoulder" when he entered
  1192.      the answers in the Questionair. Note that you can only
  1193.      increase a level with the F4 key, you can't lower (degrade)
  1194.      the level of the sysop for instance.
  1195.  
  1196.  
  1197.      EDITOR    Ced
  1198.  
  1199.      This is the name of a local editor that is used when
  1200.      you write mail and have selected a local editor (only in
  1201.      a local node) also this editor is used for message
  1202.      signatures.
  1203.  
  1204.  
  1205.      GATE   2:284/324.999
  1206.  
  1207.      This is a fido-net style nodenumber of a BBS with an E-mail gate.
  1208.      If you use the E flag in a netmail message section then that
  1209.      section has E-mail support. This means that when you write
  1210.      a message in that section an E-mail address is asked.
  1211.      When you actually give an E-mail address the BBS will not
  1212.      ask for a nodenumber but will send the message to this
  1213.      gate nodenumber. Note that this isn't actually the nodenumber
  1214.      of the BBS itself but a point number allocated to the
  1215.      gate software.
  1216.  
  1217.  
  1218.      SKIPEXISTINGUPLOADS
  1219.  
  1220.      This is a boolean keyword, if it is in the configuration file
  1221.      uploads that exist are skipped, put a ';' for the word
  1222.      if you don't want to skip them.
  1223.      If you use this word an upload is immediatly terminated when
  1224.      a file with the same name is found on the BBS.
  1225.      If you allow "existing uploads" then a new name is asked for
  1226.      the file and it is renamed before it is uploaded.
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.     The BBStext-X configuration files
  1233.     ---------------------------------
  1234.  
  1235.      The configuration directory contains a number of BBStext-X.cfg
  1236.      files (where the X is substituted with a number).
  1237.      They contain the text lines the BBS should use for each
  1238.      language.
  1239.  
  1240.      Note that these files are the raw data or source files,
  1241.      they have to be "compiled" by running the BBStext program.
  1242.      The compiled BBStext files are stored in the Trion:data
  1243.      directory.
  1244.  
  1245.      For every language or menuset you have a seperate BBStext
  1246.      file so you can easily add (and obtain) bbstext files
  1247.      for different languages who are constructed by other people.
  1248.  
  1249.      BBStext entries consist of lines needed by the compiler
  1250.      to know which line we are defining folowed by the
  1251.      actual text we want to use in the BBS.
  1252.  
  1253.      In the text lines you can use special characters to get
  1254.      certain effects .. these characters are translated by
  1255.      'BBStext' to the corresponding ascii codes, which make
  1256.      bbstext files easier to read and change.
  1257.  
  1258.      Also a lot of lines have codes which can be used in these
  1259.      lines and are replaced by the BBS at execution with 
  1260.      numbers or text lines. These codes consist of a '%' character
  1261.      folowed by a letter. (%a %b %c %d %e %f etc.)
  1262.  
  1263.      For those of you who can program in 'C' .. it works a little
  1264.      bit like C but there are differences!
  1265.      In C the letter stands for a certain type of variable .. but
  1266.      in BBS a letter has a fixed meaning in every line and can
  1267.      be of different types. There are no fixed types.
  1268.      (note the types are in the comment lines in the BBStext-X.cfg)
  1269.      In other software standard C types are used wich has a major
  1270.      drawback .. that you have to use them in a fixed order,
  1271.      wich isn't the case with trion.
  1272.  
  1273.      Note that a BBStext entry can be about 1000 characters each.
  1274.  
  1275.      Note that tilde codes may be used.
  1276.  
  1277.      Use '|' characters as 'return' characters (End Of Line).
  1278.  
  1279.      Note that the whole entry should be on one line, if the text is
  1280.      displayed as multiple lines in the BBS you should add multiple
  1281.      '|' characters as returns.
  1282.  
  1283.      Comments may be made but only between definitions,
  1284.      comments are lines starting with a ';' 
  1285.  
  1286.      Note that underscores have the same effect a spaces !!
  1287.      Which can be convenient to 'see' the end of a line, if a line
  1288.      ends with a space, if for instance input is expected at the
  1289.      end of a line.
  1290.      Also some editors strip the spaces from the end of a line.
  1291.  
  1292.  
  1293.  
  1294.  
  1295.    Codes useable for translation to ASCII code:
  1296.  
  1297.  
  1298.       '\a'   ->               Bell   (alert)
  1299.  
  1300.       '\b'   ->               Backspace          
  1301.  
  1302.       '\r'   ->               Carriage return    
  1303.  
  1304.       '\n'   ->               Newline            
  1305.  
  1306.       '\\'   ->  '\'          BackSlash          
  1307.  
  1308.       '_'    ->  ' '          space              
  1309.  
  1310.       ' '    ->  ' '          space              
  1311.  
  1312.       '|'    ->  ''           Carriage Return folowed by a newline  
  1313.  
  1314.  
  1315.    NOTE: Underscores have the same effect a spaces !!
  1316.          which can be convenient to "see" the end of a line
  1317.          also some editors strip the spaces from the end of a line
  1318.  
  1319.    Use '|' characters as 'return' characters (End Of Line)
  1320.  
  1321.  
  1322.  
  1323.  
  1324.    Like in the C language you can add numbers (positive and negative)
  1325.    to the '%' codes to fix the look of the text in the BBS:
  1326.  
  1327.  
  1328.  
  1329.       '%_'   ->  '_'          Underscore         
  1330.  
  1331.       '%|'   ->  '|'                             
  1332.  
  1333.       '%%'   ->  '%'                             
  1334.  
  1335.       '%A'   ->  'xxxxx'      Line 'A'           
  1336.  
  1337.       '%8A'  ->  '   xxxxx'   Line 'A' filled with spaces to fill 8 places  
  1338.  
  1339.       '%-8A' ->  'xxxxx   '   Line 'A' filled with spaces to fill 8 places  
  1340.  
  1341.  
  1342.    Note that the 8 is an example and can be replaced by other numbers.
  1343.    Note that the % fields can be strings, 16 or 32 bit variables, look
  1344.    at the comments in the BBStext files to make sure. You can use
  1345.    most of the format methodes for each kind of field you can use
  1346.    in the C programming language.
  1347.  
  1348.  
  1349.  
  1350.  
  1351.  
  1352.  
  1353.     The language.cfg configuration file
  1354.     -----------------------------------
  1355.  
  1356.      The language configuration file just contains a list of
  1357.      numbers with language names behind them.
  1358.  
  1359.      Like so:
  1360.  
  1361.      #0   ANSI_English
  1362.      #1   ANSI_Nederlands
  1363.      #2   ANSI_Deutsch
  1364.  
  1365.      Comments may be made by using ';' characters.
  1366.  
  1367.      The list is shown in a sligtly different form when a User
  1368.      selects a language.
  1369.      Note that only the number of the selected language is
  1370.      stored in the userdata.
  1371.  
  1372.      The number is used to select a BBStext-X.cfg file and
  1373.      the determine which menutext directory to use.
  1374.      Note that if there is no menutext directory with the
  1375.      correct number the default directory without a number
  1376.      will be used.
  1377.  
  1378.  
  1379.     The badnames.txt configuration file
  1380.     -----------------------------------
  1381.  
  1382.      The badnames.txt configuration file is used to prevent users
  1383.      to use certain names.
  1384.      This is done by placing illegal names on separate lines.
  1385.      You could for instance place words like "new" or "test" on a
  1386.      line when you only allow users to log in with their real names.
  1387.      Also you can use wildcards so new users can't choose names
  1388.      with rude words in them.
  1389.  
  1390.      Note that this config is not case sensitive.
  1391.      Note that wildcards *, #? and ? allowed.
  1392.      Note that you can place comments in the file after a ';' character
  1393.      but you can only place ';' characters at the first position
  1394.      of a line.
  1395.  
  1396.  
  1397.  
  1398.     The term.names configuration file
  1399.     ---------------------------------
  1400.  
  1401.      This file is a little phone book for the simple buildin
  1402.      terminal. It contains names and phone numbers of people
  1403.      you call often.
  1404.  
  1405.      You simply place the name(s) of a person on a line,
  1406.      the last entry on the line should be the phone number.
  1407.      You can use the full name and also the first name or
  1408.      nick name of BBS name of a person. The program will
  1409.      try to match one of them and then use the phone number
  1410.      at the end of the line.
  1411.      Note that the first name on a line is used as "nice name"
  1412.      and is written to the log and the screen when a match is
  1413.      made.
  1414.  
  1415.      Here is a little example:
  1416.  
  1417.  
  1418.      paul_spijkerman     Paul  "Amiga pet shop BBS"    ^^05999-64696
  1419.      "paul spijkerman"   Paul                          05999-64696
  1420.  
  1421.  
  1422.      Note that this config is not case sensitive.
  1423.      You can't use spaces in names, you have to replace names
  1424.      with underscores or place the name between "" characters.
  1425.  
  1426.      You can use ^^ for a phone number to send a ^ to the modem for
  1427.      fax tones while dialing (to bypass BBSes with one line and a
  1428.      fax selector).
  1429.  
  1430.  
  1431.  
  1432.  
  1433.     The unpack.cfg configuration file
  1434.     ---------------------------------
  1435.  
  1436.      The unpack configuration file contains information on how to
  1437.      use archivers by certain programs.
  1438.      This configuration file is used by the tick processor to
  1439.      unpack archives wich contain a number of .tic files.
  1440.      Also it is used by the unpack program, which is a frontend
  1441.      for archivers and other programs.
  1442.      The default configuration file is not only configured to
  1443.      show information on archives but also on pictures.
  1444.  
  1445.      Note that more information can be found in the
  1446.      Trion:docs/utils/unpack.doc
  1447.      This configuration is only mentioned here because it
  1448.      is used not only by Unpack but also by tick.
  1449.  
  1450.      This had a reason tick uses this file instead of the
  1451.      archivers.cfg which was especially made for the mail processor.
  1452.      The entries in the archivers.cfg only tries to extract files
  1453.      with a .pkt extension and does this quietly. Which isn't very
  1454.      usefull if you want to SEE what is going on.
  1455.      Maybe in a next version the archivers.cfg will be extended with
  1456.      lines that are not dependable on extensions and can be used
  1457.      with tick.
  1458.  
  1459.  
  1460.  
  1461.     The protocol.cfg configuration file
  1462.     -----------------------------------
  1463.  
  1464.      The protocol configuration defines how external 
  1465.      file transfer protocol programs are to be used.
  1466.      The BBS and the mailer use mainly XPR libraries to
  1467.      transfer files but also the HydraCom module can be used.
  1468.      At this moment only the XPR file transfer libraries are
  1469.      configurated in this file.
  1470.  
  1471.      A sample of a protocol could look something like this:     
  1472.  
  1473.  
  1474.      #0   "Zmodem"    BATCH  RESUME  "xprzmodem.library"  "TN"  "TN" 
  1475.  
  1476.      The format used is as follows:
  1477.  
  1478.      number  name  batch  resume  libname  ReceiveCfg  SendCfg
  1479.  
  1480.  
  1481.      Number
  1482.      -----
  1483.  
  1484.      The number is a number between 0 and 127 for normal BBS file
  1485.      transfers and between 128 and 255 for mailer file transfers.
  1486.      The numbers for the mailer protocols are "fixed", the numbers for
  1487.      BBS protocols can be swapped.
  1488.  
  1489.      Number   0  is default for newusers (preferable Zmodem).
  1490.  
  1491.      number 128  is used for EMSI file transfers (1024 byte Zmodem).
  1492.      number 129  is used for EMSI file transfers (8192 byte ZedZap (or Zmodem)).
  1493.      number 130  is used for EMSI file transfers (1024 byte ZedZip).
  1494.      number 131  is used for EMSI file transfers (8192 byte DirectZap).
  1495.      number 132  is used for EMSI file transfers (Kermit).
  1496.      number 133  is used for EMSI file transfers (Janus).
  1497.  
  1498.      The numbers 200 and 201 are used for modules and can't be configured
  1499.      in this file.
  1500.  
  1501.      number 200  is used for EMSI HYDRA mailer transfer.
  1502.      number 201  is used for EMSI HYDRA8 (max block size 8192 instead of 2048).
  1503.  
  1504.  
  1505.      Name
  1506.      ----
  1507.  
  1508.      The name is used in logs and displayed on screen or in the user
  1509.      editor to show the current file transfer protocol.
  1510.  
  1511.      Batch
  1512.      -----
  1513.  
  1514.      Batch indicates of the protocol is able to send or receive
  1515.      multiple files in a session like Zmodem is able to.
  1516.  
  1517.      "batch"   can be "BATCH"  or "SINGLE"
  1518.   
  1519.  
  1520.      Resume
  1521.      ------
  1522.  
  1523.      Resume indicates of a protocol is able to resume a previous
  1524.      file transfer that was aborted before the all the bytes
  1525.      where transferred. If a protocol is able to "resume"
  1526.      then partially received files are not deleted.
  1527.  
  1528.      "resume"  can be "RESUME" or "RETRY"
  1529.  
  1530.  
  1531.      Libname
  1532.      -------
  1533.  
  1534.      Libname means the full name of the XPR library that is to be
  1535.      used for this protocol.
  1536.  
  1537.  
  1538.      ReceiveCfg  &  SendCfg
  1539.      ----------------------
  1540.  
  1541.      These are strings to configure the library in Receive or Send
  1542.      mode. In these strings parameters can be send to the library.
  1543.  
  1544.      Note that some libraries are able to provide multiple protocols
  1545.      or variants on the same protocol which are slightly different,
  1546.      or use a different block size. With these strings you can tell
  1547.      a library which protocol and which blocksize are to be used.
  1548.  
  1549.  
  1550.  
  1551.      Note:
  1552.  
  1553.      Zmodem  uses 1K blocks, no options to send "no files."
  1554.      SZmodem (Zmodem variant) uses 8K blocks    (Super Zmodem)
  1555.      ZedZip  (Zmodem variant) 1K blocks, option to send "no files.", ftn mode
  1556.      ZedZap  (Zmodem variant) 8K blocks, option to send "no files.", ftn mode
  1557.             block size based upon bps rate
  1558.      DirectZap (ZedZap variant), minimum escaping (less bytes send)
  1559.  
  1560.         Zmodem and variants use "XPRZmodem or XPRzedzap library's
  1561.  
  1562.      Kermit Xprlibrary available, but no info how to use, very slow !!
  1563.  
  1564.      Janus  Bidirectional protocol (no XPR library available ???)
  1565.  
  1566.      Hydra    Bidirectional protocol with chat, max 2K blocks
  1567.      Hydra 8K Bidirectional protocol with chat, max 8K blocks
  1568.  
  1569.         Hydra uses the HydraCom program
  1570.  
  1571.      SModem protocol very much like Hydra, max 1K blocks
  1572.  
  1573.         SModem uses the smodem program (Not supported at this time)
  1574.  
  1575.      (Block size may vary under line quality and baud rate)
  1576.      (Larger blocks increase efficiency a little because of less overhead
  1577.       from block headers)
  1578.      (SZmodem and Smodem are not used by mailers)
  1579.  
  1580.  
  1581.  
  1582.  
  1583.     The templates.cfg configuration file
  1584.     ------------------------------------
  1585.  
  1586.      The templates configuration file defines all the capabilities
  1587.      a user with a certain user level has.
  1588.  
  1589.      Every level has a "template" in this file to define the access
  1590.      for message and file sections .. and the number/bytes of files
  1591.      can be downloaded each day and how many messages can be
  1592.      written. Also it defines how ratios between uploads and
  1593.      downloads. Or how many files/bytes have to be uploaded before
  1594.      a number of files/bytes can be downloaded.
  1595.  
  1596.      Levels 240 and up have special possibilities and are
  1597.      used for (Co)Sysops.
  1598.      For Instance When you list users with this level you will see
  1599.      also the alias of the Users.
  1600.  
  1601.  
  1602.      Here is an example of a template:
  1603.  
  1604.  
  1605.  
  1606.       Level            10     NormalUser
  1607.  
  1608.       FileRatio        25
  1609.       ByteRatio        25
  1610.       DownloadPerDay   1000000
  1611.       FreeBytes        1000000
  1612.       FreeDownloads    10
  1613.       TimePerDay       45
  1614.       CallsPerDay      5
  1615.       MaxMsgsPerDay    10
  1616.  
  1617.  
  1618.       MsgAccess   [V-PW--]    , 1 , 3
  1619.       MsgAccess   [VR----]    , 5
  1620.       MsgAccess   [V-P---]    , 10-40
  1621.       MsgAccess   [VR-W--]    , 2 , 100-199 , 200-299 , 800-899
  1622.  
  1623.       FileAccess  [VLDU---]   , 1 , 3-5 , 6-9 , 12-14 , 20-35 , 60-73
  1624.       FileAccess  [V--U---]   , 2
  1625.  
  1626.  
  1627.  
  1628.  
  1629.      A template consists of 4 parts:
  1630.  
  1631.       -Definition of level number and level name.
  1632.       -Definition of parameters that apply to this level.
  1633.       -Definition of the access to message sections.
  1634.       -Definition of the access to file sections.
  1635.  
  1636.  
  1637.      Parameters for a level
  1638.      ----------------------
  1639.  
  1640.  
  1641.   FileRatio      <= if the ratio between the number of downloaded files and
  1642.                     uploaded files is equal or higher then this number then
  1643.                     a user has to upload before he can download.
  1644.                     disabled when 0 or 'Off'.
  1645.   ByteRatio      <= if the ratio between the number of downloaded bytes and
  1646.                     uploaded bytes is equal or higher then this number then
  1647.                     a user has to upload before he can download.
  1648.                     disabled when 0 or 'Off'.
  1649.   DownloadPerDay <= Number of bytes a user can download each day.
  1650.   FreeBytes      <= Number of bytes a user can download before ratio's
  1651.                     kick in. Note that if zero a new user first has
  1652.                     to upload before he can download.
  1653.   FreeDownloads  <= Number of Files a user can download before ratio's
  1654.                     kick in. Note that if zero a new user first has
  1655.                     to upload before he can download.
  1656.   TimePerDay     <= minutes a user can be online a day
  1657.                     'Off' = 1500 minutes (a day = 1440 minutes)
  1658.   CallsPerDay    <= Number of calls a user may make a day
  1659.   MaxMsgsPerDay  <= Number of msgs a user may write on a day
  1660.  
  1661.  
  1662.  
  1663.  
  1664.      Message section access flags
  1665.      ----------------------------
  1666.  
  1667.  
  1668.   Msg flags:   View Read Private Write Attach Special
  1669.  
  1670.   V = View,    User sees area in Lists and can go to this area.
  1671.   R = Read,    User can Read/Scan all messages in this area.
  1672.   P = Private, User can only Read/Scan messages To and From him.
  1673.   W = Write,   User can Write in this area.
  1674.   A = Attach,  User can Attach files to messages.
  1675.   S = Special, User can Read/Scan deleted or private messages.
  1676.  
  1677.  
  1678.  
  1679.  
  1680.      File section access flags
  1681.      -------------------------
  1682.  
  1683.  
  1684.   File flags:  View List Download Upload Freedownload Edit Newfilesvisible
  1685.  
  1686.   V = View,         User sees area in Lists and can go to this area.
  1687.   L = List,         User can Browse and FileList through this area.
  1688.   D = Download,     User can Download from this area.
  1689.   U = Upload,       User can Upload in this area.
  1690.   F = Freedownload, This area is Freedownload for users with this level.
  1691.   E = Edit,         User can Edit files in this area (FI while browsing).
  1692.   N = NewFilesVisible, UnValidated files are visible.
  1693.  
  1694.  
  1695.  with 'Off' you can turn off al field (same effect as value 0)
  1696.  with 'All' you can use all areas with the given flags
  1697.  
  1698.  You can use 'Off' with:
  1699.  TimePerDay, FileRatio, ByteRatio, MaxBytesPerDay, MaxMsgsPerDay
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.