added ssl-certificate overview for admins and customers to show CN, Issuer, ValidFrom and ValidTo dates

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-09-26 11:48:36 +02:00
parent 79b839c024
commit ed0ede645a
9 changed files with 253 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<tr <if !$isValid>class="domain-expired"</if>>
<td>
<a href="http://{$row['domain']}" target="_blank">{$row['domain']}</a>
{$adminCustomerLink}
</td>
<td>
{$cert_data['subject']['CN']}
</td>
<td>
{$cert_data['issuer']['O']}
</td>
<td>
{$validFrom}
</td>
<td>
<if !$isValid><strong><span class="red"></if>
{$validTo}
<if !$isValid></span></strong></if>
</td>
<td>
<if $row['letsencrypt'] != 1 && AREA == 'customer'>
<a href="{$linker->getLink(array('section' => 'domains', 'page' => 'domainssleditor', 'action' => 'view', 'id' => $row['domainid']))}">
<img src="templates/{$theme}/assets/img/icons/edit.png" alt="{$lng['panel']['edit']}" title="{$lng['panel']['edit']}" />
</a>&nbsp;
</if>
<if $row['letsencrypt'] == '1'>
<img src="templates/{$theme}/assets/img/icons/ssl_letsencrypt.png" alt="{$lng['panel']['letsencrypt']}" title="{$lng['panel']['letsencrypt']}" />
</if>
<a href="{$linker->getLink(array('section' => 'domains', 'page' => 'sslcertificates', 'action' => 'delete', 'id' => $row['id']))}">
<img src="templates/{$theme}/assets/img/icons/delete.png" alt="{$lng['panel']['delete']}" title="{$lng['panel']['delete']}" />
</a>
</td>
</tr>

View File

@@ -0,0 +1,3 @@
<tr>
<td colspan="6"><span class="red">{$message}</span></td>
</tr>

View File

@@ -0,0 +1,57 @@
$header
<article>
<header>
<h2>
<img src="templates/{$theme}/assets/img/icons/lock_big.png" alt="" />&nbsp;
{$lng['domains']['ssl_certificates']}
</h2>
</header>
<if !empty($success_message)>
<div class="successcontainer bradius">
<div class="successtitle">{$lng['success']['success']}</div>
<div class="success">
$success_message
</div>
</div>
</if>
<section>
<form action="{$linker->getLink(array('section' => 'domains', 'page' => 'sslcertificates'))}" method="post" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="s" value="$s" />
<input type="hidden" name="page" value="$page" />
<div class="overviewsearch">
{$searchcode}
</div>
<table class="full hl">
<thead>
<tr>
<th>{$lng['domains']['domainname']}&nbsp;{$arrowcode['d.domain']}</th>
<th>Certificate for</th>
<th>Issuer</th>
<th>Valid from</th>
<th>Valid until</th>
<th>{$lng['panel']['options']}</th>
</tr>
</thead>
<if $pagingcode != ''>
<tfoot>
<tr>
<td colspan="6">{$pagingcode}</td>
</tr>
</tfoot>
</if>
<tbody>
{$certificates}
</tbody>
</table>
</form>
</section>
</article>
$footer