summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/status_services.php
diff options
context:
space:
mode:
authorColin Fleming <cj_fleming@sky.com>2015-11-26 17:01:39 +0000
committerColin Fleming <cj_fleming@sky.com>2015-11-26 17:01:39 +0000
commitab7e04c7b9a4f95e831d72aaf84fe819b2da74ce (patch)
treed9120eeec30df419baaa3193756c41004ca07198 /src/usr/local/www/status_services.php
parentf19dc69fa8e4315c948cfcc6f57321dda739d3ff (diff)
downloadpfsense-ab7e04c7b9a4f95e831d72aaf84fe819b2da74ce.zip
pfsense-ab7e04c7b9a4f95e831d72aaf84fe819b2da74ce.tar.gz
Tidy up coding style
"service-utils.inc" - be more consistent when using single/double quotes - add missing double quotes in ID statement - remove blank VALUE statement - remove ALT from <i> tag, invalid in HTML5 "status_services.php" - tidy up code style - add type to SCRIPT tag
Diffstat (limited to 'src/usr/local/www/status_services.php')
-rwxr-xr-xsrc/usr/local/www/status_services.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/usr/local/www/status_services.php b/src/usr/local/www/status_services.php
index 9b1e08d..0d07695 100755
--- a/src/usr/local/www/status_services.php
+++ b/src/usr/local/www/status_services.php
@@ -70,8 +70,9 @@ require_once("shortcuts.inc");
// Leave GET enabled in case any other pages use it.
// ToDo: Check other pages and remove GET completely
-if(!$_GET && $_POST)
+if (!$_GET && $_POST) {
$_GET = $_POST;
+}
$service_name = '';
if (isset($_GET['service'])) {
@@ -136,9 +137,10 @@ if (count($services) > 0) {
uasort($services, "service_name_compare");
- foreach($services as $service) {
- if (empty($service['name']))
+ foreach ($services as $service) {
+ if (empty($service['name'])) {
continue;
+ }
if (empty($service['description'])) {
$service['description'] = get_pkg_descr($service['name']);
@@ -191,7 +193,7 @@ if (count($services) > 0) {
print_info_box(gettext("No services found"), 'danger');
}
?>
-<script>
+<script type="text/javascript">
//<![CDATA[
events.push(function(){
// If a restart button is clicked, populate the hidden inputs and submit the form (via POST)
OpenPOWER on IntegriCloud