home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
EVENTS
/
AUDREY11.ZIP
/
AUDREY.DOC
next >
Wrap
Text File
|
1994-06-25
|
11KB
|
275 lines
┌┐
││
├┤
││
││ UDREY .. v1.1
User/System "Infoform" Generator for WWIV 4.23/4.24
Copyright (c) 1994 Devin Carraway (AquaMaestro)
────────────────────────────────────────
INTRODUCTION
────────────────────────────────────────
Audrey is a highly flexible "infoform" generator for WWIV systems. In many
places in WWIV, it would be nice to print out a bit of extra information -
Audrey reads your input file, and generates a corresponding output file with
the appropriate information filled in. In WWIV versions 4.23 and above,
there are several places where WWIV will, if it finds a filename, print
out a file from the GFILES directory - CHAINS.MSG, for example, when a user
enters the chain menu. Audrey is written to take advantage of these
opportunities.
────────────────────────────────────────
A BRIEF EXAMPLE
────────────────────────────────────────
Let's say you have a file, AUDREY.INP, containing the following:
2Greetings, 1%PNAME%2, and welcome to 1%SYSTEMNAME%2!
3Your information for today, 1%DATE%3, at 1%TIME%3 is as follows:
Name (Handle) : %NAME#%
Real Name : %REALNAME%
Last On : %LASTON%
First On : %FIRSTON%
Illegal Logons : %ILLEGAL%
SL: %SL% DSL: %DSL%
Uploads : %ULK%k in %UL% files
Downloads: %DLK%k in %DL% files
Ratio : %RATIO%
Now, suppose you run Audrey on this file. On my system, using my account,
the following output is produced:
2Greetings, 1Aquamaestro2, and welcome to 1Atlantica2!
3Your information for today, 106/25/943, at 103:44:123 is as follows:
Name (Handle) : AQUAMAESTRO #1
Real Name : Devin Carraway
Last On : 06/25/94
First On : 07/14/90
Illegal Logons : 0
SL: 255 DSL: 255
Uploads : 875142147k in 8745 files
Downloads: 1152%k in 12 files
Ratio : 99.998
Neat, huh?
────────────────────────────────────────
ORIGIN OF THE PROGRAM
────────────────────────────────────────
Recently, I happened upon a copy of "Up and Down" v1.02, written by The
Wandering Witness, a Sysop in my area. It was a simple program in BASIC that
read CHAIN.TXT to produce UPLOAD.MSG and DOWNLOAD.MSG within the GFILES
directory. When a user uploaded or downloaded from within the BBS, the file
would display. UP&DOWN produced nice output, a useful disclaimer appropriate
to the action (uploading or downloading).
My main complaints with UP&DOWN were that it was inadequately configurable,
the thing was going to look pretty much how it was hardcoded to look, though
the colors could be changed (apologies for that error, TWW). Also, it seemed
that it was spending too much formatting effort, when the whole thing could be
made configurable quite easily. Audrey evolved from this general notion.
────────────────────────────────────────
INSTALLATION AND USE
────────────────────────────────────────
Audrey should be run from your main WWIV directory. It will try to open
CHAIN.TXT, or CHAIN.xxx if the WWIV_INSTANCE environmental variable is > 1.
Audrey also will use CONFIG.DAT and USER.LST. If Audrey fails to find any
of these files, it exits.
Commandline format is as follows:
AUDREY [/I:<InputFN>] [/O:<OutputFN>] [/D]
/I:xxx - 'xxx' is the filename and (if needed) path to the
.INP-format file (described later on).
/O:xxx - 'xxx' is the filename and (if needed) path under
which Audrey will generate the output file.
/D - This tells Audrey to read UPLOAD.INP and DOWNLOAD.INP,
and generate UPLOAD.MSG and DOWNLOAD.MSG within your
GFILES directory. This saves running Audrey twice.
Audrey will, by default, look for AUDREY.INP, and output to AUDREY.OUT.
────────────────────────────────────────
.INP-FORMAT FILES
────────────────────────────────────────
Audrey's input files can have any DOS-legal filename - I will use .INP here.
Within the .INP files, absolutely anything is legal. If Audrey finds any of
the variable strings within the file, it will replace it in the output file
with the variable's value. Lines longer than 160 lines are truncated at the
160th character. No other changes are made.
The following variables can be used within the input files. Remember that
none of these produce unit indicators (if applicable), punctuation, etc.
%NAME% <--- Handle, in caps (ie 'AQUAMAESTRO')
%NAME#% <--- Handle and usernumber (ie 'AQUAMAESTRO #1')
%PNAME% <--- Handle, properized (ie 'Aquamaestro')
%PNAME#% <--- Handle, properized with usernumber (ie 'Aquamaestro #1')
%REALNAME% <--- Real name
%USERNUM% <--- User number
%LASTON% <--- Date last on (ie '06/25/94')
%FIRSTON% <--- Date first on
%CALLSIGN% <--- HAM callsign
%VOICEPHONE% <--- Voice phone number
%DATAPHONE% <--- Data phone number
%STREET% <--- Street Address
%CITY% <--- City
%STATE% <--- 2-character state abbreviation
%COUNTRY% <--- Country
%ZIP% <--- ZIP code
%NOTE% <--- Sysop note
%SL% <--- SL (Security Level)
%DSL% <--- DSL (Transfer Security Level)
%UL% <--- Files uploaded
%DL% <--- Files downloaded
%ULK% <--- K uploaded
%DLK% <--- K downloaded
%FP% <--- Filepoints
%GOLD% <--- Gold
%RATIO% <--- Transfer ratio (UploadK/DownloadK)
%REQ_RATIO% <--- System's required transfer ratio
%PC_RATIO% <--- System's required post/call ratio
%CURSPEED% <--- Current modem speed string (ie '14400/v.32bis')
%SYSTEMNAME% <--- BBS name
%SYSOPNAME% <--- Sysop name (handle)
%SYSTEMPHONE% <--- System phone number
%SYSTEMWWIV#% <--- System's WWIV reg#
%MSGSDIR% <--- MSGS directory path
%GFILESDIR% <--- GFILES directory path
%DATADIR% <--- DATA directory path
%DLOADSDIR% <--- DLOADS (main) directory path
%TEMPDIR% <--- Main TEMP directory path
%NUP% <--- Newuser password
%AGE% <--- Age, in years
%DEFPROT% <--- User's default transfer protocol number
%SCREENCHARS% <--- Screen width (ie 80)
%SCREENLINES% <--- Screen height (ie 25)
%NUM_EXTENDED%<--- Lines to print in extended transfer descriptions
%EXEMPT% <--- Numeric exemption
%ILLEGAL% <--- Illegal logons (only meaningful at logon)
%WAITING% <--- Mail waiting
%ONTODAY% <--- Times on today
%B_MON% <--- Birth month
%B_DAY% <--- Birth date
%B_YR% <--- Birth year
%LANG% <--- Language number
%MSGPOST% <--- Messages posted
%EMAILSENT% <--- E-Mail sent
%ETODAY% <--- E-Mail sent today
%FBSENT% <--- Feedback sent
%FBTODAY% <--- Feedback sent today
%POSTTODAY% <--- Posts today
%LOGONS% <--- Times logged on
%CHAINSRUN% <--- Chains (games) run
%BANKTIME% <--- Time in timebank
%WWIVREG#% <--- WWIV registration number
%C_FREE_B% <--- Free space on C: (bytes)
%C_FREE_K% <--- Free space on C: (K)
%C_FREE_MBD% <--- Free space on C: (MB to 2 decimal places)
%C_FREE_MB% <--- Free space on C: (MB, rounded to nearest integer)
%D_FREE_B% <--- Free space on D: (bytes)
%D_FREE_K% <--- Free space on D: (K)
%D_FREE_MBD% <--- Free space on D: (MB to 2 decimal places)
%D_FREE_MB% <--- Free space on D: (MB, rounded to nearest integer)
%E_FREE_B% <--- Free space on E: (bytes)
%E_FREE_K% <--- Free space on E: (K)
%E_FREE_MBD% <--- Free space on E: (MB to 2 decimal places)
%E_FREE_MB% <--- Free space on E: (MB, rounded to nearest integer)
%F_FREE_B% <--- Free space on F: (bytes)
%F_FREE_K% <--- Free space on F: (K)
%F_FREE_MBD% <--- Free space on F: (MB to 2 decimal places)
%F_FREE_MB% <--- Free space on F: (MB, rounded to nearest integer)
────────────────────────────────────────
SUGGESTIONS
────────────────────────────────────────
Some suggestions on useful places to use Audrey can be found in SAMPLES.DOC,
included in the Audrey ZIP (ARJ/LZH, whatever).
────────────────────────────────────────
ABOUT THE PROGRAM
────────────────────────────────────────
Audrey is written in C, compiled using Borland C++ v4.0. The source code is
approximately 700 lines long. Audrey requires about 58k free memory to run.
Audrey's execution time to process this documentation file was 2.59 seconds,
according to a UNIX-style ptime process timer.
────────────────────────────────────────
WHO IS 'AUDREY,' ANYWAY?
────────────────────────────────────────
Audrey was the name of a woman in a story I once read, in her thirties, with
a good marriage and a child. She was anorgasmic, which means that she has
never had an orgasm (ever). The story was quite touching, actually.
────────────────────────────────────────
LEGAL MATTERS
────────────────────────────────────────
Whatever this program does, good or bad, may indeed BE my fault. But you can't
do anything about it.
This program is freeware. It may be freely distributed by electronic means so
long as no money is charged for the exchange.
CDROM vendors are free to include this file in their publishings so long as its
original contents (see README.TXT) are preserved intact and no files are added
to the archive.
Shareware floppy vendors are forbidden to distribute this program and may not
use it for any purpose. You are parasites feeding off the work of good
programmers and should all be shot.
────────────────────────────────────────
CONTACTING THE AUTHOR
────────────────────────────────────────
If for some reason you feel the urge to contact me, or care to drop me a note
to let me know you gave the program a try, my mail addresses are as follows:
I really appreciate getting mail from people who have used my programs. If
you find Audrey interesting or useful, please drop me a note.
MicroNet: 1@1
IceNET : 1@7704
WWIVnet : 1@7724 (before switchover)
WWIVnet : 1@11724 (after switchover)
Internet: dcarrawa@nermal.santarosa.edu
BBS/Fax : 707/539-8361