home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carsten's PPE Collection
/
Carstens_PPE_Collection_2007.zip
/
S
/
STATS110.ZIP
/
STATS.PPS
< prev
next >
Wrap
Text File
|
1994-08-13
|
7KB
|
238 lines
STRING numbers(50)
STRING time1,time2,data,it,Protocol
STRING cursor_pos,cursor_text(4,2),stats_text(4,8),clear_line
INTEGER count,count2,show
INTEGER clock_line,char_depth,char_length,move_cursor_pos,stats_pos,clock_pos
GETUSER
IF (GRAFMODE()="N") GOTO STUFF
IF (U_PAGELEN()<23) THEN
IF (U_PAGELEN()<>0) THEN
NEWLINE
PRINTLN "@X07THE STATiSTiCS ONLY OPERATE WiTH 23 LiNES OR MORE !"
PRINTLN "YOUR PAGELENGTH IS SHORTER THAN 23 LiNES. ENTER (P)AGELENGTH FROM THE CMD-LINE."
WAIT
GOTO STUFF
ENDIF
ENDIF
PRINT "
@PRODESC@
"
Protocol=SCRTEXT(1,GETY(),22,FALSE)
RDUNET (PCBNODE())
WRUNET PCBNODE(),UN_STAT(),UN_NAME(),UN_CITY(),"ViEWiNG THE STATiSTiCS",""
clear_line=" "
stats_text(1,1)="@X0F@USER@'S STATiST@X07iC@X08S"
stats_text(1,2)=""
stats_text(1,3)="@X08T@X07iM@X0FE LEFT / USED @X05:@X0F @TIMELEFT@ / @TIMEUSED@ MiNS"
stats_text(1,4)="@X08 Y@X07OU@X0FR CONNECT @X05:@X0F "+MID(MODEM(),1,22)
stats_text(1,5)="@X08Y@X07OU@X0FR VOiCE NUMBA @X05:@X0F @HOMEPHONE@"
stats_text(1,6)="@X08 N@X07UM@X0FBER TiMES ON @X05:@X0F @NUMTIMESON@"
stats_text(1,7)="@X08L@X07AS@X0FT TiME ON WAS @X05:@X0F @LASTDATEON@ @X07/@X0F @LASTTIMEON@"
stats_text(1,8)="@X08Y@X07OU@X0FR EXPiRE DATE @X05:@X0F @EXPDAYS@ DAYS"
stats_text(2,1)="@X08 Y@X07OU@X0F DOWNLOADED @X05:@X0F @DLBYTES@ BYTES"
stats_text(2,2)=" @X05:@X0F @DLFILES@ FiLES"
stats_text(2,3)="@X08 Y@X07OU@X0F UPLOADED @X05:@X0F @UPBYTES@ BYTES"
stats_text(2,4)=" @X05:@X0F @UPFILES@ FiLES"
stats_text(2,5)="@X08Y@X07OU@X0FR DL/UL RATIO @X05:@X0F @BYTERATIO@"
stats_text(2,6)="@X08T@X07OD@X0FAY BYTES LEFT @X05:@X0F @BYTELIMIT@"
stats_text(2,7)=" @X08S@X07E@X0FCURiTY LEVEL @X05:@X0F "+MID(CURSEC(),1,22)
stats_text(2,8)="@X08D@X07EF@X0FAULT PROTOCOL @X05:@X0F "+Protocol
stats_text(3,1)="@X0FMESSAGE STATiST@X07iC@X08S"
stats_text(3,2)=""
stats_text(3,3)="@X08Y@X07OU@X0F WROTE @X05:@X0F @MSGLEFT@ MESSAGES"
stats_text(3,4)="@X08Y@X07OU@X0F READ @X05:@X0F @MSGREAD@ MESSAGES"
stats_text(3,5)=""
stats_text(3,6)="@X08Y@X07OU@X0FR CURRENT CONF @X07(@X0F@CONFNUM@@X07)@POS:28@@X05:@X0F @CONFNAME@"
stats_text(3,7)="@X08 T@X07HE@X0F HiGHEST MSG # iS @X05:@X0F @HIGHMSGNUM@"
stats_text(3,8)="@X08 L@X07AS@X0FT MSG # YOU READ @X05:@X0F @LMR@"
data=U_STAT(1)
stats_text(4,1)="@X08F@X07iR@X0FST CONNECT WiTH SYSTEM WAS "+data
data=U_STAT(7)
stats_text(4,2)="@X082@X0740@X0F0 BPS CONNECTS @X05:@X0F "+data
data=U_STAT(8)
stats_text(4,3)="@X089@X0760@X0F0 BPS CONNECTS @X05:@X0F "+data
data=U_STAT(9)
stats_text(4,4)="@X081@X074k@X0F+ BPS CONNECTS @X05:@X0F "+data
data=U_STAT(14)
stats_text(4,5)="@X08P@X07AS@X0FSWORD ERRORS @X05:@X0F "+data
data=U_STAT(12)
stats_text(4,6)="@X08D@X07L @X0FLiMiT REACHED @X05:@X0F "+data
data=U_STAT(15)
stats_text(4,7)="@X08V@X07ER@X0FiFY ERRORS @X05:@X0F "+data
data=U_STAT(2)
stats_text(4,8)="@X08S@X07YS@X0FOP PAGES @X05:@X0F "+data
cursor_text(1,1)="@X0F PERSONAL STATS "
cursor_text(2,1)="@X0F TRANSFER STATS "
cursor_text(3,1)="@X0F MESSAGES STATS "
cursor_text(4,1)="@X0F SPECiAL STATS "
IF (LANGEXT()="") THEN
cursor_text(1,2)="@X0F▐@X7F▒PERSONAL STATS@X78▒@X08▌"
cursor_text(2,2)="@X0F▐@X7F▒TRANSFER STATS@X78▒@X08▌"
cursor_text(3,2)="@X0F▐@X7F▒MESSAGES STATS@X78▒@X08▌"
cursor_text(4,2)="@X0F▐@X7F▒SPECiAL STATS@X78▒@X08▌"
ENDIF
IF (LANGEXT()=".AMI") THEN
cursor_text(1,2)="@X01:|@X1FPERSONAL STATS@X01|:"
cursor_text(2,2)="@X01:|@X1FTRANSFER STATS@X01|:"
cursor_text(3,2)="@X01:|@X1FMESSAGES STATS@X01|:"
cursor_text(4,2)="@X01:|@X1FSPECiAL STATS@X01|:"
ENDIF
char_depth=4
char_length=8
move_cursor_pos=58
stats_pos=6
clock_pos=9
clock_line=18
time2=""
cursor_pos=1
IF (!EXIST (PPEPATH()+"numbas"+GRAFMODE()) & !EXIST (PPEPATH()+"numbas") & !EXIST (PPEPATH()+"numbas"+LANGEXT())) END
IF (EXIST (PPEPATH()+"numbas"+GRAFMODE()+LANGEXT())) THEN
FOPEN 1,PPEPATH()+"numbas"+GRAFMODE()+LANGEXT(),O_RD,S_DN
GOTO READ_NUMBERS
ENDIF
IF (EXIST (PPEPATH()+"numbas"+LANGEXT())) THEN
FOPEN 1,PPEPATH()+"numbas"+LANGEXT(),O_RD,S_DN
GOTO READ_NUMBERS
ENDIF
FOPEN 1,PPEPATH()+"numbas",O_RD,S_DN
:READ_NUMBERS
FOR count = 1 TO 12*char_depth
FGET 1,numbers(count)
NEXT
FCLOSE 1
:BUILD_SCREEN
CLS
PRINT "@POFF@"
DISPFILE PPEPATH()+"FIELD",GRAPH+LANG
IF (!LANGEXT()=".AMI") THEN
IF (GRAFMODE()="A") THEN
ANSIPOS 1,24
MPRINT "▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀"
ENDIF
IF (GRAFMODE()="G"|GRAFMODE()="R") THEN
ANSIPOS 1,24
MPRINT "
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
"
ENDIF
ENDIF
ANSIPOS move_cursor_pos,6
PRINT cursor_text(1,2)
ANSIPOS move_cursor_pos,7
PRINT cursor_text(2,1)
ANSIPOS move_cursor_pos,8
PRINT cursor_text(3,1)
ANSIPOS move_cursor_pos,9
PRINT cursor_text(4,1)
GOSUB DISP_STATS
:RESCALE_TIME
time2=time1
time1=TIME()
FOR count=1 to 9
IF (MID (time1,count,1)<>MID(time2,count,1)) THEN
data=time1
GOSUB NEW_SCREEN
ENDIF
NEXT
it=INKEY()
IF (it<>"") GOTO KEY
DELAY 1
GOTO RESCALE_TIME
:KEY
IF (it=CHR(27)) GOTO END
IF (it=CHR(13)) GOTO END
IF (UPPER(it)="Q") GOTO END
IF (it=" ") GOTO END
IF (it="4") GOTO UP
IF (it="LEFT") GOTO UP
IF (it="8") GOTO UP
IF (it="UP") GOTO UP
IF (it="2") GOTO DOWN
IF (it="DOWN") GOTO DOWN
IF (it="6") GOTO DOWN
IF (it="RIGHT") GOTO DOWN
GOTO RESCALE_TIME
:UP
IF (cursor_pos="1") GOTO RESCALE_TIME
DEC cursor_pos
GOSUB NEW_CURSOR_UP
GOTO RESCALE_TIME
:DOWN
IF (cursor_pos="4") GOTO RESCALE_TIME
INC cursor_pos
GOSUB NEW_CURSOR_DOWN
GOTO RESCALE_TIME
:NEW_CURSOR_UP
ANSIPOS move_cursor_pos,cursor_pos+6
PRINT cursor_text(cursor_pos+1,1)
ANSIPOS move_cursor_pos,cursor_pos+5
PRINT cursor_text(cursor_pos,2)
GOSUB DISP_STATS
RETURN
:NEW_CURSOR_DOWN
ANSIPOS move_cursor_pos,cursor_pos+4
PRINT cursor_text(cursor_pos-1,1)
ANSIPOS move_cursor_pos,cursor_pos+5
PRINT cursor_text(cursor_pos,2)
GOSUB DISP_STATS
RETURN
:DISP_STATS
FOR count = 1 to 8
ANSIPOS stats_pos,count+3
PRINT clear_line
ANSIPOS stats_pos,count+3
PRINT stats_text(cursor_pos,count)
NEXT
RETURN
:NEW_SCREEN
show=""
IF (MID (data,count,1)="1") show=1
IF (MID (data,count,1)="2") show=2
IF (MID (data,count,1)="3") show=3
IF (MID (data,count,1)="4") show=4
IF (MID (data,count,1)="5") show=5
IF (MID (data,count,1)="6") show=6
IF (MID (data,count,1)="7") show=7
IF (MID (data,count,1)="8") show=8
IF (MID (data,count,1)="9") show=9
IF (MID (data,count,1)=":") show=10
IF (MID (data,count,1)=".") show=11
IF (MID (data,count,1)="-") show=11
IF (show="") show=11
IF (MID (data,count,1)="0") show=0
FOR count2=1 TO char_depth
ANSIPOS count*char_length-char_length+clock_pos,count2+clock_line-1
PRINT numbers(show*char_depth+count2)
NEXT
RETURN
:STUFF
KBDSTUFF "V"+CHR(13)
END
:END
PRINT "@X07"
CLS
END