Revision 6e081414
Added by Christian McDonald over 2 years ago
src/usr/local/www/system.php | ||
---|---|---|
290 | 290 |
set_language(); |
291 | 291 |
} |
292 | 292 |
|
293 |
unset($config['system']['webgui']['interfacessort']);
|
|
293 |
config_del_path('system/webgui/interfacessort');
|
|
294 | 294 |
$config['system']['webgui']['interfacessort'] = $_POST['interfacessort'] ? true : false; |
295 | 295 |
|
296 |
unset($config['system']['webgui']['webguileftcolumnhyper']);
|
|
296 |
config_del_path('system/webgui/webguileftcolumnhyper');
|
|
297 | 297 |
$config['system']['webgui']['webguileftcolumnhyper'] = $_POST['webguileftcolumnhyper'] ? true : false; |
298 | 298 |
|
299 |
unset($config['system']['webgui']['disablealiaspopupdetail']);
|
|
299 |
config_del_path('system/webgui/disablealiaspopupdetail');
|
|
300 | 300 |
$config['system']['webgui']['disablealiaspopupdetail'] = $_POST['disablealiaspopupdetail'] ? true : false; |
301 | 301 |
|
302 |
unset($config['system']['webgui']['dashboardavailablewidgetspanel']);
|
|
302 |
config_del_path('system/webgui/dashboardavailablewidgetspanel');
|
|
303 | 303 |
$config['system']['webgui']['dashboardavailablewidgetspanel'] = $_POST['dashboardavailablewidgetspanel'] ? true : false; |
304 | 304 |
|
305 |
unset($config['system']['webgui']['systemlogsfilterpanel']);
|
|
305 |
config_del_path('system/webgui/systemlogsfilterpanel');
|
|
306 | 306 |
$config['system']['webgui']['systemlogsfilterpanel'] = $_POST['systemlogsfilterpanel'] ? true : false; |
307 | 307 |
|
308 |
unset($config['system']['webgui']['systemlogsmanagelogpanel']);
|
|
308 |
config_del_path('system/webgui/systemlogsmanagelogpanel');
|
|
309 | 309 |
$config['system']['webgui']['systemlogsmanagelogpanel'] = $_POST['systemlogsmanagelogpanel'] ? true : false; |
310 | 310 |
|
311 |
unset($config['system']['webgui']['statusmonitoringsettingspanel']);
|
|
311 |
config_del_path('system/webgui/statusmonitoringsettingspanel');
|
|
312 | 312 |
$config['system']['webgui']['statusmonitoringsettingspanel'] = $_POST['statusmonitoringsettingspanel'] ? true : false; |
313 | 313 |
|
314 | 314 |
// if ($_POST['dashboardperiod']) { |
... | ... | |
318 | 318 |
if ($_POST['webguicss']) { |
319 | 319 |
$config['system']['webgui']['webguicss'] = $_POST['webguicss']; |
320 | 320 |
} else { |
321 |
unset($config['system']['webgui']['webguicss']);
|
|
321 |
config_del_path('system/webgui/webguicss');
|
|
322 | 322 |
} |
323 | 323 |
|
324 | 324 |
$config['system']['webgui']['roworderdragging'] = $_POST['roworderdragging'] ? true:false; |
... | ... | |
326 | 326 |
if ($_POST['logincss']) { |
327 | 327 |
$config['system']['webgui']['logincss'] = $_POST['logincss']; |
328 | 328 |
} else { |
329 |
unset($config['system']['webgui']['logincss']);
|
|
329 |
config_del_path('system/webgui/logincss');
|
|
330 | 330 |
} |
331 | 331 |
|
332 | 332 |
$config['system']['webgui']['loginshowhost'] = $_POST['loginshowhost'] ? true:false; |
... | ... | |
334 | 334 |
if ($_POST['webguifixedmenu']) { |
335 | 335 |
$config['system']['webgui']['webguifixedmenu'] = $_POST['webguifixedmenu']; |
336 | 336 |
} else { |
337 |
unset($config['system']['webgui']['webguifixedmenu']);
|
|
337 |
config_del_path('system/webgui/webguifixedmenu');
|
|
338 | 338 |
} |
339 | 339 |
|
340 | 340 |
if ($_POST['webguihostnamemenu']) { |
341 | 341 |
$config['system']['webgui']['webguihostnamemenu'] = $_POST['webguihostnamemenu']; |
342 | 342 |
} else { |
343 |
unset($config['system']['webgui']['webguihostnamemenu']);
|
|
343 |
config_del_path('system/webgui/webguihostnamemenu');
|
|
344 | 344 |
} |
345 | 345 |
|
346 | 346 |
if ($_POST['dashboardcolumns']) { |
347 | 347 |
$config['system']['webgui']['dashboardcolumns'] = $_POST['dashboardcolumns']; |
348 | 348 |
} else { |
349 |
unset($config['system']['webgui']['dashboardcolumns']);
|
|
349 |
config_del_path('system/webgui/dashboardcolumns');
|
|
350 | 350 |
} |
351 | 351 |
|
352 | 352 |
$config['system']['webgui']['requirestatefilter'] = $_POST['requirestatefilter'] ? true : false; |
353 | 353 |
|
354 | 354 |
/* XXX - billm: these still need updating after figuring out how to check if they actually changed */ |
355 | 355 |
$olddnsservers = $config['system']['dnsserver']; |
356 |
unset($config['system']['dnsserver']);
|
|
356 |
config_del_path('system/dnsserver');
|
|
357 | 357 |
|
358 | 358 |
$dnscounter = 0; |
359 | 359 |
$dnsname = "dns{$dnscounter}"; |
... | ... | |
371 | 371 |
|
372 | 372 |
$olddnsallowoverride = $config['system']['dnsallowoverride']; |
373 | 373 |
|
374 |
unset($config['system']['dnsallowoverride']);
|
|
374 |
config_del_path('system/dnsallowoverride');
|
|
375 | 375 |
$config['system']['dnsallowoverride'] = $_POST['dnsallowoverride'] ? true : false; |
376 | 376 |
|
377 | 377 |
if ($_POST['dnslocalhost']) { |
378 | 378 |
$config['system']['dnslocalhost'] = $_POST['dnslocalhost']; |
379 | 379 |
} else { |
380 |
unset($config['system']['dnslocalhost']);
|
|
380 |
config_del_path('system/dnslocalhost');
|
|
381 | 381 |
} |
382 | 382 |
|
383 | 383 |
/* which interface should the dns servers resolve through? */ |
Also available in: Unified diff
Rector some direct config unsets with pure scalar string paths.