Revision 6c07db48
Added by Phil Davis about 10 years ago
usr/local/www/firewall_schedule.php | ||
---|---|---|
41 | 41 |
##|-PRIV |
42 | 42 |
|
43 | 43 |
|
44 |
$dayArray = array (gettext('Mon'),gettext('Tues'),gettext('Wed'),gettext('Thur'),gettext('Fri'),gettext('Sat'),gettext('Sun'));
|
|
45 |
$monthArray = array (gettext('January'),gettext('February'),gettext('March'),gettext('April'),gettext('May'),gettext('June'),gettext('July'),gettext('August'),gettext('September'),gettext('October'),gettext('November'),gettext('December'));
|
|
44 |
$dayArray = array (gettext('Mon'), gettext('Tues'), gettext('Wed'), gettext('Thur'), gettext('Fri'), gettext('Sat'), gettext('Sun'));
|
|
45 |
$monthArray = array (gettext('January'), gettext('February'), gettext('March'), gettext('April'), gettext('May'), gettext('June'), gettext('July'), gettext('August'), gettext('September'), gettext('October'), gettext('November'), gettext('December'));
|
|
46 | 46 |
|
47 | 47 |
require("guiconfig.inc"); |
48 | 48 |
require_once("filter.inc"); |
49 | 49 |
require("shaper.inc"); |
50 | 50 |
|
51 |
$pgtitle = array(gettext("Firewall"),gettext("Schedules")); |
|
51 |
$pgtitle = array(gettext("Firewall"), gettext("Schedules"));
|
|
52 | 52 |
|
53 | 53 |
if (!is_array($config['schedules']['schedule'])) { |
54 | 54 |
$config['schedules']['schedule'] = array(); |
... | ... | |
76 | 76 |
} |
77 | 77 |
|
78 | 78 |
if ($is_schedule_referenced == true) { |
79 |
$savemsg = sprintf(gettext("Cannot delete Schedule. Currently in use by %s"),$referenced_by); |
|
79 |
$savemsg = sprintf(gettext("Cannot delete Schedule. Currently in use by %s"), $referenced_by);
|
|
80 | 80 |
} else { |
81 | 81 |
unset($a_schedules[$_GET['id']]); |
82 | 82 |
write_config(); |
... | ... | |
137 | 137 |
|
138 | 138 |
if ($timerange['month']) { |
139 | 139 |
$tempmontharray = explode(",", $timerange['month']); |
140 |
$tempdayarray = explode(",",$timerange['day']); |
|
140 |
$tempdayarray = explode(",", $timerange['day']);
|
|
141 | 141 |
$arraycounter = 0; |
142 | 142 |
$firstDayFound = false; |
143 | 143 |
$firstPrint = false; |
... | ... | |
162 | 162 |
if ($currentDay != $firstDay) { |
163 | 163 |
$dayFriendly .= $monthArray[$firstmonth-1] . " " . $firstDay . " - " . $currentDay ; |
164 | 164 |
} else { |
165 |
$dayFriendly .= $monthArray[$month-1] . " " . $day;
|
|
165 |
$dayFriendly .= $monthArray[$month-1] . " " . $day; |
|
166 | 166 |
} |
167 | 167 |
$firstDayFound = false; |
168 | 168 |
$firstPrint = true; |
Also available in: Unified diff
Code spacing
and other random stuff I noticed.
I think this finishes messing with code style. The codebase should match
the developer style guide closely enough that 99.9% of changes will not
feel the need to also massage the formatting.