home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
MAXMAILP.ZIP
/
MAX_UTP.H
< prev
next >
Wrap
Text File
|
1990-10-12
|
3KB
|
83 lines
/*
{ Maximus USER.BBS structure definition for PASCAL... I Hope !! }
TYPE
UserRecord = Record
name : ARRAY[1..36] OF CHAR; { Caller's name }
city : ARRAY[1..36] OF CHAR; { Caller's location }
realname : ARRAY[1..21] OF CHAR; { MAX: user's real name }
phone : ARRAY[1..15] OF CHAR; { MAX: user's phone number }
lastread_ptr : WORD; { Last Read Pointer }
{ file -- Offset of lastread pointer will be }
{ lastread_ptr*sizeof(int). }
timeremaining : WORD; { MAX: time left for current call (xternal prog) }
pwd : ARRAY[1..16] OF CHAR; { Password }
times, { Num prev calls the sys }
help, { Help level (see below) }
tabs, { 0=transmit <sp> instead of <tab> }
nulls, { Number Nulls(delays) after <cr> }
msg : WORD; { Last message area visited }
flags,
key : BYTE;
priv : INTEGER; { Access level }
ldate : ARRAY[1..19] OF CHAR; { Date of prev call (AsciiZ str) }
struct_len : BYTE; { MAX: len of struct, divided by }
{ 20. SEE ABOVE! }
time, { Time on-line so far today }
flag, { Hold baud rate for O)utside cmnd }
upld, { K-bytes uploaded, all calls }
dnld, { K-bytes downloaded, all calls }
dnldl, { K-bytes downloaded, today }
files : WORD; { Last file area visited }
width, { Width of the caller's screen }
len : BYTE; { Height of the caller's screen }
credit, { Matrix credit, in cents }
debit : WORD; { Current matrix debit, in cents }
END;
PROCEDURE Read_The_Users;
{ Read Users.BBS and toss make a message to everybody above a certain }
{ Security Level }
{$I MAX.INC}
VAR ss,fill : BYTE;
code,
Lo_sec,Sec,
Hi_sec : INTEGER;
user : UserRecord;
userfile : file of UserRecord;
BEGIN
Sec := 0;
{I edited out a bunch of stuff hear to save people money}
{You of course must open the userfile etc first}
WHILE NOT EOF(UserFile) DO
BEGIN
READ (userfile,user);
{Each time you read a record you have all of the info in that record}
WITH user DO
{Hear you access the actual records}
BEGIN
IF (Priv >= Lo_sec) AND (Priv <= Hi_sec) THEN
BEGIN
{Commands is an array of String}
Commands[2] := Name;
IF Commands[2][1] <> #0 THEN
END;
END;
CLOSE (userfile);
IF Sec = 0 THEN Abort('Invalid Security Level');
END;
*/