summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_smart.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-12-14 20:20:16 +0545
committerPhil Davis <phil.davis@inf.org>2015-12-14 20:20:16 +0545
commit947141fd21b4496d8963d1598d6ca6a2e000702c (patch)
treec4f39f94d05059417f3e5743fc7c826ea52657fc /src/usr/local/www/diag_smart.php
parent9ba351c17e4c85e01832e38b6ba7b6a7898a290d (diff)
downloadpfsense-947141fd21b4496d8963d1598d6ca6a2e000702c.zip
pfsense-947141fd21b4496d8963d1598d6ca6a2e000702c.tar.gz
Code style usr local www a-e
Diffstat (limited to 'src/usr/local/www/diag_smart.php')
-rw-r--r--src/usr/local/www/diag_smart.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/usr/local/www/diag_smart.php b/src/usr/local/www/diag_smart.php
index f4ca880..7793c35 100644
--- a/src/usr/local/www/diag_smart.php
+++ b/src/usr/local/www/diag_smart.php
@@ -76,8 +76,7 @@ $closehead = false;
include("head.inc");
// Highlights the words "PASSED", "FAILED", and "WARNING".
-function add_colors($string)
-{
+function add_colors($string) {
// To add words keep arrays matched by numbers
$patterns[0] = '/PASSED/';
$patterns[1] = '/FAILED/';
@@ -230,9 +229,7 @@ switch ($action) {
smartmonctl("stop");
smartmonctl("start");
$style = 'warning';
- }
- else if (isset($_POST['save']))
- {
+ } else if (isset($_POST['save'])) {
$config['system']['smartmonemail'] = $_POST['smartmonemail'];
write_config();
@@ -242,8 +239,7 @@ switch ($action) {
if (stristr($retval, "error") != true) {
$savemsg = get_std_save_message($retval);
$style = 'success';
- }
- else {
+ } else {
$savemsg = $retval;
$style='danger';
}
@@ -258,8 +254,9 @@ switch ($action) {
}
// Was the config changed? if so, print the message
- if ($savemsg)
+ if ($savemsg) {
print_info_box($savemsg, $style);
+ }
// Get users email from the xml file
$pconfig['smartmonemail'] = $config['system']['smartmonemail'];
OpenPOWER on IntegriCloud