admin change to adminlte

This commit is contained in:
Ibnu Maksum
2022-10-16 14:48:21 +07:00
parent 9015d519c1
commit a7e8335297
90 changed files with 913 additions and 745 deletions

View File

@ -1,7 +1,7 @@
<?php
/**
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
* PHP Mikrotik Billing (https://ibnux.github.io/phpnuxbill/)
**/
_admin();
@ -205,6 +205,7 @@ switch ($action) {
case 'app-post':
$company = _post('company');
$footer = _post('footer');
$telegram_bot = _post('telegram_bot');
$telegram_target_id = _post('telegram_target_id');
$sms_url = _post('sms_url');
@ -229,6 +230,18 @@ switch ($action) {
$d->value = $phone;
$d->save();
$d = ORM::for_table('tbl_appconfig')->where('setting', 'CompanyFooter')->find_one();
if($d){
$d->value = $footer;
$d->save();
}else{
$d = ORM::for_table('tbl_appconfig')->create();
$d->setting = 'CompanyFooter';
$d->value = $footer;
$d->save();
}
$d = ORM::for_table('tbl_appconfig')->where('setting', 'telegram_bot')->find_one();
if($d){
$d->value = $telegram_bot;