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

Signed-off-by: canyonknight <canyonkni...@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

Reply via email to