diff options
author | Phil Davis <phil.davis@inf.org> | 2015-08-31 22:23:15 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-08-31 22:23:15 +0545 |
commit | 288a2a0f294f992a9536dfbb5c54dd528badbad5 (patch) | |
tree | 8d1c6be8a2cf5848f6df06b631ce2614485648fe /src/usr/local/www/diag_smart.php | |
parent | 683ba309d50913828decb5fe3f6ade059c1dfab2 (diff) | |
download | pfsense-288a2a0f294f992a9536dfbb5c54dd528badbad5.zip pfsense-288a2a0f294f992a9536dfbb5c54dd528badbad5.tar.gz |
bootstrap usr/local/www a to e minor edits
Diffstat (limited to 'src/usr/local/www/diag_smart.php')
-rw-r--r-- | src/usr/local/www/diag_smart.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/usr/local/www/diag_smart.php b/src/usr/local/www/diag_smart.php index d09a891..4022e29 100644 --- a/src/usr/local/www/diag_smart.php +++ b/src/usr/local/www/diag_smart.php @@ -118,7 +118,7 @@ $tab_array[0] = array(gettext("Information/Tests"), ($action != 'config'), $_SER $tab_array[1] = array(gettext("Config"), ($action == 'config'), $_SERVER['PHP_SELF'] . "?action=config"); display_top_tabs($tab_array); -switch($action) { +switch ($action) { // Testing devices case 'test': { @@ -219,7 +219,7 @@ switch($action) { // Config changes, users email in xml config and write changes to smartd.conf case 'config': { - if(isset($_POST['test'])) { + if (isset($_POST['test'])) { // FIXME shell_exec($smartd . " -M test -m " . $config['system']['smartmonemail']); $savemsg = sprintf(gettext("Email sent to %s"), $config['system']['smartmonemail']); @@ -227,7 +227,7 @@ switch($action) { smartmonctl("start"); $style = 'warning'; } - else if(isset($_POST['save'])) + else if (isset($_POST['save'])) { $config['system']['smartmonemail'] = $_POST['smartmonemail']; write_config(); @@ -235,7 +235,7 @@ switch($action) { // Don't know what all this means, but it adds the config changed header when config is saved $retval = 0; config_lock(); - if(stristr($retval, "error") != true) { + if (stristr($retval, "error") != true) { $savemsg = get_std_save_message($retval); $style = 'success'; } @@ -253,7 +253,7 @@ switch($action) { shell_exec("/usr/bin/killall -HUP smartd"); } - // Was the config changed? if so , print the message + // Was the config changed? if so, print the message if ($savemsg) print_info_box($savemsg, $style); @@ -273,7 +273,7 @@ switch($action) { $form->add($section); - if(!empty($pconfig['smartmonemail'])) { + if (!empty($pconfig['smartmonemail'])) { $form->addGlobal(new Form_Button( 'test', 'Send test email' |