summaryrefslogtreecommitdiff
path: root/pages/account/59.php
blob: e794e974661fed966d67d1f39260ef0125324ee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?/*
   LibreSSL - CAcert web application
   Copyright (C) 2004-2008  CAcert Inc.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; version 2 of the License.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
*/


$colspandefault=2;
$userid = intval($_REQUEST['userid']);
$res =get_user_data($userid);
$row = mysql_fetch_assoc($res);

$fname = $row['fname'];
$mname = $row['mname'];
$lname = $row['lname'];
$suffix = $row['suffix'];
$dob = $row['dob'];
$name = $fname." ".$mname." ".$lname." ".$suffix;
$email = $row['email'];
$alerts =get_alerts($userid)
?>
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
  <tr>
    <td colspan="<? $colspandefault ?>" class="title"><?=sprintf(_('Account history of %s'),'username')?></td>
  </tr>
  <tr>
    <td colspan="<? $colspandefault ?>" class="title"><?=_('User actions')?></td>
  </tr>
  <tr>
    <td class="DataTD"><?=_('User name')?></td>
    <td class="DataTD"><?=$name?></td>
  </tr>
  <tr>
    <td class="DataTD"><?=_('Date of Birth')?></td>
    <td class="DataTD"><?=$dob?></td>
  </tr>
  <tr>
    <td class="DataTD"><?=_("Is Assurer")?>:</td>
    <td class="DataTD"><?= ($row['assurer']==0)? _('No'):_('Yes')?></td>
  </tr>
  <tr>
    <td class="DataTD"><?=_("Blocked Assurer")?>:</td>
    <td class="DataTD"><?= ($row['assurer_blocked']==0)? _('No'):_('Yes')?></td>
  </tr>
  <tr>
    <td class="DataTD"><?=_("Account Locking")?>:</td>
    <td class="DataTD"><?= ($row['locked']==0)? _('No'):_('Yes')?></td>
  </tr>
  <tr>
    <td class="DataTD"><?=_("Code Signing")?>:</td>
    <td class="DataTD"><?= ($row['codesign']==0)? _('No'):_('Yes')?></td>
  </tr>
  <tr>
    <td class="DataTD"><?=_("Org Assurer")?>:</td>
    <td class="DataTD"><?= ($row['orgadmin']==0)? _('No'):_('Yes')?></td>
  </tr>
  <tr>
    <td class="DataTD"><?=_("TTP Admin")?>:</td>
    <td class="DataTD"><?= $row['ttpadmin']._(' - 0 = none, 1 = TTP Admin, 2 = TTP TOPUP admin')?></td>
  </tr>
  <tr>
    <td class="DataTD"><?=_("Location Admin")?>:</td>
    <td class="DataTD"><?= ($row['locadmin']==0)? _('No'):_('Yes')?></td>
  </tr>
  <tr>
    <td class="DataTD"><?=_("Admin")?>:</td>
    <td class="DataTD"><?= ($row['admin']==0)? _('No'):_('Yes')?></td>
  </tr>
  <tr>
    <td class="DataTD"><?=_("Ad Admin")?>:</td>
    <td class="DataTD"><?= $row['adadmin']._(' - 0 = none, 1 = submit, 2 = approve')?></td>
  </tr>
    <td class="DataTD"><?=_("General Announcements")?>:</td>
    <td class="DataTD"><?= ($alerts['general']==0)? _('No'):_('Yes')?></td>
  </tr>
  <tr>
    <td class="DataTD"><?=_("Country Announcements")?>:</td>
    <td class="DataTD"><?= ($row['id']==0)? _('No'):_('Yes')?></td>
  </tr>
  <tr>
    <td class="DataTD"><?=_("Regional Announcements")?>:</td>
    <td class="DataTD"><?= ($row['id']==0)? _('No'):_('Yes')?></td>
  </tr>
  <tr>
    <td class="DataTD"><?=_("Within 200km Announcements")?>:</td>
    <td class="DataTD"><?= ($row['id']==0)? _('No'):_('Yes')?></td>
  </tr>
</table>
<br/>
<?
$dres = get_email_address($userid,'',1);
if(mysql_num_rows($dres) > 0) {
?>
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
  <tr>
    <td colspan="3" class="title"><?=_('Email addresses')?></td>
  </tr>
<?
output_log_email_header();
while($drow = mysql_fetch_assoc($dres))
{
	output_log_email($drow,$email);
 } ?>
</table>
<br/>
<?
$dres = get_domains($userid,'',1);
if(mysql_num_rows($dres) > 0) {
?>
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
  <tr>
    <td colspan="3" class="title"><?=_('Domains')?></td>
  </tr>
<?
output_log_domain_header();
while($drow = mysql_fetch_assoc($dres))
{
	output_log_domain($drow,$email);
} ?>
</table>
<br/>

<table>
  <tr>
    <td colspan="<? $colspandefault ?>" class="title"><?=_('CATS')?></td>
  </tr>
  <tr>
    <td colspan="<? $colspandefault ?>" class="title"><?=_('CCA')?></td>
  </tr>
  <tr>
    <td colspan="<? $colspandefault ?>" class="title"><?=_('Support Engineer actions')?></td>
  </tr>
  <tr>
    <td colspan="<? $colspandefault ?>" class="title"><?=_('Certificate actions')?></td>
  </tr>
  <tr>
    <td colspan="<? $colspandefault ?>" class="title"><?=_('Client certificates')?></td>
  </tr>
  <tr>
    <td colspan="<? $colspandefault ?>" class="title"><?=_('Server certificates')?></td>
  </tr>
  <tr>
    <td colspan="<? $colspandefault ?>" class="title"><?=_('GPG certificates')?></td>
  </tr>
</table>