anonimize shown ip address in demo mode

This commit is contained in:
SJ
2013-07-25 13:27:56 +02:00
parent 3d8d08f2bd
commit 3f4962990d
4 changed files with 15 additions and 2 deletions

View File

@ -16,7 +16,7 @@
<?php foreach($users as $user) { ?>
<tr>
<td class="domaincell"><?php print $user['username']; ?></td>
<td class="domaincell"><?php print $user['ipaddr']; ?></td>
<td class="domaincell"><?php if(DEMO_MODE == 1) { print anonimize_ip_addr($user['ipaddr']); } else { print $user['ipaddr']; } ?></td>
<td class="domaincell"><?php print date("Y.m.d. G:i:s", $user['ts']); ?></td>
<td class="domaincell"><?php print date("Y.m.d. G:i:s", $user['last_activity']); ?></td>
</tr>