home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 September / PCO_0998.ISO / filesbbs / dos / sbbs230b.exe / EXEC.LZH / USERDEFS.INC < prev    next >
Encoding:
Text File  |  1995-11-15  |  6.5 KB  |  163 lines

  1. # USERDEFS.INC
  2.  
  3. # Copyright 1995 Digital Dynamics, All rights reserved.
  4.  
  5. # Baja include file defining various Synchronet USER related constants
  6.  
  7. # You man include use this file in your source (!include userdefs.inc),
  8. # but you may not distribute modified versions of this file. It is not
  9. # suggested that you modify this file AT ALL, but rather create your own
  10. # include file(s) for your own constant definitions.
  11.  
  12. !define LEN_ALIAS    25    # User alias
  13. !define LEN_NAME        25      # User name
  14. !define LEN_HANDLE       8      # User chat handle
  15. !define LEN_NOTE        30      # User note
  16. !define LEN_COMP        30      # User computer description
  17. !define LEN_COMMENT     60      # User comment
  18. !define LEN_NETMAIL     60      # NetMail forwarding address
  19. !define LEN_PASS         8      # User password
  20. !define LEN_PHONE       12      # User phone number
  21. !define LEN_BIRTH        8      # Birthday in MM/DD/YY format
  22. !define LEN_ADDRESS     30      # User address
  23. !define LEN_LOCATION    30      # Location (City, State
  24. !define LEN_ZIPCODE     10      # Zip/Postal code
  25. !define LEN_MODEM        8      # User modem type description
  26.  
  27. #**************************************************************************
  28. # This is a list of offsets into the USER.DAT file for different variables
  29. # that are stored (for each user
  30. #**************************************************************************
  31. !define U_ALIAS     0            # Offset to alias
  32. !define U_NAME        U_ALIAS+LEN_ALIAS    # Offset to name
  33. !define U_HANDLE    U_NAME+LEN_NAME
  34. !define U_NOTE        U_HANDLE+LEN_HANDLE+2
  35. !define U_COMP        U_NOTE+LEN_NOTE
  36. !define U_COMMENT    U_COMP+LEN_COMP+2
  37.  
  38. !define U_NETMAIL    U_COMMENT+LEN_COMMENT+2
  39.  
  40. !define U_ADDRESS    U_NETMAIL+LEN_NETMAIL+2
  41. !define U_LOCATION    U_ADDRESS+LEN_ADDRESS
  42. !define U_ZIPCODE    U_LOCATION+LEN_LOCATION
  43.  
  44. !define U_PASS        U_ZIPCODE+LEN_ZIPCODE+2
  45. !define U_PHONE     U_PASS+8        # Offset to phone-number
  46. !define U_BIRTH     U_PHONE+12        # Offset to users birthday
  47. !define U_MODEM     U_BIRTH+8
  48. !define U_LASTON    U_MODEM+8
  49. !define U_FIRSTON    U_LASTON+8
  50. !define U_EXPIRE    U_FIRSTON+8
  51. !define U_PWMOD     U_EXPIRE+8
  52.  
  53. !define U_LOGONS    U_PWMOD+8+2
  54. !define U_LTODAY    U_LOGONS+5
  55. !define U_TIMEON    U_LTODAY+5
  56. !define U_TEXTRA    U_TIMEON+5
  57. !define U_TTODAY    U_TEXTRA+5
  58. !define U_TLAST     U_TTODAY+5
  59. !define U_POSTS     U_TLAST+5
  60. !define U_EMAILS    U_POSTS+5
  61. !define U_FBACKS    U_EMAILS+5
  62. !define U_ETODAY    U_FBACKS+5
  63. !define U_PTODAY    U_ETODAY+5
  64.  
  65. !define U_ULB        U_PTODAY+5+2
  66. !define U_ULS        U_ULB+10
  67. !define U_DLB        U_ULS+5
  68. !define U_DLS        U_DLB+10
  69. !define U_CDT        U_DLS+5
  70. !define U_MIN        U_CDT+10
  71.  
  72. !define U_LEVEL     U_MIN+10+2        # Offset to Security Level
  73. !define U_FLAGS1    U_LEVEL+2        # Offset to Flags
  74. !define U_TL        U_FLAGS1+8        # Offset to unused field
  75. !define U_FLAGS2    U_TL+2
  76. !define U_EXEMPT    U_FLAGS2+8
  77. !define U_REST        U_EXEMPT+8
  78. !define U_ROWS        U_REST+8+2    # Number of Rows on user's monitor
  79. !define U_SEX        U_ROWS+2    # Sex, Del, ANSI, color etc.
  80. !define U_MISC        U_SEX+1     # Miscellaneous flags in 8byte hex
  81. !define U_OLDXEDIT    U_MISC+8    # External editor  Version 1 method
  82. !define U_LEECH     U_OLDXEDIT+2    # two hex digits - leech attempt count
  83. !define U_CURSUB    U_LEECH+2    # Current sub  internal code
  84. !define U_CURDIR    U_CURSUB+8    # Current dir  internal code
  85. !define U_CMDSET    U_CURDIR+8    # unused
  86. !define U_MAIN_CMD    U_CMDSET+2+2    # unused
  87. !define U_XFER_CMD    U_MAIN_CMD+40    # unused
  88. !define U_SCAN_CMD    U_XFER_CMD+40+2 # unused
  89. !define U_MAIL_CMD    U_SCAN_CMD+40    # unused
  90. !define U_FREECDT    U_MAIL_CMD+40+2
  91. !define U_FLAGS3    U_FREECDT+10    # Flag set #3
  92. !define U_FLAGS4    U_FLAGS3+8    # Flag set #4
  93. !define U_XEDIT     U_FLAGS4+8    # External editor  code
  94. !define U_SHELL     U_XEDIT+8    # Command shell  code
  95. !define U_QWK        U_SHELL+8    # QWK settings
  96. !define U_TMPEXT    U_QWK+8     # QWK extension
  97. !define U_CHAT        U_TMPEXT+3    # Chat settings
  98. !define U_NS_TIME    U_CHAT+8    # New-file scan date/time
  99. !define U_PROT        U_NS_TIME+8    # Default transfer protocol
  100. !define U_UNUSED    U_PROT+1
  101. !define U_LEN        U_UNUSED+28+2
  102.  
  103.  
  104. !define UM_DELETED    .0    # Bit values for user.misc
  105. !define UM_ANSI     .1    # Supports ANSI terminal emulation
  106. !define UM_COLOR    .2    # Send color codes
  107. !define UM_RIP        .3    # Supports RIP terminal emulation
  108. !define UM_UPAUSE    .4    # Pause on every screen full
  109. !define UM_SPIN     .5    # Spinning cursor - Same as K_SPIN
  110. !define UM_INACTIVE    .6    # Inactive user slot
  111. !define UM_EXPERT    .7    # Expert menu mode
  112. !define UM_ANFSCAN    .8    # Auto New file scan
  113. !define UM_CLRSCRN    .9    # Clear screen before each message
  114. !define UM_QUIET    .10    # Quiet mode upon logon
  115. !define UM_BATCHFLAG    .11    # File list allow batch dl flags
  116. !define UM_NETMAIL    .12    # Forward e-mail to fidonet addr
  117. !define UM_CURSUB    .13    # Remember current sub-board/dir
  118. !define UM_ASK_NSCAN    .14    # Ask for newscanning upon logon
  119. !define UM_NO_EXASCII    .15    # Don't send extended ASCII
  120. !define UM_ASK_SSCAN    .16    # Ask for messages to you at logon
  121. !define UM_AUTOTERM    .17    # Autodetect terminal type
  122. !define UM_COLDKEYS    .18    # No hot-keys
  123. !define UM_EXTDESC    .19    # Extended file descriptions
  124. !define UM_AUTOHANG    .20    # Auto-hang-up after transfer
  125. !define UM_WIP        .21    # Supports WIP terminal emulation
  126.                                 # Bits in user.qwk
  127. !define QWK_FILES    .0    # Include new files list
  128. !define QWK_EMAIL    .1    # Include unread e-mail
  129. !define QWK_ALLMAIL    .2    # Include ALL e-mail
  130. !define QWK_DELMAIL    .3    # Delete e-mail after download
  131. !define QWK_BYSELF    .4    # Include messages from self
  132. !define QWK_UNUSED    .5    # Currently unused
  133. !define QWK_EXPCTLA    .6    # Expand ctrl-a codes to ascii
  134. !define QWK_RETCTLA    .7    # Retain ctrl-a codes
  135. !define QWK_ATTACH    .8    # Include file attachments
  136. !define QWK_NOINDEX    .9    # Do not create index files in QWK
  137. !define QWK_TZ        .10    # Include "@TZ" time zone in msgs
  138. !define QWK_VIA     .11    # Include "@VIA" seen-bys in msgs
  139. !define QWK_NOCTRL    .12    # No extraneous control files
  140.                                 # Bits in user.chat
  141. !define CHAT_ECHO    .0    # Multinode chat echo
  142. !define CHAT_ACTION    .1    # Chat actions
  143. !define CHAT_NOPAGE    .2    # Can't be paged
  144. !define CHAT_NOACT    .3    # No activity alerts
  145. !define CHAT_SPLITP    .4    # Split screen private chat
  146.  
  147.                                 # For use with SET_USER_STRING function
  148. !define USER_STRING_ALIAS    0
  149. !define USER_STRING_REALNAME    1
  150. !define USER_STRING_HANDLE    2
  151. !define USER_STRING_COMPUTER    3
  152. !define USER_STRING_NOTE    4
  153. !define USER_STRING_ADDRESS    5
  154. !define USER_STRING_LOCATION    6
  155. !define USER_STRING_ZIPCODE    7
  156. !define USER_STRING_PASSWORD    8
  157. !define USER_STRING_BIRTHDAY    9
  158. !define USER_STRING_PHONE    10
  159. !define USER_STRING_MODEM    11
  160. !define USER_STRING_COMMENT    12
  161.  
  162. # End of USERDEFS.INC
  163.