summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-31 22:36:50 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-31 22:36:50 +0000
commit64391455cf075c9ea89e4ae57bd3a4cd0721effd (patch)
tree2877d02210ac1d4d44176929e47b63dd7370d7dd /usr/local/www
parentf19341b187422243224dade7eb9f77bea3625f23 (diff)
downloadpfsense-64391455cf075c9ea89e4ae57bd3a4cd0721effd.zip
pfsense-64391455cf075c9ea89e4ae57bd3a4cd0721effd.tar.gz
Move interface to top
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/vpn_pppoe.php42
1 files changed, 22 insertions, 20 deletions
diff --git a/usr/local/www/vpn_pppoe.php b/usr/local/www/vpn_pppoe.php
index 15c19d8..acdfdde 100755
--- a/usr/local/www/vpn_pppoe.php
+++ b/usr/local/www/vpn_pppoe.php
@@ -194,6 +194,28 @@ function enable_change(enable_over) {
</tr>
<tr>
+ <td width="22%" valign="top" class="vncell"><b>Interface</b></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 width="22%" valign="top" class="vncellreq">Max. concurrent connections</td>
<td width="78%" class="vtable">
<?=$g['n_pppoe_units'];?>
@@ -251,27 +273,7 @@ function enable_change(enable_over) {
to the RADIUS server.</td>
</tr>
- <tr>
- <td width="22%" valign="top" class="vncell"><b>Interface</b></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>
OpenPOWER on IntegriCloud