summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_camanager.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-08-27 11:47:24 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-08-27 11:47:51 -0400
commitb8f22f61dd6f475a2c7831e9849ff85bd5eb2736 (patch)
tree0a8b081a3d19d960fcb4ee8ee3aadf7ecb64af06 /src/usr/local/www/system_camanager.php
parent7295f5d0ce173b756e81d08b0a56df1775cc0897 (diff)
downloadpfsense-b8f22f61dd6f475a2c7831e9849ff85bd5eb2736.zip
pfsense-b8f22f61dd6f475a2c7831e9849ff85bd5eb2736.tar.gz
arrray type changed to associative for country codes
Diffstat (limited to 'src/usr/local/www/system_camanager.php')
-rw-r--r--src/usr/local/www/system_camanager.php22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/usr/local/www/system_camanager.php b/src/usr/local/www/system_camanager.php
index 605de54..7d32a0b 100644
--- a/src/usr/local/www/system_camanager.php
+++ b/src/usr/local/www/system_camanager.php
@@ -332,16 +332,19 @@ include("head.inc");
if ($input_errors)
print_input_errors($input_errors);
+
if ($savemsg)
- print_info_box($savemsg);
+ print_info_box($savemsg, 'success');
// Load valid country codes
$dn_cc = array();
if (file_exists("/etc/ca_countries")){
$dn_cc_file=file("/etc/ca_countries");
- foreach($dn_cc_file as $line)
- if (preg_match('/^(\S*)\s(.*)$/', $line, $matches))
- array_push($dn_cc, $matches[1]);
+ foreach($dn_cc_file as $line) {
+ if (preg_match('/^(\S*)\s(.*)$/', $line, $matches)) {
+ $dn_cc[$matches[1]] = $matches[1];
+ }
+ }
}
$tab_array = array();
@@ -404,7 +407,7 @@ foreach ($a_ca as $i => $ca):
<?=$subj?>
<br />
<small>
- <?=gettext("Valid From")?>: <b><?=$startdate ?></b>, <?=gettext("Valid Until")?>: <b><?=$enddate ?></b>
+ <?=gettext("Valid From")?>: <b><?=$startdate ?></b><br /><?=gettext("Valid Until")?>: <b><?=$enddate ?></b>
</small>
</td>
<td>
@@ -520,7 +523,7 @@ foreach ($a_ca as $ca)
}
$group = new Form_Group('Signing Certificate Authority');
-$group->addClass('toggle-intermediate');
+$group->addClass('toggle-intermediate', 'collapse');
$group->add(new Form_Select(
'caref',
null,
@@ -602,4 +605,11 @@ $form->add($section);
print $form;
+$internal_ca_count = 0;
+foreach ($a_ca as $ca) {
+ if ($ca['prv']) {
+ $internal_ca_count++;
+ }
+}
+
include('foot.inc'); \ No newline at end of file
OpenPOWER on IntegriCloud