summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-12-08 17:20:43 +0100
committerINOPIAE <inopiae@cacert.org>2013-12-08 17:20:43 +0100
commit0b0a8a0543862eae4f7ea0b1066ed6a85ba019f2 (patch)
tree842d5ac14d0e46e0f742e7f2e110f84da8b95a74 /pages
parent1dc9a4ac133cc54ee3a036121803e5eaa49537a2 (diff)
downloadcacert-devel-0b0a8a0543862eae4f7ea0b1066ed6a85ba019f2.tar.gz
cacert-devel-0b0a8a0543862eae4f7ea0b1066ed6a85ba019f2.tar.xz
cacert-devel-0b0a8a0543862eae4f7ea0b1066ed6a85ba019f2.zip
bug 1138: added function get_gpg_certs
Diffstat (limited to 'pages')
-rw-r--r--pages/account/59.php89
1 files changed, 54 insertions, 35 deletions
diff --git a/pages/account/59.php b/pages/account/59.php
index e8509df..773c83a 100644
--- a/pages/account/59.php
+++ b/pages/account/59.php
@@ -114,8 +114,8 @@ if(mysql_num_rows($dres) > 0) {
output_log_email_header();
while($drow = mysql_fetch_assoc($dres))
{
- output_log_email($drow,$email);
- } ?>
+ output_log_email($drow,$email);
+} ?>
</table>
<br/>
<?
@@ -131,10 +131,10 @@ if(mysql_num_rows($dres) > 0) {
while($drow = mysql_fetch_assoc($dres))
{
output_log_domain($drow,$email);
- }ELSE{?>
+ }
+}ELSE{?>
<td colspan="3" ><?=_('no entry avialable')?></td>
- <?}
-}?>
+<?}?>
</table>
<br/>
@@ -147,16 +147,17 @@ $dres = get_training_result($userid);
</tr>
<?
if(mysql_num_rows($dres) > 0) {
- output_log_training_header();
- while($drow = mysql_fetch_assoc($dres))
- {
- output_log_training($drow);
- }ELSE{
- ?><td colspan="3" ><?=_('no entry avialable')?></td><?
- }
+ output_log_training_header();
+ while($drow = mysql_fetch_assoc($dres))
+ {
+ output_log_training($drow);
+ }
+}ELSE{
+ ?><td colspan="3" ><?=_('no entry avialable')?></td><?
}?>
</table>
<br/>
+
<?
$dres = get_user_agreement($userid,'',1);
?>
@@ -170,12 +171,13 @@ if(mysql_num_rows($dres) > 0) {
while($drow = mysql_fetch_assoc($dres))
{
output_log_agreement($drow);
- }ELSE{
- ?><td colspan="4" ><?=_('no entry avialable')?></td><?
}
+}ELSE{
+ ?><td colspan="4" ><?=_('no entry avialable')?></td><?
}?>
</table>
<br/>
+
<?
$dres = get_client_certs($userid);
$colspan=10;
@@ -189,18 +191,19 @@ if (1==$support) {
</tr>
<?
if(mysql_num_rows($dres) > 0) {
- output_client_cert_header($support);
- while($drow = mysql_fetch_assoc($dres))
- {
- output_client_cert($drow,$support);
- }ELSE{
- ?><td colspan="<? $colspan?>" ><?=_('no entry avialable')?></td><?
- }
+ output_client_cert_header($support);
+ while($drow = mysql_fetch_assoc($dres))
+ {
+ output_client_cert($drow,$support);
+ }
+}ELSE{
+ ?><td colspan="<? $colspan?>" ><?=_('no entry avialable')?></td><?
}?>
</table>
<br/>
- <?
- $dres = get_server_certs($userid);
+
+<?
+$dres = get_server_certs($userid);
$colspan=8;
if (1==$support) {
$colspan=5;
@@ -212,21 +215,37 @@ if (1==$support) {
</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><?
- }
+ 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><?
}?>
</table>
<br/>
-<table>
-
-
+<?
+$dres = get_server_certs($userid);
+$colspan=6;
+if (1==$support) {
+ $colspan=4;
+}
+?>
+<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
<tr>
- <td colspan="<? $colspandefault ?>" class="title"><?=_('GPG certificates')?></td>
+ <td colspan="<? $colspan?>" class="title"><?=_('Server certificates')?></td>
</tr>
-</table> \ No newline at end of file
+<?
+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><?
+}?>
+</table>
+} \ No newline at end of file