summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_schedule_edit.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-04-26 14:23:29 +0000
committerErmal Luçi <eri@pfsense.org>2009-04-26 14:23:29 +0000
commit60120e37425e3e0147bbc3a0cfe010c124ba0df6 (patch)
tree2cdc7f3f4574ed10933035e38dd04533354e4c7d /usr/local/www/firewall_schedule_edit.php
parent6dc3a5c2e428a6f8c0d11d904f12ab8ab86a8718 (diff)
downloadpfsense-60120e37425e3e0147bbc3a0cfe010c124ba0df6.zip
pfsense-60120e37425e3e0147bbc3a0cfe010c124ba0df6.tar.gz
* Convert schedules to pf(4).
This allows to schedule the whole feature of the rules like queues/limiters/gateways/blocks/allows/etc... * Whitespace cleaning on filter.inc * Move schedule backend logic from pfsense-utils.inc to filter.inc and prefix with filter_. * Small bugfixes here and there.
Diffstat (limited to 'usr/local/www/firewall_schedule_edit.php')
-rw-r--r--usr/local/www/firewall_schedule_edit.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/firewall_schedule_edit.php b/usr/local/www/firewall_schedule_edit.php
index 3cda9a9..fc30c18 100644
--- a/usr/local/www/firewall_schedule_edit.php
+++ b/usr/local/www/firewall_schedule_edit.php
@@ -65,6 +65,7 @@ if (isset($id) && $a_schedules[$id]) {
$pconfig['name'] = $a_schedules[$id]['name'];
$pconfig['descr'] = html_entity_decode($a_schedules[$id]['descr']);
$pconfig['timerange'] = $a_schedules[$id]['timerange'];
+ $pconfig['schedlabel'] = $a_schedules[$id]['schedlabel'];
$getSchedule = true;
}
@@ -152,6 +153,11 @@ if ($_POST) {
if (!$input_errors) {
+ if (!empty($pconfig['schedlabel']))
+ $schedule['schedlabel'] = $pconfig['schedlabel'];
+ else
+ $schedule['schedlabel'] = uniqid();
+
if (isset($id) && $a_schedules[$id]){
$a_schedules[$id] = $schedule;
}
OpenPOWER on IntegriCloud