Commit a741a9e2 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) add some missing curly braces

parent 791ccd11
...@@ -53,21 +53,26 @@ function formNetworks() { ...@@ -53,21 +53,26 @@ function formNetworks() {
function formInterfaces() { function formInterfaces() {
global $config; global $config;
$interfaces = array(); $interfaces = array();
foreach ( get_configured_interface_with_descr(false, true) as $if => $ifdesc) foreach ( get_configured_interface_with_descr(false, true) as $if => $ifdesc) {
$interfaces[$if] = $ifdesc; $interfaces[$if] = $ifdesc;
}
if (isset($config['l2tp']['mode']) && $config['l2tp']['mode'] == "server") if (isset($config['l2tp']['mode']) && $config['l2tp']['mode'] == "server") {
$interfaces['l2tp'] = "L2TP VPN"; $interfaces['l2tp'] = "L2TP VPN";
}
if (isset($config['pptpd']['mode']) && $config['pptpd']['mode'] == "server") if (isset($config['pptpd']['mode']) && $config['pptpd']['mode'] == "server") {
$interfaces['pptp'] = "PPTP VPN"; $interfaces['pptp'] = "PPTP VPN";
}
if (is_pppoe_server_enabled()) if (is_pppoe_server_enabled()) {
$interfaces['pppoe'] = "PPPoE VPN"; $interfaces['pppoe'] = "PPPoE VPN";
}
/* add ipsec interfaces */ /* add ipsec interfaces */
if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enable'])) if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enable'])) {
$interfaces["enc0"] = "IPsec"; $interfaces["enc0"] = "IPsec";
}
/* add openvpn/tun interfaces */ /* add openvpn/tun interfaces */
if (isset($config['openvpn']['openvpn-server']) || isset($config['openvpn']['openvpn-client'])) { if (isset($config['openvpn']['openvpn-server']) || isset($config['openvpn']['openvpn-client'])) {
......
...@@ -37,21 +37,26 @@ require_once("pfsense-utils.inc"); ...@@ -37,21 +37,26 @@ require_once("pfsense-utils.inc");
function formInterfaces() { function formInterfaces() {
global $config; global $config;
$interfaces = array(); $interfaces = array();
foreach ( get_configured_interface_with_descr(false, true) as $if => $ifdesc) foreach ( get_configured_interface_with_descr(false, true) as $if => $ifdesc) {
$interfaces[$if] = $ifdesc; $interfaces[$if] = $ifdesc;
}
if (isset($config['l2tp']['mode']) && $config['l2tp']['mode'] == "server") if (isset($config['l2tp']['mode']) && $config['l2tp']['mode'] == "server") {
$interfaces['l2tp'] = "L2TP VPN"; $interfaces['l2tp'] = "L2TP VPN";
}
if (isset($config['pptpd']['mode']) && $config['pptpd']['mode'] == "server") if (isset($config['pptpd']['mode']) && $config['pptpd']['mode'] == "server") {
$interfaces['pptp'] = "PPTP VPN"; $interfaces['pptp'] = "PPTP VPN";
}
if (is_pppoe_server_enabled()) if (is_pppoe_server_enabled()) {
$interfaces['pppoe'] = "PPPoE VPN"; $interfaces['pppoe'] = "PPPoE VPN";
}
/* add ipsec interfaces */ /* add ipsec interfaces */
if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enable'])) if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enable'])) {
$interfaces["enc0"] = "IPsec"; $interfaces["enc0"] = "IPsec";
}
/* add openvpn/tun interfaces */ /* add openvpn/tun interfaces */
if (isset($config['openvpn']['openvpn-server']) || isset($config['openvpn']['openvpn-client'])) { if (isset($config['openvpn']['openvpn-server']) || isset($config['openvpn']['openvpn-client'])) {
......
...@@ -38,21 +38,26 @@ require_once("pfsense-utils.inc"); ...@@ -38,21 +38,26 @@ require_once("pfsense-utils.inc");
function formInterfaces() { function formInterfaces() {
global $config; global $config;
$interfaces = array(); $interfaces = array();
foreach ( get_configured_interface_with_descr(false, true) as $if => $ifdesc) foreach ( get_configured_interface_with_descr(false, true) as $if => $ifdesc) {
$interfaces[$if] = $ifdesc; $interfaces[$if] = $ifdesc;
}
if (isset($config['l2tp']['mode']) && $config['l2tp']['mode'] == "server") if (isset($config['l2tp']['mode']) && $config['l2tp']['mode'] == "server") {
$interfaces['l2tp'] = "L2TP VPN"; $interfaces['l2tp'] = "L2TP VPN";
}
if (isset($config['pptpd']['mode']) && $config['pptpd']['mode'] == "server") if (isset($config['pptpd']['mode']) && $config['pptpd']['mode'] == "server") {
$interfaces['pptp'] = "PPTP VPN"; $interfaces['pptp'] = "PPTP VPN";
}
if (is_pppoe_server_enabled()) if (is_pppoe_server_enabled()) {
$interfaces['pppoe'] = "PPPoE VPN"; $interfaces['pppoe'] = "PPPoE VPN";
}
/* add ipsec interfaces */ /* add ipsec interfaces */
if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enable'])) if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enable'])) {
$interfaces["enc0"] = "IPsec"; $interfaces["enc0"] = "IPsec";
}
/* add openvpn/tun interfaces */ /* add openvpn/tun interfaces */
if (isset($config['openvpn']['openvpn-server']) || isset($config['openvpn']['openvpn-client'])) { if (isset($config['openvpn']['openvpn-server']) || isset($config['openvpn']['openvpn-client'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment