summaryrefslogtreecommitdiff
path: root/web/template/account_details.php
blob: 85515330794cd85e55edb8e7e7496802029df76b (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
<table>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>

	<tr>
		<td align="left"><?php echo __("Username") . ":" ?></td>
		<td align="left"><?php echo $row["Username"] ?></td>
	</tr>

	<tr>
		<td align="left"><?php echo __("Account Type") . ":" ?></td>
		<td align="left">
			<?php
			if ($row["AccountType"] == "User") {
				print __("User");
			} elseif ($row["AccountType"] == "Trusted User") {
				print __("Trusted User");
			} elseif ($row["AccountType"] == "Developer") {
				print __("Developer");
			}
			?>
		</td>
	</tr>

	<tr>
		<td align="left"><?php echo __("Email Address") . ":" ?></td>
		<td align="left"><a href="mailto:<?php echo htmlspecialchars($row["Email"], ENT_QUOTES) ?>"><?php echo htmlspecialchars($row["Email"], ENT_QUOTES) ?></a></td>
	</tr>

	<tr>
		<td align="left"><?php echo __("Real Name") . ":" ?></td>
		<td align="left"><?php echo htmlspecialchars($row["RealName"], ENT_QUOTES) ?></td>
	</tr>

	<tr>
		<td align="left"><?php echo __("IRC Nick") . ":" ?></td>
		<td align="left"><?php echo htmlspecialchars($row["IRCNick"], ENT_QUOTES) ?></td>
	</tr>

	<tr>
		<td align="left"><?php echo __("PGP Key Fingerprint") . ":" ?></td>
		<td align="left"><?php echo html_format_pgp_fingerprint($row["PGPKey"]) ?></td>
	</tr>

	<tr>
		<td align="left"><?php echo __("Last Voted") . ":" ?></td>
		<td align="left">
		<?php print $row["LastVoted"] ? date("Y-m-d", $row["LastVoted"]) : __("Never"); ?>
		</td>
	</tr>

	<tr>
		<td colspan="2"><a href="<?php echo get_uri('/packages/'); ?>?K=<?php echo $row['Username'] ?>&amp;SeB=m"><?php echo __("View this user's packages") ?></a></td>
	</tr>

</table>