summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-08-12 11:58:13 +0000
committerErmal Luçi <eri@pfsense.org>2009-08-12 12:02:59 +0000
commitf204df7d7746b23cf38126a891552eef5a457176 (patch)
tree261180cd2054b82cbc4a2db6b266453696ace5ed /usr/local
parentb7cfb4ea8011319ab93bf2776cf124b55473a056 (diff)
downloadpfsense-f204df7d7746b23cf38126a891552eef5a457176.zip
pfsense-f204df7d7746b23cf38126a891552eef5a457176.tar.gz
* Fix setting unsetting of a few option under System-> Misc
* Present a new option to control clearing of states when Schedules expire. Seems sometimes this is a desirable behaviour!
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/system_advanced_misc.php38
1 files changed, 35 insertions, 3 deletions
diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php
index 132cc01..6fbfd4f 100644
--- a/usr/local/www/system_advanced_misc.php
+++ b/usr/local/www/system_advanced_misc.php
@@ -48,6 +48,7 @@ $pconfig['lb_use_sticky'] = isset($config['system']['lb_use_sticky']);
$pconfig['preferoldsa_enable'] = isset($config['ipsec']['preferoldsa']);
$pconfig['powerd_enable'] = isset($config['system']['powerd_enable']);
$pconfig['glxsb_enable'] = isset($config['system']['glxsb_enable']);
+$pconfig['schedule_states'] = isset($config['system']['schedule_states']);
if ($_POST) {
@@ -70,9 +71,25 @@ if ($_POST) {
else
unset($config['system']['lb_use_sticky']);
- $config['ipsec']['preferoldsa'] = $_POST['preferoldsa_enable'] ? true : false;
- $config['system']['powerd_enable'] = $_POST['powerd_enable'] ? true : false;
- $config['system']['glxsb_enable'] = $_POST['glxsb_enable'] ? true : false;
+ if($_POST['preferoldsa_enable'] == "yes")
+ $config['system']['preferoldsa'] = true;
+ else
+ unset($config['system']['preferoldsa']);
+
+ if($_POST['powerd_enable'] == "yes")
+ $config['system']['powerd_enable'] = true;
+ else
+ unset($config['system']['powerd_enable']);
+
+ if($_POST['glxsb_enable'] == "yes")
+ $config['system']['glxsb_enable'] = true;
+ else
+ unset($config['system']['glxsb_enable']);
+
+ if($_POST['schedule_states'] == "yes")
+ $config['system']['schedule_states'] = true;
+ else
+ unset($config['system']['schedule_states']);
write_config();
@@ -210,6 +227,21 @@ include("head.inc");
option to always prefer old SAs over new ones.
</td>
</tr>
+ <tr>
+ <td colspan="2" class="list" height="12">&nbsp;</td>
+ </tr>
+ <tr>
+ <td colspan="2" valign="top" class="listtopic">Schedules</td>
+ </tr>
+ <tr>
+ <td width="22%" valign="top" class="vncell">Schedule States</td>
+ <td width="78%" class="vtable">
+ <input name="schedule_states" type="checkbox" id="schedule_states" value="yes" <?php if ($pconfig['schedule_states']) echo "checked"; ?> />
+ <br />
+ By default schedules clear the states of existing connections when expiry time has come.
+ This option allows to override this setting by not clearing states for existing connections.
+ </td>
+ </tr>
<tr>
<td colspan="2" class="list" height="12">&nbsp;</td>
</tr>
OpenPOWER on IntegriCloud