summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-22 01:45:34 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-22 01:45:34 +0000
commit105800d246549ac3bd0a221d352d33a1c54b0293 (patch)
treee512777fe09b06797859efd56336b9fd461648fa /usr/local/www/firewall_rules_edit.php
parentbbd0311987b64a9629208e2bb4b7ec0130d089c6 (diff)
downloadpfsense-105800d246549ac3bd0a221d352d33a1c54b0293.zip
pfsense-105800d246549ac3bd0a221d352d33a1c54b0293.tar.gz
Do not redeclare functions
Diffstat (limited to 'usr/local/www/firewall_rules_edit.php')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php30
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";
- }
-}
-
-?>
OpenPOWER on IntegriCloud