Moved GB/MB configuration for ADSL into database
This commit is contained in:
@@ -91,7 +91,7 @@ class Controller_Admin_Adsl extends Controller_Adsl {
|
||||
|
||||
if (isset($_POST['test'])) {
|
||||
$charge = isset($_POST['test']['charge']) ? $_POST['test']['charge'] : FALSE;
|
||||
$test_result = $apo->allowance($_POST['test'],FALSE,$charge,1000);
|
||||
$test_result = $apo->allowance($_POST['test'],FALSE,$charge,TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ class Controller_Admin_Adsl extends Controller_Adsl {
|
||||
*/
|
||||
public function action_stat() {
|
||||
// @todo This needs to be configurable.
|
||||
$traffic = array(1000,2000,5000,10000,25000,50000,75000,100000);
|
||||
$traffic = array(1,2,5,10,25,50,75,100,150,200);
|
||||
|
||||
$svs = ORM::factory('Service')->list_bylistgroup('ADSL');
|
||||
$stats = array();
|
||||
|
Reference in New Issue
Block a user