home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 3
/
PDCD_3.iso
/
pocketbk
/
utilsf
/
login
/
audit.opl
next >
Wrap
Text File
|
1995-03-14
|
2KB
|
123 lines
REM AUDIT
REM 12/27/92 13:58 complete 15:47
REM REM AUDIT TRAIL OF LAST 6 LOGINS
PROC AUDIT:
local num%,i%,j%,k%,id%,k1%,k2%,k3%,K4%,K5%,gr%,tot%,h,m,s,hd,ht,dt$(25),i,pt%,tt
loadm "timelib"
OPEN "AUDIT",A,DATE1$,DATE2$,N%,TEMPS
gat 43,12
gstyle 3
gprint "The "+gen$(count,3)+" preceding sessions."
last
id%=gcreate(18,20,200,40,1)
k1%=gcreate(15,67,15,12,1)
k2%=gcreate(115,67,15,12,1)
k3%=gcreate(200,67,24,12,1)
guse k1%
gborder 3
gtmode 3
gat 3,9
gprint chr$(283) :rem <--
guse k2%
gborder 3
gtmode 3
gat 3,9
gprint chr$(282) :rem -->
guse k3%
gborder 3
gtmode 3
gat 3,9
gprint "esc"
guse id%
gborder 1
gtmode 3
i%=count
do
gat 3,20
gstyle 16
gprint "Start:"; a.date2$;
gat 3,30
gprint "Session#";gen$(a.n%,-4);" for ";hrs$:(a.temps)
k%=get
if k%=258
if pos>=count
print chr$(7);
giprint "*end"
else
next
i%=i%+1
endif
elseif k%=259
if pos<=1
print chr$(7);
giprint "*begin"
else
back
i%=i%-1
endif
elseif k%=256
first
i%=1
elseif k%=257
last
i%=count
elseif k%=27
return
elseif k%=%g or k%=%G
pt%=pos
tt=0
gr%=gcreate (0,45,240,35,1)
gborder 1
ht=hour*100+(minute*(1.+2./3.))
gat 3+ht/10.,20
gprint chr$(281)
gfont 3
gat 4,30
gprint "0"
i=1
do
gat i*10-6,21
gbox 3,3
gat i*10,21
glineto i*10,23
if i/2=int(i/2)
gat i*10+5+((i>=10)*4)-1,30
gprint i
endif
i=i+1
until i=24
gfont 1
first
do
if left$(a.date2$,14)=left$(datimf$:,14)
h=val(mid$(a.date2$,17,2)) :m=val(mid$(a.date2$,20,2))
ht=h*100+(m*(1.+2./3.))
gat 5+ht/10,0
gbox (int(a.temps/60)*(1.+2./3.))/10,15
tt=tt+a.temps
endif
next
until eof
position pt%
tot%=gcreate (56,0,128,15,1)
gborder 1
guse tot%
gat 2,10
gprint "total/day =";hrs$:(tt)
get
gclose gr%
gclose tot%
guse id%
endif
until k%=27
get
ENDP