Tons of changes from trip to Charlotte over Thanksgiving. See CHANGELOG.
This commit is contained in:
parent
c628affc99
commit
d325f98376
19
CHANGELOG
19
CHANGELOG
|
@ -1,3 +1,22 @@
|
||||||
|
2000-11-24 Ryan C. Gordon <icculus@lokigames.com>
|
||||||
|
* Aha! I think I stumbled upon the keypressed() problem. Looks like a
|
||||||
|
piece of the overlay code was still in there and causing problems.
|
||||||
|
Will investigate more some other time. Ugh.
|
||||||
|
* Changed timer() in common.pas to not use int21h services.
|
||||||
|
* Lots more DOSisms removed. Did a grep for the DOS backslash pathchar.
|
||||||
|
* Added TODO.
|
||||||
|
* Hack for Y2K bug in ageuser() (common.pas).
|
||||||
|
* Changed all implementations of exdrv(). So much code duplication...
|
||||||
|
* Lots of the system seems to be working, now, at first glance.
|
||||||
|
|
||||||
|
2000-11-23 Ryan C. Gordon <icculus@lokigames.com>
|
||||||
|
|
||||||
|
* Oh my god. Almost every damn source file has {$D-} in it, which
|
||||||
|
turns off debugging symbols. Removed, and now I can run bbs under
|
||||||
|
GDB. Thank heavens. I wonder if {$D-} means something different under
|
||||||
|
Turbo Pascal 6.0...in fact, there's a lot of these sort of things in
|
||||||
|
the source that should probably be controlled via the Makefile instead.
|
||||||
|
|
||||||
2000-11-18 Ryan C. Gordon <icculus@lokigames.com>
|
2000-11-18 Ryan C. Gordon <icculus@lokigames.com>
|
||||||
|
|
||||||
* Stubbed DOSism in file2.pas.
|
* Stubbed DOSism in file2.pas.
|
||||||
|
|
96
archive1.pas
96
archive1.pas
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L-,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L-,N-,O+,R-,S+,V-}
|
||||||
unit archive1;
|
unit archive1;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -40,7 +40,9 @@ var odir,odir2:astr;
|
||||||
att:word;
|
att:word;
|
||||||
begin
|
begin
|
||||||
s:=fexpand(s);
|
s:=fexpand(s);
|
||||||
while copy(s,length(s),1)='\' do s:=copy(s,1,length(s)-1);
|
{rcg11242000 DOSism}
|
||||||
|
{while copy(s,length(s),1)='\' do s:=copy(s,1,length(s)-1);}
|
||||||
|
while copy(s,length(s),1)='/' do s:=copy(s,1,length(s)-1);
|
||||||
getdir(0,odir); getdir(exdrv(s),odir2);
|
getdir(0,odir); getdir(exdrv(s),odir2);
|
||||||
chdir(s);
|
chdir(s);
|
||||||
findfirst('*.*',AnyFile-Directory,dirinfo);
|
findfirst('*.*',AnyFile-Directory,dirinfo);
|
||||||
|
@ -62,12 +64,20 @@ end;
|
||||||
|
|
||||||
procedure arcdecomp(var ok:boolean; atype:integer; fn,fspec:astr);
|
procedure arcdecomp(var ok:boolean; atype:integer; fn,fspec:astr);
|
||||||
begin
|
begin
|
||||||
purgedir(systat.temppath+'1\');
|
{rcg11242000 DOSism.}
|
||||||
|
{purgedir(systat.temppath+'1\');}
|
||||||
|
purgedir(systat.temppath+'1/');
|
||||||
|
|
||||||
shel1;
|
shel1;
|
||||||
|
{rcg11242000 DOSism.}
|
||||||
|
{
|
||||||
execbatch(ok,TRUE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'1\',
|
execbatch(ok,TRUE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'1\',
|
||||||
arcmci(systat.filearcinfo[atype].unarcline,fn,fspec),
|
arcmci(systat.filearcinfo[atype].unarcline,fn,fspec),
|
||||||
systat.filearcinfo[atype].succlevel);
|
systat.filearcinfo[atype].succlevel);
|
||||||
|
}
|
||||||
|
execbatch(ok,TRUE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'1/',
|
||||||
|
arcmci(systat.filearcinfo[atype].unarcline,fn,fspec),
|
||||||
|
systat.filearcinfo[atype].succlevel);
|
||||||
shel2;
|
shel2;
|
||||||
|
|
||||||
if (not ok) then
|
if (not ok) then
|
||||||
|
@ -81,15 +91,23 @@ procedure arccomp(var ok:boolean; atype:integer; fn,fspec:astr);
|
||||||
*}
|
*}
|
||||||
begin
|
begin
|
||||||
shel1;
|
shel1;
|
||||||
|
{rcg11242000 DOSism.}
|
||||||
|
{
|
||||||
execbatch(ok,TRUE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'1\',
|
execbatch(ok,TRUE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'1\',
|
||||||
arcmci(systat.filearcinfo[atype].arcline,fn,fspec),
|
arcmci(systat.filearcinfo[atype].arcline,fn,fspec),
|
||||||
systat.filearcinfo[atype].succlevel);
|
systat.filearcinfo[atype].succlevel);
|
||||||
|
}
|
||||||
|
execbatch(ok,TRUE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'1/',
|
||||||
|
arcmci(systat.filearcinfo[atype].arcline,fn,fspec),
|
||||||
|
systat.filearcinfo[atype].succlevel);
|
||||||
shel2;
|
shel2;
|
||||||
|
|
||||||
if (not ok) then
|
if (not ok) then
|
||||||
sysoplog('Archive "'+fn+'": Errors during compression');
|
sysoplog('Archive "'+fn+'": Errors during compression');
|
||||||
|
|
||||||
purgedir(systat.temppath+'1\');
|
{rcg11242000 DOSism.}
|
||||||
|
{purgedir(systat.temppath+'1\');}
|
||||||
|
purgedir(systat.temppath+'1/');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure arccomment(var ok:boolean; atype,cnum:integer; fn:astr);
|
procedure arccomment(var ok:boolean; atype,cnum:integer; fn:astr);
|
||||||
|
@ -104,9 +122,16 @@ begin
|
||||||
|
|
||||||
shel1;
|
shel1;
|
||||||
b:=systat.swapshell; systat.swapshell:=FALSE;
|
b:=systat.swapshell; systat.swapshell:=FALSE;
|
||||||
|
|
||||||
|
{rcg11242000 DOSism.}
|
||||||
|
{
|
||||||
execbatch(ok,FALSE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'1\',
|
execbatch(ok,FALSE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'1\',
|
||||||
arcmci(systat.filearcinfo[atype].cmtline,fn,'')+' <'+tfn,
|
arcmci(systat.filearcinfo[atype].cmtline,fn,'')+' <'+tfn,
|
||||||
systat.filearcinfo[atype].succlevel);
|
systat.filearcinfo[atype].succlevel);
|
||||||
|
}
|
||||||
|
execbatch(ok,FALSE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'1/',
|
||||||
|
arcmci(systat.filearcinfo[atype].cmtline,fn,'')+' <'+tfn,
|
||||||
|
systat.filearcinfo[atype].succlevel);
|
||||||
systat.swapshell:=b;
|
systat.swapshell:=b;
|
||||||
shel2;
|
shel2;
|
||||||
|
|
||||||
|
@ -118,9 +143,15 @@ procedure arcintegritytest(var ok:boolean; atype:integer; fn:astr);
|
||||||
begin
|
begin
|
||||||
if (systat.filearcinfo[atype].testline<>'') then begin
|
if (systat.filearcinfo[atype].testline<>'') then begin
|
||||||
shel1;
|
shel1;
|
||||||
|
{rcg11242000 DOSism.}
|
||||||
|
{
|
||||||
execbatch(ok,TRUE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'1\',
|
execbatch(ok,TRUE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'1\',
|
||||||
arcmci(systat.filearcinfo[atype].testline,fn,''),
|
arcmci(systat.filearcinfo[atype].testline,fn,''),
|
||||||
systat.filearcinfo[atype].succlevel);
|
systat.filearcinfo[atype].succlevel);
|
||||||
|
}
|
||||||
|
execbatch(ok,TRUE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'1/',
|
||||||
|
arcmci(systat.filearcinfo[atype].testline,fn,''),
|
||||||
|
systat.filearcinfo[atype].succlevel);
|
||||||
shel2;
|
shel2;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
@ -203,7 +234,9 @@ begin
|
||||||
nl;
|
nl;
|
||||||
prompt('Already in TEMP: ');
|
prompt('Already in TEMP: ');
|
||||||
numfiles:=0; tsiz:=0;
|
numfiles:=0; tsiz:=0;
|
||||||
findfirst(systat.temppath+'3\*.*',anyfile-dos.directory,dirinfo);
|
{rcg11242000 DOSism.}
|
||||||
|
{findfirst(systat.temppath+'3\*.*',anyfile-dos.directory,dirinfo);}
|
||||||
|
findfirst(systat.temppath+'3/*.*',anyfile-dos.directory,dirinfo);
|
||||||
found:=(doserror=0);
|
found:=(doserror=0);
|
||||||
while (found) do begin
|
while (found) do begin
|
||||||
inc(tsiz,dirinfo.size);
|
inc(tsiz,dirinfo.size);
|
||||||
|
@ -325,9 +358,15 @@ begin
|
||||||
ok:=TRUE;
|
ok:=TRUE;
|
||||||
s:=sqoutsp(s);
|
s:=sqoutsp(s);
|
||||||
shel1;
|
shel1;
|
||||||
|
{rcg11242000 DOSism}
|
||||||
|
{
|
||||||
execbatch(ok,TRUE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'3\',
|
execbatch(ok,TRUE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'3\',
|
||||||
arcmci(systat.filearcinfo[atype].unarcline,fn,s),
|
arcmci(systat.filearcinfo[atype].unarcline,fn,s),
|
||||||
systat.filearcinfo[atype].succlevel);
|
systat.filearcinfo[atype].succlevel);
|
||||||
|
}
|
||||||
|
execbatch(ok,TRUE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'3/',
|
||||||
|
arcmci(systat.filearcinfo[atype].unarcline,fn,s),
|
||||||
|
systat.filearcinfo[atype].succlevel);
|
||||||
shel2;
|
shel2;
|
||||||
|
|
||||||
if (not ok) then begin
|
if (not ok) then begin
|
||||||
|
@ -342,7 +381,9 @@ begin
|
||||||
until (done) or (hangup);
|
until (done) or (hangup);
|
||||||
end;
|
end;
|
||||||
if (tocopy) then begin
|
if (tocopy) then begin
|
||||||
s:=systat.temppath+'3\'+ns+es; (*sqoutsp(f.filename);*)
|
{rcg11242000 DOSism.}
|
||||||
|
{s:=systat.temppath+'3\'+ns+es; (*sqoutsp(f.filename);*)}
|
||||||
|
s:=systat.temppath+'3/'+ns+es; (*sqoutsp(f.filename);*)
|
||||||
sprompt(#3#5+'Progress: ');
|
sprompt(#3#5+'Progress: ');
|
||||||
copyfile(ok,nospace,TRUE,fn,s);
|
copyfile(ok,nospace,TRUE,fn,s);
|
||||||
if (ok) then
|
if (ok) then
|
||||||
|
@ -405,7 +446,9 @@ begin
|
||||||
'A':begin
|
'A':begin
|
||||||
nl; prt('Archive name: '); input(fn,12);
|
nl; prt('Archive name: '); input(fn,12);
|
||||||
if (hangup) then exit;
|
if (hangup) then exit;
|
||||||
fn:=systat.temppath+'3\'+fn;
|
{rcg11242000 DOSism.}
|
||||||
|
{fn:=systat.temppath+'3\'+fn;}
|
||||||
|
fn:=systat.temppath+'3/'+fn;
|
||||||
loaduboard(fileboard);
|
loaduboard(fileboard);
|
||||||
if (pos('.',fn)=0) and (memuboard.arctype<>0) then
|
if (pos('.',fn)=0) and (memuboard.arctype<>0) then
|
||||||
fn:=fn+'.'+systat.filearcinfo[memuboard.arctype].ext;
|
fn:=fn+'.'+systat.filearcinfo[memuboard.arctype].ext;
|
||||||
|
@ -424,9 +467,15 @@ begin
|
||||||
nl;
|
nl;
|
||||||
ok:=TRUE;
|
ok:=TRUE;
|
||||||
shel1;
|
shel1;
|
||||||
|
{rcg11242000 DOSism.}
|
||||||
|
{
|
||||||
execbatch(ok,TRUE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'3\',
|
execbatch(ok,TRUE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'3\',
|
||||||
arcmci(systat.filearcinfo[atype].arcline,fn,s),
|
arcmci(systat.filearcinfo[atype].arcline,fn,s),
|
||||||
systat.filearcinfo[atype].succlevel);
|
systat.filearcinfo[atype].succlevel);
|
||||||
|
}
|
||||||
|
execbatch(ok,TRUE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'3/',
|
||||||
|
arcmci(systat.filearcinfo[atype].arcline,fn,s),
|
||||||
|
systat.filearcinfo[atype].succlevel);
|
||||||
shel2;
|
shel2;
|
||||||
if (not ok) then begin
|
if (not ok) then begin
|
||||||
sysoplog('Archive "'+fn+'": Errors during user compression');
|
sysoplog('Archive "'+fn+'": Errors during user compression');
|
||||||
|
@ -442,7 +491,9 @@ begin
|
||||||
if (hangup) then exit;
|
if (hangup) then exit;
|
||||||
if (not okname(s)) then print('Illegal filename.')
|
if (not okname(s)) then print('Illegal filename.')
|
||||||
else begin
|
else begin
|
||||||
s:=systat.temppath+'3\'+s;
|
{rcg11242000 DOSism.}
|
||||||
|
{s:=systat.temppath+'3\'+s;}
|
||||||
|
s:=systat.temppath+'3/'+s;
|
||||||
assign(fi,s);
|
assign(fi,s);
|
||||||
{$I-} reset(fi); {$I+}
|
{$I-} reset(fi); {$I+}
|
||||||
if (ioresult=0) then begin
|
if (ioresult=0) then begin
|
||||||
|
@ -468,8 +519,13 @@ begin
|
||||||
fiscan(pl); { loads in memuboard }
|
fiscan(pl); { loads in memuboard }
|
||||||
su:=memuboard;
|
su:=memuboard;
|
||||||
with memuboard do begin
|
with memuboard do begin
|
||||||
|
{rcg11242000 DOSisms.}
|
||||||
|
{
|
||||||
dlpath:=systat.temppath+'3\';
|
dlpath:=systat.temppath+'3\';
|
||||||
ulpath:=systat.temppath+'3\';
|
ulpath:=systat.temppath+'3\';
|
||||||
|
}
|
||||||
|
dlpath:=systat.temppath+'3/';
|
||||||
|
ulpath:=systat.temppath+'3/';
|
||||||
name:='Temporary directory';
|
name:='Temporary directory';
|
||||||
fbstat:=[];
|
fbstat:=[];
|
||||||
end;
|
end;
|
||||||
|
@ -492,7 +548,9 @@ begin
|
||||||
end;
|
end;
|
||||||
'L':begin
|
'L':begin
|
||||||
nl;
|
nl;
|
||||||
dir(systat.temppath+'3\','*.*',TRUE);
|
{rcg11242000 DOSism.}
|
||||||
|
{dir(systat.temppath+'3\','*.*',TRUE);}
|
||||||
|
dir(systat.temppath+'3/','*.*',TRUE);
|
||||||
nl;
|
nl;
|
||||||
end;
|
end;
|
||||||
'R':begin
|
'R':begin
|
||||||
|
@ -500,7 +558,9 @@ begin
|
||||||
if (hangup) then exit;
|
if (hangup) then exit;
|
||||||
if (isul(s)) then print('Illegal filename.')
|
if (isul(s)) then print('Illegal filename.')
|
||||||
else begin
|
else begin
|
||||||
s:=systat.temppath+'3\'+s;
|
{rcg11242000 DOSism.}
|
||||||
|
{s:=systat.temppath+'3\'+s;}
|
||||||
|
s:=systat.temppath+'3/'+s;
|
||||||
ffile(s);
|
ffile(s);
|
||||||
if (not found) then
|
if (not found) then
|
||||||
print('File not found.')
|
print('File not found.')
|
||||||
|
@ -509,7 +569,9 @@ begin
|
||||||
if not ((dirinfo.attr and VolumeID=VolumeID) or
|
if not ((dirinfo.attr and VolumeID=VolumeID) or
|
||||||
(dirinfo.attr and Directory=Directory)) then begin
|
(dirinfo.attr and Directory=Directory)) then begin
|
||||||
s:=dirinfo.name;
|
s:=dirinfo.name;
|
||||||
assign(fi,systat.temppath+'3\'+s);
|
{rcg11242000 DOSism.}
|
||||||
|
{assign(fi,systat.temppath+'3\'+s);}
|
||||||
|
assign(fi,systat.temppath+'3/'+s);
|
||||||
{$I-} erase(fi); {$I+}
|
{$I-} erase(fi); {$I+}
|
||||||
if (ioresult<>0) then begin
|
if (ioresult<>0) then begin
|
||||||
sysoplog('Error removing from temp. dir: "'+s+'"');
|
sysoplog('Error removing from temp. dir: "'+s+'"');
|
||||||
|
@ -527,7 +589,9 @@ begin
|
||||||
if (hangup) then exit;
|
if (hangup) then exit;
|
||||||
if (not okname(s)) then print('Illegal filename.')
|
if (not okname(s)) then print('Illegal filename.')
|
||||||
else begin
|
else begin
|
||||||
s1:=systat.temppath+'3\'+s;
|
{rcg11242000 DOSism.}
|
||||||
|
{s1:=systat.temppath+'3\'+s;}
|
||||||
|
s1:=systat.temppath+'3/'+s;
|
||||||
if (not exist(s1)) then
|
if (not exist(s1)) then
|
||||||
print('File not found.')
|
print('File not found.')
|
||||||
else begin
|
else begin
|
||||||
|
@ -541,9 +605,13 @@ begin
|
||||||
nl; prt('File mask: '); input(fn,12);
|
nl; prt('File mask: '); input(fn,12);
|
||||||
if (hangup) then exit;
|
if (hangup) then exit;
|
||||||
abort:=FALSE; next:=FALSE;
|
abort:=FALSE; next:=FALSE;
|
||||||
ffile(systat.temppath+'3\'+fn);
|
{rcg11242000 DOSism.}
|
||||||
|
{ffile(systat.temppath+'3\'+fn);}
|
||||||
|
ffile(systat.temppath+'3/'+fn);
|
||||||
repeat
|
repeat
|
||||||
lfi(systat.temppath+'3\'+dirinfo.name,abort,next);
|
{rcg11242000 DOSism.}
|
||||||
|
{lfi(systat.temppath+'3\'+dirinfo.name,abort,next);}
|
||||||
|
lfi(systat.temppath+'3/'+dirinfo.name,abort,next);
|
||||||
nfile;
|
nfile;
|
||||||
until (not found) or (abort) or (hangup);
|
until (not found) or (abort) or (hangup);
|
||||||
end;
|
end;
|
||||||
|
|
20
archive2.pas
20
archive2.pas
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L-,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L-,N-,O+,R-,S+,V-}
|
||||||
unit archive2;
|
unit archive2;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -79,7 +79,9 @@ var fl:array[1..maxfiles] of astr;
|
||||||
end else begin
|
end else begin
|
||||||
oldnumfl:=numfl;
|
oldnumfl:=numfl;
|
||||||
fsplit(fn,dstr,nstr,estr); s:=dstr;
|
fsplit(fn,dstr,nstr,estr); s:=dstr;
|
||||||
while (copy(s,length(s),1)='\') do s:=copy(s,1,length(s)-1);
|
{rcg11242000 DOSism.}
|
||||||
|
{while (copy(s,length(s),1)='\') do s:=copy(s,1,length(s)-1);}
|
||||||
|
while (copy(s,length(s),1)='/') do s:=copy(s,1,length(s)-1);
|
||||||
{$I-} chdir(s); {$I+}
|
{$I-} chdir(s); {$I+}
|
||||||
if ioresult<>0 then print('Path not found.')
|
if ioresult<>0 then print('Path not found.')
|
||||||
else begin
|
else begin
|
||||||
|
@ -199,7 +201,9 @@ var fl:array[1..maxfiles] of astr;
|
||||||
else begin
|
else begin
|
||||||
ok:=TRUE;
|
ok:=TRUE;
|
||||||
s:=copy(fn,1,pos('.',fn))+systat.filearcinfo[toa].ext;
|
s:=copy(fn,1,pos('.',fn))+systat.filearcinfo[toa].ext;
|
||||||
conva(ok,atype,bb,systat.temppath+'1\',sqoutsp(fn),sqoutsp(s));
|
{rcg11242000 DOSism}
|
||||||
|
{conva(ok,atype,bb,systat.temppath+'1\',sqoutsp(fn),sqoutsp(s));}
|
||||||
|
conva(ok,atype,bb,systat.temppath+'1/',sqoutsp(fn),sqoutsp(s));
|
||||||
if (ok) then begin
|
if (ok) then begin
|
||||||
assign(fi,sqoutsp(fn));
|
assign(fi,sqoutsp(fn));
|
||||||
{$I-} reset(fi); {$I+}
|
{$I-} reset(fi); {$I+}
|
||||||
|
@ -331,9 +335,15 @@ begin
|
||||||
ok:=TRUE;
|
ok:=TRUE;
|
||||||
star('Adding '+cstr(j)+' files to archive...');
|
star('Adding '+cstr(j)+' files to archive...');
|
||||||
shel1;
|
shel1;
|
||||||
|
{rcg11242000 DOSism}
|
||||||
|
{
|
||||||
execbatch(ok,TRUE,'tgtemp1.bat','tgtemp1.$$$',
|
execbatch(ok,TRUE,'tgtemp1.bat','tgtemp1.$$$',
|
||||||
systat.temppath+'1\',s1,
|
systat.temppath+'1\',s1,
|
||||||
systat.filearcinfo[atype].succlevel);
|
systat.filearcinfo[atype].succlevel);
|
||||||
|
}
|
||||||
|
execbatch(ok,TRUE,'tgtemp1.bat','tgtemp1.$$$',
|
||||||
|
systat.temppath+'1/',s1,
|
||||||
|
systat.filearcinfo[atype].succlevel);
|
||||||
shel2;
|
shel2;
|
||||||
if (not ok) then begin
|
if (not ok) then begin
|
||||||
star('Errors in adding files');
|
star('Errors in adding files');
|
||||||
|
@ -492,7 +502,9 @@ begin
|
||||||
star('Converting "'+fn+'"');
|
star('Converting "'+fn+'"');
|
||||||
ok:=TRUE;
|
ok:=TRUE;
|
||||||
s:=copy(fn,1,pos('.',s))+systat.filearcinfo[bb].ext;
|
s:=copy(fn,1,pos('.',s))+systat.filearcinfo[bb].ext;
|
||||||
conva(ok,atype,bb,systat.temppath+'1\',fn,s);
|
{rcg11242000 DOSism.}
|
||||||
|
{conva(ok,atype,bb,systat.temppath+'1\',fn,s);}
|
||||||
|
conva(ok,atype,bb,systat.temppath+'1/',fn,s);
|
||||||
if (ok) then begin
|
if (ok) then begin
|
||||||
assign(fi,sqoutsp(fn));
|
assign(fi,sqoutsp(fn));
|
||||||
{$I-} reset(fi); {$I+}
|
{$I-} reset(fi); {$I+}
|
||||||
|
|
13
archive3.pas
13
archive3.pas
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L-,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L-,N-,O+,R-,S+,V-}
|
||||||
unit archive3;
|
unit archive3;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -53,7 +53,12 @@ begin
|
||||||
close(fi);
|
close(fi);
|
||||||
end;
|
end;
|
||||||
shel1;
|
shel1;
|
||||||
execbatch(ok,TRUE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'1\',
|
{rcg11242000 DOSism}
|
||||||
|
{
|
||||||
|
execbatch(ok,TRUE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'1\',
|
||||||
|
rezipcmd+' '+sqoutsp(fn),-1);
|
||||||
|
}
|
||||||
|
execbatch(ok,TRUE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'1/',
|
||||||
rezipcmd+' '+sqoutsp(fn),-1);
|
rezipcmd+' '+sqoutsp(fn),-1);
|
||||||
shel2;
|
shel2;
|
||||||
assign(fi,sqoutsp(fn));
|
assign(fi,sqoutsp(fn));
|
||||||
|
@ -67,7 +72,9 @@ begin
|
||||||
end else begin
|
end else begin
|
||||||
ok:=TRUE;
|
ok:=TRUE;
|
||||||
s:=fn;
|
s:=fn;
|
||||||
conva(ok,atype,atype,systat.temppath+'1\',sqoutsp(fn),sqoutsp(s));
|
{rcg11242000 DOSism}
|
||||||
|
{conva(ok,atype,atype,systat.temppath+'1\',sqoutsp(fn),sqoutsp(s));}
|
||||||
|
conva(ok,atype,atype,systat.temppath+'1/',sqoutsp(fn),sqoutsp(s));
|
||||||
if (ok) then begin
|
if (ok) then begin
|
||||||
fsplit(fn,ps,ns,es); fn:=ps+ns+'.#$%';
|
fsplit(fn,ps,ns,es); fn:=ps+ns+'.#$%';
|
||||||
assign(fi,sqoutsp(fn));
|
assign(fi,sqoutsp(fn));
|
||||||
|
|
6
bb.pas
6
bb.pas
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
{$M 32150,0,0} { Declared here suffices for all Units as well! }
|
{$M 32150,0,0} { Declared here suffices for all Units as well! }
|
||||||
|
|
||||||
program BatchBackup;
|
program BatchBackup;
|
||||||
|
@ -17,7 +17,9 @@ type
|
||||||
end;
|
end;
|
||||||
|
|
||||||
const
|
const
|
||||||
lastspec='c:\lastbak.txt';
|
{rcg11242000 uh...DOSism. uh...}
|
||||||
|
{lastspec='c:\lastbak.txt';}
|
||||||
|
lastspec='./lastbak.txt';
|
||||||
cline='tape SBK @D:\/S-\TRAP*.MSG/S-\BBS.OVR/S-\BBS.EXE/S/A/C/C+/-O/R@T/LBAK@D@N';
|
cline='tape SBK @D:\/S-\TRAP*.MSG/S-\BBS.OVR/S-\BBS.EXE/S/A/C/C+/-O/R@T/LBAK@D@N';
|
||||||
lodrv:char='C';
|
lodrv:char='C';
|
||||||
hidrv:char='E';
|
hidrv:char='E';
|
||||||
|
|
4
bbs.pas
4
bbs.pas
|
@ -11,7 +11,7 @@
|
||||||
* written by Eric Oman, and Martin Pollard. *
|
* written by Eric Oman, and Martin Pollard. *
|
||||||
* *
|
* *
|
||||||
*****************************************************************************}
|
*****************************************************************************}
|
||||||
{$A+,B+,D-,E+,F+,I+,L-,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L-,N-,O+,R-,S+,V-}
|
||||||
{$M 60000,0,45000} { Memory Allocation Sizes }
|
{$M 60000,0,45000} { Memory Allocation Sizes }
|
||||||
|
|
||||||
Program BBS;
|
Program BBS;
|
||||||
|
@ -225,7 +225,6 @@ Begin
|
||||||
ovrinitems; if (ovrresult=ovrok) then overlayinems:=TRUE;
|
ovrinitems; if (ovrresult=ovrok) then overlayinems:=TRUE;
|
||||||
end;
|
end;
|
||||||
ovrsetbuf(ovrmaxsize); ovrsetretry(ovrmaxsize div 2);
|
ovrsetbuf(ovrmaxsize); ovrsetretry(ovrmaxsize div 2);
|
||||||
}
|
|
||||||
|
|
||||||
initexecswap2:=initexecswap;
|
initexecswap2:=initexecswap;
|
||||||
execwithswap2:=execwithswap;
|
execwithswap2:=execwithswap;
|
||||||
|
@ -233,6 +232,7 @@ Begin
|
||||||
|
|
||||||
findvertypeout(ovrpath,vercs,vertype,vertypes,serialnumber,licenseinfo,sitedatetime);
|
findvertypeout(ovrpath,vercs,vertype,vertypes,serialnumber,licenseinfo,sitedatetime);
|
||||||
ver:=ver+' '+vertype;
|
ver:=ver+' '+vertype;
|
||||||
|
}
|
||||||
|
|
||||||
init;
|
init;
|
||||||
|
|
||||||
|
|
27
common.pas
27
common.pas
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L-,N-,O-,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L-,N-,O-,R-,S+,V-}
|
||||||
unit common;
|
unit common;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -745,13 +745,22 @@ begin
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function timer:real;
|
function timer:real;
|
||||||
|
{rcg11242000 not needed.}
|
||||||
|
{
|
||||||
var r:registers;
|
var r:registers;
|
||||||
h,m,s,t:real;
|
h,m,s,t:real;
|
||||||
|
}
|
||||||
|
var h,m,s,t:word;
|
||||||
begin
|
begin
|
||||||
|
{
|
||||||
r.ax:=44*256;
|
r.ax:=44*256;
|
||||||
msdos(dos.registers(r));
|
msdos(dos.registers(r));
|
||||||
h:=(r.cx div 256); m:=(r.cx mod 256); s:=(r.dx div 256); t:=(r.dx mod 256);
|
h:=(r.cx div 256); m:=(r.cx mod 256); s:=(r.dx div 256); t:=(r.dx mod 256);
|
||||||
timer:=h*3600+m*60+s+t/100;
|
timer:=h*3600+m*60+s+t/100;
|
||||||
|
}
|
||||||
|
{rcg11242000 linux/freepascal implementation.}
|
||||||
|
GetTime(h,m,s,t);
|
||||||
|
timer:=h*3600+m*60+s+t/100;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function fbaseac(b:byte):boolean;
|
function fbaseac(b:byte):boolean;
|
||||||
|
@ -937,7 +946,11 @@ begin
|
||||||
pr('');
|
pr('');
|
||||||
if (not ulfo) then close(ulf);
|
if (not ulfo) then close(ulf);
|
||||||
end;
|
end;
|
||||||
'r':sendfilep(start_dir+'\err.log');
|
|
||||||
|
{rcg11242000 DOSism}
|
||||||
|
{'r':sendfilep(start_dir+'\err.log');}
|
||||||
|
'r':sendfilep(start_dir+'/err.log');
|
||||||
|
|
||||||
't':begin
|
't':begin
|
||||||
pr('');
|
pr('');
|
||||||
assign(tf,systat.gfilepath+'gfiles.dat');
|
assign(tf,systat.gfilepath+'gfiles.dat');
|
||||||
|
@ -1032,7 +1045,7 @@ begin
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function sysop1:boolean;
|
function sysop1:boolean;
|
||||||
{rcg11172000 ?!}
|
{rcg11172000 $0000:$0417 contains value of scroll lock key.}
|
||||||
{
|
{
|
||||||
var a:byte absolute $0000:$0417;
|
var a:byte absolute $0000:$0417;
|
||||||
begin
|
begin
|
||||||
|
@ -1155,6 +1168,10 @@ function ageuser(bday:string):integer;
|
||||||
var i:integer;
|
var i:integer;
|
||||||
begin
|
begin
|
||||||
i:=value(copy(date,7,2))-value(copy(bday,7,2));
|
i:=value(copy(date,7,2))-value(copy(bday,7,2));
|
||||||
|
|
||||||
|
{rcg11242000 Y2K hack.}
|
||||||
|
i := i + 100;
|
||||||
|
|
||||||
if (daynum(copy(bday,1,6)+copy(date,7,2))>daynum(date)) then dec(i);
|
if (daynum(copy(bday,1,6)+copy(date,7,2))>daynum(date)) then dec(i);
|
||||||
ageuser:=i;
|
ageuser:=i;
|
||||||
end;
|
end;
|
||||||
|
@ -1383,8 +1400,12 @@ end;
|
||||||
|
|
||||||
function exdrv(s:string):byte;
|
function exdrv(s:string):byte;
|
||||||
begin
|
begin
|
||||||
|
{rcg11242000 point at root drive always. Ugh.}
|
||||||
|
{
|
||||||
s:=fexpand(s);
|
s:=fexpand(s);
|
||||||
exdrv:=ord(s[1])-64;
|
exdrv:=ord(s[1])-64;
|
||||||
|
}
|
||||||
|
exdrv:=3;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function mlnnomci(s:string; l:integer):string;
|
function mlnnomci(s:string; l:integer):string;
|
||||||
|
|
11
common1.pas
11
common1.pas
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit common1;
|
unit common1;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -572,12 +572,19 @@ begin
|
||||||
end
|
end
|
||||||
else if ((xx='/HELP') or (xx='/?')) then begin
|
else if ((xx='/HELP') or (xx='/?')) then begin
|
||||||
nl;
|
nl;
|
||||||
sprint('^5/TYPE d:\path\filename.ext^3: Type a file');
|
{rcg11242000 DOSism.}
|
||||||
|
{sprint('^5/TYPE d:\path\filename.ext^3: Type a file');}
|
||||||
|
sprint('^5/TYPE /path/filename.ext^3: Type a file');
|
||||||
sprint('^5/BYE^3: Hang up');
|
sprint('^5/BYE^3: Hang up');
|
||||||
sprint('^5/CLS^3: Clear the screen');
|
sprint('^5/CLS^3: Clear the screen');
|
||||||
sprint('^5/PAGE^3: Page the SysOp and User');
|
sprint('^5/PAGE^3: Page the SysOp and User');
|
||||||
|
{rcg11242000 DOSism}
|
||||||
|
{
|
||||||
if (thisuser.sl=255) then
|
if (thisuser.sl=255) then
|
||||||
sprint('^5/SHELL^3: Shell to DOS with user (255 SL ^5ONLY^3)');
|
sprint('^5/SHELL^3: Shell to DOS with user (255 SL ^5ONLY^3)');
|
||||||
|
}
|
||||||
|
if (thisuser.sl=255) then
|
||||||
|
sprint('^5/SHELL^3: Shell to operating system with user (255 SL ^5ONLY^3)');
|
||||||
sprint('^5/Q^3: Exit chat mode');
|
sprint('^5/Q^3: Exit chat mode');
|
||||||
nl;
|
nl;
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit common2;
|
unit common2;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -328,7 +328,9 @@ end;
|
||||||
procedure savesystat;
|
procedure savesystat;
|
||||||
var systatf:file of systatrec;
|
var systatf:file of systatrec;
|
||||||
begin
|
begin
|
||||||
assign(systatf,start_dir+'\status.dat');
|
{rcg11242000 DOSism.}
|
||||||
|
{assign(systatf,start_dir+'\status.dat');}
|
||||||
|
assign(systatf,start_dir+'/status.dat');
|
||||||
rewrite(systatf); write(systatf,systat); close(systatf);
|
rewrite(systatf); write(systatf,systat); close(systatf);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit common3;
|
unit common3;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
20
conv17a.pas
20
conv17a.pas
|
@ -231,8 +231,12 @@ end;
|
||||||
|
|
||||||
function exdrv(s:astr):byte;
|
function exdrv(s:astr):byte;
|
||||||
begin
|
begin
|
||||||
|
{rcg11242000 point at root drive always. Ugh.}
|
||||||
|
{
|
||||||
s:=fexpand(s);
|
s:=fexpand(s);
|
||||||
exdrv:=ord(s[1])-64;
|
exdrv:=ord(s[1])-64;
|
||||||
|
}
|
||||||
|
exdrv:=3;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure movefile(srcname,destpath:string);
|
procedure movefile(srcname,destpath:string);
|
||||||
|
@ -587,7 +591,9 @@ var i,j,k:integer;
|
||||||
i,j:integer;
|
i,j:integer;
|
||||||
begin
|
begin
|
||||||
for i:=1 to 3 do begin
|
for i:=1 to 3 do begin
|
||||||
while copy(newpath[i],length(newpath[i]),1)='\' do
|
{rcg11242000 DOSism.}
|
||||||
|
{while copy(newpath[i],length(newpath[i]),1)='\' do}
|
||||||
|
while copy(newpath[i],length(newpath[i]),1)='/' do
|
||||||
newpath[i]:=copy(newpath[i],1,length(newpath[i])-1);
|
newpath[i]:=copy(newpath[i],1,length(newpath[i])-1);
|
||||||
case i of 1:s:='AFILES'; 2:s:='TRAP'; 3:s:='TEMP'; end;
|
case i of 1:s:='AFILES'; 2:s:='TRAP'; 3:s:='TEMP'; end;
|
||||||
star(s+' path ("'+fexpand(newpath[i])+'")');
|
star(s+' path ("'+fexpand(newpath[i])+'")');
|
||||||
|
@ -599,14 +605,20 @@ var i,j,k:integer;
|
||||||
end;
|
end;
|
||||||
if (i=3) then
|
if (i=3) then
|
||||||
for j:=1 to 3 do begin
|
for j:=1 to 3 do begin
|
||||||
{$I-} mkdir(fexpand(newpath[i]+'\'+cstr(j))); {$I+}
|
{rcg11242000 DOSism.}
|
||||||
|
(*{$I-} mkdir(fexpand(newpath[i]+'\'+cstr(j))); {$I+}*)
|
||||||
|
{$I-} mkdir(fexpand(newpath[i]+'/'+cstr(j))); {$I+}
|
||||||
if (ioresult<>0) then begin
|
if (ioresult<>0) then begin
|
||||||
writeln;
|
writeln;
|
||||||
star('Error creating directory "'+fexpand(newpath[i]+'\'+cstr(j))+'"');
|
{rcg11242000 DOSism.}
|
||||||
|
{star('Error creating directory "'+fexpand(newpath[i]+'\'+cstr(j))+'"');}
|
||||||
|
star('Error creating directory "'+fexpand(newpath[i]+'/'+cstr(j))+'"');
|
||||||
halt(1);
|
halt(1);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
newpath[i]:=newpath[i]+'\';
|
{rcg11242000 DOSism.}
|
||||||
|
{newpath[i]:=newpath[i]+'\';}
|
||||||
|
newpath[i]:=newpath[i]+'/';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
22
conv17a9.pas
22
conv17a9.pas
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
{$M 50000,0,1024} { Declared here suffices for all Units as well! }
|
{$M 50000,0,1024} { Declared here suffices for all Units as well! }
|
||||||
|
|
||||||
uses
|
uses
|
||||||
|
@ -256,8 +256,12 @@ end;
|
||||||
|
|
||||||
function exdrv(s:astr):byte;
|
function exdrv(s:astr):byte;
|
||||||
begin
|
begin
|
||||||
|
{rcg11242000 point at root drive always. Ugh.}
|
||||||
|
{
|
||||||
s:=fexpand(s);
|
s:=fexpand(s);
|
||||||
exdrv:=ord(s[1])-64;
|
exdrv:=ord(s[1])-64;
|
||||||
|
}
|
||||||
|
exdrv:=3;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure movefile(srcname,destpath:string);
|
procedure movefile(srcname,destpath:string);
|
||||||
|
@ -613,7 +617,9 @@ var i,j,k:integer;
|
||||||
i,j:integer;
|
i,j:integer;
|
||||||
begin
|
begin
|
||||||
for i:=1 to 3 do begin
|
for i:=1 to 3 do begin
|
||||||
while copy(newpath[i],length(newpath[i]),1)='\' do
|
{rcg11242000 DOSism.}
|
||||||
|
{while copy(newpath[i],length(newpath[i]),1)='\' do}
|
||||||
|
while copy(newpath[i],length(newpath[i]),1)='/' do
|
||||||
newpath[i]:=copy(newpath[i],1,length(newpath[i])-1);
|
newpath[i]:=copy(newpath[i],1,length(newpath[i])-1);
|
||||||
case i of 1:s:='AFILES'; 2:s:='TRAP'; 3:s:='TEMP'; end;
|
case i of 1:s:='AFILES'; 2:s:='TRAP'; 3:s:='TEMP'; end;
|
||||||
star(s+' path ("'+fexpand(newpath[i])+'")');
|
star(s+' path ("'+fexpand(newpath[i])+'")');
|
||||||
|
@ -625,14 +631,20 @@ var i,j,k:integer;
|
||||||
end;
|
end;
|
||||||
if (i=3) then
|
if (i=3) then
|
||||||
for j:=1 to 3 do begin
|
for j:=1 to 3 do begin
|
||||||
{$I-} mkdir(fexpand(newpath[i]+'\'+cstr(j))); {$I+}
|
{rcg11242000 dosism.}
|
||||||
|
(*{$I-} mkdir(fexpand(newpath[i]+'\'+cstr(j))); {$I+}*)
|
||||||
|
{$I-} mkdir(fexpand(newpath[i]+'/'+cstr(j))); {$I+}
|
||||||
if (ioresult<>0) then begin
|
if (ioresult<>0) then begin
|
||||||
writeln;
|
writeln;
|
||||||
star('Error creating directory "'+fexpand(newpath[i]+'\'+cstr(j))+'"');
|
{rcg11242000 dosism.}
|
||||||
|
{star('Error creating directory "'+fexpand(newpath[i]+'\'+cstr(j))+'"');}
|
||||||
|
star('Error creating directory "'+fexpand(newpath[i]+'/'+cstr(j))+'"');
|
||||||
halt(1);
|
halt(1);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
newpath[i]:=newpath[i]+'\';
|
{rcg11242000 dosism.}
|
||||||
|
{newpath[i]:=newpath[i]+'\';}
|
||||||
|
newpath[i]:=newpath[i]+'/';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
22
conv18a.pas
22
conv18a.pas
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
{$M 50000,0,1024}
|
{$M 50000,0,1024}
|
||||||
|
|
||||||
uses crt,dos,
|
uses crt,dos,
|
||||||
|
@ -241,8 +241,12 @@ end;
|
||||||
|
|
||||||
function exdrv(s:astr):byte;
|
function exdrv(s:astr):byte;
|
||||||
begin
|
begin
|
||||||
|
{rcg11242000 point at root drive always. Ugh.}
|
||||||
|
{
|
||||||
s:=fexpand(s);
|
s:=fexpand(s);
|
||||||
exdrv:=ord(s[1])-64;
|
exdrv:=ord(s[1])-64;
|
||||||
|
}
|
||||||
|
exdrv:=3;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure movefile(srcname,destpath:string);
|
procedure movefile(srcname,destpath:string);
|
||||||
|
@ -714,7 +718,9 @@ var i,j,k:integer;
|
||||||
i,j:integer;
|
i,j:integer;
|
||||||
begin
|
begin
|
||||||
for i:=1 to 3 do begin
|
for i:=1 to 3 do begin
|
||||||
while copy(newpath[i],length(newpath[i]),1)='\' do
|
{rcg11242000 Dosism.}
|
||||||
|
{while copy(newpath[i],length(newpath[i]),1)='\' do}
|
||||||
|
while copy(newpath[i],length(newpath[i]),1)='/' do
|
||||||
newpath[i]:=copy(newpath[i],1,length(newpath[i])-1);
|
newpath[i]:=copy(newpath[i],1,length(newpath[i])-1);
|
||||||
case i of 1:s:='AFILES'; 2:s:='TRAP'; 3:s:='TEMP'; end;
|
case i of 1:s:='AFILES'; 2:s:='TRAP'; 3:s:='TEMP'; end;
|
||||||
star(s+' path ("'+fexpand(newpath[i])+'")');
|
star(s+' path ("'+fexpand(newpath[i])+'")');
|
||||||
|
@ -726,14 +732,20 @@ var i,j,k:integer;
|
||||||
end;
|
end;
|
||||||
if (i=3) then
|
if (i=3) then
|
||||||
for j:=1 to 3 do begin
|
for j:=1 to 3 do begin
|
||||||
{$I-} mkdir(fexpand(newpath[i]+'\'+cstr(j))); {$I+}
|
{rcg11242000 DOSism.}
|
||||||
|
(*{$I-} mkdir(fexpand(newpath[i]+'\'+cstr(j))); {$I+}*)
|
||||||
|
{$I-} mkdir(fexpand(newpath[i]+'/'+cstr(j))); {$I+}
|
||||||
if (ioresult<>0) then begin
|
if (ioresult<>0) then begin
|
||||||
writeln;
|
writeln;
|
||||||
star('Error creating directory "'+fexpand(newpath[i]+'\'+cstr(j))+'"');
|
{rcg11242000 DOSism.}
|
||||||
|
{star('Error creating directory "'+fexpand(newpath[i]+'\'+cstr(j))+'"');}
|
||||||
|
star('Error creating directory "'+fexpand(newpath[i]+'/'+cstr(j))+'"');
|
||||||
halt(1);
|
halt(1);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
newpath[i]:=newpath[i]+'\';
|
{rcg11242000 DOSism.}
|
||||||
|
{newpath[i]:=newpath[i]+'\';}
|
||||||
|
newpath[i]:=newpath[i]+'/';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit cuser;
|
unit cuser;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
(*> Online door procedures. <*)
|
(*> Online door procedures. <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit doors;
|
unit doors;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -60,7 +60,9 @@ begin
|
||||||
'I':begin
|
'I':begin
|
||||||
loaduboard(fileboard);
|
loaduboard(fileboard);
|
||||||
sda:=systat.gfilepath;
|
sda:=systat.gfilepath;
|
||||||
if (copy(sda,length(sda),1)<>'\') then sda:=sda+'\';
|
{rcg11242000 DOSism.}
|
||||||
|
{if (copy(sda,length(sda),1)<>'\') then sda:=sda+'\';}
|
||||||
|
if (copy(sda,length(sda),1)<>'/') then sda:=sda+'/';
|
||||||
sda:=sda+memuboard.filename+'.DIR';
|
sda:=sda+memuboard.filename+'.DIR';
|
||||||
end;
|
end;
|
||||||
'L':begin
|
'L':begin
|
||||||
|
|
10
execbat.pas
10
execbat.pas
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit execbat;
|
unit execbat;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -47,7 +47,9 @@ begin
|
||||||
|
|
||||||
getdir(0,odir);
|
getdir(0,odir);
|
||||||
dir:=fexpand(dir);
|
dir:=fexpand(dir);
|
||||||
while copy(dir,length(dir),1)='\' do dir:=copy(dir,1,length(dir)-1);
|
{rcg11242000 DOSism.}
|
||||||
|
{while copy(dir,length(dir),1)='\' do dir:=copy(dir,1,length(dir)-1);}
|
||||||
|
while copy(dir,length(dir),1)='/' do dir:=copy(dir,1,length(dir)-1);
|
||||||
assign(bfp,bfn);
|
assign(bfp,bfn);
|
||||||
rewrite(bfp);
|
rewrite(bfp);
|
||||||
writeln(bfp,'echo off');
|
writeln(bfp,'echo off');
|
||||||
|
@ -90,7 +92,9 @@ begin
|
||||||
|
|
||||||
getdir(0,odir);
|
getdir(0,odir);
|
||||||
dir:=fexpand(dir);
|
dir:=fexpand(dir);
|
||||||
while copy(dir,length(dir),1)='\' do dir:=copy(dir,1,length(dir)-1);
|
{rcg11242000 DOSism.}
|
||||||
|
{while copy(dir,length(dir),1)='\' do dir:=copy(dir,1,length(dir)-1);}
|
||||||
|
while copy(dir,length(dir),1)='/' do dir:=copy(dir,1,length(dir)-1);
|
||||||
assign(bfp,bfn);
|
assign(bfp,bfn);
|
||||||
rewrite(bfp);
|
rewrite(bfp);
|
||||||
writeln(bfp,'echo off');
|
writeln(bfp,'echo off');
|
||||||
|
|
|
@ -13,7 +13,7 @@ Version 1.3 - 5/02/89
|
||||||
flush swap file before execing
|
flush swap file before execing
|
||||||
}
|
}
|
||||||
|
|
||||||
{$A+,B-,D-,E+,F+,I-,L-,N-,O-,R-,S-,V-}
|
{$A+,B-,E+,F+,I-,L-,N-,O-,R-,S-,V-}
|
||||||
|
|
||||||
unit ExecSwap;
|
unit ExecSwap;
|
||||||
{-Memory-efficient DOS EXEC call}
|
{-Memory-efficient DOS EXEC call}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit file0;
|
unit file0;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -107,6 +107,7 @@ var savedir:astr;
|
||||||
okd:boolean;
|
okd:boolean;
|
||||||
begin
|
begin
|
||||||
okd:=TRUE;
|
okd:=TRUE;
|
||||||
|
{ !!! Check this! }
|
||||||
s:=bslash(FALSE,fexpand(s));
|
s:=bslash(FALSE,fexpand(s));
|
||||||
|
|
||||||
if ((length(s)=2) and (copy(s,2,1)=':')) then begin
|
if ((length(s)=2) and (copy(s,2,1)=':')) then begin
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit file1;
|
unit file1;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -1011,7 +1011,9 @@ procedure do_unlisted_download;
|
||||||
var s:astr;
|
var s:astr;
|
||||||
begin
|
begin
|
||||||
nl;
|
nl;
|
||||||
print('Enter file name to download (d:path\filename.ext)');
|
{rcg11242000 DOSism.}
|
||||||
|
{print('Enter file name to download (d:path\filename.ext)');}
|
||||||
|
print('Enter file name to download (path/filename.ext)');
|
||||||
prt(':'); mpl(78); input(s,78);
|
prt(':'); mpl(78); input(s,78);
|
||||||
unlisted_download(s);
|
unlisted_download(s);
|
||||||
end;
|
end;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit file10;
|
unit file10;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit file11;
|
unit file11;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
38
file12.pas
38
file12.pas
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit file12;
|
unit file12;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -199,8 +199,13 @@ begin
|
||||||
getdatetime(xferstart);
|
getdatetime(xferstart);
|
||||||
if (useron) then shel(caps(thisuser.name)+' is batch uploading!')
|
if (useron) then shel(caps(thisuser.name)+' is batch uploading!')
|
||||||
else shel('Receiving file(s)...');
|
else shel('Receiving file(s)...');
|
||||||
|
{rcg11242000 DOSism.}
|
||||||
|
{
|
||||||
execbatch(dok,FALSE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'2\',
|
execbatch(dok,FALSE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'2\',
|
||||||
bproline1(protocol.ulcmd),-1);
|
bproline1(protocol.ulcmd),-1);
|
||||||
|
}
|
||||||
|
execbatch(dok,FALSE,'tgtemp1.bat','tgtest1.$$$',systat.temppath+'2/',
|
||||||
|
bproline1(protocol.ulcmd),-1);
|
||||||
shel2;
|
shel2;
|
||||||
getdatetime(xferend);
|
getdatetime(xferend);
|
||||||
timediff(tooktime,xferstart,xferend);
|
timediff(tooktime,xferstart,xferend);
|
||||||
|
@ -222,7 +227,9 @@ begin
|
||||||
tconvtime:=0.0; takeawayulrefundgot:=0.0;
|
tconvtime:=0.0; takeawayulrefundgot:=0.0;
|
||||||
totb:=0; totfils:=0; totb1:=0; totfils1:=0; totpts:=0;
|
totb:=0; totfils:=0; totb1:=0; totfils1:=0; totpts:=0;
|
||||||
|
|
||||||
findfirst(systat.temppath+'2\*.*',anyfile-directory,dirinfo);
|
{rcg11242000 DOSism.}
|
||||||
|
{findfirst(systat.temppath+'2\*.*',anyfile-directory,dirinfo);}
|
||||||
|
findfirst(systat.temppath+'2/*.*',anyfile-directory,dirinfo);
|
||||||
while (doserror=0) do begin
|
while (doserror=0) do begin
|
||||||
inc(totfils1);
|
inc(totfils1);
|
||||||
inc(totb1,dirinfo.size);
|
inc(totb1,dirinfo.size);
|
||||||
|
@ -279,7 +286,9 @@ begin
|
||||||
|
|
||||||
print('Uploads detected:');
|
print('Uploads detected:');
|
||||||
nl;
|
nl;
|
||||||
dir(systat.temppath+'2\','*.*',TRUE);
|
{rcg11242000 DOSism.}
|
||||||
|
{dir(systat.temppath+'2\','*.*',TRUE);}
|
||||||
|
dir(systat.temppath+'2/','*.*',TRUE);
|
||||||
nl;
|
nl;
|
||||||
star('# files uploaded: '+cstr(totfils1)+' files.');
|
star('# files uploaded: '+cstr(totfils1)+' files.');
|
||||||
star('File size uploaded: '+cstrl(totb1)+' bytes.');
|
star('File size uploaded: '+cstrl(totb1)+' bytes.');
|
||||||
|
@ -296,7 +305,9 @@ begin
|
||||||
{* files already in the upload batch queue done during the second pass *}
|
{* files already in the upload batch queue done during the second pass *}
|
||||||
|
|
||||||
for passn:=1 to 2 do begin
|
for passn:=1 to 2 do begin
|
||||||
findfirst(systat.temppath+'2\*.*',anyfile-directory,dirinfo);
|
{rcg11242000 DOSism.}
|
||||||
|
{findfirst(systat.temppath+'2\*.*',anyfile-directory,dirinfo);}
|
||||||
|
findfirst(systat.temppath+'2/*.*',anyfile-directory,dirinfo);
|
||||||
while (doserror=0) do begin
|
while (doserror=0) do begin
|
||||||
fn:=sqoutsp(dirinfo.name);
|
fn:=sqoutsp(dirinfo.name);
|
||||||
nl;
|
nl;
|
||||||
|
@ -358,7 +369,12 @@ begin
|
||||||
|
|
||||||
close(ulff); fiscan(pl);
|
close(ulff); fiscan(pl);
|
||||||
|
|
||||||
arcstuff(ok,convt,blks,convtime,TRUE,systat.temppath+'2\',
|
{rcg11242000 DOSism.}
|
||||||
|
{
|
||||||
|
arcstuff(ok,convt,blks,convtime,TRUE,systat.temppath+'2\',
|
||||||
|
fn,f.description);
|
||||||
|
}
|
||||||
|
arcstuff(ok,convt,blks,convtime,TRUE,systat.temppath+'2/',
|
||||||
fn,f.description);
|
fn,f.description);
|
||||||
tconvtime:=tconvtime+convtime; f.blocks:=blks;
|
tconvtime:=tconvtime+convtime; f.blocks:=blks;
|
||||||
doffstuff(f,fn,gotpts);
|
doffstuff(f,fn,gotpts);
|
||||||
|
@ -368,7 +384,9 @@ begin
|
||||||
if (ok) then begin
|
if (ok) then begin
|
||||||
star('Moving file to '+#3#5+memuboard.name);
|
star('Moving file to '+#3#5+memuboard.name);
|
||||||
sprompt(#3#5+'Progress: ');
|
sprompt(#3#5+'Progress: ');
|
||||||
movefile(fok,nospace,TRUE,systat.temppath+'2\'+fn,memuboard.dlpath+fn);
|
{rcg11242000 DOSism.}
|
||||||
|
{movefile(fok,nospace,TRUE,systat.temppath+'2\'+fn,memuboard.dlpath+fn);}
|
||||||
|
movefile(fok,nospace,TRUE,systat.temppath+'2/'+fn,memuboard.dlpath+fn);
|
||||||
if (fok) then begin
|
if (fok) then begin
|
||||||
nl;
|
nl;
|
||||||
newff(f,v);
|
newff(f,v);
|
||||||
|
@ -391,7 +409,9 @@ begin
|
||||||
dyny:=TRUE;
|
dyny:=TRUE;
|
||||||
if pynq('Save file for a later resume? ') then begin
|
if pynq('Save file for a later resume? ') then begin
|
||||||
sprompt(#3#5+'Progress: ');
|
sprompt(#3#5+'Progress: ');
|
||||||
movefile(fok,nospace,TRUE,systat.temppath+'2\'+fn,memuboard.dlpath+fn);
|
{rcg11242000 DOSism}
|
||||||
|
{movefile(fok,nospace,TRUE,systat.temppath+'2\'+fn,memuboard.dlpath+fn);}
|
||||||
|
movefile(fok,nospace,TRUE,systat.temppath+'2/'+fn,memuboard.dlpath+fn);
|
||||||
if (fok) then begin
|
if (fok) then begin
|
||||||
nl;
|
nl;
|
||||||
doffstuff(f,fn,gotpts);
|
doffstuff(f,fn,gotpts);
|
||||||
|
@ -406,7 +426,9 @@ begin
|
||||||
end;
|
end;
|
||||||
if (not (resumelater in f.filestat)) then begin
|
if (not (resumelater in f.filestat)) then begin
|
||||||
s:='file deleted';
|
s:='file deleted';
|
||||||
assign(fi,systat.temppath+'2\'+fn); erase(fi);
|
{rcg11242000 DOSism.}
|
||||||
|
{assign(fi,systat.temppath+'2\'+fn); erase(fi);}
|
||||||
|
assign(fi,systat.temppath+'2/'+fn); erase(fi);
|
||||||
end;
|
end;
|
||||||
sysoplog(#3#3+'Errors batch uploading "'+sqoutsp(fn)+'" - '+s);
|
sysoplog(#3#3+'Errors batch uploading "'+sqoutsp(fn)+'" - '+s);
|
||||||
end;
|
end;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
|
|
||||||
unit file13;
|
unit file13;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit file14;
|
unit file14;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit file2;
|
unit file2;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit file3;
|
unit file3;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
11
file4.pas
11
file4.pas
|
@ -42,7 +42,7 @@
|
||||||
* 3. Corrected errors in and updated documentation.
|
* 3. Corrected errors in and updated documentation.
|
||||||
*)
|
*)
|
||||||
|
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit file4;
|
unit file4;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -473,8 +473,15 @@ begin
|
||||||
reset(fp,1); {* back to start of file *}
|
reset(fp,1); {* back to start of file *}
|
||||||
|
|
||||||
p:=0; {* drop drive and pathname *}
|
p:=0; {* drop drive and pathname *}
|
||||||
for i:=1 to length(infile) do
|
|
||||||
|
{rcg11242000 DOSism.}
|
||||||
|
{
|
||||||
|
for i:=1 to length(infile) do
|
||||||
if infile[i] in [':','\'] then p:=i;
|
if infile[i] in [':','\'] then p:=i;
|
||||||
|
}
|
||||||
|
for i:=1 to length(infile) do
|
||||||
|
if infile[i] in [':','/'] then p:=i;
|
||||||
|
|
||||||
filename:=copy(infile,p+1,length(infile)-p);
|
filename:=copy(infile,p+1,length(infile)-p);
|
||||||
|
|
||||||
accum_csize:=0; accum_usize:=0; {* set accumulators to 0 *}
|
accum_csize:=0; accum_usize:=0; {* set accumulators to 0 *}
|
||||||
|
|
24
file5.pas
24
file5.pas
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit file5;
|
unit file5;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -74,7 +74,9 @@ var curdir,s,s1:astr;
|
||||||
abort:=FALSE; next:=FALSE; nocmd:=FALSE;
|
abort:=FALSE; next:=FALSE; nocmd:=FALSE;
|
||||||
for i:=1 to 9 do xword[i]:=allcaps(xword[i]);
|
for i:=1 to 9 do xword[i]:=allcaps(xword[i]);
|
||||||
s:=xword[1];
|
s:=xword[1];
|
||||||
if ((pos('\',xword[2])<>0) or (pos('..',xword[2])<>0)) and
|
{rcg11242000 DOSism.}
|
||||||
|
{if ((pos('\',xword[2])<>0) or (pos('..',xword[2])<>0)) and}
|
||||||
|
if ((pos('/',xword[2])<>0) or (pos('..',xword[2])<>0)) and
|
||||||
(restr) then exit;
|
(restr) then exit;
|
||||||
|
|
||||||
if (s='DIR/W') then s:='DIR *.* /W';
|
if (s='DIR/W') then s:='DIR *.* /W';
|
||||||
|
@ -138,8 +140,11 @@ var curdir,s,s1:astr;
|
||||||
if (s2='') then s2:='*.*';
|
if (s2='') then s2:='*.*';
|
||||||
if (not iswildcard(xword[2])) then begin
|
if (not iswildcard(xword[2])) then begin
|
||||||
ffile(xword[2]);
|
ffile(xword[2]);
|
||||||
if ((found) and (dirinfo.attr=directory)) or
|
{rcg11242000 DOSism.}
|
||||||
((length(s1)=3) and (s1[3]='\')) then begin {* root directory *}
|
(*if ((found) and (dirinfo.attr=directory)) or
|
||||||
|
((length(s1)=3) and (s1[3]='\')) then begin {* root directory *}*)
|
||||||
|
if (((found) and (dirinfo.attr=directory)) or
|
||||||
|
(s1[1]='/')) then begin {* root directory *}
|
||||||
s1:=bslash(TRUE,xword[2]);
|
s1:=bslash(TRUE,xword[2]);
|
||||||
s2:='*.*';
|
s2:='*.*';
|
||||||
end;
|
end;
|
||||||
|
@ -173,6 +178,8 @@ var curdir,s,s1:astr;
|
||||||
xword[3]:=fexpand(xword[3]);
|
xword[3]:=fexpand(xword[3]);
|
||||||
ffile(xword[3]);
|
ffile(xword[3]);
|
||||||
b:=((found) and (dirinfo.attr and directory=directory));
|
b:=((found) and (dirinfo.attr and directory=directory));
|
||||||
|
|
||||||
|
{rcg11242000 !!! Look at this. }
|
||||||
if ((not b) and (copy(xword[3],2,2)=':\') and
|
if ((not b) and (copy(xword[3],2,2)=':\') and
|
||||||
(length(xword[3])=3)) then b:=TRUE;
|
(length(xword[3])=3)) then b:=TRUE;
|
||||||
|
|
||||||
|
@ -226,6 +233,8 @@ var curdir,s,s1:astr;
|
||||||
xword[3]:=fexpand(xword[3]);
|
xword[3]:=fexpand(xword[3]);
|
||||||
ffile(xword[3]);
|
ffile(xword[3]);
|
||||||
b:=((found) and (dirinfo.attr and directory=directory));
|
b:=((found) and (dirinfo.attr and directory=directory));
|
||||||
|
|
||||||
|
{rcg11242000 !!! Look at this. }
|
||||||
if ((not b) and (copy(xword[3],2,2)=':\') and
|
if ((not b) and (copy(xword[3],2,2)=':\') and
|
||||||
(length(xword[3])=3)) then b:=TRUE;
|
(length(xword[3])=3)) then b:=TRUE;
|
||||||
|
|
||||||
|
@ -390,7 +399,12 @@ var curdir,s,s1:astr;
|
||||||
if (j=0) then invarc
|
if (j=0) then invarc
|
||||||
else begin
|
else begin
|
||||||
ok:=TRUE;
|
ok:=TRUE;
|
||||||
conva(ok,i,j,systat.temppath+'1\',sqoutsp(fexpand(xword[2])),
|
{rcg11242000 DOSism.}
|
||||||
|
{
|
||||||
|
conva(ok,i,j,systat.temppath+'1\',sqoutsp(fexpand(xword[2])),
|
||||||
|
sqoutsp(fexpand(s3)));
|
||||||
|
}
|
||||||
|
conva(ok,i,j,systat.temppath+'1/',sqoutsp(fexpand(xword[2])),
|
||||||
sqoutsp(fexpand(s3)));
|
sqoutsp(fexpand(s3)));
|
||||||
if (ok) then begin
|
if (ok) then begin
|
||||||
assign(fi,sqoutsp(fexpand(xword[2])));
|
assign(fi,sqoutsp(fexpand(xword[2])));
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit file6;
|
unit file6;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit file7;
|
unit file7;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit file8;
|
unit file8;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit file9;
|
unit file9;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -64,7 +64,9 @@ var abort,next,nofiles:boolean;
|
||||||
dfs:longint;
|
dfs:longint;
|
||||||
numfiles:integer;
|
numfiles:integer;
|
||||||
begin
|
begin
|
||||||
if (copy(cd,length(cd),1)<>'\') then cd:=cd+'\';
|
{rcg11242000 DOSism.}
|
||||||
|
{if (copy(cd,length(cd),1)<>'\') then cd:=cd+'\';}
|
||||||
|
if (copy(cd,length(cd),1)<>'/') then cd:=cd+'/';
|
||||||
abort:=FALSE;
|
abort:=FALSE;
|
||||||
cd:=cd+x;
|
cd:=cd+x;
|
||||||
if (fso) then begin
|
if (fso) then begin
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit fvtype;
|
unit fvtype;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
2
ifl.pas
2
ifl.pas
|
@ -41,7 +41,7 @@ uses
|
||||||
to allow redirection of I/O *}
|
to allow redirection of I/O *}
|
||||||
|
|
||||||
|
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
{$I ifl.inc}
|
{$I ifl.inc}
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|
2
init.pas
2
init.pas
|
@ -9,7 +9,7 @@
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
program init;
|
program init;
|
||||||
|
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
{$M 50000,0,1024} { Declared here suffices for all Units as well! }
|
{$M 50000,0,1024} { Declared here suffices for all Units as well! }
|
||||||
|
|
||||||
uses
|
uses
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit initp;
|
unit initp;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -167,6 +167,7 @@ var filv:text;
|
||||||
procedure showmem;
|
procedure showmem;
|
||||||
var i,p:longint;
|
var i,p:longint;
|
||||||
begin
|
begin
|
||||||
|
exit;
|
||||||
textbackground(1); textcolor(15); gotoxy(20,13);
|
textbackground(1); textcolor(15); gotoxy(20,13);
|
||||||
p:=40-(((40*memavail) div MaxHeapSpace)+1);
|
p:=40-(((40*memavail) div MaxHeapSpace)+1);
|
||||||
for i:=1 to 40 do
|
for i:=1 to 40 do
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
(*> Logon functions -- Part 1. <*)
|
(*> Logon functions -- Part 1. <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit logon1;
|
unit logon1;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit logon2;
|
unit logon2;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -391,9 +391,15 @@ begin
|
||||||
|
|
||||||
if ((useron) and (usernum>0)) then
|
if ((useron) and (usernum>0)) then
|
||||||
begin
|
begin
|
||||||
|
{rcg11242000 dosisms.}
|
||||||
|
{
|
||||||
purgedir(systat.temppath+'1\');
|
purgedir(systat.temppath+'1\');
|
||||||
purgedir(systat.temppath+'2\');
|
purgedir(systat.temppath+'2\');
|
||||||
purgedir(systat.temppath+'3\');
|
purgedir(systat.temppath+'3\');
|
||||||
|
}
|
||||||
|
purgedir(systat.temppath+'1/');
|
||||||
|
purgedir(systat.temppath+'2/');
|
||||||
|
purgedir(systat.temppath+'3/');
|
||||||
|
|
||||||
slogging:=TRUE;
|
slogging:=TRUE;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit mail0;
|
unit mail0;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit mail1;
|
unit mail1;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit mail2;
|
unit mail2;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit mail3;
|
unit mail3;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit mail4;
|
unit mail4;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit mail5;
|
unit mail5;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit mail6;
|
unit mail6;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit mail9;
|
unit mail9;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
2
mdek.pas
2
mdek.pas
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit mdek;
|
unit mdek;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
* 08/20/91 - 1.00 - E?O - Original Version *
|
* 08/20/91 - 1.00 - E?O - Original Version *
|
||||||
* *
|
* *
|
||||||
*****************************************************************************}
|
*****************************************************************************}
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O-,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O-,R-,S+,V-}
|
||||||
Unit Menus;
|
Unit Menus;
|
||||||
|
|
||||||
Interface
|
Interface
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
(*> Other menu functions - generic, list, etc. <*)
|
(*> Other menu functions - generic, list, etc. <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit menus2;
|
unit menus2;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
(*> Menu command execution routines. <*)
|
(*> Menu command execution routines. <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit menus3;
|
unit menus3;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit menus4;
|
unit menus4;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
36
miniterm.pas
36
miniterm.pas
|
@ -5,7 +5,7 @@
|
||||||
(*> and Todd Bolitho - All Rights Reserved. <*)
|
(*> and Todd Bolitho - All Rights Reserved. <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O-,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O-,R-,S+,V-}
|
||||||
{$M $4000,0,0}
|
{$M $4000,0,0}
|
||||||
|
|
||||||
program miniterm;
|
program miniterm;
|
||||||
|
@ -340,11 +340,15 @@ var c,bl,bl2:char;
|
||||||
s:astr;
|
s:astr;
|
||||||
begin
|
begin
|
||||||
b:=0;
|
b:=0;
|
||||||
for a:=1 to length(fn) do if fn[a]='\' then b:=a;
|
{rcg11242000 dosism.}
|
||||||
|
{for a:=1 to length(fn) do if fn[a]='\' then b:=a;}
|
||||||
|
for a:=1 to length(fn) do if fn[a]='/' then b:=a;
|
||||||
if b<>0 then filepath:=copy(fn,1,b)
|
if b<>0 then filepath:=copy(fn,1,b)
|
||||||
else begin
|
else begin
|
||||||
getdir(0,s);
|
getdir(0,s);
|
||||||
filepath:=s+'\';
|
{rcg11242000 dosism.}
|
||||||
|
{filepath:=s+'\';}
|
||||||
|
filepath:=s+'/';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -1047,9 +1051,16 @@ var c,bl,bl2:char;
|
||||||
if (waitbaud=9600) then maxs:=4;
|
if (waitbaud=9600) then maxs:=4;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{rcg11242000 dosisms.}
|
||||||
|
{
|
||||||
loading(start_dir+'\miniterm.fon');
|
loading(start_dir+'\miniterm.fon');
|
||||||
if not exist(start_dir+'\miniterm.fon') then begin
|
if not exist(start_dir+'\miniterm.fon') then begin
|
||||||
assign(fil,start_dir+'\miniterm.fon');
|
assign(fil,start_dir+'\miniterm.fon');
|
||||||
|
}
|
||||||
|
|
||||||
|
loading(start_dir+'/miniterm.fon');
|
||||||
|
if not exist(start_dir+'/miniterm.fon') then begin
|
||||||
|
assign(fil,start_dir+'/miniterm.fon');
|
||||||
rewrite(fil);
|
rewrite(fil);
|
||||||
with ns[1] do begin
|
with ns[1] do begin
|
||||||
name:='Grosse Pointe Centrale';
|
name:='Grosse Pointe Centrale';
|
||||||
|
@ -1060,7 +1071,9 @@ var c,bl,bl2:char;
|
||||||
close(fil);
|
close(fil);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
assign(fil,start_dir+'\miniterm.fon');
|
{rcg11242000 DOSism.}
|
||||||
|
{assign(fil,start_dir+'\miniterm.fon');}
|
||||||
|
assign(fil,start_dir+'/miniterm.fon');
|
||||||
reset(fil);
|
reset(fil);
|
||||||
hientrynum:=0;
|
hientrynum:=0;
|
||||||
repeat
|
repeat
|
||||||
|
@ -1072,17 +1085,28 @@ var c,bl,bl2:char;
|
||||||
pages:=((hientrynum-1) div 10)+1;
|
pages:=((hientrynum-1) div 10)+1;
|
||||||
pagnum:=1;
|
pagnum:=1;
|
||||||
|
|
||||||
|
{rcg11242000 DOSisms.}
|
||||||
|
{
|
||||||
loading(start_dir+'\miniterm.cfg');
|
loading(start_dir+'\miniterm.cfg');
|
||||||
if not exist(start_dir+'\miniterm.cfg') then begin
|
if not exist(start_dir+'\miniterm.cfg') then begin
|
||||||
assign(cfgfil,start_dir+'\miniterm.cfg');
|
assign(cfgfil,start_dir+'\miniterm.cfg');
|
||||||
|
}
|
||||||
|
|
||||||
|
loading(start_dir+'/miniterm.cfg');
|
||||||
|
if not exist(start_dir+'/miniterm.cfg') then begin
|
||||||
|
assign(cfgfil,start_dir+'/miniterm.cfg');
|
||||||
rewrite(cfgfil);
|
rewrite(cfgfil);
|
||||||
with mini do begin
|
with mini do begin
|
||||||
dpath:=start_dir+'\';
|
{rcg11242000 dosism.}
|
||||||
|
{dpath:=start_dir+'\';}
|
||||||
|
dpath:=start_dir+'/';
|
||||||
end;
|
end;
|
||||||
write(cfgfil,mini);
|
write(cfgfil,mini);
|
||||||
close(cfgfil);
|
close(cfgfil);
|
||||||
end;
|
end;
|
||||||
assign(cfgfil,start_dir+'\miniterm.cfg');
|
{rcg11242000 DOSism.}
|
||||||
|
{assign(cfgfil,start_dir+'\miniterm.cfg');}
|
||||||
|
assign(cfgfil,start_dir+'/miniterm.cfg');
|
||||||
reset(cfgfil); read(cfgfil,mini); close(cfgfil);
|
reset(cfgfil); read(cfgfil,mini); close(cfgfil);
|
||||||
|
|
||||||
removewindow(wind);
|
removewindow(wind);
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit misc1;
|
unit misc1;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
10
misc2.pas
10
misc2.pas
|
@ -6,7 +6,7 @@
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit misc2;
|
unit misc2;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -462,7 +462,9 @@ var gfil:file of tfilerec;
|
||||||
nl;
|
nl;
|
||||||
prompt('Already in TEMP: ');
|
prompt('Already in TEMP: ');
|
||||||
numfiles:=0; tsiz:=0;
|
numfiles:=0; tsiz:=0;
|
||||||
findfirst(systat.temppath+'3\*.*',anyfile-dos.directory,dirinfo);
|
{rcg11242000 DOSism.}
|
||||||
|
{findfirst(systat.temppath+'3\*.*',anyfile-dos.directory,dirinfo);}
|
||||||
|
findfirst(systat.temppath+'3/*.*',anyfile-dos.directory,dirinfo);
|
||||||
found:=(doserror=0);
|
found:=(doserror=0);
|
||||||
while (found) do begin
|
while (found) do begin
|
||||||
inc(tsiz,dirinfo.size);
|
inc(tsiz,dirinfo.size);
|
||||||
|
@ -495,7 +497,9 @@ var gfil:file of tfilerec;
|
||||||
if (gftit[i].gfile) then begin
|
if (gftit[i].gfile) then begin
|
||||||
seek(gfil,gftit[i].arn); read(gfil,b);
|
seek(gfil,gftit[i].arn); read(gfil,b);
|
||||||
s:=systat.tfilepath+b.filen;
|
s:=systat.tfilepath+b.filen;
|
||||||
s2:=systat.temppath+'3\'+b.filen;
|
{rcg11242000 DOSism.}
|
||||||
|
{s2:=systat.temppath+'3\'+b.filen;}
|
||||||
|
s2:=systat.temppath+'3/'+b.filen;
|
||||||
sprompt(#3#5+'Progress: ');
|
sprompt(#3#5+'Progress: ');
|
||||||
copyfile(ok,nospace,TRUE,s,s2);
|
copyfile(ok,nospace,TRUE,s,s2);
|
||||||
if (ok) then
|
if (ok) then
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit misc3;
|
unit misc3;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
(*> MISC4 .PAS - InfoForm questionairre system. <*)
|
(*> MISC4 .PAS - InfoForm questionairre system. <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit misc4;
|
unit misc4;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit miscx;
|
unit miscx;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -182,9 +182,15 @@ begin
|
||||||
|
|
||||||
realsl:=thisuser.sl; realdsl:=thisuser.dsl;
|
realsl:=thisuser.sl; realdsl:=thisuser.dsl;
|
||||||
commandline('Purging files in TEMP directories 1, 2, and 3 ...');
|
commandline('Purging files in TEMP directories 1, 2, and 3 ...');
|
||||||
|
{rcg11242000 DOSisms.}
|
||||||
|
{
|
||||||
purgedir(systat.temppath+'1\');
|
purgedir(systat.temppath+'1\');
|
||||||
purgedir(systat.temppath+'2\');
|
purgedir(systat.temppath+'2\');
|
||||||
purgedir(systat.temppath+'3\');
|
purgedir(systat.temppath+'3\');
|
||||||
|
}
|
||||||
|
purgedir(systat.temppath+'1/');
|
||||||
|
purgedir(systat.temppath+'2/');
|
||||||
|
purgedir(systat.temppath+'3/');
|
||||||
|
|
||||||
if (systat.lastdate<>date) then begin
|
if (systat.lastdate<>date) then begin
|
||||||
prompt('Please wait ....');
|
prompt('Please wait ....');
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit mmodem;
|
unit mmodem;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit msgpack;
|
unit msgpack;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
2
myio.pas
2
myio.pas
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit myio;
|
unit myio;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit newusers;
|
unit newusers;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
2
pibo.pas
2
pibo.pas
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit pibo;
|
unit pibo;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
51
sepmsgs.pas
51
sepmsgs.pas
|
@ -1,6 +1,6 @@
|
||||||
uses crt,dos;
|
uses crt,dos;
|
||||||
|
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
{$M 50000,0,90000} { Declared here suffices for all Units as well! }
|
{$M 50000,0,90000} { Declared here suffices for all Units as well! }
|
||||||
{$I rec16e1.pas}
|
{$I rec16e1.pas}
|
||||||
|
|
||||||
|
@ -55,8 +55,12 @@ end;
|
||||||
|
|
||||||
function exdrv(s:astr):byte;
|
function exdrv(s:astr):byte;
|
||||||
begin
|
begin
|
||||||
|
{rcg11242000 point at root drive always. Ugh.}
|
||||||
|
{
|
||||||
s:=fexpand(s);
|
s:=fexpand(s);
|
||||||
exdrv:=ord(s[1])-64;
|
exdrv:=ord(s[1])-64;
|
||||||
|
}
|
||||||
|
exdrv:=3;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure movefile(srcname,destpath:string);
|
procedure movefile(srcname,destpath:string);
|
||||||
|
@ -123,7 +127,9 @@ var j,k:integer;
|
||||||
f:file;
|
f:file;
|
||||||
lastm,thism:messages; {* keep track of mass-mail duplicates *}
|
lastm,thism:messages; {* keep track of mass-mail duplicates *}
|
||||||
begin
|
begin
|
||||||
while copy(npath,length(npath),1)='\' do
|
{rcg11242000 DOSism.}
|
||||||
|
{while copy(npath,length(npath),1)='\' do}
|
||||||
|
while copy(npath,length(npath),1)='/' do
|
||||||
npath:=copy(npath,1,length(npath)-1);
|
npath:=copy(npath,1,length(npath)-1);
|
||||||
getdir(0,odir);
|
getdir(0,odir);
|
||||||
{$I-} chdir(npath); {$I+}
|
{$I-} chdir(npath); {$I+}
|
||||||
|
@ -150,8 +156,13 @@ begin
|
||||||
thism:=mr.msg;
|
thism:=mr.msg;
|
||||||
gotoxy(wherex,wherey-1); clreol;
|
gotoxy(wherex,wherey-1); clreol;
|
||||||
inc(k);
|
inc(k);
|
||||||
star('Message file #'+cstr(k)+' of '+
|
{rcg11242000 DOSism.}
|
||||||
|
{
|
||||||
|
star('Message file #'+cstr(k)+' of '+
|
||||||
cstr(filesize(mailfile))+': '+npath+'\'+s);
|
cstr(filesize(mailfile))+': '+npath+'\'+s);
|
||||||
|
}
|
||||||
|
star('Message file #'+cstr(k)+' of '+
|
||||||
|
cstr(filesize(mailfile))+': '+npath+'/'+s);
|
||||||
if ((thism.ltr<>lastm.ltr) or
|
if ((thism.ltr<>lastm.ltr) or
|
||||||
(thism.number<>lastm.number) or
|
(thism.number<>lastm.number) or
|
||||||
(thism.ext<>lastm.ext)) then begin
|
(thism.ext<>lastm.ext)) then begin
|
||||||
|
@ -159,7 +170,9 @@ begin
|
||||||
{$I-} reset(f); {$I+}
|
{$I-} reset(f); {$I+}
|
||||||
if ioresult=0 then begin
|
if ioresult=0 then begin
|
||||||
close(f);
|
close(f);
|
||||||
movefile(s1,npath+'\');
|
{rcg11242000 DOSism.}
|
||||||
|
{movefile(s1,npath+'\');}
|
||||||
|
movefile(s1,npath+'/');
|
||||||
lastm:=thism;
|
lastm:=thism;
|
||||||
end else star('File does not exist: '+s1);
|
end else star('File does not exist: '+s1);
|
||||||
lastm:=thism;
|
lastm:=thism;
|
||||||
|
@ -177,7 +190,9 @@ var j,k:integer;
|
||||||
f:file;
|
f:file;
|
||||||
mary:array[0..200] of messagerec;
|
mary:array[0..200] of messagerec;
|
||||||
begin
|
begin
|
||||||
while copy(npath,length(npath),1)='\' do
|
{rcg11242000 DOSism.}
|
||||||
|
{while copy(npath,length(npath),1)='\' do}
|
||||||
|
while copy(npath,length(npath),1)='/' do
|
||||||
npath:=copy(npath,1,length(npath)-1);
|
npath:=copy(npath,1,length(npath)-1);
|
||||||
with brd do begin
|
with brd do begin
|
||||||
getdir(0,odir);
|
getdir(0,odir);
|
||||||
|
@ -211,9 +226,15 @@ begin
|
||||||
close(f);
|
close(f);
|
||||||
gotoxy(wherex,wherey-1); clreol;
|
gotoxy(wherex,wherey-1); clreol;
|
||||||
inc(k);
|
inc(k);
|
||||||
star('Message file #'+cstr(k)+' of '+
|
{rcg11242000 DOSisms.}
|
||||||
|
{
|
||||||
|
star('Message file #'+cstr(k)+' of '+
|
||||||
cstr(mary[0].message.number)+': '+npath+'\'+s);
|
cstr(mary[0].message.number)+': '+npath+'\'+s);
|
||||||
movefile(s1,npath+'\');
|
movefile(s1,npath+'\');
|
||||||
|
}
|
||||||
|
star('Message file #'+cstr(k)+' of '+
|
||||||
|
cstr(mary[0].message.number)+': '+npath+'/'+s);
|
||||||
|
movefile(s1,npath+'/');
|
||||||
end else star('File does not exist: '+s1);
|
end else star('File does not exist: '+s1);
|
||||||
end;
|
end;
|
||||||
end else star('Unable to open file: '+systat.gfilepath+brd.filename+'.BRD');
|
end else star('Unable to open file: '+systat.gfilepath+brd.filename+'.BRD');
|
||||||
|
@ -233,14 +254,14 @@ begin
|
||||||
star('This program can do all the work of seperating all the messages');
|
star('This program can do all the work of seperating all the messages');
|
||||||
star('in each base into their own directories.');
|
star('in each base into their own directories.');
|
||||||
writeln;
|
writeln;
|
||||||
star('Message directories will be created off of your current Telegard MSGS\');
|
star('Message directories will be created off of your current Telegard MSGS/');
|
||||||
star('directory according to the *.BRD FILENAMEs of each message base.');
|
star('directory according to the *.BRD FILENAMEs of each message base.');
|
||||||
writeln;
|
writeln;
|
||||||
star('Example:');
|
star('Example:');
|
||||||
star('"'+systat.pmsgpath+'EMAIL\" for private mail');
|
star('"'+systat.pmsgpath+'EMAIL/" for private mail');
|
||||||
star('"'+systat.pmsgpath+'GENERAL\" for message base #1');
|
star('"'+systat.pmsgpath+'GENERAL/" for message base #1');
|
||||||
star(' (if msg base #1 filename is "GENERAL")');
|
star(' (if msg base #1 filename is "GENERAL")');
|
||||||
star('"'+systat.pmsgpath+'MISC\" for message base #2');
|
star('"'+systat.pmsgpath+'MISC/" for message base #2');
|
||||||
star(' (if msg base #2 filename is "MISC")');
|
star(' (if msg base #2 filename is "MISC")');
|
||||||
star('And so on.');
|
star('And so on.');
|
||||||
writeln;
|
writeln;
|
||||||
|
@ -257,15 +278,23 @@ begin
|
||||||
reset(bf);
|
reset(bf);
|
||||||
for i:=0 to filesize(bf)-1 do begin
|
for i:=0 to filesize(bf)-1 do begin
|
||||||
seek(bf,i); read(bf,brd);
|
seek(bf,i); read(bf,brd);
|
||||||
brd.msgpath:=brd.msgpath+brd.filename+'\';
|
{rcg11242000 DOSism.}
|
||||||
|
{brd.msgpath:=brd.msgpath+brd.filename+'\';}
|
||||||
|
brd.msgpath:=brd.msgpath+brd.filename+'/';
|
||||||
seek(bf,i); write(bf,brd);
|
seek(bf,i); write(bf,brd);
|
||||||
star('Moving messages in '+brd.filename+'.BRD ('+brd.name+') to "'+brd.msgpath+'"');
|
star('Moving messages in '+brd.filename+'.BRD ('+brd.name+') to "'+brd.msgpath+'"');
|
||||||
movemsgbase(brd,brd.msgpath,i+1);
|
movemsgbase(brd,brd.msgpath,i+1);
|
||||||
end;
|
end;
|
||||||
close(bf);
|
close(bf);
|
||||||
chdir(sp);
|
chdir(sp);
|
||||||
|
{rcg11242000 DOSisms.}
|
||||||
|
{
|
||||||
ttl('Moving private mail into "'+systat.pmsgpath+'EMAIL\"');
|
ttl('Moving private mail into "'+systat.pmsgpath+'EMAIL\"');
|
||||||
moveprivmail(systat.pmsgpath+'EMAIL\');
|
moveprivmail(systat.pmsgpath+'EMAIL\');
|
||||||
systat.pmsgpath:=systat.pmsgpath+'EMAIL\';
|
systat.pmsgpath:=systat.pmsgpath+'EMAIL\';
|
||||||
|
}
|
||||||
|
ttl('Moving private mail into "'+systat.pmsgpath+'EMAIL/"');
|
||||||
|
moveprivmail(systat.pmsgpath+'EMAIL/');
|
||||||
|
systat.pmsgpath:=systat.pmsgpath+'EMAIL/';
|
||||||
rewrite(systatf); write(systatf,systat); close(systatf);
|
rewrite(systatf); write(systatf,systat); close(systatf);
|
||||||
end.
|
end.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{rcg11172000 stub functions.}
|
{rcg11172000 stub functions.}
|
||||||
|
|
||||||
{$A+,B+,D-,E+,F+,I+,L-,N-,O-,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L-,N-,O-,R-,S+,V-}
|
||||||
unit stubs;
|
unit stubs;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
(*> SysOp functions: Protocol editor. <*)
|
(*> SysOp functions: Protocol editor. <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop1;
|
unit sysop1;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
(*> SysOp functions: Voting question editor, voting results output. <*)
|
(*> SysOp functions: Voting question editor, voting results output. <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop10;
|
unit sysop10;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
(*> SysOp functions: Voting question editor, voting results output. <*)
|
(*> SysOp functions: Voting question editor, voting results output. <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop11;
|
unit sysop11;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop2;
|
unit sysop2;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop21;
|
unit sysop21;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
(*> (Modem Configuration) <*)
|
(*> (Modem Configuration) <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop2a;
|
unit sysop2a;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop2b;
|
unit sysop2b;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -190,7 +190,9 @@ begin
|
||||||
prt(' path:');
|
prt(' path:');
|
||||||
nl; mpl(79); input(s,79);
|
nl; mpl(79); input(s,79);
|
||||||
if (s<>'') then begin
|
if (s<>'') then begin
|
||||||
if (copy(s,length(s),1)<>'\') then s:=s+'\';
|
{rcg11242000 DOSism.}
|
||||||
|
{if (copy(s,length(s),1)<>'\') then s:=s+'\';}
|
||||||
|
if (copy(s,length(s),1)<>'\') then s:=s+'/';
|
||||||
if (wantit) then
|
if (wantit) then
|
||||||
case c of
|
case c of
|
||||||
'1':gfilepath:=s; '2':afilepath:=s;
|
'1':gfilepath:=s; '2':afilepath:=s;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop2c;
|
unit sysop2c;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop2d;
|
unit sysop2d;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
(*> SysOp functions: System Configuration Editor -- "E" command. <*)
|
(*> SysOp functions: System Configuration Editor -- "E" command. <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop2e;
|
unit sysop2e;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
(*> SysOp functions: System Configuration Editor -- "F" command. <*)
|
(*> SysOp functions: System Configuration Editor -- "F" command. <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop2f;
|
unit sysop2f;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -48,7 +48,9 @@ begin
|
||||||
printacr(s,abort,next);
|
printacr(s,abort,next);
|
||||||
printacr('H. Auto-validate ALL files ULed? :'+syn(validateallfiles),abort,next);
|
printacr('H. Auto-validate ALL files ULed? :'+syn(validateallfiles),abort,next);
|
||||||
printacr('I. Remote DOS re-direction device :'+systat.remdevice,abort,next);
|
printacr('I. Remote DOS re-direction device :'+systat.remdevice,abort,next);
|
||||||
printacr('J. Max k-bytes allowed in TEMP\3\ :'+cstr(systat.maxintemp),abort,next);
|
{rcg11242000 DOSism.}
|
||||||
|
{printacr('J. Max k-bytes allowed in TEMP\3\ :'+cstr(systat.maxintemp),abort,next);}
|
||||||
|
printacr('J. Max k-bytes allowed in TEMP/3/ :'+cstr(systat.maxintemp),abort,next);
|
||||||
printacr('K. Min k-bytes to save for resume :'+cstr(systat.minresume),abort,next);
|
printacr('K. Min k-bytes to save for resume :'+cstr(systat.minresume),abort,next);
|
||||||
nl;
|
nl;
|
||||||
prt('Enter selection (A-K) [Q]uit : '); onek(c,'QABCDEFGHIJK'^M);
|
prt('Enter selection (A-K) [Q]uit : '); onek(c,'QABCDEFGHIJK'^M);
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop2fa;
|
unit sysop2fa;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop2g;
|
unit sysop2g;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop2h;
|
unit sysop2h;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop2i;
|
unit sysop2i;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop2s;
|
unit sysop2s;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop2z;
|
unit sysop2z;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
(*> SysOp functions: User Editor. <*)
|
(*> SysOp functions: User Editor. <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop3;
|
unit sysop3;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop4;
|
unit sysop4;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
(*> Vote printer. <*)
|
(*> Vote printer. <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop5;
|
unit sysop5;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
(*> SysOp functions: Event editor <*)
|
(*> SysOp functions: Event editor <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop6;
|
unit sysop6;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
(*> SysOp functions: Menu editor <*)
|
(*> SysOp functions: Menu editor <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop7;
|
unit sysop7;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
(*> SysOp functions: Menu editor -- "M" command (modify commands) <*)
|
(*> SysOp functions: Menu editor -- "M" command (modify commands) <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop7m;
|
unit sysop7m;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
17
sysop8.pas
17
sysop8.pas
|
@ -5,7 +5,7 @@
|
||||||
(*> SysOp functions: Message base editor <*)
|
(*> SysOp functions: Message base editor <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop8;
|
unit sysop8;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -420,15 +420,24 @@ var f1:file;
|
||||||
end;
|
end;
|
||||||
nl; prompt('Current message path: ');
|
nl; prompt('Current message path: ');
|
||||||
if (msgpath<>'') then print(msgpath) else print('*NONE*');
|
if (msgpath<>'') then print(msgpath) else print('*NONE*');
|
||||||
nl; print('Press <CR> to use default path "'+systat.msgpath+filename+'\"');
|
{rcg11242000 DOSism.}
|
||||||
|
{nl; print('Press <CR> to use default path "'+systat.msgpath+filename+'\"');}
|
||||||
|
nl; print('Press <CR> to use default path "'+systat.msgpath+filename+'/"');
|
||||||
nl; print('Enter new message path:');
|
nl; print('Enter new message path:');
|
||||||
prt(':'); mpl(40); input(s,40); s:=sqoutsp(s);
|
prt(':'); mpl(40); input(s,40); s:=sqoutsp(s);
|
||||||
if (s<>'') then begin
|
if (s<>'') then begin
|
||||||
while (copy(s,length(s)-1,2)='\\') do s:=copy(s,1,length(s)-1);
|
{rcg11242000 DOSisms.}
|
||||||
|
{
|
||||||
|
while (copy(s,length(s)-1,2)='\\') do s:=copy(s,1,length(s)-1);
|
||||||
if (copy(s,length(s),1)<>'\') then s:=s+'\';
|
if (copy(s,length(s),1)<>'\') then s:=s+'\';
|
||||||
|
}
|
||||||
|
while (copy(s,length(s)-1,2)='//') do s:=copy(s,1,length(s)-1);
|
||||||
|
if (copy(s,length(s),1)<>'/') then s:=s+'/';
|
||||||
msgpath:=s;
|
msgpath:=s;
|
||||||
end;
|
end;
|
||||||
if ((s='') and (msgpath='')) then msgpath:=systat.msgpath+filename+'\';
|
{rcg11242000 DOSism.}
|
||||||
|
{if ((s='') and (msgpath='')) then msgpath:=systat.msgpath+filename+'\';}
|
||||||
|
if ((s='') and (msgpath='')) then msgpath:=systat.msgpath+filename+'/';
|
||||||
if (not existdir(msgpath)) then begin
|
if (not existdir(msgpath)) then begin
|
||||||
nl; print('"'+msgpath+'" does not exist.');
|
nl; print('"'+msgpath+'" does not exist.');
|
||||||
if (pynq('Create message directory now? ')) then begin
|
if (pynq('Create message directory now? ')) then begin
|
||||||
|
|
18
sysop9.pas
18
sysop9.pas
|
@ -5,7 +5,7 @@
|
||||||
(*> SysOp functions: File base editor <*)
|
(*> SysOp functions: File base editor <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit sysop9;
|
unit sysop9;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -129,7 +129,9 @@ var i1,ii,culb,i2:integer;
|
||||||
getdir(0,s);
|
getdir(0,s);
|
||||||
name:='<< Not Used >>';
|
name:='<< Not Used >>';
|
||||||
filename:='NEWDIR';
|
filename:='NEWDIR';
|
||||||
dlpath:=s[1]+':DLOADS\';
|
{rcg11242000 DOSism.}
|
||||||
|
{dlpath:=s[1]+':DLOADS\';}
|
||||||
|
dlpath:=s[1]+':DLOADS/';
|
||||||
ulpath:=dlpath;
|
ulpath:=dlpath;
|
||||||
maxfiles:=2000;
|
maxfiles:=2000;
|
||||||
password:='';
|
password:='';
|
||||||
|
@ -287,8 +289,13 @@ var i1,ii,culb,i2:integer;
|
||||||
print('Enter new download path:');
|
print('Enter new download path:');
|
||||||
prt(':'); mpl(40); input(s,40); s:=sqoutsp(s);
|
prt(':'); mpl(40); input(s,40); s:=sqoutsp(s);
|
||||||
if (s<>'') then begin
|
if (s<>'') then begin
|
||||||
|
{rcg11242000 DOSisms.}
|
||||||
|
{
|
||||||
while (copy(s,length(s)-1,2)='\\') do s:=copy(s,1,length(s)-1);
|
while (copy(s,length(s)-1,2)='\\') do s:=copy(s,1,length(s)-1);
|
||||||
if (copy(s,length(s),1)<>'\') then s:=s+'\';
|
if (copy(s,length(s),1)<>'\') then s:=s+'\';
|
||||||
|
}
|
||||||
|
while (copy(s,length(s)-1,2)='//') do s:=copy(s,1,length(s)-1);
|
||||||
|
if (copy(s,length(s),1)<>'/') then s:=s+'/';
|
||||||
if (s<>dlpath) then changed:=TRUE;
|
if (s<>dlpath) then changed:=TRUE;
|
||||||
dlpath:=s;
|
dlpath:=s;
|
||||||
if (not existdir(s)) then begin
|
if (not existdir(s)) then begin
|
||||||
|
@ -308,8 +315,13 @@ var i1,ii,culb,i2:integer;
|
||||||
prt(':'); mpl(40); input(s,40); s:=sqoutsp(s);
|
prt(':'); mpl(40); input(s,40); s:=sqoutsp(s);
|
||||||
if ((s='D') or (s='d')) then s:=dlpath;
|
if ((s='D') or (s='d')) then s:=dlpath;
|
||||||
if (s<>'') then begin
|
if (s<>'') then begin
|
||||||
while (copy(s,length(s)-1,2)='\\') do s:=copy(s,1,length(s)-1);
|
{rcg11242000 DOSism.}
|
||||||
|
{
|
||||||
|
while (copy(s,length(s)-1,2)='\\') do s:=copy(s,1,length(s)-1);
|
||||||
if (copy(s,length(s),1)<>'\') then s:=s+'\';
|
if (copy(s,length(s),1)<>'\') then s:=s+'\';
|
||||||
|
}
|
||||||
|
while (copy(s,length(s)-1,2)='//') do s:=copy(s,1,length(s)-1);
|
||||||
|
if (copy(s,length(s),1)<>'/') then s:=s+'/';
|
||||||
if (s<>ulpath) then changed:=TRUE;
|
if (s<>ulpath) then changed:=TRUE;
|
||||||
ulpath:=s;
|
ulpath:=s;
|
||||||
if (not existdir(s)) then begin
|
if (not existdir(s)) then begin
|
||||||
|
|
15
t2t.pas
15
t2t.pas
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
{$M 50000,0,1000} { Declared here suffices for all Units as well! }
|
{$M 50000,0,1000} { Declared here suffices for all Units as well! }
|
||||||
|
|
||||||
uses
|
uses
|
||||||
|
@ -86,8 +86,13 @@ end;
|
||||||
|
|
||||||
procedure alignpathname(var s:astr);
|
procedure alignpathname(var s:astr);
|
||||||
begin
|
begin
|
||||||
|
{rcg11242000 DOSisms.}
|
||||||
|
{
|
||||||
if copy(s,length(s),1)<>'\' then s:=s+'\';
|
if copy(s,length(s),1)<>'\' then s:=s+'\';
|
||||||
while (copy(s,length(s)-1,2)='\\') and (length(s)>2) do
|
while (copy(s,length(s)-1,2)='\\') and (length(s)>2) do
|
||||||
|
}
|
||||||
|
if copy(s,length(s),1)<>'/' then s:=s+'/';
|
||||||
|
while (copy(s,length(s)-1,2)='//') and (length(s)>2) do
|
||||||
s:=copy(s,1,length(s)-1);
|
s:=copy(s,1,length(s)-1);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -182,8 +187,12 @@ end;
|
||||||
|
|
||||||
function exdrv(s:astr):byte;
|
function exdrv(s:astr):byte;
|
||||||
begin
|
begin
|
||||||
|
{rcg11242000 point at root drive always. Ugh.}
|
||||||
|
{
|
||||||
s:=fexpand(s);
|
s:=fexpand(s);
|
||||||
exdrv:=ord(s[1])-64;
|
exdrv:=ord(s[1])-64;
|
||||||
|
}
|
||||||
|
exdrv:=3;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure movefile(srcname,destpath:string);
|
procedure movefile(srcname,destpath:string);
|
||||||
|
@ -1187,7 +1196,9 @@ begin
|
||||||
writeln('Now you need to enter your Telegard MSGS directory, where you');
|
writeln('Now you need to enter your Telegard MSGS directory, where you');
|
||||||
writeln('will later be putting all of your message files in.');
|
writeln('will later be putting all of your message files in.');
|
||||||
writeln;
|
writeln;
|
||||||
writeln('This is probably "'+tgpath+'MSGS\" ...');
|
{rcg11242000 DOSism.}
|
||||||
|
{writeln('This is probably "'+tgpath+'MSGS\" ...');}
|
||||||
|
writeln('This is probably "'+tgpath+'MSGS/" ...');
|
||||||
writeln;
|
writeln;
|
||||||
textcolor(9); write('Telegard MSGS Path: '); infield(tmsgpath,40);
|
textcolor(9); write('Telegard MSGS Path: '); infield(tmsgpath,40);
|
||||||
if (tmsgpath='') then ee('ABORTED');
|
if (tmsgpath='') then ee('ABORTED');
|
||||||
|
|
7
ta2z.pas
7
ta2z.pas
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
{$M 32150,0,0} { Declared here suffices for all Units as well! }
|
{$M 32150,0,0} { Declared here suffices for all Units as well! }
|
||||||
|
|
||||||
uses
|
uses
|
||||||
|
@ -140,8 +140,13 @@ end;
|
||||||
|
|
||||||
procedure alignpathname(var s:astr);
|
procedure alignpathname(var s:astr);
|
||||||
begin
|
begin
|
||||||
|
{rcg11242000 DOSisms.}
|
||||||
|
{
|
||||||
if copy(s,length(s),1)<>'\' then s:=s+'\';
|
if copy(s,length(s),1)<>'\' then s:=s+'\';
|
||||||
while (copy(s,length(s)-1,2)='\\') and (length(s)>2) do
|
while (copy(s,length(s)-1,2)='\\') and (length(s)>2) do
|
||||||
|
}
|
||||||
|
if copy(s,length(s),1)<>'/' then s:=s+'/';
|
||||||
|
while (copy(s,length(s)-1,2)='//') and (length(s)>2) do
|
||||||
s:=copy(s,1,length(s)-1);
|
s:=copy(s,1,length(s)-1);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit timejunk;
|
unit timejunk;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
UNIT tmpcom;
|
UNIT tmpcom;
|
||||||
|
|
||||||
{Version 3.0}
|
{Version 3.0}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O-,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O-,R-,S+,V-}
|
||||||
unit tmpcom;
|
unit tmpcom;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
(*> various status reports, and log on locally. <*)
|
(*> various status reports, and log on locally. <*)
|
||||||
(*> <*)
|
(*> <*)
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
{$A+,B+,E+,F+,I+,L+,N-,O+,R-,S+,V-}
|
||||||
unit wfcmenu;
|
unit wfcmenu;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
Loading…
Reference in New Issue