Differences

This shows you the differences between two versions of the page.

Link to this comparison view

mod_config_sql_topups.pm [2012-07-13 14:38]
127.0.0.1 external edit
mod_config_sql_topups.pm [2013-12-06 16:01] (current)
rspencer Fix heading levels
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 '​YYYY-MM-01 00:​00:​00'​. The ValidTo date must be later than the ValidFrom date. Because of multiple timezones and internationalization dates are calculated using the time aswell. Both ValidFrom and ValidTo are added to the database in the format '​YYYY-MM-01 00:​00:​00'​. The ValidTo date must be later than the ValidFrom date. Because of multiple timezones and internationalization dates are calculated using the time aswell.
  
-<​code>​2010-07-01 = 2010-07-01 00:00:00+<​code>​ 
 +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:​00:​00</​code>​+2010-07-31 = 2010-07-31 00:00:00 
 +</​code>​