diff options
author | Phil Davis <phil.davis@inf.org> | 2015-12-14 23:18:15 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-12-14 23:18:15 +0545 |
commit | 67c2baf157c50ae1b545f36bcf6afee6cdf6f67c (patch) | |
tree | c429615f87c26b3da9c58c7149d827a893461dbe /src/usr/local/www/firewall_schedule.php | |
parent | 935b578b7606b8af6866c3c01e9e7b7f9c58a0d9 (diff) | |
download | pfsense-67c2baf157c50ae1b545f36bcf6afee6cdf6f67c.zip pfsense-67c2baf157c50ae1b545f36bcf6afee6cdf6f67c.tar.gz |
Coe style firewall *
Diffstat (limited to 'src/usr/local/www/firewall_schedule.php')
-rw-r--r-- | src/usr/local/www/firewall_schedule.php | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/usr/local/www/firewall_schedule.php b/src/usr/local/www/firewall_schedule.php index 39880ce..11bf2bb 100644 --- a/src/usr/local/www/firewall_schedule.php +++ b/src/usr/local/www/firewall_schedule.php @@ -113,8 +113,9 @@ if ($_GET['act'] == "del") { include("head.inc"); -if ($savemsg) +if ($savemsg) { print_info_box($savemsg, 'success'); +} ?> <div class="panel panel-default"> @@ -183,23 +184,24 @@ foreach ($a_schedules as $schedule): $currentDay++; if (($currentDay != $nextDay) || ($tempmontharray[$arraycounter] != $tempmontharray[$arraycounter+1])) { - if ($firstPrint) + if ($firstPrint) { $dayFriendly .= "<br />"; + } $currentDay--; - if ($currentDay != $firstDay) + if ($currentDay != $firstDay) { $dayFriendly .= $monthArray[$firstmonth-1] . " " . $firstDay . " - " . $currentDay ; - else + } else { $dayFriendly .= $monthArray[$month-1] . " " . $day; + } $firstDayFound = false; $firstPrint = true; } $arraycounter++; } - } - else { + } else { $tempdayFriendly = $timerange['position']; $firstDayFound = false; $tempFriendlyDayArray = explode(",", $tempdayFriendly); @@ -210,8 +212,7 @@ foreach ($a_schedules as $schedule): foreach ($tempFriendlyDayArray as $day) { if ($day != "") { - if (!$firstDayFound) - { + if (!$firstDayFound) { $firstDay = $tempFriendlyDayArray[$counter]; $firstDayFound = true; } @@ -222,15 +223,17 @@ foreach ($a_schedules as $schedule): $currentDay++; if ($currentDay != $nextDay) { - if ($firstprint) + if ($firstprint) { $dayFriendly .= "<br />"; + } $currentDay--; - if ($currentDay != $firstDay) + if ($currentDay != $firstDay) { $dayFriendly .= $dayArray[$firstDay-1] . " - " . $dayArray[$currentDay-1]; - else + } else { $dayFriendly .= $dayArray[$firstDay-1]; + } $firstDayFound = false; $firstprint = true; |