[aur-dev] [PATCH] Display user's IP address on their user profile page

canyonknight canyonknight at gmail.com
Tue Mar 19 18:25:25 EDT 2013


The IP address is only visible to Trusted Users and Developers.

Signed-off-by: canyonknight <canyonknight at gmail.com>
---
 web/template/account_details.php | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/web/template/account_details.php b/web/template/account_details.php
index fdebfb3..9f7e578 100644
--- a/web/template/account_details.php
+++ b/web/template/account_details.php
@@ -43,6 +43,14 @@
 					<?= $row["LastVoted"] ? date("Y-m-d", $row["LastVoted"]) : __("Never"); ?>
 					</td>
 				</tr>
+
+				<?php if ($atype == "Trusted User" || $atype == "Developer"): ?>
+				<tr>
+					<th><?= __("Last Login IP Address") . ":" ?></th>
+					<td><?= long2ip($row["LastLoginIPAddress"]); ?></td>
+				</tr>
+				<?php endif; ?>
+
 				<tr>
 					<th>Links:</th>
 					<td>
-- 
1.8.2



More information about the aur-dev mailing list