home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
lfb_2_4.zip
/
LFB.ENG
< prev
next >
Wrap
Text File
|
1998-05-18
|
18KB
|
589 lines
░▒▓ LFB - file list builder ▓▒░
v 2.4 05-19-98
I put this filelist generator for your opinion. It's not more power that
other generators - it's only next alternative. May be it will be nice for You,
may be only HTML generating, may be You will be not successed - this program
fully for You. If You want to know about new versions and want to test beta
versions - send me message on address in the end of document.
-Distributions
After unpacking archive You'll get followed files
LFB.EXE DOS executive module
LFB-2.EXE OS/2 executive module
LFB-386.EXE DOS/386 executive module
(requared RTM&DPMI16BI.OBL from Borland Pascal)
LFB.INI configuration file
LFB.ARE sample of area templates
LFB.TIT sample of filelist title
LFB.END sample of filelist footer
LFB.HDR sample of area header
LFB.BDL sample of BDL template
LFB.DIR sample of directory list
LFB.EXL sample of excluded directory list
T-MAIL.EXP sample of export file
LFB.DUP sample of duplicate list template
LFB.STA sample of statistic table template
LFB.SUB sample of subarea header template
LFB.CRK sample of CRK/XCK templates
LFB.TBL sample of FILE_ID.DIZ filtering table
LFB.URL sample of path to URL translation (HTML)
LFB.HTM sample of HTML templates
LFB.ICN sample of icon relations
LFB.ENG english manual
LFB.RUS russian manual
-Installation
Copy all files to your own directory, for example C:\MODEM\LFB.
-Setting
>>>>LFB.INI>>>>>
OutFile LEO_ALL.LST
Output filelist. You can set it in NUL - filelist will not be maked.
OutNew LEO_NEW.LST
Output filelist with new files.
AreaTemplate LFB.ARE
File with area template.
TitleFile LFB.TIT
File with filelist header
FooterFile LFB.END
File with filelist footer
AreaHeader LFB.HDR
File with area header
SubAreaHeader LFB.SUB
File with subsrea header
DirectoryList LFB.DIR
File with directory list
ExcludeList LFB.EXL
File with excluded directory list
BBSFILE FILES.BBS
Here you can set an alternative file name for files descriptions,
f.e. DESCRIPT.ION
LogFile LFB.LOG
Log file
BDLTemplate LFB.BDL
BDL template
DupeFile LEO_ALL.DUP
Output file with possible duplicates.
DupeTemplate LFB.DUP
Files with duplicatelist template.
NewFileTime 7
Number of days for new files
AddNewFiles Yes
Do You want o add new files to FILES.BBS
AddLongDesc ' >'
String for long description
LongDescColumn 33
Starting position in result filelist for long description
DlCounter '[--]'
Start string for download counter. If DLCOUNTER not specified -
download counter will be not added
DLCounterIncrease yes
Recalc dlcounters with T-Mail logfiles.
MakeBDL yes
Make best download list.
BDLQuantity 20
Quantity files in BDL (up to 20)
FileNotFound '* Offline *'
Text for offline files
T-Mail-log C:\MODEM\LOG\T-MAIL-0.LOG
T-Mail-log C:\MODEM\LOG\T-MAIL-1.LOG
Path and name of T-Mail logfile. You can specify up to 10 lines.
NoDescription 'Description not available'
Text for files without FILE_ID.DIZ
FilterTable LFB.TBL
Table for FILE_ID.DIZ filtering
MarkNewFiles Yes
Do You want to mark new files
NewFilesSign *
Letter for new files marking
SortFiles Yes
Do You want to sort files when they added
SkipEmpty Yes
Skip empty areas in filelist
LongNameSkipLine Yes
DLCounterSkipLIne Yes
Start writing file description from new line, if file name more then
12 symbols or if download counter exist.
LongDescOneLine No
Put descriptions in one line
PadFirstLine Yes
Start first description line from LongDescColumn position
MakeStatistic Yes
Make area statistic in the end of filelist
StatTemplate LFB.STA
File with statistic table template
ExcludeFiles FILES.*,*.BAK,*.DMP,*.IDX,*.HTM
Filemasks that will not be added during new files search
AreaLevel 0 Public Area
AreaLevel 1 Public Area
Levels and level names
DateFormat DD-MM-YY
Format of file date in output list. Possible combinations with
MM,DD,YY,YYYY,NNN (last - month name)
GetFullMp3Info No
In additional to Mp3 tags - get full info about MP3 file
KeepBbsCase YES
Filenames in FILES.BBS and result filelist will be in own case (YES),
upper (UP), lower (LOW) case.
MakeNameOrder DUP
Order of trying to autoname areas during new area search.
Here must be combination from 3 letters:
D - try to get area name from DIR.BBS in area
U - try to parse area path via url mapping.
Example
***LFB.URL***
c:\bbs ftp://ftp.fonon.kiev.ua/pub/leosoft
***new area path***
C:\BBS\OS2\REXX
***resulting area name***
OS2/REXX
P - directory name will be area name
***new area path***
C:\BBS\OS2\REXX
***resulting area name***
REXX
MakeHtml yes
Make HTML during filelist making. Files will be maked in follow order
index0 - areas index
index1 - area 1
......
MakeNewHtml yes
Make HTML with new files. It will be one file new.htm(l).
HtmlPath c:\bbs\html
Resulting path for HTMLs
HtmlTemplate LFB.HTM
Template for ALL HTML (see followed info about LFB.HTM)
HtmlIndex file:///C|/bbs/html
URL, which replace HtmlPath in index file
ParseFile lfb.url
File with path to URL translations
IconFile lfb.icn
File with path to icon relations
HtmlCode DOS
Convert output text to DOS,WIN or KOI chartable (only letters)
HtmlExtention html
Extention for resulting files
PutHtmlOffline yes
Put offline iles into Html
HtmlFileNotFound "MAIL ME"
Text placed instead of date/size
HtmlFileNotFoundName mailto:su@fonon.kiev.ua?subject=~F
Reference on offline files. In such sample when user press on
offline file href, browser can open window with new mail for
request offline file from sysop. ~F - macros which will be replaced
with requarement file URL.
HtmlKeepCase YES
Filenames in HTML files will be in own case (YES), upper (UP),
lower (LOW) case.
DOS.UnPackR?? Rar.exe e -av- -y -c-
OS/2.UnPackR?? Rar.exe e -av- -y -c-
DOS.UnPackA?? Arj.exe e -y
OS/2.UnPackA?? UnArj.exe e
DOS.UnPackZip PkUnZip.exe -o
OS/2.UnPackZip UnZip.exe -o -j -C -q
DOS.UnPackLzh Lha.exe e -y
OS/2.UnPackLzh Lha32.exe e -y
DOS.UnPackHa Ha.exe ey
OS/2.UnPackHa Ha2.exe ey
Unpackers settings. You can specify up free set of archivers in
followed format
DOS.UnPack<archive extention> <archiver command>
and/or
OS2.UnPack<archive extention> <archiver command>
Wildcards using are possible
>>>>LFB.DIR>>>>>
Path C:\BBS\BBS\
Area path
Name BBS
Area name
SortFiles Yes
Can files be sorted when added. If not specified - LFB use global
setting
AreaLevel 1
Access level for current area
DLCounterIncrease yes
Recalc dlcounters with T-Mail logfiles.
Arealevel 1
Access level to area
DeleteOffline Yes
Delete offline files in current area with command LFB -D
LongDescOneLine No
Put descriptions in one line
FilesBBS C:\BBS\BBS\FILES.BBS
Path and name of FILES.BBS (may be not same name). By default -
FILES.BBS of path Path.
CheckDupe Yes
Check dupes in current areas
AddNewFiles Yes
Do You want o add new files to FILES.BBS
ADD Y:\BBS\MODEM,C:\BBS\CD\BBS\MODEM\FILES.BBS,Modem tools on CD
Additional subareas to current area. Must be presented subarea path and,
optional, name and path to FILES.BBS and area description.
AreaTemplate AREA1.ARE
Independed template for output files into filelist. By default LFB
use global setting.
Records must be delimited by empty line
>>>>LFB.ARE>>>>>
This file must contain one(!) string with can contain followed macroses:
~F file name
~F(18) outpu filename, padded up to 18 (right padding). If length
of filename more than 18 - it padded with once space.
~S file size
~S(9) file size padded up to 9 (left padding)
~Sf(9) file size padded up to 9 in floating format (by default)
less than 1000 - in bytes
less than 1000K - in kilobytes
more than 1M - in megabytes
~Sb filesize in bytes
~Sk filesize in kilobytes
~Sm filesize in megabytes
~D file data
~M new files mark
~L download counter
~N file note (first 43 symbols, without splitting - by default)
~N(80) file note (first 80 symbols)
~N(80,>) file note (full note, splitted by 80 sysmbols)
~N(800) file note (first 800 symbols without splitting - full
note in one line)
When You not use splits - all lines from note will be merged
and splitted after that.
>>>>LFB.TIT>>>>>
In this file You can use macros ~D - date of filelist creation
>>>>LFB.HDR>>>>>
In this file You can use macroses
~N area number
~A area name
~K file size in Kb
~F count of files
~U access level number
~L access level name
Symbol '#' sets field width, for example ~N## - area number will displayed
in 4 positions.
>>>>LFB.SUB>>>>>
In this file You can use macros
~A area name
>>>>LFB.DUP>>>>>
In this file You can use macros
~N area number
~A area name
~P area path
~F file name
~S file size
~D file date
~O file description
>>>>LFB.STA>>>>>
In this file You can use macros
~N area number
~A area name
~P area path
~T file count
~M new file count
~S files size
>>>>LFB.EXL>>>>>
Directory list which can not be added to LFB.DIR during searching of new
areas. It not recursive, i.e. if listed directory C:\BBS\NEW - it not be
added, but directory C:\BBS\NEW\LIST can be added.
>>>>LFB.BDL>>>>>
You simply draw your own table. File template begins from %FILESTART string
(nothing any in this string) and finish at %FILEEND string. In this section
you can use macroses
~N area number
~A area name
~F file name
~C download counter
with '#' field settings.
All other strings outside file section will be putted into BDL.
In additional You can use macros ~D - current date.
>>>>*.EXP>>>>>
You can use 3 macroses
&File DIR.FRQ
Exported file name
All text between &File and &PathArea will be place as header in
result file.
&PathArea
&NameArea
Area path and name
Other strings will be simply inserted into result file, include empty strings
When LFB found new files it try to extract FILE_ID.DIZ from archives,
description from CRK and XCK files and size and number of colors from
BMP,GIF,JPG files, title from MP3,MOD,STM,S3M,XM.
>>>>LFB.CRK>>>>>
In this file each line is a mask for finding description in CRK/XCK files.
If any string in CRK file begins from any string from LFB.CRK - the rest
of source string stayed as description.
If LFB not find any matches - it place first string from CRK file as
description.
>>>>LFB.TBL>>>>>
This file contains 255 lines, each consist of one or two symbols, delimited
by space or tab, and specified in text, decimal or hex type, f.e "space" can
be ' ' or 32 or x20. First symbol - incoming letter, secont - outgoing after
exchanging. If second symbol not specified or set to 0x - it not be placed
into description.
>>>>LFB.URL>>>>>
Here You can place rules for path to URL translations, for example
C:\BBS http://www.fonon.kiev.ua/~su/ftp/
D:\ http://www.fonon.kiev.ua/~su/ftp1/
E:\OTHER ftp://ftp.fonon.kiev.ua/pub/e_drive
>>>>LFB.ICN>>>>>
Here You can place strings within current format
<icon file name> <file extention> [<..>]
For example
binary.gif exe com
compress.gif zip rar r?? arj a?? ha lzh lha
sound.gif wav voc mod mid stm s3m xm mp3 mp2 ra
unknown.gif *
>>>>LFB.HTM>>>>>
Here You define of template for your HTML
!Attention! Please, keep order of %labels in template
Label must be simple one in each line
%IndexHeader
Header of index HTML file.
%Index
Template of reference to area. Available variables:
~U - URL to area HTML
~N - area name
%IndexFooter
Footer for index HTML
%Header
Header for area HTML
Available variable
~N - area name
%TableHeader
Defining of table with files
Available variable
~N - area name
%RowHeader
Defining of row in table
%Columns
Defining of items in the table row.
Available variables
~U - file URL
~F - file name
~D - file date
~S - file size (see area template formats)
~L - download counter
~N - file description
~I - file name with icon, related to urrent file extention
%RowFooter
Tag for closing table row
%TableFooter
Tag for closing table
Available variables
~C - total files count
~S - total files size (see area template formats)
%Footer
Document footer
-Starting
Current version of LFB support follow command line parameters
-B[n,...] [<output file>]
Build filelist and new filelist
n - only put areas with access level n (or levels, separated by commas)
<output file> - name of output file for filelist (filelist with
new files not will be created in this case)
-F <root directory>
Find new areas with FILES.BBS. If file DIR.BBS exist - area name will
be given from it, else it will be directory name.
-X <export template file>
Export areas list into other format
-S
Sort files in areas
-D
Delete offline files from FILES.BBS
-GA
-GD
Add/delete download counters into/from ALL areas
-L
Recalc dlcounter in areas within T-mail logfiles. Date and time of last
analise will be saved in LFB.TML file in directory with EXE file.
-DF <file mask>
Delete specified file(s) from ALL FILES.BBS
-FD
Find and print possible duplicate files.
-FDF
Find and print possible duplicate files (only with same names)
-DE
Delete empty lines from FILES.BBS
-RE <old description>
Try to reget description from file, if it have <old description>
In FILES.BBS. Usefull if file was added from ALLFIX and not from
fileecho. If <old description> is multiword - please, quote it
by " symbol at begin and end of description.
-CFG <config file>
Alternate config file. This parameter can be used with other commands
-Next step
What will never be in LFB:
-FILES.BBS editor
What will be in LFB:
-increasing of supported file types fo automatic description
exstracting
-Total
That's all.
Wishes, observations, complaints - i'll be glad to see them at
2:463/67@fidonet
or (it will be quickly)
su@fonon.kiev.ua
Last version available on http://www.fonon.kiev.ua/~su/soft.shtml
Sample of HTML output on http://www.fonon.kiev.ua/~su/ftp.html
Special thanks to
Alexander Fedorko AKA Panther
2:463/69 alx@fonon.kiev.ua
Konstantin Zhilenko AKA Vagabond
2:463/113 vagabond@fonon.kiev.ua
Alexey Dubov
2:5053/15 al@intercom.ru
Konstantin Kubatkin
2:468/13 cat@agrobank.kherson.ua
for neverending testing.
Good luck! Alexey Suhoy AKA Uncle Su
2:463/67@fidonet
su@fonon.kiev.ua
░▒▓ LeoSoft Programmers Group ▓▒░
1998