summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorPhil Davis <phil@jankaritech.com>2017-05-09 22:38:56 +0545
committerGitHub <noreply@github.com>2017-05-09 22:38:56 +0545
commit3c2fff266f49e3ebd09f7268fd25dc264a7b4187 (patch)
tree444176525e669e13315acbefcc480dd32ea43051 /src/usr/local/www
parente6fa67841096b34e63481513ee6affbd69b1fc2b (diff)
parent2615ef57e21ba5ccbde76bf6d946d880152abe1f (diff)
downloadpfsense-3c2fff266f49e3ebd09f7268fd25dc264a7b4187.zip
pfsense-3c2fff266f49e3ebd09f7268fd25dc264a7b4187.tar.gz
Merge branch 'master' into if-stats-widget-settings
Diffstat (limited to 'src/usr/local/www')
-rw-r--r--src/usr/local/www/js/pfSenseHelpers.js8
-rw-r--r--src/usr/local/www/pkg_mgr.php8
-rw-r--r--src/usr/local/www/pkg_mgr_install.php2
-rw-r--r--src/usr/local/www/pkg_mgr_installed.php4
-rw-r--r--src/usr/local/www/services_captiveportal.php4
-rw-r--r--src/usr/local/www/system.php5
-rw-r--r--src/usr/local/www/system_certmanager.php28
-rw-r--r--src/usr/local/www/widgets/widgets/system_information.widget.php2
8 files changed, 47 insertions, 14 deletions
diff --git a/src/usr/local/www/js/pfSenseHelpers.js b/src/usr/local/www/js/pfSenseHelpers.js
index 4eb475f..1199040 100644
--- a/src/usr/local/www/js/pfSenseHelpers.js
+++ b/src/usr/local/www/js/pfSenseHelpers.js
@@ -437,16 +437,16 @@ $('.infoblock').each(function() {
// Show the help on clicking the info icon
$('[id^="showinfo"]').click(function() {
var id = $(this).attr("id");
-
$('.' + "infoblock" + id.substr(8)).toggle();
document.getSelection().removeAllRanges(); // Ensure the text is un-selected (Chrome browser quirk)
});
// ------------------------------------------------------------------------------------------------
// Put a dummy row into any empty table to keep IE happy
-$('tbody').each(function(){
- $(this).html($.trim($(this).html()))
-});
+// Commented out due to https://redmine.pfsense.org/issues/7504
+//$('tbody').each(function(){
+// $(this).html($.trim($(this).html()))
+//});
$('tbody:empty').html("<tr><td></td></tr>");
diff --git a/src/usr/local/www/pkg_mgr.php b/src/usr/local/www/pkg_mgr.php
index d92ae49..800ff5f 100644
--- a/src/usr/local/www/pkg_mgr.php
+++ b/src/usr/local/www/pkg_mgr.php
@@ -43,14 +43,14 @@ if (is_subsystem_dirty('packagelock')) {
exit;
}
-// We are being called only to get the pacakge data, not to display anything
+// We are being called only to get the package data, not to display anything
if (($_REQUEST) && ($_REQUEST['ajax'])) {
print(get_pkg_table());
exit;
}
-// THe content for the table of packages is created here and fetched by Ajax. This allows us to draw the page and dispay
-// any required messages while the table it being downloaded/populated. On very small/slow systems, that can take a while
+// The content for the table of packages is created here and fetched by Ajax. This allows us to draw the page and display
+// any required messages while the table is being downloaded/populated. On very small/slow systems, that can take a while
function get_pkg_table() {
$pkg_info = get_pkg_info();
@@ -249,7 +249,7 @@ events.push(function() {
}
});
- // Retrieve the table formatted pacakge information and display it in the "Packages" panel
+ // Retrieve the table formatted package information and display it in the "Packages" panel
// (Or display an appropriate error message)
var ajaxRequest;
diff --git a/src/usr/local/www/pkg_mgr_install.php b/src/usr/local/www/pkg_mgr_install.php
index df3147d..b36c0a6 100644
--- a/src/usr/local/www/pkg_mgr_install.php
+++ b/src/usr/local/www/pkg_mgr_install.php
@@ -64,7 +64,7 @@ if ($_REQUEST['ajax']) {
$response = "";
$code = 0;
- // If this is an ajax call to get the installed and newst versions, call that function,
+ // If this is an ajax call to get the installed and newest versions, call that function,
// JSON encode the result, print it and exit
if ($_REQUEST['getversion']) {
$firmwareversions = get_system_pkg_version(true);
diff --git a/src/usr/local/www/pkg_mgr_installed.php b/src/usr/local/www/pkg_mgr_installed.php
index c9f47d9..7fbb37f 100644
--- a/src/usr/local/www/pkg_mgr_installed.php
+++ b/src/usr/local/www/pkg_mgr_installed.php
@@ -39,7 +39,7 @@ if (is_subsystem_dirty('packagelock')) {
exit;
}
-// We are being called only to get the pacakge data, not to display anything
+// We are being called only to get the package data, not to display anything
if (($_REQUEST) && ($_REQUEST['ajax'])) {
print(get_pkg_table());
exit;
@@ -237,7 +237,7 @@ display_top_tabs($tab_array);
events.push(function() {
- // Retrieve the table formatted pacakge information and display it in the "Packages" panel
+ // Retrieve the table formatted package information and display it in the "Packages" panel
// (Or display an appropriate error message)
var ajaxRequest;
diff --git a/src/usr/local/www/services_captiveportal.php b/src/usr/local/www/services_captiveportal.php
index 3141c88..d486b70 100644
--- a/src/usr/local/www/services_captiveportal.php
+++ b/src/usr/local/www/services_captiveportal.php
@@ -928,7 +928,9 @@ $section->addInput(new Form_Checkbox(
'Reauthenticate connected users every minute',
$pconfig['reauthenticate']
))->setHelp('If reauthentication is enabled, Access-Requests will be sent to the RADIUS server for each user that is logged in every minute. ' .
- 'If an Access-Reject is received for a user, that user is disconnected from the captive portal immediately.');
+ 'If an Access-Reject is received for a user, that user is disconnected from the captive portal immediately. ' .
+ 'Reauthentication requires user credentials to be cached in the captive portal database while a user is logged in; ' .
+ 'The cached credentials are necessary for the portal to perform automatic reauthentication requests.');
$section->addInput(new Form_Checkbox(
'radmac_enable',
diff --git a/src/usr/local/www/system.php b/src/usr/local/www/system.php
index 53fbf80..2fe1b6e 100644
--- a/src/usr/local/www/system.php
+++ b/src/usr/local/www/system.php
@@ -47,6 +47,11 @@ if (!isset($config['system']['webgui']['dashboardcolumns'])) {
$config['system']['webgui']['dashboardcolumns'] = 2;
}
+// set default language if unset
+if (!isset($config['system']['language'])) {
+ $config['system']['language'] = $g['language'];
+}
+
$dnsgw_counter = 1;
while (isset($config["system"]["dns{$dnsgw_counter}gw"])) {
diff --git a/src/usr/local/www/system_certmanager.php b/src/usr/local/www/system_certmanager.php
index 04c41ab..1352407 100644
--- a/src/usr/local/www/system_certmanager.php
+++ b/src/usr/local/www/system_certmanager.php
@@ -1110,6 +1110,7 @@ foreach ($a_cert as $i => $cert):
$subj = cert_get_subject($cert['crt']);
$issuer = cert_get_issuer($cert['crt']);
$purpose = cert_get_purpose($cert['crt']);
+ $sans = cert_get_sans($cert['crt']);
list($startdate, $enddate) = cert_get_dates($cert['crt']);
if ($subj == $issuer) {
@@ -1130,6 +1131,7 @@ foreach ($a_cert as $i => $cert):
if ($cert['csr']) {
$subj = htmlspecialchars(csr_get_subject($cert['csr']));
+ $sans = cert_get_sans($cert['crt']);
$caname = "<em>" . gettext("external - signature pending") . "</em>";
}
@@ -1145,12 +1147,36 @@ foreach ($a_cert as $i => $cert):
<i><?=$cert_types[$cert['type']]?></i><br />
<?php endif?>
<?php if (is_array($purpose)): ?>
- CA: <b><?=$purpose['ca']?></b>, <?=gettext("Server")?>: <b><?=$purpose['server']?></b>
+ CA: <b><?=$purpose['ca']?></b><br/>
+ <?=gettext("Server")?>: <b><?=$purpose['server']?></b><br/>
<?php endif?>
</td>
<td><?=$caname?></td>
<td>
<?=$subj?>
+ <?php
+ $certextinfo = "";
+ if (is_array($sans) && !empty($sans)) {
+ $certextinfo .= '<b>' . gettext("SAN: ") . '</b> ';
+ $certextinfo .= htmlspecialchars(implode(', ', $sans));
+ $certextinfo .= '<br/>';
+ }
+ if (is_array($purpose) && !empty($purpose['ku'])) {
+ $certextinfo .= '<b>' . gettext("KU: ") . '</b> ';
+ $certextinfo .= htmlspecialchars(implode(', ', $purpose['ku']));
+ $certextinfo .= '<br/>';
+ }
+ if (is_array($purpose) && !empty($purpose['eku'])) {
+ $certextinfo .= '<b>' . gettext("EKU: ") . '</b> ';
+ $certextinfo .= htmlspecialchars(implode(', ', $purpose['eku']));
+ }
+ ?>
+ <?php if (!empty($certextinfo)): ?>
+ <div class="infoblock">
+ <? print_info_box($certextinfo, 'info', false); ?>
+ </div>
+ <?php endif?>
+
<?php if (!empty($startdate) || !empty($enddate)): ?>
<br />
<small>
diff --git a/src/usr/local/www/widgets/widgets/system_information.widget.php b/src/usr/local/www/widgets/widgets/system_information.widget.php
index 10db1ef..03ef48b 100644
--- a/src/usr/local/www/widgets/widgets/system_information.widget.php
+++ b/src/usr/local/www/widgets/widgets/system_information.widget.php
@@ -160,7 +160,7 @@ $rows_displayed = false;
// If the uniqueID is available, display it here
$idfile = "/var/db/uniqueid";
if (file_exists($idfile)) {
- print("<br />" . gettext("Netgate Unique ID:") . " <strong>" . file_get_contents($idfile) . "</strong>");
+ print("<br />" . gettext("Netgate Device ID:") . " <strong>" . file_get_contents($idfile) . "</strong>");
}
?>
</td>
OpenPOWER on IntegriCloud