home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / notes / 50lbwic.exe / DATA1.CAB / DominoDesignerDominoDesignerData / browser.cnf next >
Encoding:
Text File  |  1999-01-29  |  8.0 KB  |  184 lines

  1. ##############################################################################
  2. # File:         browser.cnf
  3. # Description:  Browser Capabilities configuration file
  4. # Date:         14-Dec-1998
  5. #
  6. # This file is used by @BrowserInfo to determine browser properties.
  7. # There are two types of directives in this file: Property and Rule.
  8. #
  9. # Property directive:
  10. #
  11. # The property directive defines a browser property which can be accessed by
  12. # @BrowserInfo.
  13. #
  14. #     Syntax: Property <PropertyName> <DataType> <Default>
  15. #
  16. # where:
  17. #
  18. #     <PropertyName> is any string
  19. #     <DataType> is the keyword "String", "Number", or "Boolean"
  20. #          String: can return any ASCII string
  21. #          Number: can return any valid decimal number
  22. #          Boolean: can return the values "True" and "False".
  23. #     <Default> specifies the value returned by this property if the User-Agent
  24. #          header does not match any of the rules defined for the property
  25. #
  26. # Example:
  27. #
  28. #   Property NewHTMLType String Unknown
  29. #
  30. # defines a property which can be evaluated by calling @BrowserInfo("NewHTMLType").
  31. #
  32. # Rule directive:
  33. #
  34. # This directive specifies a regular expression pattern which is used to match
  35. # the browser User-Agent header. The rules for a given property are tried in
  36. # order from top to bottom. The first rule that matches the User-Agent header
  37. # wins.
  38. #
  39. # Syntax: Rule <ReturnValue> <Expression>
  40. #
  41. # where:
  42. #
  43. #      <ReturnValue> is the value to be returned on a successful match
  44. #      <Expression> is the pattern-matching expression for the User-Agent header
  45. #
  46. # A pattern-matching expression can include literal characters and special characters.
  47. # Pattern-matching proceeds left-to-right across the User-Agent header value.
  48. # Pattern-matching is case-sensitive.
  49. #
  50. # Literal characters:
  51. #
  52. #   Any character that is not a special character matches itself.
  53. #
  54. # Special characters:
  55. #
  56. #   .   A period matches any single character.
  57. #   ^   A caret indicates the beginning of the header value. For example, "^Mozilla"
  58. #   matches "Mozilla" only if it is at the beginning of the header value.
  59. #   $   A dollar sign indicates the end of the header value. For example, "browser$"
  60. #   matches "browser" only if it is at the end of the header value.
  61. #   \   A backslash before a special character causes the character to be treated as a literal.
  62. #   For example, "\$" matches the dollar sign, not the end of the header value.
  63. #   []  Brackets enclose ranges of characters:
  64. #   A range normally matches any single character in the range. For example, "[abc]"
  65. #   matches "a", "b", or "c".
  66. #   A range that starts with "^" (caret) matches any single character NOT in the range.
  67. #   For example, "[^xyz]" matches any character EXCEPT "x", "y", or "z".
  68. #   A range can specify an ASCII range of characters by using "-" (hyphen). For example,
  69. #   "[0-9]" matches any ASCII digit.
  70. #   +   A character or range followed by a plus sign matches one or more sequences of that
  71. #   character or range. For example, "[0-9]+" matches one or more ASCII digits.
  72. #   *   A character or range followed by an asterisk matches zero or more sequences of that
  73. #   character or range. For example, ".*" matches zero or more characters.
  74. #   ?   A character or range followed by a question mark matches either the character or range,
  75. #   or the null string. For example, "ab?c" matches either "abc" or "ab".
  76. #    |  Two or more expressions separated by vertical bars matches any of the expressions.
  77. #   For example, "abc|[P-Z]" matches either "abc" or any single character from "P" to "Z".
  78. #    () Parenthesis "capture" part of an expression so you can use the matched substring in the
  79. #   rule's return value. You can capture more than one substring. For example, "(a)bc([0-9])"
  80. #   captures two substrings: "a" and a single digit.
  81. #   
  82. # Syntax of return value:
  83. # The return value of a rule consists of literal characters and the following special characters:
  84. #    &  Returns the entire header value.
  85. #    \N Where N is a number from 1 to 9, returns the Nth captured substring.
  86. #    \\ Returns a literal backslash.
  87. #
  88. #############################################################################
  89.  
  90.  
  91. ## BrowserType - string representing the main browser families
  92. ## Value for Notes client is "Notes"
  93. Property BrowserType String Unknown
  94.     Rule     Microsoft  MSIE            # Microsoft Internet Explorer
  95.     Rule     Compatible ^Mozilla/.*\([Cc]ompatible; # Any other Mozilla compatible
  96.     Rule     Netscape   ^Mozilla/           # Assume Netscape (never includes "compatible")
  97.  
  98. ## Cookies - Boolean indicating whether browser supports cookies or not.
  99. ## Notes client: False
  100. Property Cookies Boolean False
  101.     Rule    True    MSIE [3-9]      # IE 3.x or higher
  102.     Rule    True    ^Mozilla/[2-9]  # All other Mozilla variants from 2.x upward
  103.     
  104. ## DHTML - Boolean indicating whether browser supports Dynamic HTML (HTML 4.0 + DOM) or not.
  105. ## Notes client: False
  106. Property DHTML Boolean False
  107.     Rule    True    MSIE [4-9]      # IE 4.x or higher
  108.     Rule    True    ^Mozilla/[4-9]  # All other Mozilla variants from 4.x upward
  109.  
  110. ## FileUpload - Boolean indicating whether browser supports file input type or not.
  111. ## Notes client: False
  112. Property FileUpload Boolean False
  113.     Rule     True   MSIE [4-9]      # IE 4.x or higher  
  114.     Rule     True   ^Mozilla/[3-9]  # All other Mozilla variants from 3.x upward
  115.  
  116. ## Frames - Boolean indicating whether browser supports framesets or not.
  117. ## Notes client: True
  118. Property Frames Boolean False
  119.     Rule     True   MSIE [3-9]      # IE 3.x or higher
  120.     Rule     True   ^Mozilla/[3-9]  # All other Mozilla variants from 3.x upward
  121.  
  122. ## Java - Boolean indicating whether browser supports Java applets or not.
  123. ## Notes client: True
  124. Property Java Boolean False
  125.     Rule     True   MSIE [3-9]      # IE 3.x or higher
  126.     Rule     True   ^Mozilla/[3-9]  # All other Mozilla variants from 3.x upward
  127.  
  128. ## JavaScript - Boolean indicating whether browser supports JavaScript or not.
  129. ## Notes client: True
  130. Property JavaScript Boolean False
  131.     Rule     True   MSIE [3-9]      # IE 3.x or higher
  132.     Rule     True   ^Mozilla/[3-9]  # All other Mozilla variants from 3.x upward
  133.  
  134. ## Iframe - Boolean indicating whether browser supports IFRAME tag or not.
  135. ## Notes client: False
  136. Property Iframe Boolean False
  137.     Rule     True   MSIE [4-9]      # Only IE supports IFRAME tag   
  138.  
  139. ## Platform - String that indicates the OS platform of the browser.
  140. ## Notes client: Unknown
  141. Property Platform String Unknown
  142.     Rule     Win95  Win95
  143.     Rule     Win95  Windows 95
  144.     Rule     Win98  Win98
  145.     Rule     Win98  Windows 98
  146.     Rule     WinNT  WinNT
  147.     Rule     WinNT  Windows NT
  148.     Rule     WinNT  Windows\-NT
  149.     Rule     MacOS  Macintosh
  150.     Rule     MacOS  Mac_PowerPC
  151.  
  152. ## Robot - Boolean to indicate that client is possibly a web search robot.
  153. ## Notes client: False
  154. Property Robot Boolean False    
  155.     Rule     True   [Cc]rawler      # Some generic crawler
  156.     Rule     True   [Ss]pider       # Some generic spider
  157.  
  158. ## SSL - Boolean indicating whether this browser supports SSL or not.
  159. ## Notes client: False
  160. Property SSL Boolean False
  161.     Rule     True   MSIE [3-9]      #  E 3.x or higher
  162.     Rule     True   ^Mozilla/[3-9]  # All other Mozilla variants from 3.x upward
  163.  
  164. ## Tables - Boolean indicating whether this browser supports HTML tables or not.
  165. ## Notes client: True
  166. Property Tables Boolean False
  167.     Rule     True   MSIE [3-9]      # IE 3.x or higher
  168.     Rule     True   ^Mozilla/[3-9]  # All other Mozilla variants from 3.x upward
  169.  
  170. ## VBScript - Boolean indicating whether browser supports VBScript or not.
  171. ## Notes client: False
  172. Property VBScript Boolean False
  173.     Rule     True   MSIE [3-9]      # IE 3.x or higher
  174.  
  175. ## Version - Number that indicates the browser version number
  176. ## Notes client: Returns the client build version
  177. Property Version Number -1
  178.     Rule     \1.\2  MSIE ([1-5])\.([0-9]+)      # Microsoft IE  
  179.     Rule     \1.\2  ^Mozilla/([0-9])\.([0-9]+)  # Netscape and all other Mozillas
  180.  
  181. # EOF
  182.