aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-09-11 10:09:17 +0200
committerdoktornotor <notordoktor@gmail.com>2015-09-11 10:09:17 +0200
commit14df8dd675667f5da6146e5ec067e3cb4302edf8 (patch)
tree0e40756dc6c06f884e4937b76ee25c67c5ac67b3 /config
parentf8c3ea174db5bbe8f0a4c4cf21783aa5bb38446e (diff)
downloadpfsense-packages-14df8dd675667f5da6146e5ec067e3cb4302edf8.tar.gz
pfsense-packages-14df8dd675667f5da6146e5ec067e3cb4302edf8.tar.bz2
pfsense-packages-14df8dd675667f5da6146e5ec067e3cb4302edf8.zip
servicewatchdog - code style fixes
Diffstat (limited to 'config')
-rw-r--r--config/servicewatchdog/services_servicewatchdog_add.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/config/servicewatchdog/services_servicewatchdog_add.php b/config/servicewatchdog/services_servicewatchdog_add.php
index 10f24797..976881c9 100644
--- a/config/servicewatchdog/services_servicewatchdog_add.php
+++ b/config/servicewatchdog/services_servicewatchdog_add.php
@@ -1,7 +1,9 @@
<?php
/*
services_servicewatchdog_add.php
+ part of pfSense (https://www.pfSense.org/)
Copyright (C) 2013 Jim Pingle
+ Copyright (C) 2015 ESF, LLC
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -54,8 +56,9 @@ $system_services = get_services();
unset($input_errors);
if ($_POST) {
- if (!is_numeric($_POST['svcid']))
+ if (!is_numeric($_POST['svcid'])) {
return;
+ }
if (!isset($system_services[$_POST['svcid']])) {
$input_errors[] = gettext("The supplied service appears to be invalid.");
@@ -93,7 +96,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncell"><?=gettext("Service to Add:"); ?></td>
<td width="78%" class="vtable">
<select name="svcid" class="formselect" id="svcid">
-<?php $i=0;
+<?php $i = 0;
foreach ($system_services as $svc): ?>
<?php if (!servicewatchdog_is_service_watched($svc)): ?>
<?php $svc['description'] = empty($svc['description']) ? get_pkg_descr($svc['name']) : $svc['description']; ?>