summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_smart.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-05-27 16:25:15 +0545
committerPhil Davis <phil.davis@inf.org>2015-05-27 16:25:15 +0545
commit699737d90221580b18adfbd30abdbd609803cffd (patch)
treec899d693cdc72c36c9893d8f58d5f9d18217f703 /usr/local/www/diag_smart.php
parent7fd939939c7cfd73ea5e944e05ce28a73cb073e2 (diff)
downloadpfsense-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.php9
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));
}
OpenPOWER on IntegriCloud