Revision ee9933b6
Added by Renato Botelho almost 15 years ago
usr/local/www/firewall_rules_edit.php | ||
---|---|---|
610 | 610 |
<span class="vexpl"><?=gettext("Set this option if you need to apply this action to traffic that matches this rule immediately.");?></span> |
611 | 611 |
</td> |
612 | 612 |
</tr> |
613 |
<? endif; ?> |
|
613 |
<?php endif; ?>
|
|
614 | 614 |
<tr> |
615 | 615 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("Interface");?></td> |
616 | 616 |
<td width="78%" class="vtable"> |
... | ... | |
622 | 622 |
} |
623 | 623 |
if ($if == "FloatingRules" || isset($pconfig['floating'])): ?> |
624 | 624 |
<select name="interface[]" multiple="true" class="formselect" size="3" <?=$disabled;?>> |
625 |
<? else: ?> |
|
625 |
<?php else: ?>
|
|
626 | 626 |
<select name="interface" class="formselect" <?=$disabled;?>> |
627 | 627 |
<?php |
628 | 628 |
endif; |
... | ... | |
974 | 974 |
<tr> |
975 | 975 |
<td width="22%" valign="top" class="vncell"><?=gettext("Source OS");?></td> |
976 | 976 |
<td width="78%" class="vtable"> |
977 |
<div id="showadvsourceosbox" <? if ($pconfig['os']) echo "style='display:none'"; ?>> |
|
977 |
<div id="showadvsourceosbox" <?php if ($pconfig['os']) echo "style='display:none'"; ?>>
|
|
978 | 978 |
<input type="button" onClick="show_advanced_sourceos()" value="<?=gettext("Advanced"); ?>"></input> - <?=gettext("Show advanced option");?></a> |
979 | 979 |
</div> |
980 |
<div id="showsourceosadv" <? if (empty($pconfig['os'])) echo "style='display:none'"; ?>> |
|
980 |
<div id="showsourceosadv" <?php if (empty($pconfig['os'])) echo "style='display:none'"; ?>>
|
|
981 | 981 |
<?=gettext("OS Type:");?> |
982 | 982 |
<select name="os" id="os" class="formselect"> |
983 | 983 |
<?php |
... | ... | |
1008 | 1008 |
<tr> |
1009 | 1009 |
<td width="22%" valign="top" class="vncell"><?=gettext("Diffserv Code Point");?></td> |
1010 | 1010 |
<td width="78%" class="vtable"> |
1011 |
<div id="dsadv" name="dsadv" <? if ($pconfig['dscp']) echo "style='display:none'"; ?>> |
|
1011 |
<div id="dsadv" name="dsadv" <?php if ($pconfig['dscp']) echo "style='display:none'"; ?>>
|
|
1012 | 1012 |
<input type="button" onClick="show_dsdiv();" value="<?=gettext("Advanced"); ?>"> - <?=gettext("Show advanced option");?> |
1013 | 1013 |
</div> |
1014 |
<div id="dsdivmain" name="dsdivmain" <? if (empty($pconfig['dscp'])) echo "style='display:none'"; ?>> |
|
1014 |
<div id="dsdivmain" name="dsdivmain" <?php if (empty($pconfig['dscp'])) echo "style='display:none'"; ?>>
|
|
1015 | 1015 |
<select name="dscp" id="dscp"> |
1016 | 1016 |
<option value=""></option> |
1017 | 1017 |
<?php foreach($firewall_rules_dscp_types as $frdt): ?> |
... | ... | |
1066 | 1066 |
<tr id="tcpflags" name="tcpflags"> |
1067 | 1067 |
<td width="22%" valign="top" class="vncell"><?=gettext("TCP flags");?></td> |
1068 | 1068 |
<td width="78%" class="vtable"> |
1069 |
<div id="showtcpflagsbox" <? if ($pconfig['tcpflags_any'] || $pconfig['tcpflags1'] || $pconfig['tcpflags2']) echo "style='display:none'"; ?>> |
|
1069 |
<div id="showtcpflagsbox" <?php if ($pconfig['tcpflags_any'] || $pconfig['tcpflags1'] || $pconfig['tcpflags2']) echo "style='display:none'"; ?>>
|
|
1070 | 1070 |
<input type="button" onClick="show_advanced_tcpflags()" value="<?=gettext("Advanced"); ?>"></input> - <?=gettext("Show advanced option");?></a> |
1071 | 1071 |
</div> |
1072 |
<div id="showtcpflagsadv" <? if (empty($pconfig['tcpflags_any']) && empty($pconfig['tcpflags1']) && empty($pconfig['tcpflags2'])) echo "style='display:none'"; ?>> |
|
1072 |
<div id="showtcpflagsadv" <?php if (empty($pconfig['tcpflags_any']) && empty($pconfig['tcpflags1']) && empty($pconfig['tcpflags2'])) echo "style='display:none'"; ?>>
|
|
1073 | 1073 |
<div id="tcpheader" name="tcpheader"> |
1074 | 1074 |
<center> |
1075 | 1075 |
<table border="0" cellspacing="0" cellpadding="0"> |
... | ... | |
1108 | 1108 |
<tr> |
1109 | 1109 |
<td width="22%" valign="top" class="vncell"><?=gettext("State Type");?></td> |
1110 | 1110 |
<td width="78%" class="vtable"> |
1111 |
<div id="showadvstatebox" <? if (!empty($pconfig['statetype']) && $pconfig['statetype'] != "keep state") echo "style='display:none'"; ?>> |
|
1111 |
<div id="showadvstatebox" <?php if (!empty($pconfig['statetype']) && $pconfig['statetype'] != "keep state") echo "style='display:none'"; ?>>
|
|
1112 | 1112 |
<input type="button" onClick="show_advanced_state()" value="<?=gettext("Advanced"); ?>"></input> - <?=gettext("Show advanced option");?></a> |
1113 | 1113 |
</div> |
1114 |
<div id="showstateadv" <? if (empty($pconfig['statetype']) || $pconfig['statetype'] == "keep state") echo "style='display:none'"; ?>> |
|
1114 |
<div id="showstateadv" <?php if (empty($pconfig['statetype']) || $pconfig['statetype'] == "keep state") echo "style='display:none'"; ?>>
|
|
1115 | 1115 |
<select name="statetype"> |
1116 | 1116 |
<option value="keep state" <?php if(!isset($pconfig['statetype']) or $pconfig['statetype'] == "keep state") echo "selected"; ?>><?=gettext("keep state");?></option> |
1117 | 1117 |
<option value="sloppy state" <?php if($pconfig['statetype'] == "sloppy state") echo "selected"; ?>><?=gettext("sloppy state");?></option> |
... | ... | |
1132 | 1132 |
<tr> |
1133 | 1133 |
<td width="22%" valign="top" class="vncell"><?=gettext("No XMLRPC Sync");?></td> |
1134 | 1134 |
<td width="78%" class="vtable"> |
1135 |
<div id="showadvnoxmlrpcsyncbox" <? if ($pconfig['nosync']) echo "style='display:none'"; ?>> |
|
1135 |
<div id="showadvnoxmlrpcsyncbox" <?php if ($pconfig['nosync']) echo "style='display:none'"; ?>>
|
|
1136 | 1136 |
<input type="button" onClick="show_advanced_noxmlrpc()" value="<?=gettext("Advanced"); ?>"></input> - <?=gettext("Show advanced option");?></a> |
1137 | 1137 |
</div> |
1138 |
<div id="shownoxmlrpcadv" <? if (empty($pconfig['nosync'])) echo "style='display:none'"; ?>> |
|
1138 |
<div id="shownoxmlrpcadv" <?php if (empty($pconfig['nosync'])) echo "style='display:none'"; ?>>
|
|
1139 | 1139 |
<input type="checkbox" name="nosync"<?php if($pconfig['nosync']) echo " CHECKED"; ?>><br> |
1140 | 1140 |
<?=gettext("HINT: This prevents the rule from automatically syncing to other CARP members.");?> |
1141 | 1141 |
</div> |
... | ... | |
1155 | 1155 |
<tr> |
1156 | 1156 |
<td width="22%" valign="top" class="vncell"><?=gettext("Schedule");?></td> |
1157 | 1157 |
<td width="78%" class="vtable"> |
1158 |
<div id="showadvschedulebox" <? if (!empty($pconfig['sched'])) echo "style='display:none'"; ?>> |
|
1158 |
<div id="showadvschedulebox" <?php if (!empty($pconfig['sched'])) echo "style='display:none'"; ?>>
|
|
1159 | 1159 |
<input type="button" onClick="show_advanced_schedule()" value="<?=gettext("Advanced"); ?>"></input> - <?=gettext("Show advanced option");?></a> |
1160 | 1160 |
</div> |
1161 |
<div id="showscheduleadv" <? if (empty($pconfig['sched'])) echo "style='display:none'"; ?>> |
|
1161 |
<div id="showscheduleadv" <?php if (empty($pconfig['sched'])) echo "style='display:none'"; ?>>
|
|
1162 | 1162 |
<select name='sched'> |
1163 | 1163 |
<?php |
1164 | 1164 |
foreach($schedules as $schedule) { |
... | ... | |
1182 | 1182 |
<tr> |
1183 | 1183 |
<td width="22%" valign="top" class="vncell"><?=gettext("Gateway");?></td> |
1184 | 1184 |
<td width="78%" class="vtable"> |
1185 |
<div id="showadvgatewaybox" <? if (!empty($pconfig['gateway'])) echo "style='display:none'"; ?>> |
|
1185 |
<div id="showadvgatewaybox" <?php if (!empty($pconfig['gateway'])) echo "style='display:none'"; ?>>
|
|
1186 | 1186 |
<input type="button" onClick="show_advanced_gateway()" value="<?=gettext("Advanced"); ?>"></input> - <?=gettext("Show advanced option");?></a> |
1187 | 1187 |
</div> |
1188 |
<div id="showgatewayadv" <? if (empty($pconfig['gateway'])) echo "style='display:none'"; ?>> |
|
1188 |
<div id="showgatewayadv" <?php if (empty($pconfig['gateway'])) echo "style='display:none'"; ?>>
|
|
1189 | 1189 |
<select name='gateway'> |
1190 | 1190 |
<option value="" ><?=gettext("default");?></option> |
1191 | 1191 |
<?php |
... | ... | |
1223 | 1223 |
<tr> |
1224 | 1224 |
<td width="22%" valign="top" class="vncell"><?=gettext("In/Out");?></td> |
1225 | 1225 |
<td width="78%" class="vtable"> |
1226 |
<div id="showadvinoutbox" <? if (!empty($pconfig['dnpipe'])) echo "style='display:none'"; ?>> |
|
1226 |
<div id="showadvinoutbox" <?php if (!empty($pconfig['dnpipe'])) echo "style='display:none'"; ?>>
|
|
1227 | 1227 |
<input type="button" onClick="show_advanced_inout()" value="<?=gettext("Advanced"); ?>"></input> - <?=gettext("Show advanced option");?></a> |
1228 | 1228 |
</div> |
1229 |
<div id="showinoutadv" <? if (empty($pconfig['dnpipe'])) echo "style='display:none'"; ?>> |
|
1229 |
<div id="showinoutadv" <?php if (empty($pconfig['dnpipe'])) echo "style='display:none'"; ?>>
|
|
1230 | 1230 |
<select name="dnpipe"> |
1231 | 1231 |
<?php |
1232 | 1232 |
if (!is_array($dnqlist)) |
... | ... | |
1273 | 1273 |
<tr> |
1274 | 1274 |
<td width="22%" valign="top" class="vncell"><?=gettext("Ackqueue/Queue");?></td> |
1275 | 1275 |
<td width="78%" class="vtable"> |
1276 |
<div id="showadvackqueuebox" <? if (!empty($pconfig['defaultqueue'])) echo "style='display:none'"; ?>> |
|
1276 |
<div id="showadvackqueuebox" <?php if (!empty($pconfig['defaultqueue'])) echo "style='display:none'"; ?>>
|
|
1277 | 1277 |
<input type="button" onClick="show_advanced_ackqueue()" value="<?=gettext("Advanced"); ?>"></input> - <?=gettext("Show advanced option");?></a> |
1278 | 1278 |
</div> |
1279 |
<div id="showackqueueadv" <? if (empty($pconfig['defaultqueue'])) echo "style='display:none'"; ?>> |
|
1279 |
<div id="showackqueueadv" <?php if (empty($pconfig['defaultqueue'])) echo "style='display:none'"; ?>>
|
|
1280 | 1280 |
<select name="ackqueue"> |
1281 | 1281 |
<?php |
1282 | 1282 |
if (!is_array($qlist)) |
... | ... | |
1321 | 1321 |
<tr> |
1322 | 1322 |
<td width="22%" valign="top" class="vncell"><?=gettext("Layer7");?></td> |
1323 | 1323 |
<td width="78%" class="vtable"> |
1324 |
<div id="showadvlayer7box" <? if (!empty($pconfig['l7container'])) echo "style='display:none'"; ?>> |
|
1324 |
<div id="showadvlayer7box" <?php if (!empty($pconfig['l7container'])) echo "style='display:none'"; ?>>
|
|
1325 | 1325 |
<input type="button" onClick="show_advanced_layer7()" value="<?=gettext("Advanced"); ?>"></input> - <?=gettext("Show advanced option");?></a> |
1326 | 1326 |
</div> |
1327 |
<div id="showlayer7adv" <? if (empty($pconfig['l7container'])) echo "style='display:none'"; ?>> |
|
1327 |
<div id="showlayer7adv" <?php if (empty($pconfig['l7container'])) echo "style='display:none'"; ?>>
|
|
1328 | 1328 |
<select name="l7container"> |
1329 | 1329 |
<?php |
1330 | 1330 |
if (!is_array($l7clist)) |
Also available in: Unified diff
Use