home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
RBBS in a Box Volume 1 #2
/
RBBS_vol1_no2.iso
/
096z
/
varacces.pat
< prev
next >
Wrap
Text File
|
1986-03-11
|
2KB
|
53 lines
03-03-86/MAP
This change allows the sysop to have a range of access
levels, a range of 11, that are "variable". Variable means
that based on the user's Upload/Download ratio, the user will
get a different access level. The bottom of the range is the
value of the "download access level" as defined by you in
Config19. The top of the range is bottom + 10, so in reality
you have 11 possible access levels in the range. Only users
whose security levels are not inside the range will not have
their access levels adjusted. Higher access levels are
granted for each 10% step in the user ratio. A 35% ratio
would increase the user's security level to 3 levels above
the bottom of the range.
NOTE: You must make sure that you have defined in FILESEC a
time value for each of the 11 access level in the range.
An * indicates that this line was added as part of the
change.
817 IF REMIND.FILE.TRANSFERS THEN _
A$ = "Files Downloaded:" + _
STR$(DOWNLOADS) + _
" Uploaded:" + _
* STR$(UPLOADS) + _
* " Ratio:" + _
* STR$(INT(UPLOADS / (DOWNLOADS + ((DOWNLOADS = 0) * -1)) * 100)) + _
* "%" : _
GOSUB 1400
10605 LSET USER.DOWNLOADS$ = MKI$(DOWNLOADS)
LSET USER.UPLOADS$ = MKI$(UPLOADS)
* IF FILES.FUNCTION(1) > USER.SECURITY.LEVEL OR _
* (FILES.FUNCTION(1) + 10) < USER.SECURITY.LEVEL THEN _
* GOTO 10607
* IF DOWNLOADS = 0 THEN _
* DOWNLOADS = 1
* UP.DOWN.RATIO = INT(UPLOADS / DOWNLOADS * 10)
* IF UP.DOWN.RATIO > 10 THEN _
* UP.DOWN.RATIO = 10
* USER.SECURITY.LEVEL = FILES.FUNCTION(1) + UP.DOWN.RATIO
* LSET SECURITY.LEVEL$ = MKI$(USER.SECURITY.LEVEL)
10607 GOSUB 41010
LSET ELAPSED.TIME$ = MKI$(ELAPSED.TIME + _
(SECONDS.PER.SESSION! / 60) - _
TIME.REMAINING!)
PUT 2,USER.FILE.INDEX
GOTO 13540
$(ELAPSED.TIME + _
(SECONDS