Persiapan Radius Mode

This commit is contained in:
Ibnu Maksum
2022-09-07 16:11:35 +07:00
parent 19f79680ff
commit 464f41ef16
10 changed files with 919 additions and 832 deletions

View File

@ -206,6 +206,7 @@ switch ($action) {
$wa_url = _post('wa_url');
$address = _post('address');
$tawkto = _post('tawkto');
$radius_mode = _post('radius_mode')*1;
$payment_gateway = _post('payment_gateway');
if ($company == '') {
r2(U . 'settings/app', 'e', $_L['All_field_is_required']);
@ -289,6 +290,17 @@ switch ($action) {
$d->save();
}
$d = ORM::for_table('tbl_appconfig')->where('setting', 'radius_mode')->find_one();
if($d){
$d->value = $radius_mode;
$d->save();
}else{
$d = ORM::for_table('tbl_appconfig')->create();
$d->setting = 'radius_mode';
$d->value = $radius_mode;
$d->save();
}
$note = _post('note');
$d = ORM::for_table('tbl_appconfig')->where('setting', 'note')->find_one();
$d->value = $note;