summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/etc/inc/dyndns.class2
-rw-r--r--src/etc/inc/openvpn.inc2
-rw-r--r--src/etc/inc/shaper.inc4
-rw-r--r--src/usr/local/www/classes/Form/Input.class.php2
-rw-r--r--src/usr/local/www/crash_reporter.php2
-rw-r--r--src/usr/local/www/diag_sockets.php1
-rw-r--r--src/usr/local/www/diag_tables.php1
-rw-r--r--src/usr/local/www/firewall_nat.php2
-rw-r--r--src/usr/local/www/firewall_nat_1to1.php2
-rw-r--r--src/usr/local/www/firewall_nat_npt.php2
-rw-r--r--src/usr/local/www/firewall_nat_out.php2
-rw-r--r--src/usr/local/www/firewall_rules.php2
-rw-r--r--src/usr/local/www/firewall_rules_edit.php6
-rw-r--r--src/usr/local/www/guiconfig.inc4
-rw-r--r--src/usr/local/www/interfaces.php2
-rw-r--r--src/usr/local/www/interfaces_assign.php4
-rwxr-xr-xsrc/usr/local/www/pkg.php4
-rw-r--r--src/usr/local/www/pkg_edit.php6
-rw-r--r--src/usr/local/www/pkg_mgr.php2
-rw-r--r--src/usr/local/www/pkg_mgr_install.php18
-rw-r--r--src/usr/local/www/pkg_mgr_installed.php2
-rw-r--r--src/usr/local/www/status_lb_pool.php4
-rw-r--r--src/usr/local/www/status_rrd_graph.php4
-rw-r--r--src/usr/local/www/system_update_settings.php4
-rw-r--r--src/usr/local/www/system_usermanager.php4
-rw-r--r--src/usr/local/www/system_usermanager_settings_ldapacpicker.php2
-rw-r--r--src/usr/local/www/widgets/widgets/gateways.widget.php8
-rw-r--r--src/usr/local/www/widgets/widgets/log.widget.php8
-rw-r--r--src/usr/local/www/widgets/widgets/services_status.widget.php4
-rw-r--r--src/usr/local/www/widgets/widgets/thermal_sensors.widget.php4
-rw-r--r--src/usr/local/www/widgets/widgets/traffic_graphs.widget.php6
31 files changed, 61 insertions, 59 deletions
diff --git a/src/etc/inc/dyndns.class b/src/etc/inc/dyndns.class
index 58f6dd0..610afad 100644
--- a/src/etc/inc/dyndns.class
+++ b/src/etc/inc/dyndns.class
@@ -1274,7 +1274,7 @@
if ($successful_update == true) {
$status = "phpDynDNS: (Success) IP Address Updated Successfully!";
} else {
- $status = "phpDynDNS: (Error) Result did not match.";
+ $status = "phpDynDNS: (Error) Result did not match. [$data]";
}
break;
case 'cloudflare':
diff --git a/src/etc/inc/openvpn.inc b/src/etc/inc/openvpn.inc
index 6572e0f..42eebd1 100644
--- a/src/etc/inc/openvpn.inc
+++ b/src/etc/inc/openvpn.inc
@@ -201,7 +201,7 @@ function openvpn_build_cert_list($include_none = false) {
$caname = " (CA: {$ca['descr']})";
if ($pconfig['certref'] == $cert['refid'])
- $selected = "selected=\"selected\"";
+ $selected = "selected";
if (cert_in_use($cert['refid']))
$inuse = " *In Use";
diff --git a/src/etc/inc/shaper.inc b/src/etc/inc/shaper.inc
index 4d25742..d78326b 100644
--- a/src/etc/inc/shaper.inc
+++ b/src/etc/inc/shaper.inc
@@ -3759,7 +3759,7 @@ EOD;
$form .= "<option value=\"{$bwsidx}\"";
if ($bw['bwscale'] == $bwsidx) {
- $form .= " selected=\"selected\"";
+ $form .= " selected";
}
$form .= ">{$bwscale}</option>";
@@ -3773,7 +3773,7 @@ EOD;
foreach ($schedules as $schd) {
$selected = "";
if ($bw['bwsched'] == $schd) {
- $selected = "selected=\"selected\"";
+ $selected = "selected";
}
$form .= "<option value='{$schd}' {$selected}>{$schd}</option>";
diff --git a/src/usr/local/www/classes/Form/Input.class.php b/src/usr/local/www/classes/Form/Input.class.php
index e1fe31f..af04b82 100644
--- a/src/usr/local/www/classes/Form/Input.class.php
+++ b/src/usr/local/www/classes/Form/Input.class.php
@@ -30,7 +30,7 @@ class Form_Input extends Form_Element
{
public $column;
protected $_tagName = 'input';
- protected $_tagSelfClosing = true;
+ protected $_tagSelfClosing = false;
protected $_attributes = array(
'class' => array('form-control' => true),
'name' => null,
diff --git a/src/usr/local/www/crash_reporter.php b/src/usr/local/www/crash_reporter.php
index 38d7558..3c28cea0 100644
--- a/src/usr/local/www/crash_reporter.php
+++ b/src/usr/local/www/crash_reporter.php
@@ -161,7 +161,7 @@ exec("/usr/bin/grep -vi warning /tmp/PHP_errors.log", $php_errors);
<?=gettext("Would you like to submit the programming debug logs to the pfSense developers for inspection?")?>
<i><?=gettext("Please double check the contents to ensure you are comfortable sending this information before clicking Yes.")?></i>
</p>
- <textarea readonly="readonly" style="width: 100%; height: 350px;">
+ <textarea readonly style="width: 100%; height: 350px;">
<?=$crash_reports?>
</textarea>
<form action="crash_reporter.php" method="post">
diff --git a/src/usr/local/www/diag_sockets.php b/src/usr/local/www/diag_sockets.php
index 2bfd7cd..3a7d6e1 100644
--- a/src/usr/local/www/diag_sockets.php
+++ b/src/usr/local/www/diag_sockets.php
@@ -104,6 +104,7 @@ $showAllOption = $showAll ? "" : "?showAll";
continue;
$j = 0;
+ print("<tr>\n");
foreach (explode(' ', $line) as $entry) {
if ($entry == '' || $entry == "ADDRESS")
continue;
diff --git a/src/usr/local/www/diag_tables.php b/src/usr/local/www/diag_tables.php
index 6d66e38..5fb0eba 100644
--- a/src/usr/local/www/diag_tables.php
+++ b/src/usr/local/www/diag_tables.php
@@ -168,6 +168,7 @@ events.push(function(){
<thead>
<tr>
<th><?=gettext("IP Address")?></th>
+ <th></th>
</tr>
</thead>
<tbody>
diff --git a/src/usr/local/www/firewall_nat.php b/src/usr/local/www/firewall_nat.php
index c767e57..c67c3cc 100644
--- a/src/usr/local/www/firewall_nat.php
+++ b/src/usr/local/www/firewall_nat.php
@@ -379,7 +379,7 @@ endforeach;
<i class="fa fa-trash icon-embed-btn"></i>
<?=gettext("Delete"); ?>
</button>
- <button type="submit" id="order-store" name="order-store" class="btn btn-primary btn-sm" disabled="disabled" title="<?=gettext('Save rule order')?>">
+ <button type="submit" id="order-store" name="order-store" class="btn btn-primary btn-sm" disabled title="<?=gettext('Save rule order')?>">
<i class="fa fa-save icon-embed-btn"></i>
<?=gettext("Save")?>
</button>
diff --git a/src/usr/local/www/firewall_nat_1to1.php b/src/usr/local/www/firewall_nat_1to1.php
index 2aac102..a2213b8 100644
--- a/src/usr/local/www/firewall_nat_1to1.php
+++ b/src/usr/local/www/firewall_nat_1to1.php
@@ -269,7 +269,7 @@ display_top_tabs($tab_array);
<i class="fa fa-trash icon-embed-btn"></i>
<?=gettext("Delete"); ?>
</button>
- <button type="submit" id="order-store" name="order-store" class="btn btn-primary btn-sm" value="Save changes" disabled="disabled">
+ <button type="submit" id="order-store" name="order-store" class="btn btn-primary btn-sm" value="Save changes" disabled>
<i class="fa fa-save icon-embed-btn"></i>
<?=gettext("Save")?>
</button>
diff --git a/src/usr/local/www/firewall_nat_npt.php b/src/usr/local/www/firewall_nat_npt.php
index 1fabdea..e63fb30 100644
--- a/src/usr/local/www/firewall_nat_npt.php
+++ b/src/usr/local/www/firewall_nat_npt.php
@@ -181,7 +181,7 @@ endforeach;
<i class="fa fa-plus icon-embed-btn"></i>
<?=gettext("Add")?>
</a>
- <button type="submit" id="order-store" class="btn btn-primary btn-sm" value="store changes" disabled="disabled">
+ <button type="submit" id="order-store" class="btn btn-primary btn-sm" value="store changes" disabled">
<i class="fa fa-save icon-embed-btn"></i>
<?=gettext("Save")?>
</button>
diff --git a/src/usr/local/www/firewall_nat_out.php b/src/usr/local/www/firewall_nat_out.php
index 0429b0e..f42eae7 100644
--- a/src/usr/local/www/firewall_nat_out.php
+++ b/src/usr/local/www/firewall_nat_out.php
@@ -523,7 +523,7 @@ print($form);
<i class="fa fa-trash icon-embed-btn"></i>
<?=gettext("Delete"); ?>
</button>
- <button type="submit" id="order-store" class="btn btn-primary btn-sm" value="Save changes" disabled="disabled" name="order-store" title="<?=gettext('Save map order')?>">
+ <button type="submit" id="order-store" class="btn btn-primary btn-sm" value="Save changes" disabled name="order-store" title="<?=gettext('Save map order')?>">
<i class="fa fa-save icon-embed-btn"></i>
<?=gettext("Save")?>
</button>
diff --git a/src/usr/local/www/firewall_rules.php b/src/usr/local/www/firewall_rules.php
index c518557..c26a116 100644
--- a/src/usr/local/www/firewall_rules.php
+++ b/src/usr/local/www/firewall_rules.php
@@ -679,7 +679,7 @@ for ($i = 0; isset($a_filter[$i]); $i++):
<i class="fa fa-trash icon-embed-btn"></i>
<?=gettext("Delete"); ?>
</button>
- <button type="submit" id="order-store" name="order-store" class="btn btn-sm btn-primary" value="store changes" disabled="disabled" title="<?=gettext('Save rule order')?>">
+ <button type="submit" id="order-store" name="order-store" class="btn btn-sm btn-primary" value="store changes" disabled title="<?=gettext('Save rule order')?>">
<i class="fa fa-save icon-embed-btn"></i>
<?=gettext("Save")?>
</button>
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php
index ebc2061..479eaf6 100644
--- a/src/usr/local/www/firewall_rules_edit.php
+++ b/src/usr/local/www/firewall_rules_edit.php
@@ -950,14 +950,14 @@ function build_flag_table() {
$tcpflags1 .= "<td> <input type='checkbox' name='tcpflags1_{$tcpflag}' value='on' ";
if (array_search($tcpflag, $setflags) !== false) {
- $tcpflags1 .= "checked=\"checked\"";
+ $tcpflags1 .= "checked";
}
$tcpflags1 .= " /></td>\n";
$tcpflags2 .= "<td> <input type='checkbox' name='tcpflags2_{$tcpflag}' value='on' ";
if (array_search($tcpflag, $outofflags) !== false) {
- $tcpflags2 .= "checked=\"checked\"";
+ $tcpflags2 .= "checked";
}
$tcpflags2 .= " /></td>\n";
@@ -969,7 +969,7 @@ function build_flag_table() {
$flagtable .= "</table>";
$flagtable .= '<input type="checkbox" name="tcpflags_any" id="tcpflags_any" value="on"';
- $flagtable .= $pconfig['tcpflags_any'] ? 'checked="checked"':'' . '/>';
+ $flagtable .= $pconfig['tcpflags_any'] ? 'checked':'' . '/>';
$flagtable .= '<strong>' . gettext(" Any flags.") . '</strong>';
return($flagtable);
diff --git a/src/usr/local/www/guiconfig.inc b/src/usr/local/www/guiconfig.inc
index 0ea3659..cdf6975 100644
--- a/src/usr/local/www/guiconfig.inc
+++ b/src/usr/local/www/guiconfig.inc
@@ -962,7 +962,7 @@ function print_rfc2616_select($tag, $current) {
echo "<select id=\"{$tag}\" name=\"{$tag}\">\n";
foreach ($rfc2616 as $code => $message) {
if ($code == $current) {
- $sel = " selected=\"selected\"";
+ $sel = " selected";
} else {
$sel = "";
}
@@ -1060,7 +1060,7 @@ function display_top_tabs(& $tab_array, $no_drop_down = false, $type = 'pills')
foreach ($tab_array as $ta) {
if ($ta[1] == "true")
- $selected = " selected=\"selected\"";
+ $selected = " selected";
else
$selected = "";
// Onclick in option will not work in some browser
diff --git a/src/usr/local/www/interfaces.php b/src/usr/local/www/interfaces.php
index 3df0ac7..018a7cd 100644
--- a/src/usr/local/www/interfaces.php
+++ b/src/usr/local/www/interfaces.php
@@ -145,7 +145,7 @@ foreach ($a_ppps as $pppid => $ppp) {
}
}
-$type_disabled = (substr($wancfg['if'], 0, 3) == 'gre') ? 'disabled="disabled"' : '';
+$type_disabled = (substr($wancfg['if'], 0, 3) == 'gre') ? 'disabled' : '';
if ($wancfg['if'] == $a_ppps[$pppid]['if']) {
$pconfig['pppid'] = $pppid;
diff --git a/src/usr/local/www/interfaces_assign.php b/src/usr/local/www/interfaces_assign.php
index ff52e75..377741d 100644
--- a/src/usr/local/www/interfaces_assign.php
+++ b/src/usr/local/www/interfaces_assign.php
@@ -545,7 +545,7 @@ display_top_tabs($tab_array);
<td>
<select name="<?=$ifname?>" id="<?=$ifname?>" class="form-control">
<?php foreach ($portlist as $portname => $portinfo):?>
- <option value="<?=$portname?>" <?=($portname == $iface['if']) ? ' selected="selected"': ''?>>
+ <option value="<?=$portname?>" <?=($portname == $iface['if']) ? ' selected': ''?>>
<?=interface_assign_description($portinfo, $portname)?>
</option>
<?php endforeach;?>
@@ -570,7 +570,7 @@ display_top_tabs($tab_array);
<td>
<select name="if_add" id="if_add" class="form-control">
<?php foreach ($unused_portlist as $portname => $portinfo):?>
- <option value="<?=$portname?>" <?=($portname == $iface['if']) ? ' selected="selected"': ''?>>
+ <option value="<?=$portname?>" <?=($portname == $iface['if']) ? ' selected': ''?>>
<?=interface_assign_description($portinfo, $portname)?>
</option>
<?php endforeach;?>
diff --git a/src/usr/local/www/pkg.php b/src/usr/local/www/pkg.php
index 09bcbdc..04e06ee 100755
--- a/src/usr/local/www/pkg.php
+++ b/src/usr/local/www/pkg.php
@@ -334,7 +334,7 @@ if ($savemsg)
echo "Filter field: <select name='pkg_filter_type'>";
foreach ($field['sortablefields']['item'] as $si) {
if ($si['name'] == $_REQUEST['pkg_filter_type']) {
- $SELECTED = "selected=\"selected\"";
+ $SELECTED = "selected";
} else {
$SELECTED = "";
}
@@ -377,7 +377,7 @@ if ($savemsg)
echo "<td align='right'>Rows per page: <select onchange='document.pkgform.submit();' name='display_maximum_rows'>";
for ($x = 0; $x < 250; $x++) {
if ($x == $display_maximum_rows) {
- $SELECTED = "selected=\"selected\"";
+ $SELECTED = "selected";
} else {
$SELECTED = "";
}
diff --git a/src/usr/local/www/pkg_edit.php b/src/usr/local/www/pkg_edit.php
index c9a1b92..58b3efb 100644
--- a/src/usr/local/www/pkg_edit.php
+++ b/src/usr/local/www/pkg_edit.php
@@ -373,7 +373,7 @@ function display_row($trc, $value, $fieldname, $type, $rowhelper, $description)
$size = ($size ? "size=\"{$size}\"" : '');
$multiple = '';
if (isset($rowhelper['multiple'])) {
- $multiple = "multiple=\"multiple\"";
+ $multiple = "multiple";
}
echo "<select style='height:22px;' id='{$fieldname}{$trc}' name='{$fieldname}{$trc}' {$size} {$multiple}>\n";
$ifaces = get_configured_interface_with_descr();
@@ -782,7 +782,7 @@ foreach ($pkg['fields']['field'] as $pkga) {
$fieldname = $pkga['fieldname'];
if (isset($pkga['multiple'])) {
- $multiple = 'multiple="multiple"';
+ $multiple = 'multiple';
$items = explode(',', $value);
$fieldname .= "[]";
} else {
@@ -1139,7 +1139,7 @@ foreach ($pkg['fields']['field'] as $pkga) {
$fieldname = $pkga['fieldname'];
if (isset($pkga['multiple'])) {
$fieldname .= '[]';
- $multiple = 'multiple="multiple"';
+ $multiple = 'multiple';
}
$selectedlist = array();
diff --git a/src/usr/local/www/pkg_mgr.php b/src/usr/local/www/pkg_mgr.php
index c89d9fb..0c5df79 100644
--- a/src/usr/local/www/pkg_mgr.php
+++ b/src/usr/local/www/pkg_mgr.php
@@ -82,7 +82,7 @@ if(is_subsystem_dirty('packagelock')) {
$pkg_info = get_pkg_info();
-$pgtitle = array(gettext("System"),gettext("Package Manager"));
+$pgtitle = array(gettext("System"),gettext("Package Manager"),gettext("Available Packages"));
include("head.inc");
diff --git a/src/usr/local/www/pkg_mgr_install.php b/src/usr/local/www/pkg_mgr_install.php
index 04213de..9f7af99 100644
--- a/src/usr/local/www/pkg_mgr_install.php
+++ b/src/usr/local/www/pkg_mgr_install.php
@@ -247,23 +247,23 @@ if ($_POST) {
if($_GET && $_GET['id'] == "firmware") {
$firmwareupdate = true;
$firmwareversion = get_system_pkg_version();
+ $headline = gettext("System update") ;
}
-$pgtitle = array(gettext("System"),gettext("Package Manager"), $headline);
-include("head.inc");
-
$tab_array = array();
-$tab_array[] = array(gettext("Available packages"), false, "pkg_mgr.php");
-$tab_array[] = array(gettext("Installed packages"), false, "pkg_mgr_installed.php");
+
if($firmwareupdate) {
- $tab_array[] = array(gettext("System update"), true, "");
+ $pgtitle = array(gettext("System"),gettext("Update"), $headline);
+ $tab_array[] = array(gettext("System Update"), true, "");
+ $tab_array[] = array(gettext("Update Settings"), false, "system_update_settings.php");
} else {
+ $pgtitle = array(gettext("System"),gettext("Package Manager"), $headline);
+ $tab_array[] = array(gettext("Available Packages"), false, "pkg_mgr.php");
+ $tab_array[] = array(gettext("Installed Packages"), false, "pkg_mgr_installed.php");
$tab_array[] = array(gettext("Package Installer"), true, "");
}
-if($firmwareupdate) {
- $tab_array[] = array(gettext("Update Settings"), false, "system_update_settings.php");
-}
+include("head.inc");
display_top_tabs($tab_array);
if ($input_errors)
diff --git a/src/usr/local/www/pkg_mgr_installed.php b/src/usr/local/www/pkg_mgr_installed.php
index bf22439..1ca5d5a 100644
--- a/src/usr/local/www/pkg_mgr_installed.php
+++ b/src/usr/local/www/pkg_mgr_installed.php
@@ -77,7 +77,7 @@ if (is_subsystem_dirty('packagelock')) {
$closehead = false;
-$pgtitle = array(gettext("System"), gettext("Package Manager"));
+$pgtitle = array(gettext("System"), gettext("Package Manager"),gettext("Installed Packages"));
include("head.inc");
diff --git a/src/usr/local/www/status_lb_pool.php b/src/usr/local/www/status_lb_pool.php
index db0ec7d..47fbfce 100644
--- a/src/usr/local/www/status_lb_pool.php
+++ b/src/usr/local/www/status_lb_pool.php
@@ -221,7 +221,7 @@ foreach ($a_pool as $pool):
switch ($server['ip']['state']) {
case 'up':
$bgcolor = LIGHTGREEN; // lightgreen
- $checked = "checked=\"checked\"";
+ $checked = "checked";
break;
case 'disabled':
$bgcolor = WHITE;
@@ -229,7 +229,7 @@ foreach ($a_pool as $pool):
break;
default:
$bgcolor = LIGHTCORAL; // lightcoral
- $checked = "checked=\"checked\"";
+ $checked = "checked";
}
?>
<tr>
diff --git a/src/usr/local/www/status_rrd_graph.php b/src/usr/local/www/status_rrd_graph.php
index 3738e72..666c70b 100644
--- a/src/usr/local/www/status_rrd_graph.php
+++ b/src/usr/local/www/status_rrd_graph.php
@@ -612,7 +612,7 @@ if($curcat == 'custom') {
$id = preg_replace('/\./', '_', $id);
?>
<div class="panel panel-default">
- <img align="center" name="<?=$id?>" id="<?=$id?>" alt="<?=$prettydb?> Graph" src="status_rrd_graph_img.php?start=<?=$start?>&amp;end={<?=$end?>&amp;database=<?=$curdatabase?>&amp;style=<?=$curstyle?>&amp;graph=<?=$graph?>" />
+ <img align="center" name="<?=$id?>" id="<?=$id?>" alt="<?=$prettydb?> Graph" src="status_rrd_graph_img.php?start=<?=$start?>&amp;end=<?=$end?>&amp;database=<?=$curdatabase?>&amp;style=<?=$curstyle?>&amp;graph=<?=$graph?>" />
</div>
<?php
@@ -687,7 +687,7 @@ if($curcat == 'custom') {
$end = $dates['end'];
?>
<div class="panel panel-default" align="center">
- <img name="<?=$id?>" id="<?=$id?>" alt="<?=$prettydb?> Graph" src="status_rrd_graph_img.php?start=<?=$start?>&amp;end={<?=$end?>&amp;database=<?=$curdatabase?>&amp;style=<?=$curstyle?>&amp;graph=<?=$graph?>" />
+ <img name="<?=$id?>" id="<?=$id?>" alt="<?=$prettydb?> Graph" src="status_rrd_graph_img.php?start=<?=$start?>&amp;end=<?=$end?>&amp;database=<?=$curdatabase?>&amp;style=<?=$curstyle?>&amp;graph=<?=$graph?>" />
</div>
<?php
}
diff --git a/src/usr/local/www/system_update_settings.php b/src/usr/local/www/system_update_settings.php
index 49a0518..9cd95ac 100644
--- a/src/usr/local/www/system_update_settings.php
+++ b/src/usr/local/www/system_update_settings.php
@@ -107,7 +107,7 @@ if ($_POST) {
$curcfg = $config['system']['firmware'];
$gitcfg = $config['system']['gitsync'];
-$pgtitle = array(gettext("System"), gettext("Firmware"), gettext("Settings"));
+$pgtitle = array(gettext("System"), gettext("Update"), gettext("Update Settings"));
$closehead = false;
exec("/usr/bin/fetch -q -o {$g['tmp_path']}/manifest \"{$g['update_manifest']}\"");
@@ -125,7 +125,7 @@ if ($savemsg)
$tab_array = array();
$tab_array[] = array(gettext("Update Settings"), true, "system_update_settings.php");
-$tab_array[] = array(gettext("System update"), false, "pkg_mgr_install.php?id=firmware");
+$tab_array[] = array(gettext("System Update"), false, "pkg_mgr_install.php?id=firmware");
display_top_tabs($tab_array);
$form = new Form();
diff --git a/src/usr/local/www/system_usermanager.php b/src/usr/local/www/system_usermanager.php
index e719a06..90c59d3 100644
--- a/src/usr/local/www/system_usermanager.php
+++ b/src/usr/local/www/system_usermanager.php
@@ -490,7 +490,7 @@ foreach($a_user as $i => $userent):
?>
<tr>
<td>
- <input type="checkbox" id="frc<?=$i?>" name="delete_check[]" value="<?=$i?>" <?=($userent['scope'] == "system" ? 'disabled="disabled"' : '')?>/>
+ <input type="checkbox" id="frc<?=$i?>" name="delete_check[]" value="<?=$i?>" <?=($userent['scope'] == "system" ? 'disabled' : '')?>/>
</td>
<td>
<?php
@@ -577,7 +577,7 @@ if ($act == "new" || $act == "edit" || $input_errors):
$ro = "";
if ($pconfig['utype'] == "system") {
- $ro = "readonly=\"readonly\"";
+ $ro = "readonly";
}
$section = new Form_Section('User Properties');
diff --git a/src/usr/local/www/system_usermanager_settings_ldapacpicker.php b/src/usr/local/www/system_usermanager_settings_ldapacpicker.php
index aab7905..d400b10 100644
--- a/src/usr/local/www/system_usermanager_settings_ldapacpicker.php
+++ b/src/usr/local/www/system_usermanager_settings_ldapacpicker.php
@@ -142,7 +142,7 @@ function post_choices() {
if (is_array($ous)) {
foreach ($ous as $ou) {
if (in_array($ou, $authcfg['ldap_authcn'])) {
- $CHECKED=" CHECKED";
+ $CHECKED=" checked";
} else {
$CHECKED="";
}
diff --git a/src/usr/local/www/widgets/widgets/gateways.widget.php b/src/usr/local/www/widgets/widgets/gateways.widget.php
index ffbc342..59fa21d 100644
--- a/src/usr/local/www/widgets/widgets/gateways.widget.php
+++ b/src/usr/local/www/widgets/widgets/gateways.widget.php
@@ -227,23 +227,23 @@ if ($_POST) {
<form action="/widgets/widgets/gateways.widget.php" method="post" name="gateways_widget_iform" id="gateways_widget_iform">
Display:
<?php
- $display_type_gw_ip="checked=\"checked\"";
+ $display_type_gw_ip="checked";
$display_type_monitor_ip="";
$display_type_both_ip="";
if (isset($config["widgets"]["gateways_widget"]["display_type"])) {
$selected_radio = $config["widgets"]["gateways_widget"]["display_type"];
if ($selected_radio == "gw_ip") {
- $display_type_gw_ip = "checked=\"checked\"";
+ $display_type_gw_ip = "checked";
$display_type_monitor_ip="";
$display_type_both_ip="";
} else if ($selected_radio == "monitor_ip") {
$display_type_gw_ip = "";
- $display_type_monitor_ip="checked=\"checked\"";
+ $display_type_monitor_ip="checked";
$display_type_both_ip="";
} else if ($selected_radio == "both_ip") {
$display_type_gw_ip = "";
$display_type_monitor_ip="";
- $display_type_both_ip="checked=\"checked\"";
+ $display_type_both_ip="checked";
}
}
?>
diff --git a/src/usr/local/www/widgets/widgets/log.widget.php b/src/usr/local/www/widgets/widgets/log.widget.php
index 822e365..b5bc552 100644
--- a/src/usr/local/www/widgets/widgets/log.widget.php
+++ b/src/usr/local/www/widgets/widgets/log.widget.php
@@ -239,11 +239,11 @@ events.push(function(){
<div class="col-sm-6 checkbox">
<?php $include_acts = explode(" ", strtolower($nentriesacts)); ?>
<label><input name="actpass" type="checkbox" value="Pass"
- <?=(in_array('pass', $include_acts) ? 'checked="checked"':'')?> />Pass</label>
+ <?=(in_array('pass', $include_acts) ? 'checked':'')?> />Pass</label>
<label><input name="actblock" type="checkbox" value="Block"
- <?=(in_array('block', $include_acts) ? 'checked="checked"':'')?> />Block</label>
+ <?=(in_array('block', $include_acts) ? 'checked':'')?> />Block</label>
<label><input name="actreject" type="checkbox" value="Reject"
- <?=(in_array('reject', $include_acts) ? 'checked="checked"':'')?> />Reject</label>
+ <?=(in_array('reject', $include_acts) ? 'checked':'')?> />Reject</label>
</div>
</div>
@@ -254,7 +254,7 @@ events.push(function(){
<select name="filterlogentriesinterfaces" class="form-control">
<?php foreach (array("All" => "ALL") + get_configured_interface_with_descr() as $iface => $ifacename):?>
<option value="<?=$iface?>"
- <?=($nentriesinterfaces==$iface?'selected="selected"':'')?>><?=htmlspecialchars($ifacename)?></option>
+ <?=($nentriesinterfaces==$iface?'selected':'')?>><?=htmlspecialchars($ifacename)?></option>
<?php endforeach;?>
</select>
</div>
diff --git a/src/usr/local/www/widgets/widgets/services_status.widget.php b/src/usr/local/www/widgets/widgets/services_status.widget.php
index f1dbe6b..2f2d9d9 100644
--- a/src/usr/local/www/widgets/widgets/services_status.widget.php
+++ b/src/usr/local/www/widgets/widgets/services_status.widget.php
@@ -121,9 +121,9 @@ if (count($services) > 0) {
<div class="form-group">
<label for="inputPassword3" class="col-sm-3 control-label">Hidden services</label>
<div class="col-sm-6">
- <select multiple="multiple" name="servicestatusfilter[]" class="form-control" height="5">
+ <select multiple name="servicestatusfilter[]" class="form-control" height="5">
<?php foreach ($services as $service): ?>
- <option <?=(in_array($service['name'], $skipservices)?'selected="selected"':'')?>><?=$service['name']?></option>
+ <option <?=(in_array($service['name'], $skipservices)?'selected':'')?>><?=$service['name']?></option>
<?php endforeach; ?>
</select>
</div>
diff --git a/src/usr/local/www/widgets/widgets/thermal_sensors.widget.php b/src/usr/local/www/widgets/widgets/thermal_sensors.widget.php
index 36f2dac..a274935 100644
--- a/src/usr/local/www/widgets/widgets/thermal_sensors.widget.php
+++ b/src/usr/local/www/widgets/widgets/thermal_sensors.widget.php
@@ -217,7 +217,7 @@ function getBoolValueFromConfig(&$configArray, $valueKey, $defaultValue) {
<input type="checkbox"
id="thermal_sensors_widget_show_raw_output"
name="thermal_sensors_widget_show_raw_output"
- value="<?= $thermal_sensors_widget_showRawOutput; ?>" <?= ($thermal_sensors_widget_showRawOutput) ? " checked='checked'" : ""; ?> />
+ value="<?= $thermal_sensors_widget_showRawOutput; ?>" <?= ($thermal_sensors_widget_showRawOutput) ? " checked" : ""; ?> />
</td>
</tr>
<tr>
@@ -235,7 +235,7 @@ function getBoolValueFromConfig(&$configArray, $valueKey, $defaultValue) {
<input type="checkbox"
id="thermal_sensors_widget_show_full_sensor_name"
name="thermal_sensors_widget_show_full_sensor_name"
- value="<?= $thermal_sensors_widget_showFullSensorName; ?>" <?= ($thermal_sensors_widget_showFullSensorName) ? " checked='checked'" : ""; ?> />
+ value="<?= $thermal_sensors_widget_showFullSensorName; ?>" <?= ($thermal_sensors_widget_showFullSensorName) ? " checked" : ""; ?> />
</td>
</tr>
<tr>
diff --git a/src/usr/local/www/widgets/widgets/traffic_graphs.widget.php b/src/usr/local/www/widgets/widgets/traffic_graphs.widget.php
index 19e670e..b1131f8 100644
--- a/src/usr/local/www/widgets/widgets/traffic_graphs.widget.php
+++ b/src/usr/local/www/widgets/widgets/traffic_graphs.widget.php
@@ -165,7 +165,7 @@ foreach ($ifdescrs as $ifname => $ifdescr):
<div class="col-sm-6 checkbox">
<?php foreach ($ifdescrs as $ifname => $ifdescr): ?>
<label>
- <input type="checkbox" name="shown[]"<?= $ifname?>]" value="<?=$ifname?>" <?= ($shown[$ifname]) ? "checked=\"checked\"":""?> />
+ <input type="checkbox" name="shown[]"<?= $ifname?>]" value="<?=$ifname?>" <?= ($shown[$ifname]) ? "checked":""?> />
<?=$ifname?>
</label>
<?php endforeach; ?>
@@ -175,11 +175,11 @@ foreach ($ifdescrs as $ifname => $ifdescr):
<label for="scale_type_up" class="col-sm-3 control-label">Default Autoscale</label>
<div class="col-sm-6 checkbox">
<label>
- <input name="scale_type" type="radio" id="scale_type_up" value="up" <?=($config["widgets"]["trafficgraphs"]["scale_type"]=="follow" ? '' : 'checked="checked"')?> />
+ <input name="scale_type" type="radio" id="scale_type_up" value="up" <?=($config["widgets"]["trafficgraphs"]["scale_type"]=="follow" ? '' : 'checked')?> />
up
</label>
<label>
- <input name="scale_type" type="radio" id="scale_type_follow" value="up" <?=($config["widgets"]["trafficgraphs"]["scale_type"]=="follow" ? 'checked="checked"' : '')?> />
+ <input name="scale_type" type="radio" id="scale_type_follow" value="up" <?=($config["widgets"]["trafficgraphs"]["scale_type"]=="follow" ? 'checked' : '')?> />
follow
</label>
</div>
OpenPOWER on IntegriCloud