TIP: Click on subject to list as thread! ANSI
echo: win95
to: ALL
from: GRYPHON
date: 2019-01-31 19:20:24
subject: New Mystic MPL - New File

Hello All!

I have a tiny, little MPL utility that you all might find useful.  I call it,
"Files Since Last Call".   It's a little utility that I use to announce to
callers how many files have been uploaded, and in which directories, since
their last call.  I place this in my prelogin menu.

MCI codes may, or may not show up correctly, so you may need to do some
editing on that front.

Just download with the 'X' command, take out all this unwanted text, and
compile it.

fslc.mps
-----8<--------------------
Uses Cfg
Uses User
Uses FBase

Type
  RecFileList = Record
        FileName  : String[70];
        Size      : LongInt;
        DatTim    : LongInt;
        Uploader  : String[30];
        Flags     : Byte;
        Downloads : LongInt;
        Rating    : Byte;
        DescPtr   : LongInt;
        DescLines : Byte;
End;

Var Files        : RecFileList
Var TotFiles        : Integer
Var Ok2,Ok        : Boolean = True

Function ReadListEntry(FN:String;I:Integer):Boolean
Var Ret        : Boolean=False
Var Fp        : File
Begin
        fAssign(Fp,CfgDataPath+FN+'.dir',66)
        fReset(Fp)
        If IoResult = 0 Then Begin
                fSeek(Fp,(I-1)*SizeOf(Files))
                If Not fEof(Fp) Then Begin
                        fRead(Fp,Files,SizeOf(Files))
                        Ret:=True
                End
                fClose(Fp)
        End
        ReadListEntry:=Ret
End

Procedure Main
Var Done        : Boolean = False
Var I,H        : Integer
Var S                : String
Begin
        H:=1
        While GetFBase(H) Do Begin
                If ACS(FBaseACS) Then Begin
                        I:=0
                        TotFiles:=0
                        While ReadListEntry(FBaseFN,I+1) Do Begin
                                If Files.DatTim >= UserLastOn Then Begin
                                        TotFiles:=TotFiles+1
                                End
                                I:=I+1
                        End
                        If TotFiles > 0 Then Begin
                                If Ok Then Begin
                                        WriteLn('|CR ::: There are new files
si ce your last visit:|CR')
                                        Ok:=False
                                        Ok2:=Ok
                                End
                        WriteLn(''+PadLt(Int2Str(TotFiles),5,' ')+ ' new file(s
 in ' + FBaseName)
                        End

                End
                H:=H+1
        End
End

Begin
        GetThisUser
        Main
        If Not Ok Then Write('|CR |PA')
End
-----8<------------------------

 "No matter where you go, there you are!" - B. Bonzai

--- Mystic BBS v1.10 A51 (Linux)
 þ Synchronet þ thePharcyde_ >> telnet://bbs.pharcyde.org (Wisconsin)
* Origin: Cyberia BBS | Cyberia.Darktech.Org | Kingwood, TX (46:1/116)
SEEN-BY: 19/33 103/705 124/5013 5014 5015 5016 130/803 154/10 203/0 221/0
SEEN-BY: 229/275 426 261/38 280/464 5003 292/624 396/40 45 423/120 633/267 280
SEEN-BY: 640/1384 712/132 620 848 770/1 31999/99
@PATH: 124/5013 5014 396/45 280/464 712/848 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.