summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-12-08 17:00:30 +0100
committerINOPIAE <inopiae@cacert.org>2013-12-08 17:00:30 +0100
commit1dc9a4ac133cc54ee3a036121803e5eaa49537a2 (patch)
tree30b17a0fe384819e9d097ed608a7a5313ad0998e /pages
parent9b0079e00d3a8a228ba87c74e4a1d709abc2df8c (diff)
downloadcacert-devel-1dc9a4ac133cc54ee3a036121803e5eaa49537a2.tar.gz
cacert-devel-1dc9a4ac133cc54ee3a036121803e5eaa49537a2.tar.xz
cacert-devel-1dc9a4ac133cc54ee3a036121803e5eaa49537a2.zip
bug 1138: added function get_server_certs
Diffstat (limited to 'pages')
-rw-r--r--pages/account/59.php33
1 files changed, 27 insertions, 6 deletions
diff --git a/pages/account/59.php b/pages/account/59.php
index 907be36..e8509df 100644
--- a/pages/account/59.php
+++ b/pages/account/59.php
@@ -177,7 +177,7 @@ if(mysql_num_rows($dres) > 0) {
</table>
<br/>
<?
-$dres = get_se_log($userid);
+$dres = get_client_certs($userid);
$colspan=10;
if (1==$support) {
$colspan=7;
@@ -189,10 +189,33 @@ if (1==$support) {
</tr>
<?
if(mysql_num_rows($dres) > 0) {
- output_log_se_header($support);
+ output_client_cert_header($support);
while($drow = mysql_fetch_assoc($dres))
{
- output_log_se($drow,$support);
+ output_client_cert($drow,$support);
+ }ELSE{
+ ?><td colspan="<? $colspan?>" ><?=_('no entry avialable')?></td><?
+ }
+}?>
+</table>
+<br/>
+ <?
+ $dres = get_server_certs($userid);
+$colspan=8;
+if (1==$support) {
+ $colspan=5;
+}
+?>
+<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
+ <tr>
+ <td colspan="<? $colspan?>" class="title"><?=_('Server certificates')?></td>
+ </tr>
+<?
+if(mysql_num_rows($dres) > 0) {
+ output_log_server_certs_header($support);
+ while($drow = mysql_fetch_assoc($dres))
+ {
+ output_log_server_certs($drow,$support);
}ELSE{
?><td colspan="<? $colspan?>" ><?=_('no entry avialable')?></td><?
}
@@ -202,9 +225,7 @@ if(mysql_num_rows($dres) > 0) {
<table>
- <tr>
- <td colspan="<? $colspandefault ?>" class="title"><?=_('Server certificates')?></td>
- </tr>
+
<tr>
<td colspan="<? $colspandefault ?>" class="title"><?=_('GPG certificates')?></td>
</tr>