User Manager/Limiting
Itroduction
User actions can be limited in several dimensions:
- time
- traffic amount (download and upload)
- speed rates
Time
Time can be managed in two ways: user's uptime-limit field and credit's time field.
Uptime limit
Uptime limit is maximum time amount a user is allowed to be active. If the user's uptime-limit field is left blank, he/she has no uptime limit. See the example below.
Credit time
Subscriber can define available credit vouchers. User can buy those vouchers, customers can assign available credits to users. User credits are valid specific time. This means, when a credit is started, it must be used within a time specified. See the example below.
Example
If a user must be allowed to use 2 hours of Internet access and he/she must use these 2 hours within one week, then the uptime-limit field must be set to 2h and the user must be assigned a credit with time equal to 1w (See character constants for more information about time limit constants).
Traffic amount
User has fields download-limit and upload-limit. To specify unlimited amount, leave blank the proper field. Limits are specified in bytes. For example, to allow download 1GB, download-limit field must have value of 1073741824 (1073741824 bytes = 1024 x 1024 x 1024 = 1 gigabyte).