diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-02-09 01:49:35 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-02-09 01:49:35 +0100 |
commit | 69557a7ca7dc13feefc566130a6d5883eab1432d (patch) | |
tree | 603587c057b4c69cf1224458d42849276b410054 /web | |
parent | 8c07c091e8b4bfcee33745d6c2e58a35cbf9a44d (diff) |
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>
Diffstat (limited to 'web')
-rw-r--r-- | web/template/account_details.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/web/template/account_details.php b/web/template/account_details.php index 5ba01d9..a4e20c9 100644 --- a/web/template/account_details.php +++ b/web/template/account_details.php @@ -43,6 +43,14 @@ <?= $row["InactivityTS"] ? __("Inactive since") . ' ' . date("Y-m-d H:i", $row["InactivityTS"]) : __("Active"); ?> </td> </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> <th>Links:</th> <td><ul> |