Show user's last login on the account details page

This is only visible to Trusted Users and developers.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2014-02-09 01:49:35 +01:00
parent 8c07c091e8
commit 69557a7ca7

View file

@ -43,6 +43,14 @@
<?= $row["InactivityTS"] ? __("Inactive since") . ' ' . date("Y-m-d H:i", $row["InactivityTS"]) : __("Active"); ?> <?= $row["InactivityTS"] ? __("Inactive since") . ' ' . date("Y-m-d H:i", $row["InactivityTS"]) : __("Active"); ?>
</td> </td>
</tr> </tr>
<?php if ($atype == "Trusted User" || $atype == "Developer"): ?>
<tr>
<th><?= __("Last Login") . ":" ?></th>
<td>
<?= $row["LastLogin"] ? date("Y-m-d", $row["LastLogin"]) : __("Never"); ?>
</td>
</tr>
<?php endif; ?>
<tr> <tr>
<th>Links:</th> <th>Links:</th>
<td><ul> <td><ul>