home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Otherware
/
Otherware_1_SB_Development.iso
/
amiga
/
comms
/
bbs
/
primetim.lha
/
PrimeTime.doc
Wrap
Text File
|
1992-10-18
|
4KB
|
125 lines
PrimeTime v1.01
by
Tom H. Warkentin
Copyright (C) 1992
DESCRIPTION
PrimeTime is a utility I cooked up to limit a user's time online during
certain busy hours of the day. It is fully configurable so all users above
a specified user level will be exempt from the limitation. Also a text file
containing underscored usernames will be checked before imposing the
limitation.
IMPORTANT
This software is distributed as FREEWARE so you can make as many copies
as you like providing the contents of the archive remain unchanged. Also
no individuals may profit from the distribution of the archive. Furthermore
I will not be held responsible for any problems that may arise from the use
of the software. By the way, donations/encouragements are welcome!
INSTALLATION
Uncompress the archive using the -x option to preserve the pathnames and
copy the files to the appropriate directories. You will probably want to
edit your login.dlgbatch file instead of copying the included example. Also
you'll probably want to tailor the config files to your system.
PrimeTime.cfg *MUST* be in DLGCONFIG:MISC/ or it will not work.
USAGE
If you type the name of the executable on the command line, you'll get
the following message showing its usage:
PrimeTime v1.0 by Tom H. Warkentin ⌐ 1992. All rights reserved!
USAGE: PrimeTime %UNAME %PORT %LEVEL %TLCALL [-t]
All command line arguments must be present except the optional "-t". The
"-t" option will print out the current prime time hours to the user if he
is not exempt from the limitation.
Edit your login.dlgbatch file to include the above command line if you
intend to use PrimeTime.
CONFIG FILES
DLGConfig:Misc/PrimeTime.cfg (DO NOT change the path or name!)
PrimeTime relies on this file for its configuration. Nothing may be
omitted or added to the file without causing severe side effects. The
first line contains the full path/filename to the text file displayed
if the user is subject to the limitation (64 chars max). The second
line is the full path/filename to the text file containing those exempt
users who do not have a high enough user level to be exempt (64 chars
max). The third line is the user level that is exempt from the
limitation(200 with the given config). The fourth line should have 24
integers separated by white spaces. The integer on the left is the time
limit to impose at midnight (0:00 hours), the next being 1AM (1:00 hours),
etc.. If the integer value is 0, there will be no time restrictions
imposed on the user. All other positive values are the number of minutes
to give the user during that hour as long as he has that much time
available for that call. The last line should contain the names of the
ports affected by the PrimeTime utility (separated by white spaces).
The given config would limit all users on TR0 from 19:00-21:59 with a user
level less than 200 unless their name was Tom Warkentin. The amount
of online time for the users would be 30 mins.
DLGConfig:Text/PrimeTime.users (Configurable)
Each *underscored* username should separated by a whitespace character.
DLGConfig:Text/PrimeTime.txt (Configurable)
Feel free to use whatever %SWITCHES you like except for the %RETURN to
pause. If the text file contains that particular switch, it will hang
your system. I haven't found a work-around yet so if you've got any
ideas, let me know.
NOTES
The source code was compiled using 2.0 Include files. If you're running
1.3 and have any problems, contact me and I'll recompile it using the 1.3
includes instead.
This utility has been tested on DLG v0.992.
CONTACTING THE AUTHOR
If you've got some suggestions for improvement, would like to report
a problem/bug, or want to find out about my other DLG modules you can
reach me by sending email:
internet => tom@manning.cs.ualberta.ca
or if you've got money to burn (send it to me instead) or call my BBS:
The Spectre BBS (v.32bis/v.42bis Supra 14.4Kb FaxModem)
(403) 435-9486
Edmonton, AB
or send snail mail to:
Tom H. Warkentin
1016 Buchanan Place
Edmonton, AB
T6R 2A7
HISTORY
v1.01 - Added feature to limit users on certain specified ports.
Thanks for the suggestion, Mark.
v1.0 - First public release.