diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-22 01:45:34 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-22 01:45:34 +0000 |
commit | 105800d246549ac3bd0a221d352d33a1c54b0293 (patch) | |
tree | e512777fe09b06797859efd56336b9fd461648fa /usr/local/www | |
parent | bbd0311987b64a9629208e2bb4b7ec0130d089c6 (diff) | |
download | pfsense-105800d246549ac3bd0a221d352d33a1c54b0293.zip pfsense-105800d246549ac3bd0a221d352d33a1c54b0293.tar.gz |
Do not redeclare functions
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index e3bc7e2..b6531fa 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -856,33 +856,3 @@ var customarray=new Array(<?php echo $aliases; ?>); </body> </html> -<?php - -function address_to_pconfig($adr, &$padr, &$pmask, &$pnot, &$pbeginport, &$pendport) { - - if (isset($adr['any'])) - $padr = "any"; - else if ($adr['network']) - $padr = $adr['network']; - else if ($adr['address']) { - list($padr, $pmask) = explode("/", $adr['address']); - if (!$pmask) - $pmask = 32; - } - - if (isset($adr['not'])) - $pnot = 1; - else - $pnot = 0; - - if ($adr['port']) { - list($pbeginport, $pendport) = explode("-", $adr['port']); - if (!$pendport) - $pendport = $pbeginport; - } else { - $pbeginport = "any"; - $pendport = "any"; - } -} - -?> |