home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / basic / dframe45 / dframe.inc < prev    next >
Encoding:
Text File  |  1993-06-28  |  15.2 KB  |  264 lines

  1. DECLARE SUB Back.Space (Row%, Col%, Num%)
  2. DECLARE SUB BOX.IT (TROW%, LCOL%, BROW%, RCOL%, BOXTYPE%, BOXFG%, BOXBG%, FILLFG%, FILLBG%, FILLCHAR%, SHADOW%, TITLE$, HFG%, HBG%)
  3. DECLARE SUB Cipher (St$, Password$)
  4. DECLARE SUB CipherP (St$, Password$)
  5. DECLARE SUB ClearBuffer (Buff%)
  6. DECLARE SUB ClrKbd ()
  7. DECLARE SUB CLREOL (XPOS%, YPOS%, BGC%)
  8. DECLARE SUB CLRMOL (XPOS%, YPOS%, LENGTH%, BGC%)
  9. DECLARE SUB CLRSOL (XPOS%, YPOS%, BGC%)
  10. DECLARE SUB CLRSCRN (CLR%)
  11. DECLARE SUB DE.LAY (BYVAL Seconds AS INTEGER)
  12. DECLARE SUB DETECT.ANSI ()
  13. DECLARE SUB DIS.PLAY (MSG$, FGC%, BGC%, BLINK%, BELL%, XPOS%, YPOS%, NL%, CENTER%, Caps%, Codes%)
  14. DECLARE SUB ENTER ()
  15. DECLARE SUB ERRORS (ERRNUM%, ERRLINE%)
  16. DECLARE SUB EXIT.DOOR (YN$)
  17. DECLARE SUB INITIALIZE ()
  18. DECLARE SUB IN.PUT (RLEN%, WAITTIME&, IFG%, IBG%, AutoCR%, Text$, TFG%, TBG%, X%, Y%, SHOW%)
  19. DECLARE SUB KEYTIMER (KEYSTART&)
  20. DECLARE SUB LINES (SROW%, SCOL%, LENGTH%, DIR$, ENDS%, MID%, EFG%, EBG%, MFG%, MBG%)
  21. DECLARE SUB MAKE.BLT (HI.SCORE&)
  22. DECLARE SUB MAKE.BLT.CURRENT (HI.SCORE&)
  23. DECLARE SUB MORE ()
  24. DECLARE SUB MUSIC (TUNE$)
  25. DECLARE SUB OUT.PUT (LF%)
  26. DECLARE SUB SEND (FileName$, YN%, CLR%)
  27. DECLARE SUB SENDANSI (FileName$, YN%, Inter%)
  28. DECLARE SUB SHOW.BLT (YN$)
  29.  
  30. DECLARE FUNCTION CheckShare2% ()
  31. DECLARE FUNCTION DriveSpace& (Drive$)
  32. DECLARE FUNCTION EXISTS% (FileName AS STRING)
  33. DECLARE FUNCTION EXIST2% (FileName$)
  34. DECLARE FUNCTION NameCase2$ (St$)
  35. DECLARE FUNCTION Sec2Time$ (Seconds&)
  36. DECLARE FUNCTION Time2Sec& (TimeSt$)
  37.  
  38. DECLARE SUB BigPrint (St$, PixelCh$, BYVAL Row%, BYVAL Column%, BYVAL Attr%)
  39. DECLARE SUB CalcAttr (BYVAL Fore%, BYVAL Back%, Attr%)
  40. DECLARE SUB CalcDate (StartDate$, Days&, Direction%, NewDate$, ErrCode%)
  41. DECLARE SUB CDROM (FirstDrive$, Drives%)
  42. DECLARE SUB CheckDate (MonthNr%, DayNr%, YearNr%, ErrCode%)
  43. DECLARE SUB CheckShare (ShareActive%)
  44. DECLARE SUB DateA2R (MonthNr%, DayNr%, YearNr%, RelDate&)
  45. DECLARE SUB DateN2S (MonthNr%, Day%, Year%, DateSt$)
  46. DECLARE SUB DateR2A (MonthNr%, DayNr%, YearNr%, RelDate&)
  47. DECLARE SUB DateS2N (MonthNr%, Day%, Year%, DateSt$)
  48. DECLARE SUB DelFile (FileName$, ErrCode%)
  49. DECLARE SUB DrvType (Drive$, Removeable%, Remote%, ErrCode%)
  50. DECLARE SUB Elapsed (TimeStart$, TimeStop$, ElapsedT$)
  51. DECLARE SUB EMSBuffer (Bytes%)
  52. DECLARE SUB EMSClose (BYVAL ArrayHandle%)
  53. DECLARE SUB EMSGet (BYVAL ArrayHandle%, ElementNr&, Value AS ANY)
  54. DECLARE SUB EMSOpen (Elements&, ElementType%, ArrayHandle%, ErrCode%)
  55. DECLARE SUB EMSPut (BYVAL ArrayHandle%, ElementNr&, Value AS ANY)
  56. DECLARE SUB EMSRest (ArrayState$)
  57. DECLARE SUB EMSSave (ArrayState$)
  58. DECLARE SUB EnhKbd (BYVAL Enable%)
  59. DECLARE SUB EuropeDate (DateSt$, FormatSt$, Result$, ErrCode%)
  60. DECLARE SUB FindFirstF (FileName$, Attr%, ErrCode%)
  61. DECLARE SUB FindNextF (ErrCode%)
  62. DECLARE SUB FormatDate (DateSt$, FormatSt$, Result$, ErrCode%)
  63. DECLARE SUB Get4DosV (MajorV%, MinorV%)
  64. DECLARE SUB GetAttrF (Attr%)
  65. DECLARE SUB GetDateF (MonthNr%, Day%, Year%)
  66. DECLARE SUB GetDOSv (MajorVersion%, MinorVersion%)
  67. DECLARE SUB GetDrv (Drive$)
  68. DECLARE SUB GetDView (MajorV%, MinorV%)
  69. DECLARE SUB GetExecPath (HomePath$, PathLen%)
  70. DECLARE SUB GetKbd (INSERT%, Caps%, Num%, ScrollLock%)
  71. DECLARE SUB GetKbd1 (LShift%, RShift%, Control%, Alt%)
  72. DECLARE SUB GetLIMHandles (Handles%)
  73. DECLARE SUB GetLIMm (TotalPages%, FreePages%)
  74. DECLARE SUB GetLIMv (MajorVersionNum%, MinorVersionNum%)
  75. DECLARE SUB GetNameF (FileName$, namelen%)
  76. DECLARE SUB GetSizeFL (FileSize&)
  77. DECLARE SUB GetSub (SubDir$, SubDirLen%)
  78. DECLARE SUB GetSub1 (Drive$, SubDir$, SubDirLen%, ErrCode%)
  79. DECLARE SUB GetTimeF (Hour%, Minute%, Second%)
  80. DECLARE SUB GetTView (Installed%)
  81. DECLARE SUB GetTVScreen (DSeg%, DOfs%)
  82. DECLARE SUB KbdType (EnhancedKbd%)
  83. DECLARE SUB LClose (BYVAL EMSHandle%)
  84. DECLARE SUB LGet (BYVAL EMSHandle%, BYVAL DSeg%, BYVAL DOfs%, BYVAL WORDS%)
  85. DECLARE SUB LOpen (BYVAL WORDS%, EMSHandle%, ErrCode%)
  86. DECLARE SUB LPut (BYVAL EMSHandle%, BYVAL DSeg%, BYVAL DOfs%, BYVAL WORDS%)
  87. DECLARE SUB LRotate (St$)
  88. DECLARE SUB Namecase (St$)
  89. DECLARE SUB Processor (CPU%)
  90. DECLARE SUB Retries (BYVAL Tries%, BYVAL RetryPauseLen%)
  91. DECLARE SUB Reverse (St$)
  92. DECLARE SUB RInstr (MainSt$, SubSt$, Posn%)
  93. DECLARE SUB SetError (BYVAL ErrorLevel%)
  94. DECLARE SUB SetKbd (BYVAL INSERT%, BYVAL Caps%, BYVAL Num%, BYVAL ScrollLock%)
  95. DECLARE SUB SubExist (SubDir$, IsThere%)
  96. DECLARE SUB TInstr (St$, BYVAL ChrType%, Place%)
  97. DECLARE SUB UnCalcAttr (FG%, BG%, BYVAL Attr%)
  98. DECLARE SUB UpdTVScreen (DSeg%, DOfs%)
  99. DECLARE SUB WinCheck (MajorV%, MinorV%)
  100.  
  101. 'NOTE: The following variables are not universally available.
  102. '      Check DFRAME.DOC for variables available to each BBS system's file.
  103.  
  104. COMMON SHARED Active.Menu%              '0=Main,1=Msg,2=File,3=Sysop (WC 3.0+)
  105. COMMON SHARED Alias$                    'Caller's alias/handle
  106. COMMON SHARED AllowedBytes&             'Allowed BYTES from the PCB PWRD file.
  107. COMMON SHARED AlreadyConnected$         '"TRUE" or "FALSE"
  108. COMMON SHARED AnsiOn$                   '"TRUE" or "FALSE"
  109. COMMON SHARED AnsiSupport$              'Caller supports ANSI but in NG mode
  110. COMMON SHARED Auto.Recycle%             '0 = Return control to programmer on
  111.                                         'carrier loss. 1 = Automatic recyle
  112.                                         'and return to BBS (Default).
  113. COMMON SHARED Banked.Time%              'WildCat! v3.0+
  114. COMMON SHARED BaudConn$                 'Connect rate of caller or "LOCAL"
  115. COMMON SHARED BaudOpen$                 'Port opening BPS
  116. COMMON SHARED BaudRate$                 'Baud and parity for DORINFO
  117. COMMON SHARED BBSColor%                 'BBS default color code (1-15)
  118. COMMON SHARED BBSDir$                   'Spitfire's home directory
  119. COMMON SHARED BBSSys$                   'Name of the BBS
  120. COMMON SHARED BBSName$                  'DORINFO
  121. COMMON SHARED BirthDate$                'Caller's date of birth
  122. COMMON SHARED BltPath$                  'Path of the high score bulletin.
  123. COMMON SHARED CallAlarm%                'Caller alarm status.     -1=ON, 0=OFF
  124. COMMON SHARED CallersLoc$               'Location of CALLERSx log
  125. COMMON SHARED ChatStatus$               'Chat mode status. "U" or "A"
  126. COMMON SHARED Check4RIP%                '0=No check for RIPscrip, non-zero=yes
  127. COMMON SHARED City$                     'Caller's city and state
  128. COMMON SHARED CNAMESLoc$                'Location of CNAMES
  129. COMMON SHARED Command.Line$             'Y or N, WildCat! v3.0+
  130. COMMON SHARED Comport%                  'COM port number
  131. COMMON SHARED ConfReg$                  'Conference registration
  132. COMMON SHARED Console$                  '"LOCAL" or "REMOTE"
  133. COMMON SHARED Daily.Bytes.Alwd&         'Daily download max. K limit
  134. COMMON SHARED DailyDnldBytes&           'Bytes downloaded so far today.
  135. COMMON SHARED DataBits$                 '7 OR 8
  136. COMMON SHARED DeleteFlag%               '1 = delete this record, 0 = keep
  137. COMMON SHARED Display%                  'Local display status.    -1=ON, 0=OFF
  138. COMMON SHARED DLPerDay&                 'Number of downloads allowed per day
  139. COMMON SHARED DLToday&                  'Number of downloads made today
  140. COMMON SHARED Door.DL&                  'WildCat 3.0+ # files DL'ed in door
  141. COMMON SHARED Door.KB&                  'WildCat 3.0+ Total K DL'ed in door
  142. COMMON SHARED Door.Logoff$              'WildCat 3.0+ Y or N if user logged
  143.                                         'off from within the door
  144. COMMON SHARED DoorNumber$               '
  145. COMMON SHARED Doors.Opened%             'Number of Doors he has opened
  146. COMMON SHARED DorInfo13th$              '13th line for RBBS DORINFO
  147. COMMON SHARED Downloads&                'Number of downloads made
  148. COMMON SHARED ECC%                      'Error corrected connect.  1=YES, 0=NO
  149. COMMON SHARED EnterDoor$                'Time caller entered the door
  150. COMMON SHARED Event$                    'Event time (hh:mm)
  151. COMMON SHARED ExeName$                  'Name of .EXE (Programmer supplied)
  152. COMMON SHARED ExitFrom$                 'Conference exited BBS from
  153. COMMON SHARED Expert$                   'Expert mode - "Y" or "N"
  154. COMMON SHARED Expire$                   'Caller's expiration date
  155. COMMON SHARED ExpiredLevel&             'Expired Security level
  156. COMMON SHARED ExtraTime&                'Number of seconds gained since logon
  157. COMMON SHARED First$                    'Caller's first name
  158. COMMON SHARED Fossil%                   '0 = No Fossil driver, 1 = yes
  159. COMMON SHARED FrontEnd$                 '"TRUE" or "FALSE" if booted from a
  160.                                         'front end program.
  161. COMMON SHARED Graphics%                 'Graphics mode status.    -1=ON, 0=OFF
  162. COMMON SHARED Hi.Ascii%                 '1 = Allow IN.PUT to accept ASCII
  163.                                         'values 128 - 255. Default = 0
  164. COMMON SHARED HPhone$                   'Caller's home phone number
  165. COMMON SHARED IRQ%                      'For use with non-standard IRQ's
  166.                                         '(other than IRQ3 or IRQ4)
  167. COMMON SHARED Language$                 'PCBoard language extension
  168. COMMON SHARED LastConf%                 'Conference number last in.
  169. COMMON SHARED LastFArea$                'Last file area
  170. COMMON SHARED LastMConf$                'Last message conference
  171. COMMON SHARED LastMsg$                  'Last message read
  172. COMMON SHARED LastOn$                   'Date caller last logged on (MM-DD-YY)
  173. COMMON SHARED LastOnDate$               'Date and time of last call
  174. COMMON SHARED LastScan$                 'Date of last directory/new files scan
  175. COMMON SHARED LastTimeOn$               'Last time caller was on
  176. COMMON SHARED Level&                    'Caller's security level
  177. COMMON SHARED LocalUsr%                 '-1 = LOCAL mode, 0 = Online
  178. COMMON SHARED LogonHrs$                 'Time caller logged on in HH:MM format
  179. COMMON SHARED LogonMins%                'Time caller logged on in minutes
  180. COMMON SHARED LogonSecs&                'Number of seconds since midnight
  181.                                         'when caller logged on to the BBS.
  182. COMMON SHARED LogonTimeDate$            'Date and time of this call
  183. COMMON SHARED MaxBaud$                  'Maximum baud of the system
  184. COMMON SHARED Max.Files%                'Maximum daily files available
  185. COMMON SHARED MinsCredit%               'Time credits in minutes
  186. COMMON SHARED MNP$                      '"MNP/ARQ Connection" or
  187.                                         '"Normal Connection"
  188. COMMON SHARED Mode%                     '0 = Non-color, -1 = color is on
  189. COMMON SHARED Msgs.Left%                'Total messages left
  190. COMMON SHARED Msgs.Read%                'Total messages read
  191. COMMON SHARED Name$                     'Caller's full name
  192. COMMON SHARED Network%                  '1 = BBS is networked, 0 = no network
  193. COMMON SHARED Network$                  'DORINFO network type
  194. COMMON SHARED NoCarrier%                '0 = Carrier present, 1 = No carrier
  195. COMMON SHARED NodeNum%                  'Node number
  196. COMMON SHARED NoDTELock$                '"TRUE" or "FALSE" if configured for
  197.                                         'software data flow control.
  198. COMMON SHARED No.Status%                '0 = Show Status lines, 1 = Don't
  199. COMMON SHARED Owner$                    'DoorFrame registered owners name.
  200. COMMON SHARED PageBell%                 'Page bell status.        -1=ON, 0=OFF
  201. COMMON SHARED PageLen%                  'Caller's page length
  202. COMMON SHARED Param$                    'Configuration filename
  203. COMMON SHARED Parity%                   'Parity (word length?) (7 or 8)
  204. COMMON SHARED Password$                 'Password of caller
  205. COMMON SHARED PathGen$                  'Path to the GEN directory
  206.                                         'Path to Allfiles.dat DIR for WC 3.0+
  207. COMMON SHARED PathMain$                 'Path to the MAIN directory
  208.                                         'Path to BBS dir. for WC 3.0+
  209. COMMON SHARED PCBDat$                   'Location of PCBOARD.DAT
  210. COMMON SHARED PCB.Version%              'PCBoard version number (i.e. 1450)
  211. COMMON SHARED Printer%                  'Printer status.          -1=ON, 0=OFF
  212. COMMON SHARED ProgName$                 'Name of DOOR (Programmer supplied)
  213. COMMON SHARED Protocol$                 'Caller's default protocol (Z, X, etc)
  214. COMMON SHARED Response$                 'Returned after a CALL to IN.PUT
  215. COMMON SHARED Rip%                      '0=no RIPscrip detected, 1=yes
  216. COMMON SHARED Rip$                      'Contains RIPscrip ver. # (if active)
  217. COMMON SHARED RTS$                      ' Y = RTS/CTS, N = No RTS/CTS (TriBBS)
  218. COMMON SHARED Sec.Level.Name$           'WildCat! v3.0+
  219. COMMON SHARED Seconds&                  'Number of seconds since midnight
  220.                                         'when caller entered the door.
  221. COMMON SHARED Serial$
  222. COMMON SHARED SysLoc$
  223. COMMON SHARED Sysop%                    '1 = SYSOP is using DOOR, 0 otherwise
  224. COMMON SHARED SysOpFirst$               'Sysop's first name
  225. COMMON SHARED SysOpFlag$                '" ", "N"=Sysop Next, "X"=Exit to DOS
  226. COMMON SHARED SysopKeys%                'Sysop keys 0=arrows, 1=alternate set
  227. COMMON SHARED SysOpLast$                'Sysop's last name
  228. COMMON SHARED SysOpName$                'Sysop's first and last names
  229. COMMON SHARED SysOpNext$                '"TRUE" or "FALSE"
  230. COMMON SHARED System.File%              '1 = PCBOARD.SYS     2 = USERS.SYS
  231.                                         '3 = DOOR.SYS        4 = CALLINFO.BBS
  232.                                         '5 = Not Used        6 = DORINFOx.DEF
  233.                                         '7 = SFDOORS.DAT     8 = USERINFO.DAT
  234.                                         '9 = GTUSER.BBS     10 = TRIBBS.SYS
  235. COMMON SHARED TimeAdjust%               'Use to adjust the callers time
  236.                                         'remaining online (in minutes).
  237. COMMON SHARED TimeAlwd%                 'Minutes caller is allowed
  238. COMMON SHARED TimeLastCall$             'Time of last call (hh:mm)
  239. COMMON SHARED TimeLeft%                 'Time caller has left in minutes
  240. COMMON SHARED TimeNow%                  'Current time in minutes
  241. COMMON SHARED TimeOff$                  'Time caller exited the door
  242. COMMON SHARED TimeOut%                  'Keyboard timeout in secs. default=300
  243. COMMON SHARED TimesOn%                  'Number of times on system
  244. COMMON SHARED TimeUsed%                 'Time used so far today in minutes
  245. COMMON SHARED Total.Bytes.Alwd&         'Max. bytes allowed
  246. COMMON SHARED Total.Bytes.Today&        'Daily download K total
  247. COMMON SHARED Total.KB.Dl&              'Total K bytes downloaded
  248. COMMON SHARED Total.KB.Ul&              'Total K bytes uploaded
  249. COMMON SHARED TotDnldBytes&             'Total number of BYTES downloaded
  250. COMMON SHARED TotUpldBytes&             'Total number of BYTES uploaded
  251. COMMON SHARED Uploads&                  'Number of uploads made
  252. COMMON SHARED UserComment$              'User maintained comment
  253. COMMON SHARED UserNum%                  'Record number of caller
  254. COMMON SHARED UserNetLoc$               'Location of PCBoard USERNET.DAT
  255. COMMON SHARED UsersLoc$                 'Location of PCBOARD USERS file
  256. COMMON SHARED Version$                  'DOOR version # (Programmer supplied)
  257. COMMON SHARED WPhone$                   'Caller's work phone number
  258.  
  259. CONST BLACK = 0, BLUE = 1, GREEN = 2, CYAN = 3, RED = 4, MAGENTA = 5
  260. CONST YELLOW = 6, WHITE = 7, GRAY = 8, LBLUE = 9, LGREEN = 10, LCYAN = 11
  261. CONST LRED = 12, LMAGENTA = 13, LYELLOW = 14, LWHITE = 15
  262.  
  263.  
  264.