From f0f7a3ebb703c5b95b11eda5a060f420aec5e563 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 2 Apr 2006 22:41:35 +0000 Subject: Move theme selector to general screen Ticket #895 --- usr/local/www/system.php | 33 ++++++++++++++++++++++++++++++++- usr/local/www/system_advanced.php | 34 ---------------------------------- 2 files changed, 32 insertions(+), 35 deletions(-) (limited to 'usr/local') diff --git a/usr/local/www/system.php b/usr/local/www/system.php index 78d0675..624649a 100755 --- a/usr/local/www/system.php +++ b/usr/local/www/system.php @@ -46,6 +46,7 @@ $pconfig['webguiport'] = $config['system']['webgui']['port']; $pconfig['timezone'] = $config['system']['timezone']; $pconfig['timeupdateinterval'] = $config['system']['time-update-interval']; $pconfig['timeservers'] = $config['system']['timeservers']; +$pconfig['theme'] = $config['system']['theme']; if (!isset($pconfig['timeupdateinterval'])) $pconfig['timeupdateinterval'] = 300; @@ -122,6 +123,9 @@ if ($_POST) { update_if_changed("NTP servers", $config['system']['timeservers'], strtolower($_POST['timeservers'])); update_if_changed("NTP update interval", $config['system']['time-update-interval'], $_POST['timeupdateinterval']); + /* pfSense themes */ + update_if_changed("System Theme", $config['theme'], $_POST['theme']); + /* XXX - billm: these still need updating after figuring out how to check if they actually changed */ unset($config['system']['dnsserver']); if ($_POST['dns1']) @@ -269,7 +273,34 @@ include("head.inc"); hosts (only one required). Remember to set up at least one DNS server if you enter a host name here! - + +   + + + Theme + + +   + + + This will change the look and feel of pfSense + + +   diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php index cfa5360..e193fac 100755 --- a/usr/local/www/system_advanced.php +++ b/usr/local/www/system_advanced.php @@ -46,7 +46,6 @@ $pconfig['noantilockout'] = isset($config['system']['webgui']['noantilockout']); $pconfig['filteringbridge_enable'] = isset($config['bridge']['filteringbridge']); $pconfig['tcpidletimeout'] = $config['filter']['tcpidletimeout']; $pconfig['maximumstates'] = $config['system']['maximumstates']; -$pconfig['theme'] = $config['system']['theme']; $pconfig['disablerendevouz'] = $config['system']['disablerendevouz']; $pconfig['enableserial'] = $config['system']['enableserial']; $pconfig['disablefirmwarecheck'] = isset($config['system']['disablefirmwarecheck']); @@ -202,9 +201,6 @@ if ($_POST) { $config['bridge']['filteringbridge'] = $_POST['filteringbridge_enable'] ? true : false; - /* pfSense themes */ - $config['theme'] = $_POST['theme']; - write_config(); $retval = 0; @@ -309,33 +305,6 @@ include("head.inc"); -   - - - Theme - - -   - - - This will change the look and feel of pfSense - - -   @@ -696,9 +665,6 @@ if ($_POST) { $config['bridge']['filteringbridge'] = $_POST['filteringbridge_enable'] ? true : false; - /* pfSense themes */ - $config['theme'] = $_POST['theme']; - write_config(); $retval = 0; -- cgit v1.1