Project

General

Profile

« Previous | Next » 

Revision 45508803

Added by Jim Pingle almost 12 years ago

Allow an "empty" CRL to be exported, since this is still a valid action.

View differences:

usr/local/www/system_crlmanager.php
107 107
}
108 108

  
109 109
if ($act == "exp") {
110
	crl_update($thiscrl);
110 111
	$exp_name = urlencode("{$thiscrl['descr']}.crl");
111 112
	$exp_data = base64_decode($thiscrl['text']);
112 113
	$exp_size = strlen($exp_data);
......
588 589
						<td class="listr"><?php echo ($internal) ? count($tmpcrl['cert']) : "Unknown (imported)"; ?></td>
589 590
						<td class="listr"><?php echo ($inuse) ? "YES" : "NO"; ?></td>
590 591
						<td valign="middle" class="list nowrap">
591
							<?php if (!$internal || count($tmpcrl['cert'])): ?>
592 592
							<a href="system_crlmanager.php?act=exp&amp;id=<?=$tmpcrl['refid'];?>">
593 593
								<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" />
594 594
							</a>
595
							<?php endif; ?>
596 595
							<?php if ($internal): ?>
597 596
							<a href="system_crlmanager.php?act=edit&amp;id=<?=$tmpcrl['refid'];?>">
598 597
								<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" />

Also available in: Unified diff