forked from kevinowino869/mitrobill
add Hide Dashboard Content
This commit is contained in:
@ -299,6 +299,23 @@ switch ($action) {
|
||||
}
|
||||
}
|
||||
|
||||
//checkbox
|
||||
$checks = ['hide_mrc','hide_tms','hide_aui','hide_al','hide_uet','hide_vs','hide_pg'];
|
||||
foreach ($checks as $check) {
|
||||
if(!isset($_POST[$check])){
|
||||
$d = ORM::for_table('tbl_appconfig')->where('setting', $check)->find_one();
|
||||
if ($d) {
|
||||
$d->value = 'no';
|
||||
$d->save();
|
||||
} else {
|
||||
$d = ORM::for_table('tbl_appconfig')->create();
|
||||
$d->setting = $check;
|
||||
$d->value = 'no';
|
||||
$d->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_log('[' . $admin['username'] . ']: ' . $_L['Settings_Saved_Successfully'], 'Admin', $admin['id']);
|
||||
|
||||
r2(U . 'settings/app', 's', $_L['Settings_Saved_Successfully']);
|
||||
|
Reference in New Issue
Block a user