summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-12-02 20:17:59 -0500
committersullrich <sullrich@pfsense.org>2009-12-02 20:17:59 -0500
commitf2b4ff2b598518829535246cc473ec046c52faee (patch)
tree6d3f4a955dde85e65ff42625d436e8c5cb0d14f6 /usr
parent2c75b451becbf3e74466df54e2b3bdbe02ac7abf (diff)
downloadpfsense-f2b4ff2b598518829535246cc473ec046c52faee.zip
pfsense-f2b4ff2b598518829535246cc473ec046c52faee.tar.gz
Restore lost code. Noticed-by: Ermal
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/vpn_pptp.php23
1 files changed, 20 insertions, 3 deletions
diff --git a/usr/local/www/vpn_pptp.php b/usr/local/www/vpn_pptp.php
index 4e0503b..60abec1 100755
--- a/usr/local/www/vpn_pptp.php
+++ b/usr/local/www/vpn_pptp.php
@@ -102,7 +102,7 @@ if ($_POST) {
if (!$input_errors) {
$_POST['remoteip'] = $pconfig['remoteip'] = gen_subnet($_POST['remoteip'], $g['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)) {
@@ -327,6 +327,23 @@ function enable_change(enable_over) {
<input type="radio" name="mode" value="server" onclick="enable_change(false)" <?php if ($pconfig['mode'] == "server") echo "checked"; ?>>
Enable PPTP server</td>
</tr>
+ <tr>
+ <td width="22%" valign="top" class="vncellreq">No. PPTP users</td>
+ <td width="78%" class="vtable">
+ <select id="n_pptp_units" name="n_pptp_units">
+ <?php
+ for($x=0; $x<255; $x++) {
+ if($x == $pconfig['n_pptp_units'])
+ $SELECTED = " SELECTED";
+ else
+ $SELECTED = "";
+ echo "<option value=\"{$x}\"{$SELECTED}>{$x}</option>\n";
+ }
+ ?>
+ </select>
+ <br>Hint: 10 is TEN pptp clients
+ </td>
+ </tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Server address</td>
<td width="78%" class="vtable">
@@ -347,7 +364,7 @@ function enable_change(enable_over) {
<td width="22%" valign="top" class="vncellreq">Max. concurrent
connections</td>
<td width="78%" class="vtable">
- <?=$g['n_pptp_units'];?>
+ <?=$_POST['n_pptp_units'];?>
</td>
<tr>
<td width="22%" valign="top" class="vncellreq">Server address</td>
@@ -367,7 +384,7 @@ function enable_change(enable_over) {
<br>
Specify the starting address for the client IP address subnet.<br>
The PPTP server will assign
- <?=$g['n_pptp_units'];?>
+ <?=$_POST['n_pptp_units'];?>
addresses, starting at the address entered above, to clients.</td>
</tr>
<tr>
OpenPOWER on IntegriCloud