home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Elysian Archive
/
AmigaElysianArchive.iso
/
comm
/
mtc12.lha
/
MTC.doc
< prev
next >
Wrap
Text File
|
1993-07-30
|
5KB
|
143 lines
M a s t e r - T i m e C o n t r o l
v1.2
(c) P. Eastham 1992-93
----------------------------------------------------------------------------
What is it?
~~~~~~~~~~~
MTC is a PrimeTime like program. It allows you to restrict a users
time on several different levels.
How to set it up:
~~~~~~~~~~~~~~~~~
Simply copy the MTC executable to your DLG: directory, or anywhere
else on your path. Edit your login.(dlg)batch file and put the command in.
MTC has the following usage:
DLG:MTC -P%PORT -S%LEVEL -T%TLCALL [-L] [-C]
Order and case are not important.
What the switches mean:
-P Port they are on
-S Their security level
-T Time left this call
-L Turn on logging
-C Clear the screen before anything is sent at all
Then you need to create the config file (discussed below).
The exemption file contains exempt users names, 1 per line, in normal
format. Use spaces NOT underscore's.
The possible output files can contain any DLG %-Switch EXCEPT the
%RETURN switch. USING THIS SWITCH WILL CRASH THE PROGRAM!!
MTC is now installed.
The config file:
~~~~~~~~~~~~~~~~
The first line of the config is the path and name of the text file shown
to users if they have their time reduced at all. All % switches may be used
here EXCEPT the %RETURN switch.
eg: DLGConfig:Text/MTC.txt
The second line is the path and name of the exemption file.
eg: DLGConfig:Text/MTC.users
The third line is the path and filename of the file which user
restricted people will see.
eg: DLGConfig:Text/MTC.BadUser
The fourth line is a PATH ONLY line. This allows for individual text
files to be sent to user restricted people. The actual filename is their
underscored username. This path must end in either a "/" or a ":". No
checking is done. If this path/file doesn't exist, then the file in line 3
will be sent instead.
Config lines are grouped 3 at a time from now until the end of the file.
Errors in the config file such as 1 line short will produce an "End Of File"
error and the program will exit.
The first line represents the type of restriction and the level or
name of the person to be restricted. The first letter must be either "L",
"E", "G", or "U". What they represent:
L - Users LESS than this level
E - Users EQUAL to this level
G - Users greater than this level
U - This specific user.
The rest of the line is the level or the name.
eg: L255 - All users with security less than 255.
E110 - All users with a security level of 110.
G150 - All users with security greater than 150.
UJoe Bloggs - User Joe Bloggs.
The second line is the day to be run. This is simply found by directing
the 'DATE' command to a file, reading in the date, and testing if this string
exists in the date. So entering "DAY" will match for every day of the week.
This also allows non-english people to use the program if their date program is
not in english.
eg: SATURDAY
The third line is the time line. ranging from 1 am to 12 pm, separated
by a space. '0' means no restrictions.
eg: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 55 40 40 40 40 40 40 0 0
would give a restriction of 55 minutes from 4pm to 4:59:59pm, and a 40 minute
restriction from 5pm to 10:59:59pm. Note that it starts at 1:00am and NOT
12:00am as most others seem to.
The program reads in each group until a match is made and then drops
out and executes the rest of the program. Therefore you should make any
exceptions such as user specific restrictions at the top and general
restrictions at the bottom.
See the included config file for an example.
Permission to change the executable:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Permission is given for any non-English speaking sysops to zap the
executable. Please take care doing this as ALL the text is positioned at
the end of the executable together.
The only output a user will ever see from MTC are error messages.
The text files can be in your own language.
Program status:
~~~~~~~~~~~~~~~
MTC is freeware. Use it as you please. Any bug reports orsuggestions
for improvements can be sent to me via Fido or UUCP:
FidoNET: Phillip Eastham@3:622/406
InterNET: phillip_eastham@kumear.apana.org.au
History:
~~~~~~~~
Version 1.0 - First release.
Version 1.1 - Fixed bug with logging of user in the log.
Added option to use either 1 user specific text file or
simply a path and their username as filename.
Version 1.2 - Converted several functions to use DLG's library.
Changed so that both a single file and a specific file
could be used for user specific restrictions.