home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Hack-Phreak Scene Programs
/
cleanhpvac.zip
/
cleanhpvac
/
CON-03A.ZIP
/
MSGBASE.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-11-16
|
3KB
|
103 lines
(* Conspiracy Software Version 0.2α (c)1995 Grooven Designs *)
(* Conspiracy Message Base Unit - Coded by Paul Maggs 1995 *)
unit msgbase;
interface
procedure msg_body(reciever, description : string);
procedure read_message;
procedure enter_message;
implementation
uses crt,
funct,
mmenu;
var
ch : char;
len : integer;
procedure msg_body(reciever, description : string);
var
msgfile : text;
stuff : string;
privatem : char;
begin
clrscr;
assign(msgfile,'msg\msg.dat');
append(msgfile);
writeln('Reciever :',reciever, ' Subject :',description);
writeln('|----*----*----*----*----*----*----*----*----*----*----*----*----*----*----*-|');
write(msgfile,'Reciever : ');
writeln(msgfile,reciever);
write(msgfile,'Description : ');
writeln(msgfile,description);
writeln(msgfile,'----------------------------------------------------------------------------');
repeat
stuff:=grabstring;
if (stuff<>'/S') then writeln(msgfile,stuff);
if (stuff='/A') then exit;
if (Stuff='/') then begin
textcolor(3);
writeln('+- ( conspiracy line editor help ) ------------------------------------------+');
writeln('Coammnds for use in editor :');
writeln('/S - Save Message');
writeln('/A - Abort Message');
writeln('+----------------------------------------------------------------------------+');
textcolor(7);
end;
until (stuff='/S');
writeln(msgfile,'@SPLIT@');
close(msgfile);
end;
procedure read_message;
var msgfile : text;
stuff : string;
begin
assign(msgfile,'msg\msg.dat');
reset(msgfile);
clrscr;
repeat
clrscr;
repeat
begin
readln(msgfile,stuff);
if stuff<>'@SPLIT@' then begin
writeln(stuff);
end;
end;
until stuff='@SPLIT@';
writeln('');
writeln('(ENTER)continue, (S)top, (R)eply, (D)elete');
ch:=readkey;
case upcase(ch) of
'S' : exit;
end;
until eof(msgfile);
close(msgfile);
end;
procedure enter_message;
var
msgfile : text;
reciever : string[30];
description : string[30];
begin
writeln;
write('To : enter=ALL : ');
len:=30;
reciever:=strupper(lengthstring(len));
if reciever=#13 then reciever:='ALL';
write('Subject : ');
len:=30;
description:=strupper(lengthstring(len));
msg_body(reciever, description);
end;
end.