diff options
author | Chris Buechler <cmb@pfsense.org> | 2010-02-04 22:13:19 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2010-02-04 22:13:19 -0500 |
commit | 81ff3addf52444a14d25c7c6b92a321bba718da2 (patch) | |
tree | 94064501fb783da4df0394a2645d68e04df51748 | |
parent | e2d8ec152edce2e632e2eaf14476f2fafcf4cf8a (diff) | |
download | pfsense-81ff3addf52444a14d25c7c6b92a321bba718da2.zip pfsense-81ff3addf52444a14d25c7c6b92a321bba718da2.tar.gz |
add ability to disable theme selection
-rwxr-xr-x | usr/local/www/system.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/system.php b/usr/local/www/system.php index 3c385e2..0fc2976 100755 --- a/usr/local/www/system.php +++ b/usr/local/www/system.php @@ -135,7 +135,9 @@ if ($_POST) { update_if_changed("NTP update interval", $config['system']['time-update-interval'], $_POST['timeupdateinterval']); /* pfSense themes */ - update_if_changed("System Theme", $config['theme'], $_POST['theme']); + if (! $g['disablethemeselection']) { + 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']); @@ -292,6 +294,7 @@ include("head.inc"); <tr> <td colspan="2" class="list" height="12"> </td> </tr> + <?php if (! $g['disablethemeselection']): ?> <tr> <td colspan="2" valign="top" class="listtopic">Theme</td> </tr> @@ -316,6 +319,7 @@ include("head.inc"); <strong>This will change the look and feel of <?=$g['product_name']?></strong> </td> </tr> + <?php endif; ?> <tr> <td width="22%" valign="top"> </td> <td width="78%"> <input name="Submit" type="submit" class="formbtn" value="Save"> |