summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_groupmanager_addprivs.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-12-17 16:38:25 +0545
committerPhil Davis <phil.davis@inf.org>2015-12-17 16:38:25 +0545
commitd61309a07ce3fd295cb4f9903b4c62245facfdd4 (patch)
tree43696d918e15be1efa49baea8323866c2077dc30 /src/usr/local/www/system_groupmanager_addprivs.php
parent0cf1b4f4f29f2ad63691d598e83a9327ae9867ff (diff)
downloadpfsense-d61309a07ce3fd295cb4f9903b4c62245facfdd4.zip
pfsense-d61309a07ce3fd295cb4f9903b4c62245facfdd4.tar.gz
Code style system_*
Diffstat (limited to 'src/usr/local/www/system_groupmanager_addprivs.php')
-rw-r--r--src/usr/local/www/system_groupmanager_addprivs.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/usr/local/www/system_groupmanager_addprivs.php b/src/usr/local/www/system_groupmanager_addprivs.php
index af7777f..5882727 100644
--- a/src/usr/local/www/system_groupmanager_addprivs.php
+++ b/src/usr/local/www/system_groupmanager_addprivs.php
@@ -158,9 +158,10 @@ function build_priv_list() {
$list = array();
- foreach($priv_list as $pname => $pdata) {
- if (in_array($pname, $a_group['priv']))
+ foreach ($priv_list as $pname => $pdata) {
+ if (in_array($pname, $a_group['priv'])) {
continue;
+ }
$list[$pname] = $pdata;
}
@@ -170,11 +171,13 @@ function build_priv_list() {
include("head.inc");
-if ($input_errors)
+if ($input_errors) {
print_input_errors($input_errors);
+}
-if ($savemsg)
+if ($savemsg) {
print_info_box($savemsg, success);
+}
$tab_array = array();
$tab_array[] = array(gettext("Users"), false, "system_usermanager.php");
@@ -184,8 +187,7 @@ $tab_array[] = array(gettext("Servers"), false, "system_authservers.php");
display_top_tabs($tab_array);
$form = new Form;
-if (isset($groupid))
-{
+if (isset($groupid)) {
$form->addGlobal(new Form_Input(
'groupid',
null,
@@ -216,7 +218,7 @@ print $form;
<script type="text/javascript">
//<![CDATA[
-events.push(function(){
+events.push(function() {
<?php
OpenPOWER on IntegriCloud