diff options
author | Phil Davis <phil.davis@inf.org> | 2015-05-27 16:25:15 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-05-27 16:25:15 +0545 |
commit | 699737d90221580b18adfbd30abdbd609803cffd (patch) | |
tree | c899d693cdc72c36c9893d8f58d5f9d18217f703 /usr/local/www/diag_smart.php | |
parent | 7fd939939c7cfd73ea5e944e05ce28a73cb073e2 (diff) | |
download | pfsense-699737d90221580b18adfbd30abdbd609803cffd.zip pfsense-699737d90221580b18adfbd30abdbd609803cffd.tar.gz |
Code style www diag more bits
Diffstat (limited to 'usr/local/www/diag_smart.php')
-rw-r--r-- | usr/local/www/diag_smart.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/usr/local/www/diag_smart.php b/usr/local/www/diag_smart.php index 0c9a057..1cc9161 100644 --- a/usr/local/www/diag_smart.php +++ b/usr/local/www/diag_smart.php @@ -69,8 +69,7 @@ pre { include("fbegin.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/'; @@ -84,8 +83,7 @@ function add_colors($string) } // Edits smartd.conf file, adds or removes email for failed disk reporting -function update_email($email) -{ +function update_email($email) { // Did they pass an email? if (!empty($email)) { // Put it in the smartd.conf file @@ -96,8 +94,7 @@ function update_email($email) } } -function smartmonctl($action) -{ +function smartmonctl($action) { global $start_script; shell_exec($start_script . escapeshellarg($action)); } |