diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-31 21:20:00 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-31 21:20:00 +0000 |
commit | 83773ab086974d77eb960579a2c58379608c4863 (patch) | |
tree | dd3f993708f0e5718e912e551df3ab7dfff4558d /usr | |
parent | a2b0047aaf6876dee0851f7f305d5b77e4265602 (diff) | |
download | pfsense-83773ab086974d77eb960579a2c58379608c4863.zip pfsense-83773ab086974d77eb960579a2c58379608c4863.tar.gz |
Add PPPoE server interface field
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/vpn_pppoe.php | 32 |
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"> </td> <td width="78%"> <input name="Submit" type="submit" class="formbtn" value="Save" onclick="enable_change(true)"> |