summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-05-18 02:39:17 +0000
committerBill Marquette <billm@pfsense.org>2005-05-18 02:39:17 +0000
commit2e74901f93b38d5d2218198ab21ebe6e475eb209 (patch)
treea1a20fd376a00e599446360d990393eb0b81df0b /usr
parente50b0c5d6774b2b3387eb93129f87cc5ae9b75b2 (diff)
downloadpfsense-2e74901f93b38d5d2218198ab21ebe6e475eb209.zip
pfsense-2e74901f93b38d5d2218198ab21ebe6e475eb209.tar.gz
Remove more duplicate code (slipped into a release :-/)
Reported-by: hoba
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/vpn_pptp.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/usr/local/www/vpn_pptp.php b/usr/local/www/vpn_pptp.php
index 2382e39..4307a9d 100755
--- a/usr/local/www/vpn_pptp.php
+++ b/usr/local/www/vpn_pptp.php
@@ -359,28 +359,4 @@ function add_default_pptp_rule() {
}
-function pconfig_to_address(&$adr, $padr, $pmask, $pnot, $pbeginport, $pendport) {
-
- $adr = array();
-
- if ($padr == "any")
- $adr['any'] = true;
- else if (is_specialnet($padr))
- $adr['network'] = $padr;
- else {
- $adr['address'] = $padr;
- if ($pmask != 32)
- $adr['address'] .= "/" . $pmask;
- }
-
- $adr['not'] = $pnot ? true : false;
-
- if (($pbeginport != 0) && ($pbeginport != "any")) {
- if ($pbeginport != $pendport)
- $adr['port'] = $pbeginport . "-" . $pendport;
- else
- $adr['port'] = $pbeginport;
- }
-}
-
?>
OpenPOWER on IntegriCloud