home *** CD-ROM | disk | FTP | other *** search
-
- (*
- * DATA.DOC - DOOR support data provided by ProKIT
- *
- * (C) 1988 Samuel H. Smith (rev. 8-aug-88)
- *
-
- (*********************************************************************8
- *
- * This describes the layout of the PCBoard 14.0 database records and
- * the various free variables that are provided by the ProKIT library.
- *
- * See DATA12.DOC for declarations used under PCB 12.1 (prokit 2.7)
- *
- *)
-
- type
- {layout of the PCBOARD.SYS file while doors are open}
- pcb_sys_rec = record
- {1 }display: char2; {display on console? -1 or 0}
- {3 }printer: char2; {print log? -1 or 0}
- {5 }page_bell: char2; {bother sysop? -1 or 0}
- {7 }alarm: char2; {caller alarm sound? -1 or 0}
- {9 }sysop_next: char; {force sysop on next? 'N', 'X' or ' '}
-
- {10 }errcheck: char2; {error check/correcting modem? -1 or 0}
- {12 }graphics: char; {ansi graphics mode? 'Y','N','7'}
- {13 }nodechat: char; {node chat status 'U' or 'A'}
- {14 }openbps: char5; {BPS rate to open modem port at}
- {19 }connectbps: char5; {BPS connect rate or 'Local'}
- {24 }usernum: integer; {record number in user file}
- {26 }firstname: char15; {caller's first name}
- {41 }password: char12; {caller's password}
- {53 }time_on: integer; {when the user logged on in MINUTES}
- {55 }prev_used: integer; {minutes used in prev calls today, <0}
- {57 }time_logged: char5; {hh:mm time the user logged on}
- {62 }time_limit: integer; {maximum minutes allowed from PWRD}
- {64 }down_limit: integer; {daily download limit/1000 from PWRD}
- {66 }curconf: byte; {active conference when door opened}
- {67 }joined: bitmap; {areas user has been in}
- {72 }ydone: bitmap; {areas user has done 'Y' on}
- {77 }time_added: integer; {highest conference added time in mins}
- {79 }time_credit: integer; {upload/chat time credit in minutes}
- {81 }slanguage: char4; {language used, blank, .FRE etc}
- {85 }name: char25; {caller's full name}
- {110}sminsleft: integer; {minutes left when door opened}
- {112}snodenum: byte; {current node number}
- {113}seventtime: char5; {hh:mm event time}
- {118}seventactive: char2; {event time active? "-1" or "0 "}
- {120}sslide: char2; {slide event? "-1" or " 0"}
- {122}smemmsg: single; {memorized message number}
- {126}scomport: char; {com port number '0','1','2'}
- {127}fill99: char2; {filler UNDOCUMENTED}
- {record size: 128}
- end;
-
-
- {layout of the USERS file}
- pcb_user_rec = record
- {1 }name: char25;
- {26 }city: char24;
- {50 }passwd: char12; {no spaces allowed}
- {62 }busphone: char13;
- {75 }phone: char13;
-
- {88 }date: char6; {yymmdd of last call}
- {94 }time: char5; {hh:mm of last call}
- {99 }expert: char; {pcboard expert status Y or N}
- {100}protocol: char; {X, C, Y, N}
- {101}space1: char; {space - reserved}
- {102}filedate: char6; {yymmdd of last file directory}
- {108}level: byte; {security level}
- {109}total_calls: integer; {number of times on system}
- {111}pagelen: byte; {page length}
- {112}uploads: integer; {number of uploads}
- {114}downloads: integer; {number of downloads}
- {116}downbytes: double; {daily download bytes so far}
- {124}usercomment: char30; {user entered comment field}
- {154}sysopcomment: char30; {sysop maintained comment field}
- {184}lastused: integer; {minutes used so far today}
- {186}expdate: char6; {yymmdd expiration date}
- {192}explevel: byte; {expired security level}
- {193}curconf: byte; {current conference number}
- {194}conferences: bitmap; {area registration 1-39 (5 bytes)}
- {199}expconf: bitmap; {expired conference registration}
- {204}scanconf: bitmap; {user configured scan conferences}
- {209}downtotal: double; {total bytes downloaded, all calls}
- {217}uptotal: double; {total bytes uploaded, all calls}
- {225}dead: char; {positive delete flag, Y or N}
-
- {226}lastread: array[0..39] of single;
- {last message pointer, main+39 conf's}
-
- {386}reserved: char7; {reserved for future use}
-
- {393}xpert: char; {pcb/pro's expert flag}
- {394}nulls: char; {pcb/pro's nulls flag}
- {395}scratchnum: byte; {scratch file number - incremented for
- each use of a scratch file}
- {396}dooruse: byte; {times in prodoor, up to 255}
- {397}earned_k: word; {prodoor; earned kbytes}
- {399}reserve3: word; {used by qmail??}
- {total size: 400}
- end;
-
-
- {layout of the PCBOARD.SYS file when offline}
- pcb_offline_sys_rec = record
- display: char2; {display on console? -1 or 0}
- printer: char2; {print log? -1 or 0}
- page_bell: char2; {bother sysop? -1 or 0}
- alarm: char2; {caller alarm sound? -1 or 0}
- sysop_next: char; {force sysop on next? 'N', 'X' or ' '}
- filler: array[1..119] of char; {filler, spaces}
- end;
-
-
- {layout of the CALLER file}
- pcb_caller_rec = record
- message: array[1..62] of char;
- crlf: char2;
- end;
-
-
- (* layout of CNAMES record *)
- pcbconf_rec = record
- conf_name: varstring; {full name of the conference}
- conf_rejoin: boolean;
- conf_viewmembers: boolean;
- conf_private_ul: boolean;
- conf_private_mail: boolean;
- conf_echo_mail: boolean;
- conf_addsec: integer;
- conf_addtime: integer; {minutes}
- conf_msgblocks: integer; {1-32 message blocks; 1024 msgs each}
-
- conf_msgfile: varstring; {conference message base pathname}
- conf_updir: varstring; {conference upload dir}
- conf_public_uplist: varstring; {public uploads listing pathname}
- conf_private_uplist: varstring; {private uploads listing pathname}
- conf_private_updir: varstring; {private uploads dir}
- conf_menufile: varstring; {normal user menu file pathname}
- conf_smenufile: varstring; {sysop menu file pathname}
- conf_newsfile: varstring; {conference news pathname}
-
- conf_doors: integer; {number of door programs}
- conf_doormenu: varstring; {door menu pathname}
- conf_doorinfo: varstring; {door info data pathname}
-
- conf_bulletins: integer;
- conf_bltmenu: varstring; {bulletin menu pathname}
- conf_bltinfo: varstring; {bulletin info pathname}
-
- conf_scripts: integer; {number of scripts}
- conf_scriptmenu: varstring; {script menu pathname}
- conf_scriptinfo: varstring; {script info pathname}
-
- conf_dirs: integer; {file areas (not counting U/L dir)}
- conf_dirmenu: varstring; {file area menu pathname}
- conf_dirinfo: varstring; {file area info pathname}
-
- conf_dlpaths: integer; {number of download paths}
- conf_dlinfo: varstring; {download path info pathname}
- end;
-
-
- (* layout of pcboard.dat *)
- pcbsetup_rec = record
- sysop_name: varstring; {sysop display name}
- use_realname: boolean; {use real name for sysop?}
- local_graphics: boolean; {graphics on in local mode?}
- userix_dir: varstring; {user index location}
- users_path: varstring; {user file pathname}
- caller_path: varstring; {caller log pathname}
- cnames_path: varstring; {cnames file pathname}
- fsec_path: varstring; {fsec file pathname}
- upsec_path: varstring; {upsec file pathname}
- conference_menu: varstring; {conference menu pathname}
- tranlog_path: varstring; {down/upload transfer log pathname}
- logoff_path: varstring; {logoff message pathname}
- modem_offhook: varstring; {modem off-hook command}
- disable_CTS_check: boolean; {disable modem rts/cts handshake}
- recycle_offhook: boolean; {modem offhook during recycle?}
- disable_filter: boolean; {disable high-bit filter}
- disable_quick: boolean; {disable quick logon/join}
- disable_graphics: boolean; {disable graphics mode?}
- dos_recycle: boolean; {exit to dos after each caller}
- allow_esc_codes: boolean; {allow escape codes in messages}
- allow_cc_msgs: boolean; {allow carbon copy messages}
- validate_to: boolean; {validate "TO:" in messages}
- update_lastread: boolean; {update lastread on msg leave}
- new_news: boolean; {display only NEW news files?}
- timeout_minutes: integer; {keyboard timeout in minutes}
- under_network: boolean; {running multi-node?}
- node_number: varstring; {node number}
- network_timeout: integer; {network timeout in seconds}
- system_name: varstring; {name of the bbs system}
- macro_string: array[1..10] of varstring;
- {shift-F1 thru F10 macros}
- public_conferences: BitMap; {public conferences}
- conf_count: integer; {number of conferences}
- msg_lines: integer; {maximum message lines (1-99)}
- ansi_intensity: varstring; {default intensity}
- ansi_color: varstring; {color for inputs/filedisps}
- event_active: boolean; {is event active?}
- event_time: string8; {event time hh:mm}
- event_buffer: integer; {minutes buffer before event}
- event_noul: boolean; {disable uploads before event}
- slide_event: boolean; {slide event time if needed}
- disable_freecheck: boolean; {disable free space check}
- printer_num: varstring; {printer port number 1..3}
- min_upload_free: integer; {stop uploads if free space less (K)}
- end;
-
-
-
- (* ---------------------------------------------------------------- *)
- (* variables *)
-
- var
- linenum: integer; {used in "More?" prompting;
- <0 for nonstop mode,
- >1000 for user abort or ^K}
-
- pcbsys: pcb_sys_rec; {contents of pcboard.sys}
-
- user: pcb_user_rec; {contents of user record}
-
- pcbsetup: pcbsetup_rec; {contents of pcboard.dat}
-
- conf_info: array[0..max_conf] of pcbconf_rec;
- {contents of cnames}
-
- topcps: integer; {highest cps possible, this caller}
- baudrate: string8; {caller's baud rate}
- username: string30; {callers full name}
- first_name: string20; {callers first name}
-
- dump_user: boolean; {set by F8, carrier loss or time elapsed *)
-
- cmdline: string; {current command line *)
- par: string; {current command parameter *)
-
- config_file: filenames; {filename of configuration file *)
- sys_dir: filenames; {directory where pcboard.sys is stored *)
- home_dir: filenames; {directory door was loaded from}
-
- alt_i: boolean; {file input in effect? *)
- alti_fd: text; {... file *)
-
- key_source: (sysop_key, user_key);
- {set by get_key - where did key come from? *)
-
-
-