diff options
author | Ermal <eri@pfsense.org> | 2010-06-10 13:27:11 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-06-10 13:27:11 +0000 |
commit | 8d73e7a932b632113be7129b347cd6a0cedb5ab6 (patch) | |
tree | 060a3f5fc7ded97349844ba2be30037daa1ab587 /usr/local/www | |
parent | bfbb9bc02af1767f6e3afcaa6b3cd2d3a4b743be (diff) | |
download | pfsense-8d73e7a932b632113be7129b347cd6a0cedb5ab6.zip pfsense-8d73e7a932b632113be7129b347cd6a0cedb5ab6.tar.gz |
Allow assigned interfaces to be choosed as ppp members. This allows ppp over gre/gif etc....
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/interfaces_ppps_edit.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_ppps_edit.php b/usr/local/www/interfaces_ppps_edit.php index 1a1ff45..9b4e028 100644 --- a/usr/local/www/interfaces_ppps_edit.php +++ b/usr/local/www/interfaces_ppps_edit.php @@ -55,6 +55,7 @@ if (!is_array($config['ppps']['ppp'])) $a_ppps = &$config['ppps']['ppp']; $portlist = get_interface_list(); +$portlist = array_merge($portlist, get_configured_interface_with_descr()); $id = $_GET['id']; if (isset($_POST['id'])) @@ -450,7 +451,15 @@ $types = array("select" => "Select", "ppp" => "PPP", "pppoe" => "PPPoE", "pptp" $port_count = 0; foreach ($portlist as $ifn => $ifinfo){ $port_count++; - echo htmlspecialchars($ifn . " (" . $ifinfo['mac'] . ")") . ",{$ifn}"; + $string = ""; + if (is_array($ifinfo)) { + $string .= $ifn; + if ($ifinfo['mac']) + $string .= " ({$ifinfo['mac']})"; + } else + $string .= $ifinfo; + $string .= ",{$ifn}"; + echo htmlspecialchars($string); if (in_array($ifn,$selected_ports)) echo ",1|"; else |