summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-11-17 19:16:45 -0500
committerjim-p <jimp@pfsense.org>2010-11-17 19:16:45 -0500
commit916ee7453ecfded18283f57ee2131d6b2e779503 (patch)
treee0fd7d005c61c613b228b40108211d6a0cd6f6ed
parent304af9d8ef093e619bdb030dbdd119de942e7c08 (diff)
downloadpfsense-916ee7453ecfded18283f57ee2131d6b2e779503.zip
pfsense-916ee7453ecfded18283f57ee2131d6b2e779503.tar.gz
Show CRL download link only for imported certificates or CRLs with revoked certificates.
-rw-r--r--usr/local/www/system_crlmanager.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/system_crlmanager.php b/usr/local/www/system_crlmanager.php
index b5dc26d..90b61d6 100644
--- a/usr/local/www/system_crlmanager.php
+++ b/usr/local/www/system_crlmanager.php
@@ -539,9 +539,11 @@ function method_change() {
<td class="listr"><?php echo ($internal) ? count($tmpcrl['cert']) : "Unknown (imported)"; ?></td>
<td class="listr"><?php echo ($inuse) ? "YES" : "NO"; ?></td>
<td valign="middle" nowrap class="list">
+ <?php if (!$internal || count($tmpcrl['cert'])): ?>
<a href="system_crlmanager.php?act=exp&id=<?=$tmpcrl['refid'];?>")">
<img src="/themes/<?= $g['theme'];?>/images/icons/icon_down.gif" title="<?=gettext("Export CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>" alt="<?=gettext("Export CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>" width="17" height="17" border="0" />
</a>
+ <?php endif; ?>
<?php if ($internal): ?>
<a href="system_crlmanager.php?act=edit&id=<?=$tmpcrl['refid'];?>")">
<img src="/themes/<?= $g['theme'];?>/images/icons/icon_e.gif" title="<?=gettext("Edit CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>" alt="<?=gettext("Edit CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>" width="17" height="17" border="0" />
OpenPOWER on IntegriCloud