diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-31 22:36:50 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-31 22:36:50 +0000 |
commit | 64391455cf075c9ea89e4ae57bd3a4cd0721effd (patch) | |
tree | 2877d02210ac1d4d44176929e47b63dd7370d7dd /usr/local/www/vpn_pppoe.php | |
parent | f19341b187422243224dade7eb9f77bea3625f23 (diff) | |
download | pfsense-64391455cf075c9ea89e4ae57bd3a4cd0721effd.zip pfsense-64391455cf075c9ea89e4ae57bd3a4cd0721effd.tar.gz |
Move interface to top
Diffstat (limited to 'usr/local/www/vpn_pppoe.php')
-rwxr-xr-x | usr/local/www/vpn_pppoe.php | 42 |
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> |