forked from kevinowino869/mitrobill
View Order
This commit is contained in:
@ -477,7 +477,6 @@ switch ($action) {
|
||||
$d->save();
|
||||
}
|
||||
|
||||
|
||||
$d = ORM::for_table('tbl_appconfig')->where('setting', 'country_code_phone')->find_one();
|
||||
if ($d) {
|
||||
$d->value = $country_code_phone;
|
||||
@ -489,6 +488,37 @@ switch ($action) {
|
||||
$d->save();
|
||||
}
|
||||
|
||||
$d = ORM::for_table('tbl_appconfig')->where('setting', 'radius_plan')->find_one();
|
||||
if ($d) {
|
||||
$d->value = _post('radius_plan');
|
||||
$d->save();
|
||||
} else {
|
||||
$d = ORM::for_table('tbl_appconfig')->create();
|
||||
$d->setting = 'radius_plan';
|
||||
$d->value = _post('radius_plan');
|
||||
$d->save();
|
||||
}
|
||||
$d = ORM::for_table('tbl_appconfig')->where('setting', 'hotspot_plan')->find_one();
|
||||
if ($d) {
|
||||
$d->value = _post('hotspot_plan');
|
||||
$d->save();
|
||||
} else {
|
||||
$d = ORM::for_table('tbl_appconfig')->create();
|
||||
$d->setting = 'hotspot_plan';
|
||||
$d->value = _post('hotspot_plan');
|
||||
$d->save();
|
||||
}
|
||||
$d = ORM::for_table('tbl_appconfig')->where('setting', 'pppoe_plan')->find_one();
|
||||
if ($d) {
|
||||
$d->value = _post('pppoe_plan');
|
||||
$d->save();
|
||||
} else {
|
||||
$d = ORM::for_table('tbl_appconfig')->create();
|
||||
$d->setting = 'pppoe_plan';
|
||||
$d->value = _post('pppoe_plan');
|
||||
$d->save();
|
||||
}
|
||||
|
||||
$currency_code = $_POST['currency_code'];
|
||||
$d = ORM::for_table('tbl_appconfig')->where('setting', 'currency_code')->find_one();
|
||||
$d->value = $currency_code;
|
||||
|
Reference in New Issue
Block a user