liam-linux-account-manager/templates/user_pubkeys.php

18 lines
580 B
PHP
Raw Permalink Normal View History

2021-11-16 15:11:32 +01:00
<?php
?>
<h1>Public keys for <a href="<?php outurl('/users/'.urlencode($this->get('user')->uid))?>"><?php out($this->get('user')->name)?></a></h1>
<?php foreach($this->get('pubkeys') as $pubkey) { ?>
<div class="panel panel-default">
<dl class="panel-body">
<dt>Key data</dt>
<dd><pre><?php out($pubkey->export())?></pre></dd>
<dt>Key size</dt>
<dd><?php out($pubkey->keysize)?></dd>
<dt>Fingerprint (MD5)</dt>
<dd><?php out($pubkey->fingerprint_md5)?></dd>
<dt>Fingerprint (SHA256)</dt>
<dd><?php out($pubkey->fingerprint_sha256)?></dd>
</dl>
</div>
<?php } ?>