diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-07-07 10:52:54 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-07-07 10:52:54 -0300 |
commit | aae16684726cefc43d3863aecd58a1037a900fa3 (patch) | |
tree | 3527a579ced0fba2c3c4def5811459d12c57e1ed | |
parent | 42bb1bee5919c0aeeb1fed698b1819e39cd477d7 (diff) | |
download | pfsense-aae16684726cefc43d3863aecd58a1037a900fa3.zip pfsense-aae16684726cefc43d3863aecd58a1037a900fa3.tar.gz |
Fix indent
-rw-r--r-- | usr/local/www/carp_status.php | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/usr/local/www/carp_status.php b/usr/local/www/carp_status.php index 8655bba..30251d5 100644 --- a/usr/local/www/carp_status.php +++ b/usr/local/www/carp_status.php @@ -59,29 +59,29 @@ if($_POST['disablecarp'] <> "") { mwexec("/sbin/sysctl net.inet.carp.allow=0"); if(is_array($config['virtualip']['vip'])) { $viparr = &$config['virtualip']['vip']; - foreach ($viparr as $vip) { - switch ($vip['mode']) { - case "carp": - interface_vip_bring_down($vip); - sleep(1); - break; - } - } - } + foreach ($viparr as $vip) { + switch ($vip['mode']) { + case "carp": + interface_vip_bring_down($vip); + sleep(1); + break; + } + } + } $savemsg = sprintf(gettext("%s IPs have been disabled. Please note that disabling does not survive a reboot."), $carp_counter); } else { $savemsg = gettext("CARP has been enabled."); if(is_array($config['virtualip']['vip'])) { - $viparr = &$config['virtualip']['vip']; - foreach ($viparr as $vip) { + $viparr = &$config['virtualip']['vip']; + foreach ($viparr as $vip) { switch ($vip['mode']) { - case "carp": - interface_carp_configure($vip); - sleep(1); + case "carp": + interface_carp_configure($vip); + sleep(1); break; - } - } - } + } + } + } interfaces_carp_setup(); mwexec("/sbin/sysctl net.inet.carp.allow=1"); } |