summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_pppoe.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-31 21:20:00 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-31 21:20:00 +0000
commit83773ab086974d77eb960579a2c58379608c4863 (patch)
treedd3f993708f0e5718e912e551df3ab7dfff4558d /usr/local/www/vpn_pppoe.php
parenta2b0047aaf6876dee0851f7f305d5b77e4265602 (diff)
downloadpfsense-83773ab086974d77eb960579a2c58379608c4863.zip
pfsense-83773ab086974d77eb960579a2c58379608c4863.tar.gz
Add PPPoE server interface field
Diffstat (limited to 'usr/local/www/vpn_pppoe.php')
-rwxr-xr-xusr/local/www/vpn_pppoe.php32
1 files changed, 31 insertions, 1 deletions
diff --git a/usr/local/www/vpn_pppoe.php b/usr/local/www/vpn_pppoe.php
index 0bbcaaf..e3c52da 100755
--- a/usr/local/www/vpn_pppoe.php
+++ b/usr/local/www/vpn_pppoe.php
@@ -40,6 +40,7 @@ $pconfig['remoteip'] = $pppoecfg['remoteip'];
$pconfig['localip'] = $pppoecfg['localip'];
$pconfig['redir'] = $pppoecfg['redir'];
$pconfig['mode'] = $pppoecfg['mode'];
+$pconfig['interface'] = $pppoecfg['interface'];
$pconfig['wins'] = $pppoecfg['wins'];
$pconfig['req128'] = isset($pppoecfg['req128']);
$pconfig['radiusenable'] = isset($pppoecfg['radius']['enable']);
@@ -105,12 +106,13 @@ if ($_POST) {
$pppoecfg['localip'] = $_POST['localip'];
$pppoecfg['mode'] = $_POST['mode'];
$pppoecfg['wins'] = $_POST['wins'];
+ $pppoecfg['interface'] = $_POST['interface'];
$pppoecfg['req128'] = $_POST['req128'] ? true : false;
$pppoecfg['radius']['enable'] = $_POST['radiusenable'] ? true : false;
$pppoecfg['radius']['accounting'] = $_POST['radacct_enable'] ? true : false;
$pppoecfg['radius']['server'] = $_POST['radiusserver'];
$pppoecfg['radius']['secret'] = $_POST['radiussecret'];
-
+
write_config();
$retval = 0;
@@ -277,6 +279,34 @@ function enable_change(enable_over) {
</tr>
<tr>
+ <td width="22%" valign="top" class="vncell">Interface</td>
+ <td width="78%" valign="top" class="vtable">
+
+ <select name="interface" class="formfld" id="interface">
+ <?php
+ $interfaces = array('lan' => 'LAN', 'wan' => 'WAN');
+ for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) {
+ if (isset($config['interfaces']['opt' . $i]['enable']))
+ $interfaces['opt' . $i] = $config['interfaces']['opt' . $i]['descr'];
+ }
+ foreach ($interfaces as $iface => $ifacename):
+ ?>
+ <option value="<?=$iface;?>" <?php if ($iface == $pconfig['interface']) echo "selected"; ?>>
+ <?=htmlspecialchars($ifacename);?>
+ </option>
+ <?php endforeach; ?>
+ </select> <br>
+
+ </td>
+ </tr>
+
+
+
+ <tr>
+ <td height="16" colspan="2" valign="top"></td>
+ </tr>
+
+ <tr>
<td width="22%" valign="top">&nbsp;</td>
<td width="78%">
<input name="Submit" type="submit" class="formbtn" value="Save" onclick="enable_change(true)">
OpenPOWER on IntegriCloud