summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_pptp.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-02-15 21:34:00 +0000
committerErmal Luçi <eri@pfsense.org>2009-02-15 21:34:00 +0000
commita56120f2793bf778b171784f7ebac4d624f8d494 (patch)
tree52daf5c640ceabff665d47fa3c1e9148c14194ac /usr/local/www/vpn_pptp.php
parenteff29d62c50803fe5eaf3b3d9089ac428c8811ad (diff)
downloadpfsense-a56120f2793bf778b171784f7ebac4d624f8d494.zip
pfsense-a56120f2793bf778b171784f7ebac4d624f8d494.tar.gz
Remove all global decalarations regarding pptp/pppoe/l2tp they are no more needed.
Diffstat (limited to 'usr/local/www/vpn_pptp.php')
-rwxr-xr-xusr/local/www/vpn_pptp.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/vpn_pptp.php b/usr/local/www/vpn_pptp.php
index 0bd1070..0ffff02 100755
--- a/usr/local/www/vpn_pptp.php
+++ b/usr/local/www/vpn_pptp.php
@@ -89,7 +89,7 @@ if ($_POST) {
if (($_POST['localip'] && !is_ipaddr($_POST['localip']))) {
$input_errors[] = "A valid server address must be specified.";
}
- if (($_POST['subnet'] && !is_ipaddr($_POST['remoteip']))) {
+ if (($_POST['pptp_subnet'] && !is_ipaddr($_POST['remoteip']))) {
$input_errors[] = "A valid remote start address must be specified.";
}
if (($_POST['radiusserver'] && !is_ipaddr($_POST['radiusserver']))) {
@@ -97,9 +97,9 @@ if ($_POST) {
}
if (!$input_errors) {
- $_POST['remoteip'] = $pconfig['remoteip'] = gen_subnet($_POST['remoteip'], $g['pptp_subnet']);
+ $_POST['remoteip'] = $pconfig['remoteip'] = gen_subnet($_POST['remoteip'], $_POST['pptp_subnet']);
$subnet_start = ip2long($_POST['remoteip']);
- $subnet_end = ip2long($_POST['remoteip']) + $g['n_pptp_units'] - 1;
+ $subnet_end = ip2long($_POST['remoteip']) + $_POST['n_pptp_units'] - 1;
if ((ip2long($_POST['localip']) >= $subnet_start) &&
(ip2long($_POST['localip']) <= $subnet_end)) {
OpenPOWER on IntegriCloud