diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-05-27 14:37:40 +0200 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-05-27 14:37:40 +0200 |
commit | e3230c0ac4dd7ed070b033d068e5a589cd562a60 (patch) | |
tree | 7804a647217d2765a1cb4382b9dace090b01c3c6 /usr/local | |
parent | 790bab086c47a662570deee53ffb2f0b360e7c71 (diff) | |
parent | ae588a5c84a7f60a1cdf0d4b70e364acc718eb19 (diff) | |
download | pfsense-e3230c0ac4dd7ed070b033d068e5a589cd562a60.zip pfsense-e3230c0ac4dd7ed070b033d068e5a589cd562a60.tar.gz |
Merge pull request #1081 from PiBa-NL/cert_usage
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/system_certmanager.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/usr/local/www/system_certmanager.php b/usr/local/www/system_certmanager.php index e6c7551..965f02f 100644 --- a/usr/local/www/system_certmanager.php +++ b/usr/local/www/system_certmanager.php @@ -1087,6 +1087,10 @@ function internalca_change() { <td width="10%" class="list"></td> </tr> <?php + $pluginparams = array(); + $pluginparams['type'] = 'certificates'; + $pluginparams['event'] = 'used_certificates'; + $certificates_used_by_packages = pkg_call_plugins('plugin_certificates', $pluginparams); $i = 0; foreach($a_cert as $cert): $name = htmlspecialchars($cert['descr']); @@ -1177,6 +1181,23 @@ function internalca_change() { <?php if (is_captiveportal_cert($cert['refid'])): ?> Captive Portal<br /> <?php endif; ?> + <? + $refid = $cert['refid']; + if (is_array($certificates_used_by_packages)) + foreach($certificates_used_by_packages as $name => $package){ + if(isset($package['certificatelist'][$refid])){ + $hint = "" ; + if (is_array($package['certificatelist'][$refid])) + foreach($package['certificatelist'][$refid] as $cert_used){ + $hint = $hint . $cert_used['usedby']."\n"; + } + $count = count($package['certificatelist'][$refid]); + echo "<div title='".htmlspecialchars($hint)."'>"; + echo htmlspecialchars($package['pkgname'])." ($count)<br />"; + echo "</div>"; + } + } + ?> </td> <td valign="middle" class="list nowrap"> <a href="system_certmanager.php?act=exp&id=<?=$i;?>"> |