diff options
author | Christian Weiske <cweiske@cweiske.de> | 2011-05-09 18:16:53 +0200 |
---|---|---|
committer | Christian Weiske <cweiske@cweiske.de> | 2011-05-09 18:16:53 +0200 |
commit | 967ba79ece58dd0164accbf46078964c58fec230 (patch) | |
tree | 07711ae871ac8f32b581216eb3c15c900995fecb /data/templates/editprofile-sslclientcerts.tpl.php | |
parent | 2fba3020034cae12c244713311a7c76d5a6a4800 (diff) | |
download | semanticscuttle-967ba79ece58dd0164accbf46078964c58fec230.tar.gz semanticscuttle-967ba79ece58dd0164accbf46078964c58fec230.tar.bz2 |
show current users certificates on profile page
Diffstat (limited to 'data/templates/editprofile-sslclientcerts.tpl.php')
-rw-r--r-- | data/templates/editprofile-sslclientcerts.tpl.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/data/templates/editprofile-sslclientcerts.tpl.php b/data/templates/editprofile-sslclientcerts.tpl.php new file mode 100644 index 0000000..e6fc5c3 --- /dev/null +++ b/data/templates/editprofile-sslclientcerts.tpl.php @@ -0,0 +1,25 @@ +<h3><?php echo T_('SSL client certificates'); ?></h3> +<?php if (count($sslClientCerts)) { ?> +<table> + <thead> + <tr> + <th><?php echo T_('Serial'); ?></th> + <th><?php echo T_('Name'); ?></th> + <th><?php echo T_('Email'); ?></th> + <th><?php echo T_('Issuer'); ?></th> + </tr> + </thead> + <tbody> + <?php foreach($sslClientCerts as $cert) { ?> + <tr <?php if ($cert->isCurrent()) { echo 'class="ssl-current"'; } ?>> + <td><?php echo htmlspecialchars($cert->sslSerial); ?></td> + <td><?php echo htmlspecialchars($cert->sslName); ?></td> + <td><?php echo htmlspecialchars($cert->sslEmail); ?></td> + <td><?php echo htmlspecialchars($cert->sslClientIssuerDn); ?></td> + </tr> + <?php } ?> + </tbody> +</table> +<?php } else { ?> + <p><?php echo T_('No certificates registered'); ?></p> +<?php } ?> |