mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-02 17:24:41 +02:00
View Order
This commit is contained in:
parent
0bb20d4a16
commit
1891dee6b2
6 changed files with 206 additions and 30 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue