summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-12-15 23:00:44 +0545
committerStephen Beaver <sbeaver@netgate.com>2015-12-15 12:25:11 -0500
commit8f65151c5beaee62d661af81bf96a93edaae22d9 (patch)
treef629ac10993774b9390f4eb5e95f8524661a020b /src/usr/local/www/system.php
parent2e3732ecdd5e9fa8bbc540729b869d99d00a45ad (diff)
downloadpfsense-8f65151c5beaee62d661af81bf96a93edaae22d9.zip
pfsense-8f65151c5beaee62d661af81bf96a93edaae22d9.tar.gz
Code style System Advanced
Diffstat (limited to 'src/usr/local/www/system.php')
-rw-r--r--src/usr/local/www/system.php28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/usr/local/www/system.php b/src/usr/local/www/system.php
index 051dcae..f51f5f5 100644
--- a/src/usr/local/www/system.php
+++ b/src/usr/local/www/system.php
@@ -80,7 +80,7 @@ list($pconfig['dns1'], $pconfig['dns2'], $pconfig['dns3'], $pconfig['dns4']) = $
$arr_gateways = return_gateways_array();
// set default colmns to two if unset
-if(!isset($config['system']['webgui']['dashboardcolumns'])) {
+if (!isset($config['system']['webgui']['dashboardcolumns'])) {
$config['system']['webgui']['dashboardcolumns'] = 2;
}
@@ -149,7 +149,7 @@ if ($_POST) {
} else {
unset($config['system']['webgui']['webguicss']);
}
-
+
if ($_POST['webguifixedmenu']) {
$config['system']['webgui']['webguifixedmenu'] = $_POST['webguifixedmenu'];
} else {
@@ -160,8 +160,8 @@ if ($_POST) {
$config['system']['webgui']['dashboardcolumns'] = $_POST['dashboardcolumns'];
} else {
unset($config['system']['webgui']['dashboardcolumns']);
- }
-
+ }
+
if ($_POST['hostname']) {
if (!is_hostname($_POST['hostname'])) {
$input_errors[] = gettext("The hostname can only contain the characters A-Z, 0-9 and '-'. It may not start or end with '-'.");
@@ -340,11 +340,13 @@ if ($_POST) {
$pgtitle = array(gettext("System"), gettext("General Setup"));
include("head.inc");
-if ($input_errors)
+if ($input_errors) {
print_input_errors($input_errors);
+}
-if ($savemsg)
+if ($savemsg) {
print_info_box($savemsg, success);
+}
?>
<div id="container">
<?php
@@ -371,8 +373,7 @@ $form->add($section);
$section = new Form_Section('DNS server settings');
-for ($i=1; $i<5; $i++)
-{
+for ($i=1; $i<5; $i++) {
// if (!isset($pconfig['dns'.$i]))
// continue;
@@ -391,12 +392,12 @@ for ($i=1; $i<5; $i++)
if ($multiwan) {
$options = array('none' => 'none');
- foreach($arr_gateways as $gwname => $gwitem) {
- if((is_ipaddrv4(lookup_gateway_ip_by_name($pconfig[$dnsgw])) && (is_ipaddrv6($gwitem['gateway'])))) {
+ foreach ($arr_gateways as $gwname => $gwitem) {
+ if ((is_ipaddrv4(lookup_gateway_ip_by_name($pconfig[$dnsgw])) && (is_ipaddrv6($gwitem['gateway'])))) {
continue;
}
- if((is_ipaddrv6(lookup_gateway_ip_by_name($pconfig[$dnsgw])) && (is_ipaddrv4($gwitem['gateway'])))) {
+ if ((is_ipaddrv6(lookup_gateway_ip_by_name($pconfig[$dnsgw])) && (is_ipaddrv4($gwitem['gateway'])))) {
continue;
}
@@ -414,8 +415,9 @@ for ($i=1; $i<5; $i++)
"When using multiple WAN connections there should be at least one unique DNS server per gateway.";
}
- if($i == 4)
+ if ($i == 4) {
$group->setHelp($help);
+ }
$section->add($group);
}
@@ -469,7 +471,7 @@ $csslist = array();
$css = glob("/usr/local/www/bootstrap/css/*.css");
foreach ($css as $file) {
$file = basename($file);
- if(substr($file, 0, 9) !== 'bootstrap') {
+ if (substr($file, 0, 9) !== 'bootstrap') {
$csslist[$file] = pathinfo($file, PATHINFO_FILENAME);
}
}
OpenPOWER on IntegriCloud