From c6f8c4005ea582e799d8f5025c861cda1e973d29 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 22 Jan 2013 15:23:41 -0200 Subject: Fix indent and remove extra whitespaces between tabs and at EOL --- usr/local/www/interfaces_bridge_edit.php | 103 +++++++++++++++---------------- 1 file changed, 51 insertions(+), 52 deletions(-) (limited to 'usr/local/www/interfaces_bridge_edit.php') diff --git a/usr/local/www/interfaces_bridge_edit.php b/usr/local/www/interfaces_bridge_edit.php index c579708..e572e45 100644 --- a/usr/local/www/interfaces_bridge_edit.php +++ b/usr/local/www/interfaces_bridge_edit.php @@ -198,7 +198,7 @@ if ($_POST) { if ($_POST['span'] != "none") $bridge['span'] = $_POST['span']; - else + else unset($bridge['span']); if (isset($_POST['edge'])) $bridge['edge'] = implode(',', $_POST['edge']); @@ -210,21 +210,20 @@ if ($_POST) { $bridge['autoptp'] = implode(',', $_POST['autoptp']); $bridge['bridgeif'] = $_POST['bridgeif']; - $bridge['bridgeif'] = interface_bridge_configure($bridge); - if ($bridge['bridgeif'] == "" || !stristr($bridge['bridgeif'], "bridge")) - $input_errors[] = gettext("Error occured creating interface, please retry."); - else { - if (isset($id) && $a_bridges[$id]) - $a_bridges[$id] = $bridge; - else - $a_bridges[] = $bridge; + $bridge['bridgeif'] = interface_bridge_configure($bridge); + if ($bridge['bridgeif'] == "" || !stristr($bridge['bridgeif'], "bridge")) + $input_errors[] = gettext("Error occured creating interface, please retry."); + else { + if (isset($id) && $a_bridges[$id]) + $a_bridges[$id] = $bridge; + else + $a_bridges[] = $bridge; - write_config(); + write_config(); $confif = convert_real_interface_to_friendly_interface_name($bridge['bridgeif']); - if ($confif <> "") - interface_configure($confif); - + if ($confif <> "") + interface_configure($confif); header("Location: interfaces_bridge.php"); exit; @@ -267,13 +266,13 @@ function show_source_port_range() {
@@ -283,7 +282,7 @@ function show_source_port_range() { - + @@ -297,11 +296,11 @@ function show_source_port_range() { >

- +
@@ -358,7 +357,7 @@ function show_source_port_range() {
+ "operating in legacy STP mode. The default is 2 seconds. The minimum is 1 second and the maximum is 2 seconds."); ?> @@ -367,7 +366,7 @@ function show_source_port_range() {
+ "The minimum is 0 and the maximum is 61440."); ?> @@ -377,20 +376,20 @@ function show_source_port_range() { + "default is 6. The minimum is 1 and the maximum is 10."); ?> @@ -401,10 +400,10 @@ function show_source_port_range() { ?>
-
-
- $ifdescr) + $ifdescr) echo ""; ?>
{$ifdescr}

- + + "default is 128. The minimum is 0 and the maximum is 240. Increments of 16."); ?>

- + + "The minimum is 1 and the maximum is 200000000."); ?> @@ -414,21 +413,21 @@ function show_source_port_range() { -
+
- +
-
+
- +
@@ -436,7 +435,7 @@ function show_source_port_range() { -
+
+ "the bridge."); ?>


@@ -462,8 +461,8 @@ function show_source_port_range() { - - + $ifdescr) { echo "

+


@@ -549,8 +548,8 @@ function show_source_port_range() { - - + $ifdescr) { echo "