Differences
This shows you the differences between two versions of the page.
| mod_config_sql_topups.pm [2012-07-13 14:38] – external edit 127.0.0.1 | mod_config_sql_topups.pm [2013-12-06 16:01] (current) – Fix heading levels rspencer | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | =====mod_config_sql_topups.pm===== | + | ====== mod_config_sql_topups.pm ====== | 
| Responsible for handling configuration attributes for topups. | Responsible for handling configuration attributes for topups. | ||
| - | ====Attributes==== | + | ===== Attributes | 
| + | |||
| + | ==== SMRadius-Capping-Traffic-Topup | ||
| - | ===SMRadius-Capping-Traffic-Topup=== | ||
| Sets a data topup value for a user. Must be inserted into the database as integer. | Sets a data topup value for a user. Must be inserted into the database as integer. | ||
| - | ===SMRadius-Capping-Uptime-Topup=== | + | ==== SMRadius-Capping-Uptime-Topup ==== | 
| Sets a uptime topup value for a user. Must be inserted into the database as integer. | Sets a uptime topup value for a user. Must be inserted into the database as integer. | ||
| Insertion to the database as follows: | Insertion to the database as follows: | ||
| + | |||
| * UserID - User ID | * UserID - User ID | ||
| * Type - 1 => Traffic, 2 => Uptime | * Type - 1 => Traffic, 2 => Uptime | ||
| Line 17: | Line 21: | ||
| * Value - Integer => Traffic is specified in megabytes, Uptime is specified in minutes. | * Value - Integer => Traffic is specified in megabytes, Uptime is specified in minutes. | ||
| - | ==ValidFrom and ValidTo== | + | === ValidFrom and ValidTo === | 
| Both ValidFrom and ValidTo are added to the database in the format ' | Both ValidFrom and ValidTo are added to the database in the format ' | ||
| - | < | + | < | 
| + | 2010-07-01 = 2010-07-01 00:00:00 | ||
| 2010-08-01 = 2010-08-01 00:00:00 | 2010-08-01 = 2010-08-01 00:00:00 | ||
| - | 2010-07-31 = 2010-07-31 00: | + | 2010-07-31 = 2010-07-31 00:00:00 | 
| + | </ | ||