From 4f537e9396fe427e350e57f7290bde26ca2dcbac Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 12 Mar 2013 11:04:40 -0300 Subject: Fix indent and whitespaces --- usr/local/www/system_advanced_misc.php | 124 ++++++++++++++++----------------- 1 file changed, 62 insertions(+), 62 deletions(-) diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php index cbbd6f6..10de5f3 100644 --- a/usr/local/www/system_advanced_misc.php +++ b/usr/local/www/system_advanced_misc.php @@ -88,8 +88,8 @@ $thermal_hardware_modules = array( 'coretemp' => gettext("Intel Core* CPU on-die if ($_POST) { - unset($input_errors); - $pconfig = $_POST; + unset($input_errors); + $pconfig = $_POST; ob_flush(); flush(); @@ -172,17 +172,17 @@ if ($_POST) { } if($_POST['maxmss_enable'] == "yes") { - $config['system']['maxmss_enable'] = true; + $config['system']['maxmss_enable'] = true; $config['system']['maxmss'] = $_POST['maxmss']; - } else { - unset($config['system']['maxmss_enable']); - unset($config['system']['maxmss']); + } else { + unset($config['system']['maxmss_enable']); + unset($config['system']['maxmss']); } if($_POST['powerd_enable'] == "yes") - $config['system']['powerd_enable'] = true; - else - unset($config['system']['powerd_enable']); + $config['system']['powerd_enable'] = true; + else + unset($config['system']['powerd_enable']); $config['system']['powerd_ac_mode'] = $_POST['powerd_ac_mode']; $config['system']['powerd_battery_mode'] = $_POST['powerd_battery_mode']; @@ -198,14 +198,14 @@ if ($_POST) { unset($config['system']['thermal_hardware']); if($_POST['schedule_states'] == "yes") - $config['system']['schedule_states'] = true; - else - unset($config['system']['schedule_states']); + $config['system']['schedule_states'] = true; + else + unset($config['system']['schedule_states']); if($_POST['kill_states'] == "yes") - $config['system']['kill_states'] = true; - else - unset($config['system']['kill_states']); + $config['system']['kill_states'] = true; + else + unset($config['system']['kill_states']); if($_POST['use_mfs_tmpvar'] == "yes") $config['system']['use_mfs_tmpvar'] = true; @@ -230,10 +230,10 @@ if ($_POST) { system_resolvconf_generate(true); $retval = filter_configure(); if(stristr($retval, "error") <> true) - $savemsg = get_std_save_message(gettext($retval)); + $savemsg = get_std_save_message(gettext($retval)); else - $savemsg = gettext($retval); - + $savemsg = gettext($retval); + activate_powerd(); load_crypto(); load_thermal_hardware(); @@ -411,19 +411,19 @@ function tmpvar_checked(obj) {

- + @@ -442,16 +442,16 @@ function tmpvar_checked(obj) {
- -

- +

+ @@ -518,36 +518,36 @@ function tmpvar_checked(obj) { "This helps overcome problems with PMTUD on IPsec VPN links. If left blank, the default value is 1400 bytes. "); ?> - -   - - - - - - - - /> -
+ +   + + + + + + + + /> +
- - - -   - - - - - - - - /> -
+ + + +   + + + + + + + + /> +
- - + + @@ -624,7 +624,7 @@ function tmpvar_checked(obj) {