7ad3f9da6e8989241f274d2bb6737f8d40bab520
2 LibreSSL - CAcert web application
3 Copyright (C) 2004-2008 CAcert Inc.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; version 2 of the License.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 include_once($_SESSION['_config']['filepath']."/includes/notary.inc.php");
22 $userid = intval($_REQUEST['userid']);
23 $res =get_user_data($userid);
27 if(mysql_num_rows($res) <= 0)
29 echo _("I'm sorry, the user you were looking for seems to have disappeared! Bad things are a foot!");
33 $row = mysql_fetch_assoc($res);
35 $fname = $row['fname'];
36 $mname = $row['mname'];
37 $lname = $row['lname'];
38 $suffix = $row['suffix'];
40 $username = $fname." ".$mname." ".$lname." ".$suffix;
41 $email = $row['email'];
42 $alerts =get_alerts($userid);
44 if(intval($_REQUEST['oldid'])==43){
45 $support=$_SESSION['profile']['admin'];
47 $ticketno = ""; if(array_key_exists('ticketno', $_SESSION)) $ticketno = $_SESSION['ticketno'];
48 if (!valid_ticket_number($ticketno) && $support == 1) {
49 echo printf(_("I'm sorry, you did not enter a ticket number!%sSupport is not allowed to view the account history without a ticket number.%s"), '<br/>', '<br/><a href="account.php?id=43&userid=' . intval($_REQUEST['userid']) .'">'. _('Back to previous page.').'</a>');
54 <table align
="center" valign
="middle" border
="0" cellspacing
="0" cellpadding
="0" class="wrapper">
56 <td colspan
="<?=$colspandefault ?>" class="title"><?
=sprintf(_('Account history of %s'),$username)?
></td
>
59 <td colspan
="<?=$colspandefault ?>" class="title"><?
=_('User actions')?
></td
>
62 <td
class="DataTD"><?
=_('User name')?
></td
>
63 <td
class="DataTD"><?
=$username?
></td
>
66 <td
class="DataTD"><?
=_('Date of Birth')?
></td
>
67 <td
class="DataTD"><?
=$dob?
></td
>
70 <td
class="DataTD"><?
=_("Is Assurer")?
>:</td
>
71 <td
class="DataTD"><?
= ($row['assurer']==0)?
_('No'):_('Yes')?
></td
>
74 <td
class="DataTD"><?
=_("Blocked Assurer")?
>:</td
>
75 <td
class="DataTD"><?
= ($row['assurer_blocked']==0)?
_('No'):_('Yes')?
></td
>
78 <td
class="DataTD"><?
=_("Account Locking")?
>:</td
>
79 <td
class="DataTD"><?
= ($row['locked']==0)?
_('No'):_('Yes')?
></td
>
82 <td
class="DataTD"><?
=_("Code Signing")?
>:</td
>
83 <td
class="DataTD"><?
= ($row['codesign']==0)?
_('No'):_('Yes')?
></td
>
86 <td
class="DataTD"><?
=_("Org Assurer")?
>:</td
>
87 <td
class="DataTD"><?
= ($row['orgadmin']==0)?
_('No'):_('Yes')?
></td
>
90 <td
class="DataTD"><?
=_("TTP Admin")?
>:</td
>
91 <td
class="DataTD"><?
= $row['ttpadmin']._(' - 0 = none, 1 = TTP Admin, 2 = TTP TOPUP admin')?
></td
>
94 <td
class="DataTD"><?
=_("Location Admin")?
>:</td
>
95 <td
class="DataTD"><?
= ($row['locadmin']==0)?
_('No'):_('Yes')?
></td
>
98 <td
class="DataTD"><?
=_("Admin")?
>:</td
>
99 <td
class="DataTD"><?
= ($row['admin']==0)?
_('No'):_('Yes')?
></td
>
102 <td
class="DataTD"><?
=_("Ad Admin")?
>:</td
>
103 <td
class="DataTD"><?
= $row['adadmin']._(' - 0 = none, 1 = submit, 2 = approve')?
></td
>
106 <td
class="DataTD"><?
=_("General Announcements")?
>:</td
>
107 <td
class="DataTD"><?
= ($alerts['general']==0)?
_('No'):_('Yes')?
></td
>
110 <td
class="DataTD"><?
=_("Country Announcements")?
>:</td
>
111 <td
class="DataTD"><?
= ($row['id']==0)?
_('No'):_('Yes')?
></td
>
114 <td
class="DataTD"><?
=_("Regional Announcements")?
>:</td
>
115 <td
class="DataTD"><?
= ($row['id']==0)?
_('No'):_('Yes')?
></td
>
118 <td
class="DataTD"><?
=_("Within 200km Announcements")?
>:</td
>
119 <td
class="DataTD"><?
= ($row['id']==0)?
_('No'):_('Yes')?
></td
>
124 $dres = get_email_address($userid,'',1);
125 if(mysql_num_rows($dres) > 0) {
127 <table align
="center" valign
="middle" border
="0" cellspacing
="0" cellpadding
="0" class="wrapper">
129 <td colspan
="3" class="title"><?
=_('Email addresses')?
></td
>
132 output_log_email_header();
133 while($drow = mysql_fetch_assoc($dres))
135 output_log_email($drow,$email);
140 $dres = get_domains($userid,'',1);
142 <table align
="center" valign
="middle" border
="0" cellspacing
="0" cellpadding
="0" class="wrapper">
144 <td colspan
="3" class="title"><?
=_('Domains')?
></td
>
147 if(mysql_num_rows($dres) > 0) {
148 output_log_domains_header();
149 while($drow = mysql_fetch_assoc($dres))
151 output_log_domains($drow,$email);
154 <td colspan
="3" ><?
=_('no entry avialable')?
></td
>
160 $dres = get_training_result($userid);
162 <table align
="center" valign
="middle" border
="0" cellspacing
="0" cellpadding
="0" class="wrapper">
164 <td colspan
="3" class="title"><?
=_('Trainings')?
></td
>
167 if(mysql_num_rows($dres) > 0) {
168 output_log_training_header();
169 while($drow = mysql_fetch_assoc($dres))
171 output_log_training($drow);
174 ?
><td colspan
="3" ><?
=_('no entry avialable')?
></td
><?
180 $dres = get_user_agreement($userid,'',1);
182 <table align
="center" valign
="middle" border
="0" cellspacing
="0" cellpadding
="0" class="wrapper">
184 <td colspan
="4" class="title"><?
=_('User agreements')?
></td
>
187 if(mysql_num_rows($dres) > 0) {
188 output_log_agreement_header();
189 while($drow = mysql_fetch_assoc($dres))
191 output_log_agreement($drow);
194 ?
><td colspan
="4" ><?
=_('no entry avialable')?
></td
><?
200 $dres = get_client_certs($userid,1);
206 <table align
="center" valign
="middle" border
="0" cellspacing
="0" cellpadding
="0" class="wrapper">
208 <td colspan
="<?=$colspan?>" class="title"><?
=_('Client certificates')?
></td
>
211 if(mysql_num_rows($dres) > 0) {
212 output_client_cert_header($support);
213 while($drow = mysql_fetch_assoc($dres))
215 output_client_cert($drow,$support);
218 ?
><td colspan
="<?=$colspan?>" ><?
=_('no entry avialable')?
></td
><?
224 $dres = get_server_certs($userid,1);
230 <table align
="center" valign
="middle" border
="0" cellspacing
="0" cellpadding
="0" class="wrapper">
232 <td colspan
="<?=$colspan?>" class="title"><?
=_('Server certificates')?
></td
>
235 if(mysql_num_rows($dres) > 0) {
236 output_log_server_certs_header($support);
237 while($drow = mysql_fetch_assoc($dres))
239 output_log_server_certs($drow,$support);
242 ?
><td colspan
="<?=$colspan?>" ><?
=_('no entry avialable')?
></td
><?
248 $dres = get_gpg_certs($userid,1);
254 <table align
="center" valign
="middle" border
="0" cellspacing
="0" cellpadding
="0" class="wrapper">
256 <td colspan
="<?=$colspan?>" class="title"><?
=_('GPG/PGP certificates')?
></td
>
259 if(mysql_num_rows($dres) > 0) {
260 output_gpg_certs_header($support);
261 while($drow = mysql_fetch_assoc($dres))
263 output_gpg_certs($drow,$support);
266 ?
><td colspan
="<?=$colspan?>" ><?
=_('no entry avialable')?
></td
><?
273 output_log_given_assurances($userid, $support);
276 output_log_received_assurances($userid, $support);
279 $dres = get_se_log($userid);
285 <table align
="center" valign
="middle" border
="0" cellspacing
="0" cellpadding
="0" class="wrapper">
287 <td colspan
="<?=$colspan?>" class="title"><?
=_('Admin log')?
></td
>
290 if(mysql_num_rows($dres) > 0) {
291 output_log_se_header($support);
292 while($drow = mysql_fetch_assoc($dres))
294 output_log_se($drow,$support);
297 ?
><td colspan
="<?=$colspan?>" ><?
=_('no entry avialable')?
></td
><?
300 ?
><td colspan
="<?=$colspan?>" ><a href
="account.php?id=43&userid=<?= $userid ?>"><?
= _('Back to previous page.')?
></a
></td
><?