diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-04-23 20:33:53 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-04-23 20:33:53 -0300 |
commit | f8fee2cead58ea34dfc7d4b9d022f05ffd738980 (patch) | |
tree | 456daeaba6af9748400799467d42d45dea8b705c /usr/local/www/firewall_rules_edit.php | |
parent | 3312d8afb71fd39e969730f91e38bf2eec34f957 (diff) | |
download | pfsense-f8fee2cead58ea34dfc7d4b9d022f05ffd738980.zip pfsense-f8fee2cead58ea34dfc7d4b9d022f05ffd738980.tar.gz |
Fix whitespace and indent
Diffstat (limited to 'usr/local/www/firewall_rules_edit.php')
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 181 |
1 files changed, 90 insertions, 91 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index 77808e4..4105343 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -3,7 +3,7 @@ /* firewall_rules_edit.php part of pfSense (http://www.pfsense.com) - Copyright (C) 2005 Scott Ullrich (sullrich@gmail.com) + Copyright (C) 2005 Scott Ullrich (sullrich@gmail.com) originally part of m0n0wall (http://m0n0.ch/wall) Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>. @@ -91,18 +91,18 @@ if (isset($id) && $a_filter[$id]) { if (isset($a_filter[$id]['floating']) || $if == "FloatingRules") { $pconfig['floating'] = $a_filter[$id]['floating']; - if (isset($a_filter[$id]['interface']) && $a_filter[$id]['interface'] <> "") + if (isset($a_filter[$id]['interface']) && $a_filter[$id]['interface'] <> "") $pconfig['interface'] = $a_filter[$id]['interface']; } - - if (isset($a_filter['floating'])) + + if (isset($a_filter['floating'])) $pconfig['floating'] = "yes"; if (isset($a_filter[$id]['direction'])) - $pconfig['direction'] = $a_filter[$id]['direction']; + $pconfig['direction'] = $a_filter[$id]['direction']; if (isset($a_filter[$id]['ipprotocol'])) - $pconfig['ipprotocol'] = $a_filter[$id]['ipprotocol']; + $pconfig['ipprotocol'] = $a_filter[$id]['ipprotocol']; if (isset($a_filter[$id]['protocol'])) $pconfig['proto'] = $a_filter[$id]['protocol']; @@ -133,16 +133,16 @@ if (isset($id) && $a_filter[$id]) { if (isset($a_filter[$id]['tcpflags_any'])) $pconfig['tcpflags_any'] = true; else { - if (isset($a_filter[$id]['tcpflags1']) && $a_filter[$id]['tcpflags1'] <> "") + if (isset($a_filter[$id]['tcpflags1']) && $a_filter[$id]['tcpflags1'] <> "") $pconfig['tcpflags1'] = $a_filter[$id]['tcpflags1']; - if (isset($a_filter[$id]['tcpflags2']) && $a_filter[$id]['tcpflags2'] <> "") + if (isset($a_filter[$id]['tcpflags2']) && $a_filter[$id]['tcpflags2'] <> "") $pconfig['tcpflags2'] = $a_filter[$id]['tcpflags2']; } - if (isset($a_filter[$id]['tag']) && $a_filter[$id]['tag'] <> "") + if (isset($a_filter[$id]['tag']) && $a_filter[$id]['tag'] <> "") $pconfig['tag'] = $a_filter[$id]['tag']; if (isset($a_filter[$id]['tagged']) && $a_filter[$id]['tagged'] <> "") - $pconfig['tagged'] = $a_filter[$id]['tagged']; + $pconfig['tagged'] = $a_filter[$id]['tagged']; if (isset($a_filter[$id]['quick']) && $a_filter[$id]['quick']) $pconfig['quick'] = $a_filter[$id]['quick']; if (isset($a_filter[$id]['allowopts'])) @@ -167,7 +167,7 @@ if (isset($id) && $a_filter[$id]) { /* Multi-WAN next-hop support */ $pconfig['gateway'] = $a_filter[$id]['gateway']; - + /* Shaper support */ $pconfig['defaultqueue'] = (($a_filter[$id]['ackqueue'] == "none") ? '' : $a_filter[$id]['defaultqueue']); $pconfig['ackqueue'] = (($a_filter[$id]['ackqueue'] == "none") ? '' : $a_filter[$id]['ackqueue']); @@ -330,7 +330,7 @@ if ($_POST) { if(($_POST['statetype'] == "synproxy state") && ($_POST['gateway'] != "")) $input_errors[] = sprintf(gettext("%s is only valid if the gateway is set to 'default'."),$_POST['statetype']); } - + if ( isset($a_filter[$id]['associated-rule-id'])===false && (!(is_specialnet($_POST['srctype']) || ($_POST['srctype'] == "single"))) ) { $reqdfields[] = "srcmask"; @@ -354,7 +354,7 @@ if ($_POST) { } if ($_POST['srcbeginport'] && !is_portoralias($_POST['srcbeginport'])) - $input_errors[] = sprintf(gettext("%s is not a valid start source port. It must be a port alias or integer between 1 and 65535."),$_POST['srcbeginposrt']); + $input_errors[] = sprintf(gettext("%s is not a valid start source port. It must be a port alias or integer between 1 and 65535."),$_POST['srcbeginposrt']); if ($_POST['srcendport'] && !is_portoralias($_POST['srcendport'])) $input_errors[] = sprintf(gettext("%s is not a valid end source port. It must be a port alias or integer between 1 and 65535."),$_POST['srcendport']); if ($_POST['dstbeginport'] && !is_portoralias($_POST['dstbeginport'])) @@ -367,8 +367,8 @@ if ($_POST) { if ( $_POST['srcbeginport_cust'] && $_POST['srcendport_cust']){ if (is_alias($_POST['srcendport_cust']) && is_alias($_POST['srcendport_cust']) && $_POST['srcbeginport_cust'] != $_POST['srcendport_cust']) $input_errors[] = 'The same port alias must be used in Source port range from: and to: fields'; - if ((is_alias($_POST['srcbeginport_cust']) && (!is_alias($_POST['srcendport_cust']) && $_POST['srcendport_cust']!='')) || - ((!is_alias($_POST['srcbeginport_cust']) && $_POST['srcbeginport_cust']!='') && is_alias($_POST['srcendport_cust']))) + if ((is_alias($_POST['srcbeginport_cust']) && (!is_alias($_POST['srcendport_cust']) && $_POST['srcendport_cust']!='')) || + ((!is_alias($_POST['srcbeginport_cust']) && $_POST['srcbeginport_cust']!='') && is_alias($_POST['srcendport_cust']))) $input_errors[] = 'You cannot specify numbers and port aliases at the same time in Source port range from: and to: field'; } if ( !$_POST['dstbeginport_cust'] && $_POST['dstendport_cust']) @@ -377,8 +377,8 @@ if ($_POST) { if ( $_POST['dstbeginport_cust'] && $_POST['dstendport_cust']){ if (is_alias($_POST['dstendport_cust']) && is_alias($_POST['dstendport_cust']) && $_POST['dstbeginport_cust'] != $_POST['dstendport_cust']) $input_errors[] = 'The same port alias must be used in Destination port range from: and to: fields'; - if ((is_alias($_POST['dstbeginport_cust']) && (!is_alias($_POST['dstendport_cust']) && $_POST['dstendport_cust']!='')) || - ((!is_alias($_POST['dstbeginport_cust']) && $_POST['dstbeginport_cust']!='') && is_alias($_POST['dstendport_cust']))) + if ((is_alias($_POST['dstbeginport_cust']) && (!is_alias($_POST['dstendport_cust']) && $_POST['dstendport_cust']!='')) || + ((!is_alias($_POST['dstbeginport_cust']) && $_POST['dstbeginport_cust']!='') && is_alias($_POST['dstendport_cust']))) $input_errors[] = 'You cannot specify numbers and port aliases at the same time in Destination port range from: and to: field'; } @@ -445,7 +445,7 @@ if ($_POST) { if ($_POST['defaultqueue'] == "" ) $input_errors[] = gettext("You have to select a queue when you select an acknowledge queue too."); else if ($_POST['ackqueue'] == $_POST['defaultqueue']) - $input_errors[] = gettext("Acknowledge queue and Queue cannot be the same."); + $input_errors[] = gettext("Acknowledge queue and Queue cannot be the same."); } if (isset($_POST['floating']) && $_POST['pdnpipe'] != "" && (empty($_POST['direction']) || $_POST['direction'] == "any")) $input_errors[] = gettext("You can not use limiters in Floating rules without choosing a direction."); @@ -458,7 +458,7 @@ if ($_POST) { $input_errors[] = gettext("In and Out Queue cannot be the same."); else if ($dnqlist[$_POST['pdnpipe']][0] == "?" && $dnqlist[$_POST['dnpipe']][0] <> "?") $input_errors[] = gettext("You cannot select one queue and one virtual interface for IN and Out. both must be from the same type."); - else if ($dnqlist[$_POST['dnpipe']][0] == "?" && $dnqlist[$_POST['pdnpipe']][0] <> "?") + else if ($dnqlist[$_POST['dnpipe']][0] == "?" && $dnqlist[$_POST['pdnpipe']][0] <> "?") $input_errors[] = gettext("You cannot select one queue and one virtual interface for IN and Out. both must be from the same type."); if ($_POST['direction'] == "out" && empty($_POST['gateway'])) $input_errors[] = gettext("Please select a gateway, normaly the interface selected gateway, so the limiters work correctly"); @@ -485,7 +485,7 @@ if ($_POST) { $input_errors[] = gettext("If you specify TCP flags that should be set you should specify out of which flags as well."); } - // Allow extending of the firewall edit page and include custom input validation + // Allow extending of the firewall edit page and include custom input validation pfSense_handle_custom_code("/usr/local/pkg/firewall_rules/input_validation"); if (!$input_errors) { @@ -597,7 +597,7 @@ if ($_POST) { if ($_POST['gateway'] != "") { $filterent['gateway'] = $_POST['gateway']; } - + if ($_POST['defaultqueue'] != "") { $filterent['defaultqueue'] = $_POST['defaultqueue']; if ($_POST['ackqueue'] != "") @@ -613,7 +613,7 @@ if ($_POST) { if ($_POST['l7container'] != "") { $filterent['l7container'] = $_POST['l7container']; } - + if ($_POST['sched'] != "") { $filterent['sched'] = $_POST['sched']; } @@ -647,7 +647,7 @@ if ($_POST) { $filterent['updated'] = make_config_revision_entry(); - // Allow extending of the firewall edit page and include custom input validation + // Allow extending of the firewall edit page and include custom input validation pfSense_handle_custom_code("/usr/local/pkg/firewall_rules/pre_write_config"); if (isset($id) && $a_filter[$id]) @@ -698,12 +698,12 @@ include("head.inc"); <table width="100%" border="0" cellpadding="6" cellspacing="0" summary="firewall rules edit"> <tr> <td colspan="2" valign="top" class="listtopic"><?=gettext("Edit Firewall rule");?></td> - </tr> + </tr> <?php - // Allow extending of the firewall edit page and include custom input validation + // Allow extending of the firewall edit page and include custom input validation pfSense_handle_custom_code("/usr/local/pkg/firewall_rules/htmlphpearly"); ?> - <tr> + <tr> <td width="22%" valign="top" class="vncellreq"><?=gettext("Action");?></td> <td width="78%" class="vtable"> <select name="type" class="formselect"> @@ -719,7 +719,7 @@ include("head.inc"); <br/> <span class="vexpl"> <?=gettext("Choose what to do with packets that match the criteria specified below.");?> <br/> - <?=gettext("Hint: the difference between block and reject is that with reject, a packet (TCP RST or ICMP port unreachable for UDP) is returned to the sender, whereas with block the packet is dropped silently. In either case, the original packet is discarded.");?> + <?=gettext("Hint: the difference between block and reject is that with reject, a packet (TCP RST or ICMP port unreachable for UDP) is returned to the sender, whereas with block the packet is dropped silently. In either case, the original packet is discarded.");?> </span> </td> </tr> @@ -778,15 +778,14 @@ include("head.inc"); <select name="interface[]" title="Select interfaces..." multiple="multiple" style="width:350px;" class="chzn-select" tabindex="2" <?=$edit_disabled;?>> <?php else: ?> <select name="interface" class="formselect" <?=$edit_disabled;?>> -<?php - endif; +<?php endif; /* add group interfaces */ if (is_array($config['ifgroups']['ifgroupentry'])) foreach($config['ifgroups']['ifgroupentry'] as $ifgen) if (have_ruleint_access($ifgen['ifname'])) $interfaces[$ifgen['ifname']] = $ifgen['ifname']; $ifdescs = get_configured_interface_with_descr(); - // Allow extending of the firewall edit page and include custom input validation + // Allow extending of the firewall edit page and include custom input validation pfSense_handle_custom_code("/usr/local/pkg/firewall_rules/pre_interfaces_edit"); foreach ($ifdescs as $ifent => $ifdesc) if(have_ruleint_access($ifent)) @@ -795,14 +794,14 @@ include("head.inc"); if(have_ruleint_access("l2tp")) $interfaces['l2tp'] = "L2TP VPN"; if ($config['pptpd']['mode'] == "server") - if(have_ruleint_access("pptp")) + if(have_ruleint_access("pptp")) $interfaces['pptp'] = "PPTP VPN"; - + if (is_pppoe_server_enabled() && have_ruleint_access("pppoe")) $interfaces['pppoe'] = "PPPoE VPN"; /* add ipsec interfaces */ if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enable'])) - if(have_ruleint_access("enc0")) + if(have_ruleint_access("enc0")) $interfaces["enc0"] = "IPsec"; /* add openvpn/tun interfaces */ if ($config['openvpn']["openvpn-server"] || $config['openvpn']["openvpn-client"]) @@ -829,10 +828,10 @@ include("head.inc"); foreach ($directions as $direction): ?> <option value="<?=$direction;?>" <?php if ($direction == $pconfig['direction']): ?> - selected="selected" + selected="selected" <?php endif; ?> ><?=$direction;?></option> - <?php endforeach; ?> + <?php endforeach; ?> </select> <input type="hidden" id="floating" name="floating" value="floating" /> </td> @@ -846,10 +845,10 @@ include("head.inc"); foreach ($ipproto as $proto => $name): ?> <option value="<?=$proto;?>" <?php if ($proto == $pconfig['ipprotocol']): ?> - selected="selected" + selected="selected" <?php endif; ?> ><?=$name;?></option> - <?php endforeach; ?> + <?php endforeach; ?> </select> <strong><?=gettext("Select the Internet Protocol version this rule applies to");?></strong><br /> </td> @@ -922,7 +921,7 @@ include("head.inc"); <?php if (!$sel && ((is_ipaddrv6($pconfig['src']) && $pconfig['srcmask'] == 128) || (is_ipaddrv4($pconfig['src']) && $pconfig['srcmask'] == 32) || is_alias($pconfig['src']))) - { echo "selected=\"selected\""; $sel = 1; } + { echo "selected=\"selected\""; $sel = 1; } ?> > <?=gettext("Single host or alias");?></option> <option value="network" <?php if (!$sel) echo "selected=\"selected\""; ?>><?=gettext("Network");?></option> @@ -931,10 +930,10 @@ include("head.inc"); <?php endif; ?> <?php if(have_ruleint_access("pppoe")): ?> <option value="pppoe" <?php if ($pconfig['src'] == "pppoe") { echo "selected=\"selected\""; } ?>><?=gettext("PPPoE clients");?></option> - <?php endif; ?> - <?php if(have_ruleint_access("l2tp")): ?> - <option value="l2tp" <?php if ($pconfig['src'] == "l2tp") { echo "selected=\"selected\""; } ?>><?=gettext("L2TP clients");?></option> - <?php endif; ?> + <?php endif; ?> + <?php if(have_ruleint_access("l2tp")): ?> + <option value="l2tp" <?php if ($pconfig['src'] == "l2tp") { echo "selected=\"selected\""; } ?>><?=gettext("L2TP clients");?></option> + <?php endif; ?> <?php foreach ($ifdisp as $ifent => $ifdesc): ?> <?php if(have_ruleint_access($ifent)): ?> @@ -1031,10 +1030,10 @@ include("head.inc"); <?php endif; ?> <?php if(have_ruleint_access("pppoe")): ?> <option value="pppoe" <?php if ($pconfig['dst'] == "pppoe") { echo "selected=\"selected\""; } ?>><?=gettext("PPPoE clients");?></option> - <?php endif; ?> + <?php endif; ?> <?php if(have_ruleint_access("l2tp")): ?> - <option value="l2tp" <?php if ($pconfig['dst'] == "l2tp") { echo "selected=\"selected\""; } ?>><?=gettext("L2TP clients");?></option> - <?php endif; ?> + <option value="l2tp" <?php if ($pconfig['dst'] == "l2tp") { echo "selected=\"selected\""; } ?>><?=gettext("L2TP clients");?></option> + <?php endif; ?> <?php foreach ($ifdisp as $if => $ifdesc): ?> <?php if(have_ruleint_access($if)): ?> @@ -1054,7 +1053,7 @@ include("head.inc"); / <select <?=$edit_disabled;?> name="dstmask" class="formselect ipv4v6" id="dstmask"> <?php - for ($i = 127; $i > 0; + for ($i = 127; $i > 0; $i--): ?> <option value="<?=$i;?>" <?php if ($i == $pconfig['dstmask']) echo "selected=\"selected\""; ?>><?=$i;?></option> <?php endfor; ?> @@ -1138,7 +1137,7 @@ $i--): ?> </tr> <tr> <td colspan="2" valign="top" class="listtopic"><?=gettext("Advanced features");?></td> - </tr> + </tr> <tr> <td width="22%" valign="top" class="vncell"><?=gettext("Source OS");?></td> <td width="78%" class="vtable"> @@ -1150,7 +1149,7 @@ $i--): ?> <select name="os" id="os" class="formselect"> <?php $ostypes = array( - "" => gettext("any"), + "" => gettext("any"), "AIX" => "AIX", "Linux" => "Linux", "FreeBSD" => "FreeBSD", @@ -1161,11 +1160,11 @@ $i--): ?> "Windows" => "Windows", "Novell" => "Novell", "NMAP" => "NMAP" - ); + ); foreach ($ostypes as $ostype => $descr): ?> <option value="<?=$ostype;?>" <?php if ($ostype == $pconfig['os']) echo "selected=\"selected\""; ?>><?=htmlspecialchars($descr);?></option> <?php - endforeach; + endforeach; ?> </select> <br /> @@ -1226,19 +1225,19 @@ $i--): ?> <?=gettext("State Timeout in seconds");?> </p> <p><strong><?=gettext("Note: Leave fields blank to disable that feature.");?></strong></p> - </div> + </div> </td> </tr> - <tr id="tcpflags"> + <tr id="tcpflags"> <td width="22%" valign="top" class="vncell"><?=gettext("TCP flags");?></td> <td width="78%" class="vtable"> <div id="showtcpflagsbox" <?php if ($pconfig['tcpflags_any'] || $pconfig['tcpflags1'] || $pconfig['tcpflags2']) echo "style='display:none'"; ?>> - <input type="button" onclick="show_advanced_tcpflags()" value="<?=gettext("Advanced"); ?>" /> - <?=gettext("Show advanced option");?> - </div> - <div id="showtcpflagsadv" <?php if (empty($pconfig['tcpflags_any']) && empty($pconfig['tcpflags1']) && empty($pconfig['tcpflags2'])) echo "style='display:none'"; ?>> + <input type="button" onclick="show_advanced_tcpflags()" value="<?=gettext("Advanced"); ?>" /> - <?=gettext("Show advanced option");?> + </div> + <div id="showtcpflagsadv" <?php if (empty($pconfig['tcpflags_any']) && empty($pconfig['tcpflags1']) && empty($pconfig['tcpflags2'])) echo "style='display:none'"; ?>> <div id="tcpheader" align="center"> <table border="0" cellspacing="0" cellpadding="0"> - <?php + <?php $setflags = explode(",", $pconfig['tcpflags1']); $outofflags = explode(",", $pconfig['tcpflags2']); $header = "<td width='40' class='nowrap'></td>"; @@ -1264,7 +1263,7 @@ $i--): ?> <br/><center> <input onclick='tcpflags_anyclick(this);' type='checkbox' name='tcpflags_any' value='on' <?php if ($pconfig['tcpflags_any']) echo "checked=\"checked\""; ?> /><strong><?=gettext("Any flags.");?></strong><br/></center> <br/> - <span class="vexpl"><?=gettext("Use this to choose TCP flags that must ". + <span class="vexpl"><?=gettext("Use this to choose TCP flags that must ". "be set or cleared for this rule to match.");?></span> </div> </td> @@ -1288,7 +1287,7 @@ $i--): ?> <tr><td width="25%"><ul><li><?=gettext("synproxy state");?></li></ul></td><td><?=gettext("Proxies incoming TCP connections to help protect servers from spoofed TCP SYN floods. This option includes the functionality of keep state and modulate state combined.");?></td></tr> <tr><td width="25%"><ul><li><?=gettext("none");?></li></ul></td><td><?=gettext("Do not use state mechanisms to keep track. This is only useful if you're doing advanced queueing in certain situations. Please check the documentation.");?></td></tr> </table> - </div> + </div> </td> </tr> <tr> @@ -1405,7 +1404,7 @@ $i--): ?> continue; if(($pconfig['ipprotocol'] == "inet") && !(($gw['ipprotocol'] == "inet") || (is_ipaddrv4($gw['gateway'])))) continue; - if($gw == "") + if($gw == "") continue; if($gwname == $pconfig['gateway']) { $selected = " selected=\"selected\""; @@ -1462,10 +1461,10 @@ $i--): ?> $dnqselected = 1; echo " selected=\"selected\""; } - echo ">{$dnq}</option>"; + echo ">{$dnq}</option>"; } ?> - </select> / + </select> / <select name="pdnpipe"> <?php $dnqselected = 0; @@ -1480,7 +1479,7 @@ $i--): ?> $dnqselected = 1; echo " selected=\"selected\""; } - echo ">{$dnq}</option>"; + echo ">{$dnq}</option>"; } ?> </select> @@ -1515,10 +1514,10 @@ $i--): ?> if (isset($ifdisp[$q])) echo ">{$ifdisp[$q]}</option>"; else - echo ">{$q}</option>"; + echo ">{$q}</option>"; } ?> - </select> / + </select> / <select name="defaultqueue"> <?php $qselected = 0; @@ -1536,7 +1535,7 @@ $i--): ?> if (isset($ifdisp[$q])) echo ">{$ifdisp[$q]}</option>"; else - echo ">{$q}</option>"; + echo ">{$q}</option>"; } ?> </select> @@ -1552,31 +1551,31 @@ $i--): ?> <input type="button" onclick="show_advanced_layer7()" value="<?=gettext("Advanced"); ?>" /> - <?=gettext("Show advanced option");?> </div> <div id="showlayer7adv" <?php if (empty($pconfig['l7container'])) echo "style='display:none'"; ?>> - <select name="l7container"> + <select name="l7container"> <?php - if (!is_array($l7clist)) - $l7clist = array(); - echo "<option value=\"\""; - echo " >none</option>"; - foreach ($l7clist as $l7ckey) { - echo "<option value=\"{$l7ckey}\""; - if ($l7ckey == $pconfig['l7container']) { - echo " selected=\"selected\""; + if (!is_array($l7clist)) + $l7clist = array(); + echo "<option value=\"\""; + echo " >none</option>"; + foreach ($l7clist as $l7ckey) { + echo "<option value=\"{$l7ckey}\""; + if ($l7ckey == $pconfig['l7container']) { + echo " selected=\"selected\""; + } + echo ">{$l7ckey}</option>"; } - echo ">{$l7ckey}</option>"; - } ?> - </select> - <br/> - <span class="vexpl"> - <?=gettext("Choose a Layer7 container to apply application protocol inspection rules. " . - "These are valid for TCP and UDP protocols only.");?> - </span> - </div> - </td> - </tr> + </select> + <br/> + <span class="vexpl"> + <?=gettext("Choose a Layer7 container to apply application protocol inspection rules. " . + "These are valid for TCP and UDP protocols only.");?> + </span> + </div> + </td> + </tr> <?php - // Allow extending of the firewall edit page and include custom input validation + // Allow extending of the firewall edit page and include custom input validation pfSense_handle_custom_code("/usr/local/pkg/firewall_rules/htmlphplate"); ?> <?php @@ -1633,11 +1632,11 @@ $has_updated_time = (isset($a_filter[$id]['updated']) && is_array($a_filter[$id] var customarray = <?= json_encode(get_alias_list("port")) ?>; var oTextbox1 = new AutoSuggestControl(document.getElementById("src"), new StateSuggestions(addressarray)); - var oTextbox2 = new AutoSuggestControl(document.getElementById("srcbeginport_cust"), new StateSuggestions(customarray)); - var oTextbox3 = new AutoSuggestControl(document.getElementById("srcendport_cust"), new StateSuggestions(customarray)); - var oTextbox4 = new AutoSuggestControl(document.getElementById("dst"), new StateSuggestions(addressarray)); - var oTextbox5 = new AutoSuggestControl(document.getElementById("dstbeginport_cust"), new StateSuggestions(customarray)); - var oTextbox6 = new AutoSuggestControl(document.getElementById("dstendport_cust"), new StateSuggestions(customarray)); + var oTextbox2 = new AutoSuggestControl(document.getElementById("srcbeginport_cust"), new StateSuggestions(customarray)); + var oTextbox3 = new AutoSuggestControl(document.getElementById("srcendport_cust"), new StateSuggestions(customarray)); + var oTextbox4 = new AutoSuggestControl(document.getElementById("dst"), new StateSuggestions(addressarray)); + var oTextbox5 = new AutoSuggestControl(document.getElementById("dstbeginport_cust"), new StateSuggestions(customarray)); + var oTextbox6 = new AutoSuggestControl(document.getElementById("dstendport_cust"), new StateSuggestions(customarray)); //]]> </script> <?php include("fend.inc"); ?> |