home *** CD-ROM | disk | FTP | other *** search
- {iNSTiNCT BBS File Structure}
-
- const
- Version ='3.0ß - [Hangin'' Gardens]';
- VersionNo = $0300; { Version is HighByte,Lowbyte ie:
- (Hi(VersionNo), Lo(VersionNo))
- Use < = > operators to determine }
-
- type
- FidoAddr = record {Used for Fido style addresses}
- Zone : word;
- Net : word;
- Node : word;
- Point: word;
- end;
-
- NetInfoRec = record { NETINFO.DAT }
- NetName : string[20];
- DestAddr: FidoAddr;
- OrigAddr: FidoAddr;
- OrigLine: string[40];
- end;
-
- ConferRec = record { CONFER.DAT }
- Name: string[20]; { Name of conference }
- Active : boolean; { Is the conference active? }
- AcsLevel: byte; { Acslevel required to join conf }
- AcsFlag : byte; { Acsflags required to join conf }
-
- FilePath: string[63]; { Path to files in conference }
- AllowUL : boolean; { Is upload allowed in conf? }
- AllowDL : boolean; { Is download allowed in conf? }
- CDROM : boolean; { Are the files located on CDROM? }
- FileScan : boolean; { Scan conf for newfiles? }
- MsgScan : boolean; { Scan conf for new messages? }
- EchoMail : boolean; { Is conf Echomail? (add origin) }
- NetNumber: byte; { Number of net to use (if echo) }
- HasAreas:boolean; { Does the conference has sub-areas? }
- Reserved: array [1..19] of byte; { Reserved for future use }
- end;
-
-
- AreaRec = record { \ITC\AREA\AREA.# (#=Confno) }
- Name: string[20]; { Name of area }
- Active : boolean; { Is the area active? }
- AcsLevel: byte; { Acslevel required to select area }
- AcsFlag : byte; { Acsflags required to select area }
-
- FilePath: string[63]; { Path to files in conference }
- AllowUL : boolean; { Is upload allowed in area? }
- AllowDL : boolean; { Is download allowed in area? }
- CDROM : boolean; { Are the files located on CDROM? }
- FileScan : boolean; { Scan area for newfiles? }
-
- Reserved: array [1..22] of byte; { Reserved for future use }
- end;
-
-
- ProfileRec = record { PROFILE.DAT }
- Comment: string[40]; { Default user comment }
- TimeDay : word; { Time per day (minutes) }
- AcsLevel : byte; { Security level }
- AcsFlag : byte; { Flags (each bit corresponds to a flag) }
- FilePoints: word; { Amount of filepoints to assign }
- PointRatio: byte; { Filepoint ratio }
-
- NewUser : boolean; { Should new users have acs to board? }
- Protected : boolean; { If true, userpack will not delete user }
- Deleted : boolean; { No acs to board, physically deleted by userpack }
- Hidden : boolean; { Hidden? not written as lastcaller etc }
- Disabled : boolean; { Disabled ratio? }
-
- SubEnabled: boolean; { Enable subscribtion? }
- SubDays : word; { Days to subscribtion }
- SubReset: byte; { Userprofile to assign user when subscribtion expired }
- Theme : byte;
- Reserved: array [1..19] of byte; { Reserved for future use }
- end;
-
- ConfigRec = record { CONFIG.#, #= Node Number }
- Port : byte; { This node's comport }
- PortSpeed : longint; { This node's port speed }
- InitString: string[40]; { This node's modem initstring }
- TooSlowBaud: word; { Min baudrate without slow pwd }
- Reserved:array[1..200] of byte; { Reserved space for events etc }
- end;
-
- UserRec = record { USER.DAT }
- Name : string[40]; { Users name/handle }
- Location : string[40]; { Users location }
- Comment : string[40]; { Users Comment }
- PassWord : string[20]; { Users password }
- BirthDate: string[8]; { Users birthdate }
- Phone : string[20]; { Users phonenumber }
-
- FirstDate : string[8]; { First date user called }
- MsgMailed : word; { Messages written }
- MsgReceived: word; { Messages received }
- Calls : word; { Number of calls }
- Lines : byte; { Display length in lines }
-
- LastTime: string[8]; { Last time user called }
- LastDate: string[8]; { Last date user called }
- LastConf: word; { Current conference }
-
- TimeDay : integer; { Time per day (minutes) }
- TimeLeft: integer; { Time left today (minutes) }
- TimeBank: word; { Minutes in timebank }
-
- AcsLevel : byte; { Security level }
- AcsFlag : byte; { Acsflags (each bit corresponds a flag }
- PointRatio: byte; { Filepoint ratio }
- FilePoints: longint; { Amount of filepoints (UlKb*PointRatio) }
-
- ULFiles: word; { Number of uploaded files }
- DLFiles: word; { Number of downloaded files }
- ULkB : longInt; { Amount uploaded }
- DLkB : longInt; { Amount downloaded }
-
- NewUser : boolean; { New user? (has not access to board) }
- Protected: boolean; { Protected user? (against delete) }
- Deleted : boolean; { Deleted? will be removed }
- Xpert : boolean; { Expert Mode? (no main menu displayed) }
- Hidden : boolean; { Hidden? not displayed on lastcallers etc }
- Disabled : boolean; { Unlimited download? }
-
- SubEnabled : boolean; { Subscribe user? }
- ResetDate : string[8]; { Date when set }
- ResetProfile: byte; { Profile assigned when subscribed }
- Protocol : char; { Preferred protocol }
- Theme : byte; { Users Theme }
- AnimOn : boolean; { Display animations to user }
- Reserved: array [1..47] of byte; { Reserved for future use }
- end;
-
-
- BBSRec = Record { BBSINFO.DAT }
- FirstUpdated: string[8]; { First time BBS started (date) }
- LastUpdated : string[8]; { Last time BBS run (date) }
-
- TodNewUsers: word; { New users today }
- TodCalls : word; { Calls today }
- TodMsg : word; { New messages today }
- TodULFiles : word; { Uploaded files today }
- TodDLFiles : word; { Downloaded files today }
- TodULkB : longint; { Uploaded kb today }
- TodDLkB : longint; { Downloaded kb today }
-
- TotNewUsers: longint; { New users totally (users applied-totally no of deleted users }
- TotCalls : longint; { Total no of calls }
- TotMsg : longint; { Total messages written }
- TotULFiles : longint; { Total no of uploaded files }
- TotDLFiles : longint; { Total no of downloaded files }
- TotULkB : longint; { Total amount of uploaded kb }
- TotDLkB : longint; { Total amount of downloaded kb }
- Version : word; { iTC version (see VersionNo above) }
- end;
-
- CallRec = record { CALLER.DAT }
- Name : string[40]; { Name of caller }
- Location: string[40]; { Location of caller }
-
- Node : byte; { Node user called }
- BaudRate: longint; { Baudrate he was connected on }
- Date : string[8]; { Date he called }
- LogOn : string[5]; { Time of logon }
- LogOff : string[5]; { Time of logoff }
- OnBoard : word; { Minutes spent on board }
-
- Upload : boolean; { Did user upload? }
- Download: boolean; { Did user download? }
- Write : boolean; { Did user write mail }
- Read : boolean; { Did user read mail? }
- Yell : boolean; { Did user yell? }
- Chat : boolean; { Did user chat with sysop? }
-
- ULkb : longint; { Amount uploaded during call }
- DLkb : longint; { Amount downloaded during call }
- Reserved: array [1..12] of byte; { Reserved for future use }
- end;
-
- InfoRec = record { NODEINFO.#, # = Node Number }
- Node : byte; { Nodenumber }
- BaudRate: longint; { Baudrate, 0 if local or no user }
- Status : string[40]; { Status; browsing, uploading etc }
- Name : string[40]; { Name of user on node, if any }
- Location: string[40]; { Location of user on }
- ActionCode:byte; { Board status, see table below }
- end;
- { Board status:
- 0 = Board is down
- 1 = Waiting for call
- 2 = In Matrix
- 3 = Browsing
- 4 = Writing
- 5 = Reading Mail
- 6 = Uploading
- 7 = Downloading
- 8 = In Chat
- 9 = Outdoor
- 10 = Applying }
-
-
- NewPointRec = record { NEWPOINT.DAT }
- Name : string[40]; { Name of user to credit }
- Points: longint; { Amount of filepoints to give }
- end; { may be negative }
-
- FileTagRec = record { FILETAGS.#, # = Node Number }
- FileName: string[12]; { Name of file }
- FileDate: string[8]; { Date of file }
- FileSize: longint; { Size of file }
- FileConf: byte; { Conf# file is in }
- FreeFile: boolean; { Is file free? }
- Uploader: string[40]; { Uploader of file }
- FileArea: word; { Filearea file is in }
- CDROM : boolean; { Is file located on CDROM? }
- Reserved:array[1..10] of byte; { Reserved for future use }
- end;
-
- ProtocolRec=record { Part of MainCfgRec }
- Invoke : char; { Char to select protocol, Z, H etc }
- Description: string[30]; { Short desc, ex "Internal Zmodem" }
- ULBat : string[8]; { \ITC\[ULBat].BAT to run UL protocol }
- DLBat : string[8]; { \ITC\[ULBat].BAT to run DL protocol }
- end;
-
- MenuRec=record { \ITC\THEMES\xx\MENU\*.MNU }
- Enabled : boolean; { Is item enabled? }
- Action : byte; { Action, see table in INSTINCT.NFO }
- Command : string[20]; { Command to run item }
- Param : string[60]; { Parameters to command (INSTINCT.NFO) }
- MinLevel: byte; { Min acs req. to run command }
- MaxLevel: byte; { Max acs allowed to run command }
- AcsFlag: byte; { Flags req. to run command }
- AutoExec: boolean; { Should item autoexecute? }
- BarEnabled: boolean; { Is item lightbar controlled? }
- X,Y : byte; { Coordinates of lightbar }
- Selected : string[100]; { Look of active lightbar }
- NotSelected: string[100]; { Look of inactive lightbar }
- end;
-
-
- ThemeRec=record { Part of MainCfgRec }
- Name :string[20]; { Name of theme }
- Color1, Color2, Color3 :byte; { The three default colors }
- Selectable :boolean; { Should users be able to select it? }
- MaxLevel :byte; { Max acs allowed to select theme }
- AcsLevel :byte; { Min acslevel to select theme }
- AcsFlag :byte; { Flags required to select theme }
- end;
-
-
- MainCfgRec=record { MAINCFG.DAT }
- BbsName : string[40]; { Name of board }
- SysopName: string[40]; { Name of System Operator }
- SysopPwd : string[20]; { Pwd must be entered by cosysops }
- NewUserPwd: string[20]; { NUP (blank=no nup in use) }
- TooSlowPwd: string[20]; { Pwd override slow baud rate }
- SysopLevel: byte; { Min acslevel to be cosysop }
-
- Theme : array[1..10] of ThemeRec; { Theme data, see ThemeRec }
- Protocol:array[1..10] of ProtocolRec; { Protcol data, see ProtocolRec }
- DefaultTheme:byte; { Theme used at login and assigned to
- newusers }
- ExternalChat : string[63]; { Drive:\Path\FileName.Ext to chatter }
- MaxCDkb : longint; { Max amount allowed to leech from CD }
- AreaMode : char; { Area select mode F/A }
- ULSpace : longint; { Min free space to allow UL }
- MainPromptEnters: byte; { Max enter allowed at prompt }
- MultipleLogin : boolean; { Allow multiple logins? }
- AnimationDelay : byte; { Default delay in ms for animations }
- Reserved :array [1..500] of byte; { Reserved for future use }
- end;
-
-
- const
- NoStrs=250; { Highest number of editable string }
-
-
-
-
-
-