summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2010-02-04 22:13:19 -0500
committerChris Buechler <cmb@pfsense.org>2010-02-04 22:13:19 -0500
commit81ff3addf52444a14d25c7c6b92a321bba718da2 (patch)
tree94064501fb783da4df0394a2645d68e04df51748
parente2d8ec152edce2e632e2eaf14476f2fafcf4cf8a (diff)
downloadpfsense-81ff3addf52444a14d25c7c6b92a321bba718da2.zip
pfsense-81ff3addf52444a14d25c7c6b92a321bba718da2.tar.gz
add ability to disable theme selection
-rwxr-xr-xusr/local/www/system.php6
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">&nbsp;</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">&nbsp;</td>
<td width="78%"> <input name="Submit" type="submit" class="formbtn" value="Save">
OpenPOWER on IntegriCloud